diff --git a/assets/dotlottie-state-machine-manager-2E7RUGJG-BicjYFdB.js b/assets/dotlottie-state-machine-manager-2E7RUGJG-Q0qNo-Kd.js similarity index 99% rename from assets/dotlottie-state-machine-manager-2E7RUGJG-BicjYFdB.js rename to assets/dotlottie-state-machine-manager-2E7RUGJG-Q0qNo-Kd.js index f6f95503..122b7447 100644 --- a/assets/dotlottie-state-machine-manager-2E7RUGJG-BicjYFdB.js +++ b/assets/dotlottie-state-machine-manager-2E7RUGJG-Q0qNo-Kd.js @@ -1,4 +1,4 @@ -var Ee=Object.defineProperty;var Oe=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);import{o as Lt,d as Kt,u as ke,a as Te}from"./index-BIcfsy9E.js";var p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,o=[],a;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function V(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i"u"||typeof i=="string"||ot(i)?{target:i,event:e}:p(p({},i),{event:e})});return n}function Ue(e){if(!(e===void 0||e===Ce))return q(e)}function de(e,t,n,i,r){var o=e.options.guards,a={state:r,cond:t,_event:i};if(t.type===Rt)return((o==null?void 0:o[t.name])||t.predicate)(n,i.data,a);var s=o==null?void 0:o[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,i.data,a)}function ve(e){return typeof e=="string"?{type:e}:e}function wt(e,t,n){var i=function(){},r=typeof e=="object",o=r?e:null;return{next:((r?e.next:e)||i).bind(o),error:((r?e.error:t)||i).bind(o),complete:((r?e.complete:n)||i).bind(o)}}function mt(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Bt(e){return(e.type===yt||e.type===At&&e.to===rt.Internal)&&typeof e.delay!="number"}var it=R({type:je});function Jt(e,t){return t&&t[e]||void 0}function vt(e,t){var n;if(A(e)||typeof e=="number"){var i=Jt(e,t);T(i)?n={type:e,exec:i}:i?n=i:n={type:e,exec:void 0}}else if(T(e))n={type:e.name||e.toString(),exec:e};else{var i=Jt(e.type,t);if(T(i))n=p(p({},e),{exec:i});else if(i){var r=i.type||e.type;n=p(p(p({},i),e),{type:r})}else n=e}return n}var H=function(e,t){if(!e)return[];var n=at(e)?e:[e];return n.map(function(i){return vt(i,t)})};function Qt(e){var t=vt(e);return p(p({id:A(e)?e:t.id},t),{type:t.type})}function Fe(e,t){return{type:yt,event:typeof e=="function"?e:Pt(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function Xe(e,t,n,i){var r={_event:n},o=R(T(e.event)?e.event(t,n.data,r):e.event),a;if(A(e.delay)){var s=i&&i[e.delay];a=T(s)?s(t,n.data,r):s}else a=T(e.delay)?e.delay(t,n.data,r):e.delay;return p(p({},e),{type:yt,_event:o,delay:a})}function Qe(e,t){return{to:t?t.to:void 0,type:At,event:T(e)?e:Pt(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:T(e)?e.name:ue(e)}}function He(e,t,n,i){var r={_event:n},o=R(T(e.event)?e.event(t,n.data,r):e.event),a;if(A(e.delay)){var s=i&&i[e.delay];a=T(s)?s(t,n.data,r):s}else a=T(e.delay)?e.delay(t,n.data,r):e.delay;var c=T(e.to)?e.to(t,n.data,r):e.to;return p(p({},e),{to:c,_event:o,event:o.data,delay:a})}var We=function(e,t,n){return p(p({},e),{value:A(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ke=function(e){return{type:re,sendId:e}};function Ze(e){var t=Qt(e);return{type:P.Start,activity:t,exec:void 0}}function Ye(e){var t=T(e)?e:Qt(e);return{type:P.Stop,activity:t,exec:void 0}}function Ge(e,t,n){var i=T(e.activity)?e.activity(t,n.data):e.activity,r=typeof i=="string"?{id:i}:i,o={type:P.Stop,activity:r};return o}function tn(e,t){var n=t?"#".concat(t):"";return"".concat(P.After,"(").concat(e,")").concat(n)}function _t(e,t){var n="".concat(P.DoneState,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}function Et(e,t){var n="".concat(P.DoneInvoke,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}function ht(e,t){var n="".concat(P.ErrorPlatform,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}var en=function(e){var t,n,i=[];try{for(var r=E(e),o=r.next();!o.done;o=r.next())for(var a=o.value,s=0;s0;){var u=r.shift();n=e.transition(n,u,c),i.forEach(function(h){return h.next(n)})}o=!1}},s=an({id:t.id,send:function(u){r.push(u),a()},getSnapshot:function(){return n},subscribe:function(u,h,f){var l=wt(u,h,f);return i.add(l),l.next(n),{unsubscribe:function(){i.delete(l)}}}}),c={parent:t.parent,self:s,id:t.id||"anonymous",observers:i};return n=e.start?e.start(c):n,s}var gn={sync:!1,autoForward:!1},D;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(D||(D={}));var mn=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var i=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=D.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(h,f){if(at(h))return i.batch(h),i.state;var l=R(Pt(h,f));if(i.status===D.Stopped)return i.state;if(i.status!==D.Running&&!i.options.deferEvents)throw new Error('Event "'.concat(l.name,'" was sent to uninitialized service "').concat(i.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options. +var Ee=Object.defineProperty;var Oe=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);import{o as Lt,d as Kt,u as ke,a as Te}from"./index-CYFYL5qx.js";var p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,o=[],a;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function V(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i"u"||typeof i=="string"||ot(i)?{target:i,event:e}:p(p({},i),{event:e})});return n}function Ue(e){if(!(e===void 0||e===Ce))return q(e)}function de(e,t,n,i,r){var o=e.options.guards,a={state:r,cond:t,_event:i};if(t.type===Rt)return((o==null?void 0:o[t.name])||t.predicate)(n,i.data,a);var s=o==null?void 0:o[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,i.data,a)}function ve(e){return typeof e=="string"?{type:e}:e}function wt(e,t,n){var i=function(){},r=typeof e=="object",o=r?e:null;return{next:((r?e.next:e)||i).bind(o),error:((r?e.error:t)||i).bind(o),complete:((r?e.complete:n)||i).bind(o)}}function mt(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Bt(e){return(e.type===yt||e.type===At&&e.to===rt.Internal)&&typeof e.delay!="number"}var it=R({type:je});function Jt(e,t){return t&&t[e]||void 0}function vt(e,t){var n;if(A(e)||typeof e=="number"){var i=Jt(e,t);T(i)?n={type:e,exec:i}:i?n=i:n={type:e,exec:void 0}}else if(T(e))n={type:e.name||e.toString(),exec:e};else{var i=Jt(e.type,t);if(T(i))n=p(p({},e),{exec:i});else if(i){var r=i.type||e.type;n=p(p(p({},i),e),{type:r})}else n=e}return n}var H=function(e,t){if(!e)return[];var n=at(e)?e:[e];return n.map(function(i){return vt(i,t)})};function Qt(e){var t=vt(e);return p(p({id:A(e)?e:t.id},t),{type:t.type})}function Fe(e,t){return{type:yt,event:typeof e=="function"?e:Pt(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function Xe(e,t,n,i){var r={_event:n},o=R(T(e.event)?e.event(t,n.data,r):e.event),a;if(A(e.delay)){var s=i&&i[e.delay];a=T(s)?s(t,n.data,r):s}else a=T(e.delay)?e.delay(t,n.data,r):e.delay;return p(p({},e),{type:yt,_event:o,delay:a})}function Qe(e,t){return{to:t?t.to:void 0,type:At,event:T(e)?e:Pt(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:T(e)?e.name:ue(e)}}function He(e,t,n,i){var r={_event:n},o=R(T(e.event)?e.event(t,n.data,r):e.event),a;if(A(e.delay)){var s=i&&i[e.delay];a=T(s)?s(t,n.data,r):s}else a=T(e.delay)?e.delay(t,n.data,r):e.delay;var c=T(e.to)?e.to(t,n.data,r):e.to;return p(p({},e),{to:c,_event:o,event:o.data,delay:a})}var We=function(e,t,n){return p(p({},e),{value:A(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ke=function(e){return{type:re,sendId:e}};function Ze(e){var t=Qt(e);return{type:P.Start,activity:t,exec:void 0}}function Ye(e){var t=T(e)?e:Qt(e);return{type:P.Stop,activity:t,exec:void 0}}function Ge(e,t,n){var i=T(e.activity)?e.activity(t,n.data):e.activity,r=typeof i=="string"?{id:i}:i,o={type:P.Stop,activity:r};return o}function tn(e,t){var n=t?"#".concat(t):"";return"".concat(P.After,"(").concat(e,")").concat(n)}function _t(e,t){var n="".concat(P.DoneState,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}function Et(e,t){var n="".concat(P.DoneInvoke,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}function ht(e,t){var n="".concat(P.ErrorPlatform,".").concat(e),i={type:n,data:t};return i.toString=function(){return n},i}var en=function(e){var t,n,i=[];try{for(var r=E(e),o=r.next();!o.done;o=r.next())for(var a=o.value,s=0;s0;){var u=r.shift();n=e.transition(n,u,c),i.forEach(function(h){return h.next(n)})}o=!1}},s=an({id:t.id,send:function(u){r.push(u),a()},getSnapshot:function(){return n},subscribe:function(u,h,f){var l=wt(u,h,f);return i.add(l),l.next(n),{unsubscribe:function(){i.delete(l)}}}}),c={parent:t.parent,self:s,id:t.id||"anonymous",observers:i};return n=e.start?e.start(c):n,s}var gn={sync:!1,autoForward:!1},D;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(D||(D={}));var mn=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var i=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=D.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(h,f){if(at(h))return i.batch(h),i.state;var l=R(Pt(h,f));if(i.status===D.Stopped)return i.state;if(i.status!==D.Running&&!i.options.deferEvents)throw new Error('Event "'.concat(l.name,'" was sent to uninitialized service "').concat(i.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options. Event: `).concat(JSON.stringify(l.data)));return i.scheduler.schedule(function(){i.forward(l);var d=i._nextState(l);i.update(d,l)}),i._state},this.sendTo=function(h,f,l){var d=i.parent&&(f===rt.Parent||i.parent.id===f),y=d?i.parent:A(f)?f===rt.Internal?i:i.children.get(f)||ct.get(f):qe(f)?f:void 0;if(!y){if(!d)throw new Error("Unable to send event to child '".concat(f,"' from service '").concat(i.id,"'."));return}if("machine"in y){if(i.status!==D.Stopped||i.parent!==y||i.state.done){var v=p(p({},h),{name:h.name===Ae?"".concat(ht(i.id)):h.name,origin:i.sessionId});!l&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([y,v]):y.send(v)}}else!l&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([y,h.data]):y.send(h.data)},this._exec=function(h,f,l,d){d===void 0&&(d=i.machine.options.actions);var y=h.exec||Jt(h.type,d),v=T(y)?y:y?y.exec:h.exec;if(v)try{return v(f,l.data,i.machine.config.predictableActionArguments?{action:h,_event:l}:{action:h,state:i.state,_event:l})}catch(B){throw i.parent&&i.parent.send({type:"xstate.error",data:B}),B}switch(h.type){case yt:{var _=h;i.defer(_);break}case At:var g=h;if(typeof g.delay=="number"){i.defer(g);return}else g.to?i.sendTo(g._event,g.to,l===it):i.send(g._event);break;case re:i.cancel(h.sendId);break;case Mt:{if(i.status!==D.Running)return;var m=h.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[m.id||m.type])break;if(m.type===P.Invoke){var b=ve(m.src),S=i.machine.options.services?i.machine.options.services[b.type]:void 0,N=m.id,C=m.data,k="autoForward"in m?m.autoForward:!!m.forward;if(!S)return;var L=C?Tt(C,f,l):void 0;if(typeof S=="string")return;var w=T(S)?S(f,l.data,{data:L,src:b,meta:m.meta}):S;if(!w)return;var M=void 0;ot(w)&&(w=L?w.withContext(L):w,M={autoForward:k}),i.spawn(w,N,M)}else i.spawnActivity(m);break}case Ft:{i.stopChild(h.activity.id);break}case ae:var x=h,j=x.label,z=x.value;j?i.logger(j,z):i.logger(z);break}};var r=p(p({},e.defaultOptions),n),o=r.clock,a=r.logger,s=r.parent,c=r.id,u=c!==void 0?c:t.id;this.id=u,this.logger=a,this.clock=o,this.parent=s,this.options=r,this.scheduler=new ie({deferEvents:this.options.deferEvents}),this.sessionId=ct.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:et(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var i,r;try{for(var o=E(t.actions),a=o.next();!a.done;a=o.next()){var s=a.value;this.exec(s,t,n)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}},e.prototype.update=function(t,n){var i,r,o,a,s,c,u,h,f=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===it)&&this.options.execute)this.execute(this.state);else for(var l=void 0;l=this._outgoingQueue.shift();)l[0].send(l[1]);if(this.children.forEach(function(w){f.state.children[w.id]=w}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var d=E(this.eventListeners),y=d.next();!y.done;y=d.next()){var v=y.value;v(t.event)}}catch(w){i={error:w}}finally{try{y&&!y.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}try{for(var _=E(this.listeners),g=_.next();!g.done;g=_.next()){var v=g.value;v(t,t.event)}}catch(w){o={error:w}}finally{try{g&&!g.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}try{for(var m=E(this.contextListeners),b=m.next();!b.done;b=m.next()){var S=b.value;S(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(w){s={error:w}}finally{try{b&&!b.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}if(this.state.done){var N=t.configuration.find(function(w){return w.type==="final"&&w.parent===f.machine}),C=N&&N.doneData?Tt(N.doneData,t.context,n):void 0;this._doneEvent=Et(this.id,C);try{for(var k=E(this.doneListeners),L=k.next();!L.done;L=k.next()){var v=L.value;v(this._doneEvent)}}catch(w){u={error:w}}finally{try{L&&!L.done&&(h=k.return)&&h.call(k)}finally{if(u)throw u.error}}this._stop(),this._stopChildren(),ct.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===D.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,i){var r=this,o=wt(t,n,i);this.listeners.add(o.next),this.status!==D.NotStarted&&o.next(this.state);var a=function(){r.doneListeners.delete(a),r.stopListeners.delete(a),o.complete()};return this.status===D.Stopped?o.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(a),r.stopListeners.delete(a)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===D.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===D.Running)return this;this.machine._init(),ct.register(this.sessionId,this),this.initialized=!0,this.status=D.Running;var i=t===void 0?this.initialState:et(this,function(){return hn(t)?n.machine.resolveState(t):n.machine.resolveState(F.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(i,it)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){T(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,i,r,o,a,s,c,u,h;try{for(var f=E(this.listeners),l=f.next();!l.done;l=f.next()){var d=l.value;this.listeners.delete(d)}}catch(k){t={error:k}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var y=E(this.stopListeners),v=y.next();!v.done;v=y.next()){var d=v.value;d(),this.stopListeners.delete(d)}}catch(k){i={error:k}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(i)throw i.error}}try{for(var _=E(this.contextListeners),g=_.next();!g.done;g=_.next()){var d=g.value;this.contextListeners.delete(d)}}catch(k){o={error:k}}finally{try{g&&!g.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}try{for(var m=E(this.doneListeners),b=m.next();!b.done;b=m.next()){var d=b.value;this.doneListeners.delete(d)}}catch(k){s={error:k}}finally{try{b&&!b.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=D.Stopped,this._initialState=void 0;try{for(var S=E(Object.keys(this.delayedEventsMap)),N=S.next();!N.done;N=S.next()){var C=N.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(k){u={error:k}}finally{try{N&&!N.done&&(h=S.return)&&h.call(S)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new ie({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var i=R({type:"xstate.stop"}),r=et(t,function(){var o=I(V([],O(t.state.configuration),!1).sort(function(h,f){return f.order-h.order}).map(function(h){return H(h.onExit,t.machine.options.actions)})),a=O(Nt(t.machine,t.state,t.state.context,i,[{type:"exit",actions:o}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),s=a[0],c=a[1],u=new F({value:t.state.value,context:c,_event:i,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:s.filter(function(h){return!Bt(h)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return u.changed=!0,u});t.update(r,i),t._stopChildren(),ct.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===D.NotStarted&&this.options.deferEvents)){if(this.status!==D.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(t.length){var i=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,o,a=n.state,s=!1,c=[],u=function(d){var y=R(d);n.forward(y),a=et(n,function(){return n.machine.transition(a,y,void 0,i||void 0)}),c.push.apply(c,V([],O(n.machine.config.predictableActionArguments?a.actions:a.actions.map(function(v){return ln(v,a)})),!1)),s=s||!!a.changed};try{for(var h=E(t),f=h.next();!f.done;f=h.next()){var l=f.value;u(l)}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}a.changed=s,a.actions=c,n.update(a,R(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var i=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var r=R(t);if(r.name.indexOf(Zt)===0&&!this.state.nextEvents.some(function(a){return a.indexOf(Zt)===0}))throw r.data.data;var o=et(this,function(){return i.machine.transition(i.state,r,void 0,n||void 0)});return o},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,i;try{for(var r=E(this.forwardTo),o=r.next();!o.done;o=r.next()){var a=o.value,s=this.children.get(a);if(!s)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(t)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this,i=this.clock.setTimeout(function(){"to"in t&&t.to?n.sendTo(t._event,t.to,!0):n.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=i)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,i){i===void 0&&(i=this.machine.options.actions),this._exec(t,n.context,n._event,i)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);n&&(this.removeChild(t),T(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,i){if(this.status!==D.Running)return ye(t,n);if(te(t))return this.spawnPromise(Promise.resolve(t),n);if(T(t))return this.spawnCallback(t,n);if(on(t))return this.spawnActor(t,n);if($e(t))return this.spawnObservable(t,n);if(ot(t))return this.spawnMachine(t,p(p({},i),{id:n}));if(Re(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var i=this;n===void 0&&(n={});var r=new e(t,p(p({},this.options),{parent:this,id:n.id||t.id})),o=p(p({},gn),n);o.sync&&r.onTransition(function(s){i.send(se,{state:s,id:r.id})});var a=r;return this.children.set(r.id,a),o.autoForward&&this.forwardTo.add(r.id),r.onDone(function(s){i.removeChild(r.id),i.send(R(s,{origin:r.id}))}).start(),a},e.prototype.spawnBehavior=function(t,n){var i=yn(t,{id:n,parent:this});return this.children.set(n,i),i},e.prototype.spawnPromise=function(t,n){var i,r=this,o=!1,a;t.then(function(c){o||(a=c,r.removeChild(n),r.send(R(Et(n,c),{origin:n})))},function(c){if(!o){r.removeChild(n);var u=ht(n,c);try{r.send(R(u,{origin:n}))}catch{r.devTools&&r.devTools.send(u,r.state),r.machine.strict&&r.stop()}}});var s=(i={id:n,send:function(){},subscribe:function(c,u,h){var f=wt(c,u,h),l=!1;return t.then(function(d){l||(f.next(d),!l&&f.complete())},function(d){l||f.error(d)}),{unsubscribe:function(){return l=!0}}},stop:function(){o=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return a}},i[Q]=function(){return this},i);return this.children.set(n,s),s},e.prototype.spawnCallback=function(t,n){var i,r=this,o=!1,a=new Set,s=new Set,c,u=function(l){c=l,s.forEach(function(d){return d(l)}),!o&&r.send(R(l,{origin:n}))},h;try{h=t(u,function(l){a.add(l)})}catch(l){this.send(ht(n,l))}if(te(h))return this.spawnPromise(h,n);var f=(i={id:n,send:function(l){return a.forEach(function(d){return d(l)})},subscribe:function(l){var d=wt(l);return s.add(d.next),{unsubscribe:function(){s.delete(d.next)}}},stop:function(){o=!0,T(h)&&h()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},i[Q]=function(){return this},i);return this.children.set(n,f),f},e.prototype.spawnObservable=function(t,n){var i,r=this,o,a=t.subscribe(function(c){o=c,r.send(R(c,{origin:n}))},function(c){r.removeChild(n),r.send(R(ht(n,c),{origin:n}))},function(){r.removeChild(n),r.send(R(Et(n),{origin:n}))}),s=(i={id:n,send:function(){},subscribe:function(c,u,h){return t.subscribe(c,u,h)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:n}}},i[Q]=function(){return this},i);return this.children.set(n,s),s},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(n){var i=n(this.state.context,t);this.spawnEffect(t.id,i)}},e.prototype.spawnEffect=function(t,n){var i;this.children.set(t,(i={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},i[Q]=function(){return this},i))},e.prototype.attachDev=function(){var t=Ht();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(p(p({name:this.id,autoPause:!0,stateSanitizer:function(i){return{value:i.value,context:i.context,actions:i.actions}}},n),{features:p({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}pn(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Q]=function(){return this},e.prototype.getSnapshot=function(){return this.status===D.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=xe,e}();function xe(e,t){var n=new mn(e,t);return n}function _n(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function bt(e){return p(p({type:Dt},e),{toJSON:function(){e.onDone,e.onError;var t=Ut(e,["onDone","onError"]);return p(p({},t),{type:Dt,src:_n(e.src)})}})}var xt="",qt="#",It="*",G={},tt=function(e){return e[0]===qt},bn=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},xn=function(){function e(t,n,i,r){i===void 0&&(i="context"in t?t.context:void 0);var o=this,a;this.config=t,this._context=i,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(bn(),n),this.parent=r==null?void 0:r.parent,this.key=this.config.key||(r==null?void 0:r.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:ce),this.id=this.config.id||V([this.machine.key],O(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(a=this.config.schema)!==null&&a!==void 0?a:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?ut(this.config.states,function(u,h){var f,l=new e(u,{},void 0,{parent:o,key:h});return Object.assign(o.idMap,p((f={},f[l.id]=l,f),l.idMap)),l}):G;var s=0;function c(u){var h,f;u.order=s++;try{for(var l=E(ge(u)),d=l.next();!d.done;d=l.next()){var y=d.value;c(y)}}catch(v){h={error:v}}finally{try{d&&!d.done&&(f=l.return)&&f.call(l)}finally{if(h)throw h.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(u){var h=u.event;return h===xt}):xt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=q(this.config.entry||this.config.onEntry).map(function(u){return vt(u)}),this.onExit=q(this.config.exit||this.config.onExit).map(function(u){return vt(u)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=q(this.config.invoke).map(function(u,h){var f,l;if(ot(u)){var d=mt(o.id,h);return o.machine.options.services=p((f={},f[d]=u,f),o.machine.options.services),bt({src:d,id:d})}else if(A(u.src)){var d=u.id||mt(o.id,h);return bt(p(p({},u),{id:d,src:u.src}))}else if(ot(u.src)||T(u.src)){var d=u.id||mt(o.id,h);return o.machine.options.services=p((l={},l[d]=u.src,l),o.machine.options.services),bt(p(p({id:d},u),{src:d}))}else{var y=u.src;return bt(p(p({id:mt(o.id,h)},u),{src:y}))}}),this.activities=q(this.config.activities).concat(this.invoke).map(function(u){return Qt(u)}),this.transition=this.transition.bind(this),this.tags=q(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||me(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var i=this.options,r=i.actions,o=i.activities,a=i.guards,s=i.services,c=i.delays;return new e(this.config,{actions:p(p({},r),t.actions),activities:p(p({},o),t.activities),guards:p(p({},a),t.guards),services:p(p({},s),t.services),delays:p(p({},c),t.delays)},n??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return T(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:ut(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,i){return n[i.eventType]=n[i.eventType]||[],n[i.eventType].push(i),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===xt,i=this.transitions.filter(function(r){var o=r.eventType===t;return n?o:o||r.eventType===It});return this.__cache.candidates[t]=i,i},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var i=function(o,a){var s=T(o)?"".concat(t.id,":delay[").concat(a,"]"):o,c=tn(s,t.id);return t.onEntry.push(Qe(c,{delay:o})),t.onExit.push(Ke(c)),c},r=at(n)?n.map(function(o,a){var s=i(o.delay,a);return p(p({},o),{event:s})}):I(Object.keys(n).map(function(o,a){var s=n[o],c=A(s)?{target:s}:s,u=isNaN(+o)?o:+o,h=i(u,a);return q(c).map(function(f){return p(p({},f),{event:h,delay:u})})}));return r.map(function(o){var a=o.delay;return p(p({},t.formatTransition(o)),{delay:a})})},e.prototype.getStateNodes=function(t){var n,i=this;if(!t)return[];var r=t instanceof F?t.value:dt(t,this.delimiter);if(A(r)){var o=this.getStateNode(r).initial;return o!==void 0?this.getStateNodes((n={},n[r]=o,n)):[this,this.states[r]]}var a=Object.keys(r),s=[this];return s.push.apply(s,V([],O(I(a.map(function(c){return i.getStateNode(c).getStateNodes(r[c])}))),!1)),s},e.prototype.handles=function(t){var n=ue(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof F?t:F.create(t),i=Array.from(lt([],this.getStateNodes(n.value)));return new F(p(p({},n),{value:this.resolve(n.value),configuration:i,done:Ot(i,this),tags:ne(i),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,i){var r=this.getStateNode(t),o=r.next(n,i);return!o||!o.transitions.length?this.next(n,i):o},e.prototype.transitionCompoundNode=function(t,n,i){var r=Object.keys(t),o=this.getStateNode(r[0]),a=o._transition(t[r[0]],n,i);return!a||!a.transitions.length?this.next(n,i):a},e.prototype.transitionParallelNode=function(t,n,i){var r,o,a={};try{for(var s=E(Object.keys(t)),c=s.next();!c.done;c=s.next()){var u=c.value,h=t[u];if(h){var f=this.getStateNode(u),l=f._transition(h,n,i);l&&(a[u]=l)}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var d=Object.keys(a).map(function(g){return a[g]}),y=I(d.map(function(g){return g.transitions})),v=d.some(function(g){return g.transitions.length>0});if(!v)return this.next(n,i);var _=I(Object.keys(a).map(function(g){return a[g].configuration}));return{transitions:y,exitSet:I(d.map(function(g){return g.exitSet})),configuration:_,source:n,actions:I(Object.keys(a).map(function(g){return a[g].actions}))}},e.prototype._transition=function(t,n,i){return A(t)?this.transitionLeafNode(t,n,i):Object.keys(t).length===1?this.transitionCompoundNode(t,n,i):this.transitionParallelNode(t,n,i)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,R(n))},e.prototype.next=function(t,n){var i,r,o=this,a=n.name,s=[],c=[],u;try{for(var h=E(this.getCandidates(a)),f=h.next();!f.done;f=h.next()){var l=f.value,d=l.cond,y=l.in,v=t.context,_=y?A(y)&&tt(y)?t.matches(dt(this.getStateNodeById(y).path,this.delimiter)):Xt(dt(y,this.delimiter),Ie(this.path.slice(0,-2))(t.value)):!0,g=!1;try{g=!d||de(this.machine,d,v,n,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(d.name||d.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,`': `).concat(S.message))}if(g&&_){l.target!==void 0&&(c=l.target),s.push.apply(s,V([],O(l.actions),!1)),u=l;break}}}catch(S){i={error:S}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}if(u){if(!c.length)return{transitions:[u],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var m=I(c.map(function(S){return o.getRelativeStateNodes(S,t.historyValue)})),b=!!u.internal;return{transitions:[u],exitSet:b?[]:I(c.map(function(S){return o.getPotentiallyReenteringNodes(S)})),configuration:m,source:t,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order0,d=l?t.configuration:n?n.configuration:[],y=Ot(d,this),v=l?sn(this.machine,f):void 0,_=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,g=this.getActions(new Set(d),y,t,i,o,n,r),m=n?p({},n.activities):{};try{for(var b=E(g),S=b.next();!S.done;S=b.next()){var N=S.value;try{for(var C=(c=void 0,E(N.actions)),k=C.next();!k.done;k=C.next()){var L=k.value;L.type===Mt?m[L.activity.id||L.activity.type]=L:L.type===Ft&&(m[L.activity.id||L.activity.type]=!1)}}catch($){c={error:$}}finally{try{k&&!k.done&&(u=C.return)&&u.call(C)}finally{if(c)throw c.error}}}}catch($){a={error:$}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}var w=O(Nt(this,n,i,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),M=w[0],x=w[1],j=O(ze(M,Bt),2),z=j[0],B=j[1],st=M.filter(function($){var Z;return $.type===Mt&&((Z=$.activity)===null||Z===void 0?void 0:Z.type)===Dt}),gt=st.reduce(function($,Z){return $[Z.activity.id]=nn(Z.activity,h.machine,x,o),$},n?p({},n.children):{}),U=new F({value:v||n.value,context:x,_event:o,_sessionid:n?n._sessionid:null,historyValue:v?_?Be(_,v):void 0:n?n.historyValue:void 0,history:!v||t.source?n:void 0,actions:v?B:[],activities:v?m:n?n.activities:{},events:[],configuration:d,transitions:t.transitions,children:gt,done:y,tags:ne(d),machine:this}),W=i!==x;U.changed=o.name===se||W;var K=U.history;K&&delete K.history;var Wt=!y&&(this._transient||f.some(function($){return $._transient}));if(!l&&(!Wt||o.name===xt))return U;var J=U;if(!y)for(Wt&&(J=this.resolveRaisedTransition(J,{type:Ne},o,r));z.length;){var Se=z.shift();J=this.resolveRaisedTransition(J,Se._event,o,r)}var we=J.changed||(K?!!J.actions.length||W||typeof K.value!=typeof J.value||!be(J.value,K.value):void 0);return J.changed=we,J.history=K,J},e.prototype.getStateNode=function(t){if(tt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=tt(t)?t.slice(qt.length):t;if(n===this.id)return this;var i=this.machine.idMap[n];if(!i)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return i},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&tt(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=zt(t,this.delimiter).slice(),i=this;n.length;){var r=n.shift();if(!r.length)break;i=i.getStateNode(r)}return i},e.prototype.resolve=function(t){var n,i=this;if(!t)return this.initialStateValue||G;switch(this.type){case"parallel":return ut(this.initialStateValue,function(o,a){return o?i.getStateNode(a).resolve(t[a]||o):G});case"compound":if(A(t)){var r=this.getStateNode(t);return r.type==="parallel"||r.type==="compound"?(n={},n[t]=r.initialStateValue,n):t}return Object.keys(t).length?ut(t,function(o,a){return o?i.getStateNode(a).resolve(o):G}):this.initialStateValue||{};default:return t||G}},e.prototype.getResolvedPath=function(t){if(tt(t)){var n=this.machine.idMap[t.slice(qt.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return zt(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=Gt(this.states,function(i){return i.initialStateValue||G},function(i){return i.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=jt(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var i=this.getStateNodes(t);return this.resolveTransition({configuration:i,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;A(n.target)?t=tt(n.target)?kt(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,i){return i===void 0&&(i=!0),i?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(jt(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=St(this.initialStateValue);return I(n.map(function(i){return t.getFromRelativePath(i)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=O(t),i=n[0],r=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(i,"' from node with no states"));var o=this.getStateNode(i);if(o.type==="history")return o.resolveHistory();if(!this.states[i])throw new Error("Child state '".concat(i,"' does not exist on '").concat(this.id,"'"));return this.states[i].getFromRelativePath(r)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:Gt(this.states,function(n,i){if(!t)return n.historyValue();var r=A(t)?void 0:t[i];return n.historyValue(r||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var i=this.parent;if(!t){var r=this.target;return r?I(St(r).map(function(a){return i.getFromRelativePath(a)})):i.initialStateNodes}var o=Me(i.path,"states")(t).current;return A(o)?[i.getStateNode(o)]:I(St(o).map(function(a){return n.history==="deep"?i.getFromRelativePath(a):[i.states[a[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=I(Object.keys(this.states).map(function(i){return t.states[i].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,i,r;if(this.__cache.events)return this.__cache.events;var o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=E(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=c.value,h=o[u];if(h.states)try{for(var f=(i=void 0,E(h.events)),l=f.next();!l.done;l=f.next()){var d=l.value;a.add("".concat(d))}}catch(y){i={error:y}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}}}catch(y){t={error:y}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(i){if(!A(i))return i;var r=i[0]===n.delimiter;if(r&&!n.parent)return n.getStateNodeByPath(i.slice(1));var o=r?n.key+i:i;if(n.parent)try{var a=n.parent.getStateNodeByPath(o);return a}catch(s){throw new Error("Invalid transition definition for state node '".concat(n.id,`': `).concat(s.message))}else return n.getStateNodeByPath(o)})},e.prototype.formatTransition=function(t){var n=this,i=Ue(t.target),r="internal"in t?t.internal:i?i.some(function(c){return A(c)&&c[0]===n.delimiter}):!0,o=this.machine.options.guards,a=this.resolveTarget(i),s=p(p({},t),{actions:H(q(t.actions)),cond:fe(t.cond,o),target:a,source:this,internal:r,eventType:t.event,toJSON:function(){return p(p({},s),{target:s.target?s.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return s},e.prototype.formatTransitions=function(){var t,n,i=this,r;if(!this.config.on)r=[];else if(Array.isArray(this.config.on))r=this.config.on;else{var o=this.config.on,a=It,s=o[a],c=s===void 0?[]:s,u=Ut(o,[typeof a=="symbol"?a:a+""]);r=I(Object.keys(u).map(function(m){var b=Y(m,u[m]);return b}).concat(Y(It,c)))}var h=this.config.always?Y("",this.config.always):[],f=this.config.onDone?Y(String(_t(this.id)),this.config.onDone):[],l=I(this.invoke.map(function(m){var b=[];return m.onDone&&b.push.apply(b,V([],O(Y(String(Et(m.id)),m.onDone)),!1)),m.onError&&b.push.apply(b,V([],O(Y(String(ht(m.id)),m.onError)),!1)),b})),d=this.after,y=I(V(V(V(V([],O(f),!1),O(l),!1),O(r),!1),O(h),!1).map(function(m){return q(m).map(function(b){return i.formatTransition(b)})}));try{for(var v=E(d),_=v.next();!_.done;_=v.next()){var g=_.value;y.push(g)}}catch(m){t={error:m}}finally{try{_&&!_.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}return y},e}();function Sn(e,t){return new xn(e,t)}var nt={click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",complete:"onComplete",after:"onAfter",enter:"onEnter",show:"onShow"};Object.values(nt);var wn=Object.keys(nt),kn=class{constructor(e,t){X(this,"activeStateId","");X(this,"_service");X(this,"_domListeners",new Map);X(this,"_domElement");X(this,"_playerListeners",new Map);X(this,"_player");X(this,"_machineSchemas",new Map);X(this,"_onShowPrevValue",0);this._player=t,this._machineSchemas=this._transformToXStateSchema(e),this._domElement=t.container}start(e){this.stop();let t=this._machineSchemas.get(e);if(typeof t>"u")throw Lt(`invalid state machine id ${e}`);this._service=xe(Sn(t)),this._addEventListeners(),this._service.start()}stop(){var e;this._removeEventListeners(),(e=this._service)==null||e.stop(),this._player.stop()}_removeEventListeners(){var e;this._requiresDomElement();for(let[t,n]of this._domListeners)t==="visibilityChange"&&this._player.stopPlayOnShow(),(e=this._domElement)==null||e.removeEventListener(t,n),this._domListeners.delete(t);for(let[t,n]of this._playerListeners)this._player.removeEventListener(t,n),this._playerListeners.delete(t)}_addEventListeners(){this._requiresDomElement();let e=n=>{this._service.send({type:n})},t=n=>{function i(){e(n)}return i};this._service.subscribe(n=>{var i;if(typeof n.changed>"u"||n.changed){this._removeEventListeners();for(let r of n.nextEvents)if(wn.filter(o=>o!=="complete"&&o!=="show").includes(r)){let o=t(r);this._domListeners.set(r,o),(i=this._domElement)==null||i.addEventListener(r,o,{once:!0})}else if(r==="complete"){let o=t(r);this._player.addEventListener(r,o),this._playerListeners.set(r,o)}else if(r==="show"){let o=t(r);this._player.addIntersectionObserver({callbackOnIntersect:a=>{a>0&&(a!==100&&this._onShowPrevValue!==a&&o(),this._onShowPrevValue=a)},threshold:[]}),this._domListeners.set("visibilityChange",o)}}})}subscribe(e){throw Lt(e.toString())}_transformToXStateSchema(e){var t,n,i;let r=new Map;for(let o of e){let a={},s={};if(s.id=o.descriptor.id,typeof o.descriptor.initial<"u"&&(s.initial=o.descriptor.initial),typeof o<"u"){let c=o.states;for(let u in c)if(typeof c[u]<"u"&&c[u]){let h=c[u],f=h.playbackSettings,l=Object.keys(h).filter(v=>v.startsWith("on")),d={},y={};for(let v of l)if(typeof h[v]<"u"){let _=h[v];if(v===nt.after){let g=_;y[g.ms]={target:(t=_==null?void 0:_.state)!=null?t:""}}else v===nt.enter?d[Kt(nt,v)]={target:(n=_==null?void 0:_.state)!=null?n:""}:d[Kt(nt,v)]={target:(i=_==null?void 0:_.state)!=null?i:""}}a[u]={entry:()=>{!this._player.getAnimationInstance()||h.animationId&&h.animationId!==this._player.currentAnimationId?this._player.play(h.animationId,()=>({...ke,...f})).then(()=>{this._updatePlaybackSettings(f)}).catch(v=>{Te(`State machine error: ${v.message}`)}):this._updatePlaybackSettings(f)},exit:()=>{typeof f.segments<"u"&&this._player.resetSegments(!1),typeof f.playOnScroll<"u"&&this._player.stopPlayOnScroll()},on:d,after:y,meta:f}}}s.states=a,r.set(s.id,s)}return r}_handlePlaySegments(e){if(typeof e.segments=="string")this._player.goToAndPlay(e.segments,!0);else{let[t,n]=e.segments,i=t;t!==0&&t===n&&(i=t-1),t===0&&t===n?this._player.goToAndPlay(t,!0):this._player.playSegments([i,n],!0)}}_handlePlayOnScroll(e){let t=e.playOnScroll;if(e.segments&&typeof e.segments!="string"){let n=e.segments;this._player.playOnScroll({threshold:t,segments:n})}else this._player.playOnScroll({threshold:t})}_updatePlaybackSettings(e){if(!this._player.getAnimationInstance())throw new Error("Unable to update playbackSettings. Animations is not rendered yet.");typeof e.autoplay<"u"&&(this._player.setAutoplay(e.autoplay),e.autoplay?this._player.play():this._player.pause()),typeof e.direction<"u"&&this._player.setDirection(e.direction),typeof e.intermission<"u"&&this._player.setIntermission(e.intermission),typeof e.loop<"u"&&this._player.setLoop(e.loop),typeof e.playMode<"u"&&this._player.setMode(e.playMode),typeof e.speed<"u"&&this._player.setSpeed(e.speed),typeof e.defaultTheme<"u"&&this._player.setDefaultTheme(e.defaultTheme),typeof e.playOnScroll<"u"&&this._handlePlayOnScroll(e),e.segments&&this._handlePlaySegments(e),e.autoplay||this._player.pause()}_requiresDomElement(){if(!this._domElement)throw Lt("Requires a DOM element to attach events.")}};/*! Bundled license information: diff --git a/assets/index-BIcfsy9E.js b/assets/index-CYFYL5qx.js similarity index 85% rename from assets/index-BIcfsy9E.js rename to assets/index-CYFYL5qx.js index a1f38699..2cfeead0 100644 --- a/assets/index-BIcfsy9E.js +++ b/assets/index-CYFYL5qx.js @@ -4,7 +4,7 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var Yg=Object.defineProperty;var Gg=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>(Gg(e,typeof t!="symbol"?t+"":t,n),n);function Jg(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp={exports:{}},_a={},Ip={exports:{}},ne={};/** +var Yg=Object.defineProperty;var Gg=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>(Gg(e,typeof t!="symbol"?t+"":t,n),n);function Jg(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},_a={},Fp={exports:{}},ne={};/** * @license React * react.production.min.js * @@ -12,7 +12,7 @@ var Yg=Object.defineProperty;var Gg=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xo=Symbol.for("react.element"),Xg=Symbol.for("react.portal"),qg=Symbol.for("react.fragment"),Zg=Symbol.for("react.strict_mode"),e0=Symbol.for("react.profiler"),t0=Symbol.for("react.provider"),n0=Symbol.for("react.context"),r0=Symbol.for("react.forward_ref"),i0=Symbol.for("react.suspense"),o0=Symbol.for("react.memo"),l0=Symbol.for("react.lazy"),Ff=Symbol.iterator;function a0(e){return e===null||typeof e!="object"?null:(e=Ff&&e[Ff]||e["@@iterator"],typeof e=="function"?e:null)}var Dp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$p=Object.assign,Np={};function mi(e,t,n){this.props=e,this.context=t,this.refs=Np,this.updater=n||Dp}mi.prototype.isReactComponent={};mi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rp(){}Rp.prototype=mi.prototype;function tc(e,t,n){this.props=e,this.context=t,this.refs=Np,this.updater=n||Dp}var nc=tc.prototype=new Rp;nc.constructor=tc;$p(nc,mi.prototype);nc.isPureReactComponent=!0;var If=Array.isArray,zp=Object.prototype.hasOwnProperty,rc={current:null},Up={key:!0,ref:!0,__self:!0,__source:!0};function Wp(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)zp.call(t,r)&&!Up.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?Yg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var d0=I,p0=Symbol.for("react.element"),h0=Symbol.for("react.fragment"),m0=Object.prototype.hasOwnProperty,v0=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y0={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)m0.call(t,r)&&!y0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:p0,type:e,key:o,ref:l,props:i,_owner:v0.current}}_a.Fragment=h0;_a.jsx=Bp;_a.jsxs=Bp;Fp.exports=_a;var M=Fp.exports,Ws={},Vp={exports:{}},Ot={},Hp={exports:{}},Kp={};/** + */var d0=F,p0=Symbol.for("react.element"),h0=Symbol.for("react.fragment"),m0=Object.prototype.hasOwnProperty,v0=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y0={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)m0.call(t,r)&&!y0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:p0,type:e,key:o,ref:l,props:i,_owner:v0.current}}_a.Fragment=h0;_a.jsx=Bp;_a.jsxs=Bp;Ip.exports=_a;var M=Ip.exports,Ws={},Vp={exports:{}},Ot={},Hp={exports:{}},Kp={};/** * @license React * scheduler.production.min.js * @@ -36,14 +36,14 @@ var Yg=Object.defineProperty;var Gg=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qp=I,xt=g0;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bs=Object.prototype.hasOwnProperty,_0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nf={},Rf={};function w0(e){return Bs.call(Rf,e)?!0:Bs.call(Nf,e)?!1:_0.test(e)?Rf[e]=!0:(Nf[e]=!0,!1)}function S0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C0(e,t,n,r){if(t===null||typeof t>"u"||S0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var oc=/[\-:]([a-z])/g;function lc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function ac(e,t,n,r){var i=qe.hasOwnProperty(t)?qe[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bs=Object.prototype.hasOwnProperty,_0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nf={},Rf={};function w0(e){return Bs.call(Rf,e)?!0:Bs.call(Nf,e)?!1:_0.test(e)?Rf[e]=!0:(Nf[e]=!0,!1)}function S0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C0(e,t,n,r){if(t===null||typeof t>"u"||S0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var oc=/[\-:]([a-z])/g;function lc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oc,lc);qe[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function ac(e,t,n,r){var i=qe.hasOwnProperty(t)?qe[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var s=` -`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{ls=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function k0(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=as(e.type,!1),e;case 11:return e=as(e.type.render,!1),e;case 1:return e=as(e.type,!0),e;default:return""}}function Qs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case zr:return"Portal";case Vs:return"Profiler";case sc:return"StrictMode";case Hs:return"Suspense";case Ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Gp:return(e._context.displayName||"Context")+".Provider";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cc:return t=e.displayName||null,t!==null?t:Qs(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return Qs(e(t))}catch{}}return null}function E0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qs(t);case 8:return t===sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e){var t=qp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Go(e){e._valueTracker||(e._valueTracker=x0(e))}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ys(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eh(e,t){t=t.checked,t!=null&&ac(e,"checked",t,!1)}function Gs(e,t){eh(e,t);var n=nr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Js(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bi=Array.isArray;function qr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Jo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},P0=["Webkit","ms","Moz","O"];Object.keys(Qi).forEach(function(e){P0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qi[t]=Qi[e]})});function ih(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qi.hasOwnProperty(e)&&Qi[e]?(""+t).trim():t+"px"}function oh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ih(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var T0=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zs(e,t){if(t){if(T0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function eu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tu=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,Zr=null,ei=null;function Hf(e){if(e=Oo(e)){if(typeof nu!="function")throw Error($(280));var t=e.stateNode;t&&(t=Ea(t),nu(e.stateNode,e.type,t))}}function lh(e){Zr?ei?ei.push(e):ei=[e]:Zr=e}function ah(){if(Zr){var e=Zr,t=ei;if(ei=Zr=null,Hf(e),t)for(e=0;e>>=0,e===0?32:31-(N0(e)/R0|0)|0}var Xo=64,qo=4194304;function Vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Vi(a):(o&=l,o!==0&&(r=Vi(o)))}else l=n&~i,l!==0?r=Vi(l):o!==0&&(r=Vi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=n}function B0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gi),ed=" ",td=!1;function Th(e,t){switch(e){case"keyup":return y1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function _1(e,t){switch(e){case"compositionend":return Oh(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function w1(e,t){if(Wr)return e==="compositionend"||!_c&&Th(e,t)?(e=xh(),wl=vc=Kn=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=od(n)}}function Mh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jh(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ml(e.document)}return t}function wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function L1(e){var t=jh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mh(n.ownerDocument.documentElement,n)){if(r!==null&&wc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ld(n,o);var l=ld(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Br=null,su=null,Xi=null,uu=!1;function ad(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||Br==null||Br!==Ml(r)||(r=Br,"selectionStart"in r&&wc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&fo(Xi,r)||(Xi=r,r=Rl(su,"onSelect"),0Kr||(e.current=mu[Kr],mu[Kr]=null,Kr--)}function ve(e,t){Kr++,mu[Kr]=e.current,e.current=t}var rr={},rt=ar(rr),mt=ar(!1),Pr=rr;function ai(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vt(e){return e=e.childContextTypes,e!=null}function Ul(){_e(mt),_e(rt)}function hd(e,t,n){if(rt.current!==rr)throw Error($(168));ve(rt,t),ve(mt,n)}function Wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error($(108,E0(e)||"Unknown",i));return Pe({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Pr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Wh(e,t,Pr),r.__reactInternalMemoizedMergedChildContext=e,_e(mt),_e(rt),ve(rt,e)):_e(mt),ve(mt,n)}var On=null,xa=!1,Ss=!1;function Bh(e){On===null?On=[e]:On.push(e)}function U1(e){xa=!0,Bh(e)}function sr(){if(!Ss&&On!==null){Ss=!0;var e=0,t=pe;try{var n=On;for(pe=1;e>=l,i-=l,Ln=1<<32-Zt(t)+i|n<L?(N=x,x=null):N=x.sibling;var W=y(v,x,g[L],E);if(W===null){x===null&&(x=N);break}e&&x&&W.alternate===null&&t(v,x),_=o(W,_,L),D===null?A=W:D.sibling=W,D=W,x=N}if(L===g.length)return n(v,x),Se&&vr(v,L),A;if(x===null){for(;LL?(N=x,x=null):N=x.sibling;var Z=y(v,x,W.value,E);if(Z===null){x===null&&(x=N);break}e&&x&&Z.alternate===null&&t(v,x),_=o(Z,_,L),D===null?A=Z:D.sibling=Z,D=Z,x=N}if(W.done)return n(v,x),Se&&vr(v,L),A;if(x===null){for(;!W.done;L++,W=g.next())W=h(v,W.value,E),W!==null&&(_=o(W,_,L),D===null?A=W:D.sibling=W,D=W);return Se&&vr(v,L),A}for(x=r(v,x);!W.done;L++,W=g.next())W=w(x,v,L,W.value,E),W!==null&&(e&&W.alternate!==null&&x.delete(W.key===null?L:W.key),_=o(W,_,L),D===null?A=W:D.sibling=W,D=W);return e&&x.forEach(function(ae){return t(v,ae)}),Se&&vr(v,L),A}function P(v,_,g,E){if(typeof g=="object"&&g!==null&&g.type===Ur&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yo:e:{for(var A=g.key,D=_;D!==null;){if(D.key===A){if(A=g.type,A===Ur){if(D.tag===7){n(v,D.sibling),_=i(D,g.props.children),_.return=v,v=_;break e}}else if(D.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Wn&&Cd(A)===D.type){n(v,D.sibling),_=i(D,g.props),_.ref=Ni(v,D,g),_.return=v,v=_;break e}n(v,D);break}else t(v,D);D=D.sibling}g.type===Ur?(_=xr(g.props.children,v.mode,E,g.key),_.return=v,v=_):(E=Ol(g.type,g.key,g.props,null,v.mode,E),E.ref=Ni(v,_,g),E.return=v,v=E)}return l(v);case zr:e:{for(D=g.key;_!==null;){if(_.key===D)if(_.tag===4&&_.stateNode.containerInfo===g.containerInfo&&_.stateNode.implementation===g.implementation){n(v,_.sibling),_=i(_,g.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else t(v,_);_=_.sibling}_=Ls(g,v.mode,E),_.return=v,v=_}return l(v);case Wn:return D=g._init,P(v,_,D(g._payload),E)}if(Bi(g))return S(v,_,g,E);if(ji(g))return C(v,_,g,E);ol(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,g),_.return=v,v=_):(n(v,_),_=Os(g,v.mode,E),_.return=v,v=_),l(v)):n(v,_)}return P}var ui=Xh(!0),qh=Xh(!1),Lo={},yn=ar(Lo),vo=ar(Lo),yo=ar(Lo);function Cr(e){if(e===Lo)throw Error($(174));return e}function Lc(e,t){switch(ve(yo,t),ve(vo,e),ve(yn,Lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qs(t,e)}_e(yn),ve(yn,t)}function ci(){_e(yn),_e(vo),_e(yo)}function Zh(e){Cr(yo.current);var t=Cr(yn.current),n=qs(t,e.type);t!==n&&(ve(vo,e),ve(yn,n))}function bc(e){vo.current===e&&(_e(yn),_e(vo))}var ke=ar(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cs=[];function Ac(){for(var e=0;en?n:4,e(!0);var r=ks.transition;ks.transition={};try{e(!1),t()}finally{pe=n,ks.transition=r}}function mm(){return Bt().memoizedState}function H1(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vm(e))ym(t,n);else if(n=Qh(e,t,n,r),n!==null){var i=ut();en(n,e,r,i),gm(n,t,r)}}function K1(e,t,n){var r=er(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vm(e))ym(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,tn(a,l)){var s=t.interleaved;s===null?(i.next=i,Tc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Qh(e,t,i,r),n!==null&&(i=ut(),en(n,e,r,i),gm(n,t,r))}}function vm(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ym(e,t){qi=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pc(e,n)}}var Jl={readContext:Wt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Q1={readContext:Wt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,El(4194308,4,cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return El(4194308,4,e,t)},useInsertionEffect:function(e,t){return El(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=H1.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:kd,useDebugValue:Dc,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=kd(!1),t=e[0];return e=V1.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,i=pn();if(Se){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ke===null)throw Error($(349));Or&30||nm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ed(im.bind(null,r,o,e),[e]),r.flags|=2048,wo(9,rm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(Se){var n=bn,r=Ln;n=(r&~(1<<32-Zt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{ls=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function k0(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=as(e.type,!1),e;case 11:return e=as(e.type.render,!1),e;case 1:return e=as(e.type,!0),e;default:return""}}function Qs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case zr:return"Portal";case Vs:return"Profiler";case sc:return"StrictMode";case Hs:return"Suspense";case Ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Gp:return(e._context.displayName||"Context")+".Provider";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cc:return t=e.displayName||null,t!==null?t:Qs(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return Qs(e(t))}catch{}}return null}function E0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qs(t);case 8:return t===sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e){var t=qp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Go(e){e._valueTracker||(e._valueTracker=x0(e))}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ys(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eh(e,t){t=t.checked,t!=null&&ac(e,"checked",t,!1)}function Gs(e,t){eh(e,t);var n=nr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Js(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bi=Array.isArray;function qr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Jo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},P0=["Webkit","ms","Moz","O"];Object.keys(Qi).forEach(function(e){P0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qi[t]=Qi[e]})});function ih(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qi.hasOwnProperty(e)&&Qi[e]?(""+t).trim():t+"px"}function oh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ih(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var T0=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zs(e,t){if(t){if(T0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function eu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tu=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,Zr=null,ei=null;function Hf(e){if(e=Oo(e)){if(typeof nu!="function")throw Error($(280));var t=e.stateNode;t&&(t=Ea(t),nu(e.stateNode,e.type,t))}}function lh(e){Zr?ei?ei.push(e):ei=[e]:Zr=e}function ah(){if(Zr){var e=Zr,t=ei;if(ei=Zr=null,Hf(e),t)for(e=0;e>>=0,e===0?32:31-(N0(e)/R0|0)|0}var Xo=64,qo=4194304;function Vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Vi(a):(o&=l,o!==0&&(r=Vi(o)))}else l=n&~i,l!==0?r=Vi(l):o!==0&&(r=Vi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=n}function B0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gi),ed=" ",td=!1;function Th(e,t){switch(e){case"keyup":return y1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function _1(e,t){switch(e){case"compositionend":return Oh(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function w1(e,t){if(Wr)return e==="compositionend"||!_c&&Th(e,t)?(e=xh(),wl=vc=Kn=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=od(n)}}function Mh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jh(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ml(e.document)}return t}function wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function L1(e){var t=jh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mh(n.ownerDocument.documentElement,n)){if(r!==null&&wc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ld(n,o);var l=ld(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Br=null,su=null,Xi=null,uu=!1;function ad(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||Br==null||Br!==Ml(r)||(r=Br,"selectionStart"in r&&wc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&fo(Xi,r)||(Xi=r,r=Rl(su,"onSelect"),0Kr||(e.current=mu[Kr],mu[Kr]=null,Kr--)}function ve(e,t){Kr++,mu[Kr]=e.current,e.current=t}var rr={},rt=ar(rr),mt=ar(!1),Pr=rr;function ai(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vt(e){return e=e.childContextTypes,e!=null}function Ul(){_e(mt),_e(rt)}function hd(e,t,n){if(rt.current!==rr)throw Error($(168));ve(rt,t),ve(mt,n)}function Wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error($(108,E0(e)||"Unknown",i));return Pe({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Pr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Wh(e,t,Pr),r.__reactInternalMemoizedMergedChildContext=e,_e(mt),_e(rt),ve(rt,e)):_e(mt),ve(mt,n)}var On=null,xa=!1,Ss=!1;function Bh(e){On===null?On=[e]:On.push(e)}function U1(e){xa=!0,Bh(e)}function sr(){if(!Ss&&On!==null){Ss=!0;var e=0,t=pe;try{var n=On;for(pe=1;e>=l,i-=l,Ln=1<<32-Zt(t)+i|n<L?(N=x,x=null):N=x.sibling;var W=y(v,x,g[L],E);if(W===null){x===null&&(x=N);break}e&&x&&W.alternate===null&&t(v,x),_=o(W,_,L),D===null?A=W:D.sibling=W,D=W,x=N}if(L===g.length)return n(v,x),Se&&vr(v,L),A;if(x===null){for(;LL?(N=x,x=null):N=x.sibling;var Z=y(v,x,W.value,E);if(Z===null){x===null&&(x=N);break}e&&x&&Z.alternate===null&&t(v,x),_=o(Z,_,L),D===null?A=Z:D.sibling=Z,D=Z,x=N}if(W.done)return n(v,x),Se&&vr(v,L),A;if(x===null){for(;!W.done;L++,W=g.next())W=h(v,W.value,E),W!==null&&(_=o(W,_,L),D===null?A=W:D.sibling=W,D=W);return Se&&vr(v,L),A}for(x=r(v,x);!W.done;L++,W=g.next())W=w(x,v,L,W.value,E),W!==null&&(e&&W.alternate!==null&&x.delete(W.key===null?L:W.key),_=o(W,_,L),D===null?A=W:D.sibling=W,D=W);return e&&x.forEach(function(ae){return t(v,ae)}),Se&&vr(v,L),A}function P(v,_,g,E){if(typeof g=="object"&&g!==null&&g.type===Ur&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yo:e:{for(var A=g.key,D=_;D!==null;){if(D.key===A){if(A=g.type,A===Ur){if(D.tag===7){n(v,D.sibling),_=i(D,g.props.children),_.return=v,v=_;break e}}else if(D.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Wn&&Cd(A)===D.type){n(v,D.sibling),_=i(D,g.props),_.ref=Ni(v,D,g),_.return=v,v=_;break e}n(v,D);break}else t(v,D);D=D.sibling}g.type===Ur?(_=xr(g.props.children,v.mode,E,g.key),_.return=v,v=_):(E=Ol(g.type,g.key,g.props,null,v.mode,E),E.ref=Ni(v,_,g),E.return=v,v=E)}return l(v);case zr:e:{for(D=g.key;_!==null;){if(_.key===D)if(_.tag===4&&_.stateNode.containerInfo===g.containerInfo&&_.stateNode.implementation===g.implementation){n(v,_.sibling),_=i(_,g.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else t(v,_);_=_.sibling}_=Ls(g,v.mode,E),_.return=v,v=_}return l(v);case Wn:return D=g._init,P(v,_,D(g._payload),E)}if(Bi(g))return S(v,_,g,E);if(ji(g))return C(v,_,g,E);ol(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,g),_.return=v,v=_):(n(v,_),_=Os(g,v.mode,E),_.return=v,v=_),l(v)):n(v,_)}return P}var ui=Xh(!0),qh=Xh(!1),Lo={},yn=ar(Lo),vo=ar(Lo),yo=ar(Lo);function Cr(e){if(e===Lo)throw Error($(174));return e}function Lc(e,t){switch(ve(yo,t),ve(vo,e),ve(yn,Lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qs(t,e)}_e(yn),ve(yn,t)}function ci(){_e(yn),_e(vo),_e(yo)}function Zh(e){Cr(yo.current);var t=Cr(yn.current),n=qs(t,e.type);t!==n&&(ve(vo,e),ve(yn,n))}function bc(e){vo.current===e&&(_e(yn),_e(vo))}var ke=ar(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cs=[];function Ac(){for(var e=0;en?n:4,e(!0);var r=ks.transition;ks.transition={};try{e(!1),t()}finally{pe=n,ks.transition=r}}function mm(){return Bt().memoizedState}function H1(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vm(e))ym(t,n);else if(n=Qh(e,t,n,r),n!==null){var i=ut();en(n,e,r,i),gm(n,t,r)}}function K1(e,t,n){var r=er(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vm(e))ym(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,tn(a,l)){var s=t.interleaved;s===null?(i.next=i,Tc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Qh(e,t,i,r),n!==null&&(i=ut(),en(n,e,r,i),gm(n,t,r))}}function vm(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ym(e,t){qi=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pc(e,n)}}var Jl={readContext:Wt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Q1={readContext:Wt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,El(4194308,4,cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return El(4194308,4,e,t)},useInsertionEffect:function(e,t){return El(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=H1.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:kd,useDebugValue:Dc,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=kd(!1),t=e[0];return e=V1.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,i=pn();if(Se){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ke===null)throw Error($(349));Or&30||nm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ed(im.bind(null,r,o,e),[e]),r.flags|=2048,wo(9,rm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(Se){var n=bn,r=Ln;n=(r&~(1<<32-Zt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hn]=t,e[mo]=r,Tm(e,t,!1,!1),t.stateNode=e;e:{switch(l=eu(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;idi&&(t.flags|=128,r=!0,Ri(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Se)return et(t),null}else 2*Ie()-o.renderingStartTime>di&&n!==1073741824&&(t.flags|=128,r=!0,Ri(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ie(),t.sibling=null,n=ke.current,ve(ke,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Wc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function t_(e,t){switch(Cc(t),t.tag){case 1:return vt(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ci(),_e(mt),_e(rt),Ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bc(t),null;case 13:if(_e(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(ke),null;case 4:return ci(),null;case 10:return Pc(t.type._context),null;case 22:case 23:return Wc(),null;case 24:return null;default:return null}}var al=!1,nt=!1,n_=typeof WeakSet=="function"?WeakSet:Set,B=null;function Jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Tu(e,t,n){try{n()}catch(r){be(e,t,r)}}var jd=!1;function r_(e,t){if(cu=$l,e=jh(),wc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,f=0,p=0,h=e,y=null;t:for(;;){for(var w;h!==n||i!==0&&h.nodeType!==3||(a=l+i),h!==o||r!==0&&h.nodeType!==3||(s=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(w=h.firstChild)!==null;)y=h,h=w;for(;;){if(h===e)break t;if(y===n&&++f===i&&(a=l),y===o&&++p===r&&(s=l),(w=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=w}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},$l=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var C=S.memoizedProps,P=S.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?C:Qt(t.type,C),P);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(E){be(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return S=jd,jd=!1,S}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Tu(t,n,o)}i=i.next}while(i!==r)}}function Oa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function bm(e){var t=e.alternate;t!==null&&(e.alternate=null,bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[mo],delete t[hu],delete t[R1],delete t[z1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Am(e){return e.tag===5||e.tag===3||e.tag===4}function Fd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Am(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zl));else if(r!==4&&(e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var Ge=null,Yt=!1;function Un(e,t,n){for(n=n.child;n!==null;)Mm(e,t,n),n=n.sibling}function Mm(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(wa,n)}catch{}switch(n.tag){case 5:nt||Jr(n,t);case 6:var r=Ge,i=Yt;Ge=null,Un(e,t,n),Ge=r,Yt=i,Ge!==null&&(Yt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Yt?(e=Ge,n=n.stateNode,e.nodeType===8?ws(e.parentNode,n):e.nodeType===1&&ws(e,n),uo(e)):ws(Ge,n.stateNode));break;case 4:r=Ge,i=Yt,Ge=n.stateNode.containerInfo,Yt=!0,Un(e,t,n),Ge=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Tu(n,t,l),i=i.next}while(i!==r)}Un(e,t,n);break;case 1:if(!nt&&(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Un(e,t,n),nt=r):Un(e,t,n);break;default:Un(e,t,n)}}function Id(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n_),t.forEach(function(r){var i=d_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o_(r/1960))-r,10e?16:e,Qn===null)var r=!1;else{if(e=Qn,Qn=null,Zl=0,ie&6)throw Error($(331));var i=ie;for(ie|=4,B=e.current;B!==null;){var o=B,l=o.child;if(B.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sIe()-zc?Er(e,0):Rc|=n),yt(e,t)}function zm(e,t){t===0&&(e.mode&1?(t=qo,qo<<=1,!(qo&130023424)&&(qo=4194304)):t=1);var n=ut();e=Fn(e,t),e!==null&&(Po(e,t,n),yt(e,n))}function f_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zm(e,n)}function d_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),zm(e,n)}var Um;Um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Z1(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Se&&t.flags&1048576&&Vh(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var i=ai(t,rt.current);ni(t,n),i=jc(null,t,r,e,i,n);var o=Fc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(r)?(o=!0,Wl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Oc(t),i.updater=Pa,t.stateNode=i,i._reactInternals=t,wu(t,r,e,n),t=ku(null,t,r,!0,o,n)):(t.tag=0,Se&&o&&Sc(t),lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=h_(r),e=Qt(r,e),i){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=bd(null,t,r,e,n);break e;case 11:t=Od(null,t,r,e,n);break e;case 14:t=Ld(null,t,r,Qt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),Cu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),bd(e,t,r,i,n);case 3:e:{if(Em(t),e===null)throw Error($(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yh(e,t),Ql(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=fi(Error($(423)),t),t=Ad(e,t,r,n,i);break e}else if(r!==i){i=fi(Error($(424)),t),t=Ad(e,t,r,n,i);break e}else for(Ct=Xn(t.stateNode.containerInfo.firstChild),Et=t,Se=!0,Gt=null,n=qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(si(),r===i){t=In(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return Zh(t),e===null&&yu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,du(r,i)?l=null:o!==null&&du(r,o)&&(t.flags|=32),km(e,t),lt(e,t,l,n),t.child;case 6:return e===null&&yu(t),null;case 13:return xm(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ui(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),Od(e,t,r,i,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,ve(Hl,r._currentValue),r._currentValue=l,o!==null)if(tn(o.value,l)){if(o.children===i.children&&!mt.current){t=In(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=An(-1,n&-n),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?s.next=s:(s.next=p.next,p.next=s),f.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),gu(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),gu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ni(t,n),i=Wt(i),r=r(i),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,i=Qt(r,t.pendingProps),i=Qt(r.type,i),Ld(e,t,r,i,n);case 15:return Sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),xl(e,t),t.tag=1,vt(r)?(e=!0,Wl(t)):e=!1,ni(t,n),Jh(t,r,i),wu(t,r,i,n),ku(null,t,r,!0,e,n);case 19:return Pm(e,t,n);case 22:return Cm(e,t,n)}throw Error($(156,t.tag))};function Wm(e,t){return hh(e,t)}function p_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new p_(e,t,n,r)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function h_(e){if(typeof e=="function")return Vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uc)return 11;if(e===cc)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Vc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ur:return xr(n.children,i,o,t);case sc:l=8,i|=8;break;case Vs:return e=zt(12,n,t,i|2),e.elementType=Vs,e.lanes=o,e;case Hs:return e=zt(13,n,t,i),e.elementType=Hs,e.lanes=o,e;case Ks:return e=zt(19,n,t,i),e.elementType=Ks,e.lanes=o,e;case Xp:return ba(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gp:l=10;break e;case Jp:l=9;break e;case uc:l=11;break e;case cc:l=14;break e;case Wn:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=zt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function ba(e,t,n,r){return e=zt(22,e,r,t),e.elementType=Xp,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Ls(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=us(0),this.expirationTimes=us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,i,o,l,a,s){return e=new m_(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=zt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oc(o),e}function v_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Km)}catch(e){console.error(e)}}Km(),Vp.exports=Ot;var S_=Vp.exports,Bd=S_;Ws.createRoot=Bd.createRoot,Ws.hydrateRoot=Bd.hydrateRoot;var Qm={exports:{}},Ym={};/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ps(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Su(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J1=typeof WeakMap=="function"?WeakMap:Map;function _m(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Au=r),Su(e,t)},n}function wm(e,t,n){n=An(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Su(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Su(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function xd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=c_.bind(null,e,t,n),t.then(e,e))}function Pd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Td(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=An(-1,1),t.tag=2,qn(n,t,1))),n.lanes|=1),e)}var X1=$n.ReactCurrentOwner,ht=!1;function lt(e,t,n,r){t.child=e===null?qh(t,null,n,r):ui(t,e.child,n,r)}function Od(e,t,n,r,i){n=n.render;var o=t.ref;return ni(t,i),r=jc(e,t,n,r,o,i),n=Ic(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fn(e,t,i)):(Se&&n&&Sc(t),t.flags|=1,lt(e,t,r,i),t.child)}function Ld(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Vc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Sm(e,t,o,r,i)):(e=Ol(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:fo,n(l,r)&&e.ref===t.ref)return Fn(e,t,i)}return t.flags|=1,e=tr(o,r),e.ref=t.ref,e.return=t,t.child=e}function Sm(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(fo(o,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Fn(e,t,i)}return Cu(e,t,n,r,i)}function Cm(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Xr,St),St|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Xr,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ve(Xr,St),St|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ve(Xr,St),St|=r;return lt(e,t,i,n),t.child}function km(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cu(e,t,n,r,i){var o=vt(n)?Pr:rt.current;return o=ai(t,o),ni(t,i),n=jc(e,t,n,r,o,i),r=Ic(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fn(e,t,i)):(Se&&r&&Sc(t),t.flags|=1,lt(e,t,n,i),t.child)}function bd(e,t,n,r,i){if(vt(n)){var o=!0;Wl(t)}else o=!1;if(ni(t,i),t.stateNode===null)xl(e,t),Jh(t,n,r),wu(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,f=n.contextType;typeof f=="object"&&f!==null?f=Wt(f):(f=vt(n)?Pr:rt.current,f=ai(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==f)&&Sd(t,l,r,f),Bn=!1;var y=t.memoizedState;l.state=y,Ql(t,r,l,i),s=t.memoizedState,a!==r||y!==s||mt.current||Bn?(typeof p=="function"&&(_u(t,n,p,r),s=t.memoizedState),(a=Bn||wd(t,n,a,r,y,s,f))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=f,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Yh(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:Qt(t.type,a),l.props=f,h=t.pendingProps,y=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=Wt(s):(s=vt(n)?Pr:rt.current,s=ai(t,s));var w=n.getDerivedStateFromProps;(p=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==h||y!==s)&&Sd(t,l,r,s),Bn=!1,y=t.memoizedState,l.state=y,Ql(t,r,l,i);var S=t.memoizedState;a!==h||y!==S||mt.current||Bn?(typeof w=="function"&&(_u(t,n,w,r),S=t.memoizedState),(f=Bn||wd(t,n,f,r,y,S,s)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,S,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,S,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),l.props=r,l.state=S,l.context=s,r=f):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ku(e,t,n,r,o,i)}function ku(e,t,n,r,i,o){km(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&md(t,n,!1),Fn(e,t,o);r=t.stateNode,X1.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=ui(t,e.child,null,o),t.child=ui(t,null,a,o)):lt(e,t,a,o),t.memoizedState=r.state,i&&md(t,n,!0),t.child}function Em(e){var t=e.stateNode;t.pendingContext?hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hd(e,t.context,!1),Lc(e,t.containerInfo)}function Ad(e,t,n,r,i){return si(),kc(i),t.flags|=256,lt(e,t,n,r),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0};function xu(e){return{baseLanes:e,cachePool:null,transitions:null}}function xm(e,t,n){var r=t.pendingProps,i=ke.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ve(ke,i&1),e===null)return yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ba(l,r,0,null),e=xr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=xu(n),t.memoizedState=Eu,e):$c(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return q1(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=tr(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=tr(a,o):(o=xr(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?xu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Eu,r}return o=e.child,e=o.sibling,r=tr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function $c(e,t){return t=ba({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ll(e,t,n,r){return r!==null&&kc(r),ui(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function q1(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ps(Error($(422))),ll(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ba({mode:"visible",children:r.children},i,0,null),o=xr(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ui(t,e.child,null,l),t.child.memoizedState=xu(l),t.memoizedState=Eu,o);if(!(t.mode&1))return ll(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error($(419)),r=Ps(o,r,void 0),ll(e,t,l,r)}if(a=(l&e.childLanes)!==0,ht||a){if(r=Ke,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,In(e,i),en(r,e,i,-1))}return Bc(),r=Ps(Error($(421))),ll(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=f_.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ct=Xn(i.nextSibling),Et=t,Se=!0,Gt=null,e!==null&&(Nt[Rt++]=Ln,Nt[Rt++]=bn,Nt[Rt++]=Tr,Ln=e.id,bn=e.overflow,Tr=t),t=$c(t,r.children),t.flags|=4096,t)}function Md(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gu(e.return,t,n)}function Ts(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Pm(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(lt(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,n,t);else if(e.tag===19)Md(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve(ke,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Yl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ts(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Yl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ts(t,!0,n,null,o);break;case"together":Ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Z1(e,t,n){switch(t.tag){case 3:Em(t),si();break;case 5:Zh(t);break;case 1:vt(t.type)&&Wl(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ve(Hl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?xm(e,t,n):(ve(ke,ke.current&1),e=Fn(e,t,n),e!==null?e.sibling:null);ve(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ve(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Cm(e,t,n)}return Fn(e,t,n)}var Tm,Pu,Om,Lm;Tm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pu=function(){};Om=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Cr(yn.current);var o=null;switch(n){case"input":i=Ys(e,i),r=Ys(e,r),o=[];break;case"select":i=Pe({},i,{value:void 0}),r=Pe({},r,{value:void 0}),o=[];break;case"textarea":i=Xs(e,i),r=Xs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zl)}Zs(n,r);var l;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var a=i[f];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(io.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(a=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&s!==a&&(s!=null||a!=null))if(f==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(f,n)),n=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(io.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&ge("scroll",e),o||a===s||(o=[])):(o=o||[]).push(f,s))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Lm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function e_(e,t,n){var r=t.pendingProps;switch(Cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return vt(t.type)&&Ul(),et(t),null;case 3:return r=t.stateNode,ci(),_e(mt),_e(rt),Ac(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gt!==null&&(Iu(Gt),Gt=null))),Pu(e,t),et(t),null;case 5:bc(t);var i=Cr(yo.current);if(n=t.type,e!==null&&t.stateNode!=null)Om(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return et(t),null}if(e=Cr(yn.current),il(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[hn]=t,r[mo]=o,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hn]=t,e[mo]=r,Tm(e,t,!1,!1),t.stateNode=e;e:{switch(l=eu(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;idi&&(t.flags|=128,r=!0,Ri(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Se)return et(t),null}else 2*Fe()-o.renderingStartTime>di&&n!==1073741824&&(t.flags|=128,r=!0,Ri(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Fe(),t.sibling=null,n=ke.current,ve(ke,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Wc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function t_(e,t){switch(Cc(t),t.tag){case 1:return vt(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ci(),_e(mt),_e(rt),Ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bc(t),null;case 13:if(_e(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(ke),null;case 4:return ci(),null;case 10:return Pc(t.type._context),null;case 22:case 23:return Wc(),null;case 24:return null;default:return null}}var al=!1,nt=!1,n_=typeof WeakSet=="function"?WeakSet:Set,B=null;function Jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Tu(e,t,n){try{n()}catch(r){be(e,t,r)}}var jd=!1;function r_(e,t){if(cu=$l,e=jh(),wc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,f=0,p=0,h=e,y=null;t:for(;;){for(var w;h!==n||i!==0&&h.nodeType!==3||(a=l+i),h!==o||r!==0&&h.nodeType!==3||(s=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(w=h.firstChild)!==null;)y=h,h=w;for(;;){if(h===e)break t;if(y===n&&++f===i&&(a=l),y===o&&++p===r&&(s=l),(w=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=w}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},$l=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var C=S.memoizedProps,P=S.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?C:Qt(t.type,C),P);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(E){be(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return S=jd,jd=!1,S}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Tu(t,n,o)}i=i.next}while(i!==r)}}function Oa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function bm(e){var t=e.alternate;t!==null&&(e.alternate=null,bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[mo],delete t[hu],delete t[R1],delete t[z1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Am(e){return e.tag===5||e.tag===3||e.tag===4}function Id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Am(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zl));else if(r!==4&&(e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var Ge=null,Yt=!1;function Un(e,t,n){for(n=n.child;n!==null;)Mm(e,t,n),n=n.sibling}function Mm(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(wa,n)}catch{}switch(n.tag){case 5:nt||Jr(n,t);case 6:var r=Ge,i=Yt;Ge=null,Un(e,t,n),Ge=r,Yt=i,Ge!==null&&(Yt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Yt?(e=Ge,n=n.stateNode,e.nodeType===8?ws(e.parentNode,n):e.nodeType===1&&ws(e,n),uo(e)):ws(Ge,n.stateNode));break;case 4:r=Ge,i=Yt,Ge=n.stateNode.containerInfo,Yt=!0,Un(e,t,n),Ge=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Tu(n,t,l),i=i.next}while(i!==r)}Un(e,t,n);break;case 1:if(!nt&&(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Un(e,t,n),nt=r):Un(e,t,n);break;default:Un(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n_),t.forEach(function(r){var i=d_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o_(r/1960))-r,10e?16:e,Qn===null)var r=!1;else{if(e=Qn,Qn=null,Zl=0,ie&6)throw Error($(331));var i=ie;for(ie|=4,B=e.current;B!==null;){var o=B,l=o.child;if(B.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sFe()-zc?Er(e,0):Rc|=n),yt(e,t)}function zm(e,t){t===0&&(e.mode&1?(t=qo,qo<<=1,!(qo&130023424)&&(qo=4194304)):t=1);var n=ut();e=In(e,t),e!==null&&(Po(e,t,n),yt(e,n))}function f_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zm(e,n)}function d_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),zm(e,n)}var Um;Um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Z1(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Se&&t.flags&1048576&&Vh(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var i=ai(t,rt.current);ni(t,n),i=jc(null,t,r,e,i,n);var o=Ic();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(r)?(o=!0,Wl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Oc(t),i.updater=Pa,t.stateNode=i,i._reactInternals=t,wu(t,r,e,n),t=ku(null,t,r,!0,o,n)):(t.tag=0,Se&&o&&Sc(t),lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=h_(r),e=Qt(r,e),i){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=bd(null,t,r,e,n);break e;case 11:t=Od(null,t,r,e,n);break e;case 14:t=Ld(null,t,r,Qt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),Cu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),bd(e,t,r,i,n);case 3:e:{if(Em(t),e===null)throw Error($(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yh(e,t),Ql(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=fi(Error($(423)),t),t=Ad(e,t,r,n,i);break e}else if(r!==i){i=fi(Error($(424)),t),t=Ad(e,t,r,n,i);break e}else for(Ct=Xn(t.stateNode.containerInfo.firstChild),Et=t,Se=!0,Gt=null,n=qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(si(),r===i){t=Fn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return Zh(t),e===null&&yu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,du(r,i)?l=null:o!==null&&du(r,o)&&(t.flags|=32),km(e,t),lt(e,t,l,n),t.child;case 6:return e===null&&yu(t),null;case 13:return xm(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ui(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),Od(e,t,r,i,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,ve(Hl,r._currentValue),r._currentValue=l,o!==null)if(tn(o.value,l)){if(o.children===i.children&&!mt.current){t=Fn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=An(-1,n&-n),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?s.next=s:(s.next=p.next,p.next=s),f.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),gu(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),gu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ni(t,n),i=Wt(i),r=r(i),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,i=Qt(r,t.pendingProps),i=Qt(r.type,i),Ld(e,t,r,i,n);case 15:return Sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qt(r,i),xl(e,t),t.tag=1,vt(r)?(e=!0,Wl(t)):e=!1,ni(t,n),Jh(t,r,i),wu(t,r,i,n),ku(null,t,r,!0,e,n);case 19:return Pm(e,t,n);case 22:return Cm(e,t,n)}throw Error($(156,t.tag))};function Wm(e,t){return hh(e,t)}function p_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new p_(e,t,n,r)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function h_(e){if(typeof e=="function")return Vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uc)return 11;if(e===cc)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Vc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ur:return xr(n.children,i,o,t);case sc:l=8,i|=8;break;case Vs:return e=zt(12,n,t,i|2),e.elementType=Vs,e.lanes=o,e;case Hs:return e=zt(13,n,t,i),e.elementType=Hs,e.lanes=o,e;case Ks:return e=zt(19,n,t,i),e.elementType=Ks,e.lanes=o,e;case Xp:return ba(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gp:l=10;break e;case Jp:l=9;break e;case uc:l=11;break e;case cc:l=14;break e;case Wn:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=zt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function ba(e,t,n,r){return e=zt(22,e,r,t),e.elementType=Xp,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Ls(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=us(0),this.expirationTimes=us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,i,o,l,a,s){return e=new m_(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=zt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oc(o),e}function v_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Km)}catch(e){console.error(e)}}Km(),Vp.exports=Ot;var S_=Vp.exports,Bd=S_;Ws.createRoot=Bd.createRoot,Ws.hydrateRoot=Bd.hydrateRoot;var Qm={exports:{}},Ym={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -51,10 +51,10 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bo=I;function C_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var k_=typeof Object.is=="function"?Object.is:C_,E_=bo.useSyncExternalStore,x_=bo.useRef,P_=bo.useEffect,T_=bo.useMemo,O_=bo.useDebugValue;Ym.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=x_(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=T_(function(){function s(w){if(!f){if(f=!0,p=w,w=r(w),i!==void 0&&l.hasValue){var S=l.value;if(i(S,w))return h=S}return h=w}if(S=h,k_(p,w))return S;var C=r(w);return i!==void 0&&i(S,C)?S:(p=w,h=C)}var f=!1,p,h,y=n===void 0?null:n;return[function(){return s(t())},y===null?void 0:function(){return s(y())}]},[t,n,r,i]);var a=E_(e,o[0],o[1]);return P_(function(){l.hasValue=!0,l.value=a},[a]),O_(a),a};Qm.exports=Ym;var L_=Qm.exports,kt="default"in $f?Ee:$f,Vd=Symbol.for("react-redux-context"),Hd=typeof globalThis<"u"?globalThis:{};function b_(){if(!kt.createContext)return{};const e=Hd[Vd]??(Hd[Vd]=new Map);let t=e.get(kt.createContext);return t||(t=kt.createContext(null),e.set(kt.createContext,t)),t}var ir=b_(),A_=()=>{throw new Error("uSES not initialized!")};function Gc(e=ir){return function(){return kt.useContext(e)}}var Gm=Gc(),Jm=A_,M_=e=>{Jm=e},j_=(e,t)=>e===t;function F_(e=ir){const t=e===ir?Gm:Gc(e),n=(r,i={})=>{const{equalityFn:o=j_,devModeChecks:l={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:s,getServerState:f,stabilityCheck:p,identityFunctionCheck:h}=t();kt.useRef(!0);const y=kt.useCallback({[r.name](S){return r(S)}}[r.name],[r,p,l.stabilityCheck]),w=Jm(s.addNestedSub,a.getState,f||a.getState,y,o);return kt.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var I_=F_();function D_(e){e()}function $_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){D_(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Kd={notify(){},get:()=>[]};function N_(e,t){let n,r=Kd,i=0,o=!1;function l(C){p();const P=r.subscribe(C);let v=!1;return()=>{v||(v=!0,P(),h())}}function a(){r.notify()}function s(){S.onStateChange&&S.onStateChange()}function f(){return o}function p(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=$_())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Kd)}function y(){o||(o=!0,p())}function w(){o&&(o=!1,h())}const S={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:f,trySubscribe:y,tryUnsubscribe:w,getListeners:()=>r};return S}var R_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z_=R_?kt.useLayoutEffect:kt.useEffect;function U_({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const l=kt.useMemo(()=>{const f=N_(e);return{store:e,subscription:f,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=kt.useMemo(()=>e.getState(),[e]);z_(()=>{const{subscription:f}=l;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),a!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[l,a]);const s=t||ir;return kt.createElement(s.Provider,{value:l},n)}var W_=U_;function Xm(e=ir){const t=e===ir?Gm:Gc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var B_=Xm();function V_(e=ir){const t=e===ir?B_:Xm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var H_=V_();M_(L_.useSyncExternalStoreWithSelector);const Ao=H_,Fe=I_;function Ye(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var K_=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qd=K_,bs=()=>Math.random().toString(36).substring(7).split("").join("."),Q_={INIT:`@@redux/INIT${bs()}`,REPLACE:`@@redux/REPLACE${bs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bs()}`},na=Q_;function Jc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qm(e,t,n){if(typeof e!="function")throw new Error(Ye(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ye(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ye(1));return n(qm)(e,t)}let r=e,i=t,o=new Map,l=o,a=0,s=!1;function f(){l===o&&(l=new Map,o.forEach((P,v)=>{l.set(v,P)}))}function p(){if(s)throw new Error(Ye(3));return i}function h(P){if(typeof P!="function")throw new Error(Ye(4));if(s)throw new Error(Ye(5));let v=!0;f();const _=a++;return l.set(_,P),function(){if(v){if(s)throw new Error(Ye(6));v=!1,f(),l.delete(_),o=null}}}function y(P){if(!Jc(P))throw new Error(Ye(7));if(typeof P.type>"u")throw new Error(Ye(8));if(typeof P.type!="string")throw new Error(Ye(17));if(s)throw new Error(Ye(9));try{s=!0,i=r(i,P)}finally{s=!1}return(o=l).forEach(_=>{_()}),P}function w(P){if(typeof P!="function")throw new Error(Ye(10));r=P,y({type:na.REPLACE})}function S(){const P=h;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ye(11));function _(){const E=v;E.next&&E.next(p())}return _(),{unsubscribe:P(_)}},[Qd](){return this}}}return y({type:na.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:w,[Qd]:S}}function Y_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:na.INIT})>"u")throw new Error(Ye(12));if(typeof n(void 0,{type:na.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ye(13))})}function G_(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw a&&a.type,new Error(Ye(14));f[h]=S,s=s||S!==w}return s=s||r.length!==Object.keys(l).length,s?f:l}}function ra(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function J_(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Ye(15))};const l={getState:i.getState,dispatch:(s,...f)=>o(s,...f)},a=e.map(s=>s(l));return o=ra(...a)(i.dispatch),{...i,dispatch:o}}}function X_(e){return Jc(e)&&"type"in e&&typeof e.type=="string"}var Zm=Symbol.for("immer-nothing"),Yd=Symbol.for("immer-draftable"),Pt=Symbol.for("immer-state");function Xt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pi=Object.getPrototypeOf;function or(e){return!!e&&!!e[Pt]}function Dn(e){var t;return e?ev(e)||Array.isArray(e)||!!e[Yd]||!!((t=e.constructor)!=null&&t[Yd])||Da(e)||$a(e):!1}var q_=Object.prototype.constructor.toString();function ev(e){if(!e||typeof e!="object")return!1;const t=pi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===q_}function ia(e,t){Ia(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ia(e){const t=e[Pt];return t?t.type_:Array.isArray(e)?1:Da(e)?2:$a(e)?3:0}function Iu(e,t){return Ia(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tv(e,t,n){const r=Ia(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Z_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Da(e){return e instanceof Map}function $a(e){return e instanceof Set}function gr(e){return e.copy_||e.base_}function Du(e,t){if(Da(e))return new Map(e);if($a(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&ev(e))return pi(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Pt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=ew),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Xc(r,!0))),e}function ew(){Xt(2)}function Na(e){return Object.isFrozen(e)}var tw={};function Ar(e){const t=tw[e];return t||Xt(0,e),t}var Co;function nv(){return Co}function nw(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Gd(e,t){t&&(Ar("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $u(e){Nu(e),e.drafts_.forEach(rw),e.drafts_=null}function Nu(e){e===Co&&(Co=e.parent_)}function Jd(e){return Co=nw(Co,e)}function rw(e){const t=e[Pt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Pt].modified_&&($u(t),Xt(4)),Dn(e)&&(e=oa(t,e),t.parent_||la(t,e)),t.patches_&&Ar("Patches").generateReplacementPatches_(n[Pt].base_,e,t.patches_,t.inversePatches_)):e=oa(t,n,[]),$u(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zm?e:void 0}function oa(e,t,n){if(Na(t))return t;const r=t[Pt];if(!r)return ia(t,(i,o)=>qd(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return la(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,l=!1;r.type_===3&&(o=new Set(i),i.clear(),l=!0),ia(o,(a,s)=>qd(e,r,i,a,s,n,l)),la(e,i,!1),n&&e.patches_&&Ar("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function qd(e,t,n,r,i,o,l){if(or(i)){const a=o&&t&&t.type_!==3&&!Iu(t.assigned_,r)?o.concat(r):void 0,s=oa(e,i,a);if(tv(n,r,s),or(s))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Dn(i)&&!Na(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;oa(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&la(e,i)}}function la(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xc(t,n)}function iw(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:nv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=qc;n&&(i=[r],o=ko);const{revoke:l,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=l,a}var qc={get(e,t){if(t===Pt)return e;const n=gr(e);if(!Iu(n,t))return ow(e,n,t);const r=n[t];return e.finalized_||!Dn(r)?r:r===As(e.base_,t)?(Ms(e),e.copy_[t]=zu(r,e)):r},has(e,t){return t in gr(e)},ownKeys(e){return Reflect.ownKeys(gr(e))},set(e,t,n){const r=rv(gr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=As(gr(e),t),o=i==null?void 0:i[Pt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Z_(n,i)&&(n!==void 0||Iu(e.base_,t)))return!0;Ms(e),Ru(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return As(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ms(e),Ru(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=gr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Xt(11)},getPrototypeOf(e){return pi(e.base_)},setPrototypeOf(){Xt(12)}},ko={};ia(qc,(e,t)=>{ko[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ko.deleteProperty=function(e,t){return ko.set.call(this,e,t,void 0)};ko.set=function(e,t,n){return qc.set.call(this,e[0],t,n,e[0])};function As(e,t){const n=e[Pt];return(n?gr(n):e)[t]}function ow(e,t,n){var i;const r=rv(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function rv(e,t){if(!(t in e))return;let n=pi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=pi(n)}}function Ru(e){e.modified_||(e.modified_=!0,e.parent_&&Ru(e.parent_))}function Ms(e){e.copy_||(e.copy_=Du(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var lw=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(s=o,...f){return l.produce(s,p=>n.call(this,p,...f))}}typeof n!="function"&&Xt(6),r!==void 0&&typeof r!="function"&&Xt(7);let i;if(Dn(t)){const o=Jd(this),l=zu(t,void 0);let a=!0;try{i=n(l),a=!1}finally{a?$u(o):Nu(o)}return Gd(o,r),Xd(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Zm&&(i=void 0),this.autoFreeze_&&Xc(i,!0),r){const o=[],l=[];Ar("Patches").generateReplacementPatches_(t,i,o,l),r(o,l)}return i}else Xt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,s=>t(s,...a));let r,i;return[this.produce(t,n,(l,a)=>{r=l,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Dn(e)||Xt(8),or(e)&&(e=iv(e));const t=Jd(this),n=zu(e,void 0);return n[Pt].isManual_=!0,Nu(t),n}finishDraft(e,t){const n=e&&e[Pt];(!n||!n.isManual_)&&Xt(9);const{scope_:r}=n;return Gd(r,t),Xd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ar("Patches").applyPatches_;return or(e)?r(e,t):this.produce(e,i=>r(i,t))}};function zu(e,t){const n=Da(e)?Ar("MapSet").proxyMap_(e,t):$a(e)?Ar("MapSet").proxySet_(e,t):iw(e,t);return(t?t.scope_:nv()).drafts_.push(n),n}function iv(e){return or(e)||Xt(10,e),ov(e)}function ov(e){if(!Dn(e)||Na(e))return e;const t=e[Pt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Du(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Du(e,!0);return ia(n,(r,i)=>{tv(n,r,ov(i))}),t&&(t.finalized_=!1),n}var Tt=new lw,lv=Tt.produce;Tt.produceWithPatches.bind(Tt);Tt.setAutoFreeze.bind(Tt);Tt.setUseStrictShallowCopy.bind(Tt);Tt.applyPatches.bind(Tt);Tt.createDraft.bind(Tt);Tt.finishDraft.bind(Tt);function aw(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function sw(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function uw(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zd=e=>Array.isArray(e)?e:[e];function cw(e){const t=Array.isArray(e[0])?e[0]:e;return uw(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fw(e,t){const n=[],{length:r}=e;for(let i=0;i{n=cl(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function av(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,l=0,a,s={},f=i.pop();typeof f=="object"&&(s=f,f=i.pop()),aw(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const p={...n,...s},{memoize:h,memoizeOptions:y=[],argsMemoize:w=Zc,argsMemoizeOptions:S=[],devModeChecks:C={}}=p,P=Zd(y),v=Zd(S),_=cw(i),g=h(function(){return o++,f.apply(null,arguments)},...P),E=w(function(){l++;const D=fw(_,arguments);return a=g.apply(null,D),a},...v);return Object.assign(E,{resultFunc:f,memoizedResultFunc:g,dependencies:_,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:h,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var mw=av(Zc),vw=Object.assign((e,t=mw)=>{sw(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,a,s)=>(l[n[s]]=a,l),{}))},{withTypes:()=>vw});function sv(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var yw=sv(),gw=sv,_w=(...e)=>{const t=av(...e),n=Object.assign((...r)=>{const i=t(...r),o=(l,...a)=>i(or(l)?iv(l):l,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};_w(Zc);var ww=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ra:ra.apply(null,arguments)};function hi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(gt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>X_(r)&&r.type===e,n}var uv=class Ki extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ki.prototype)}static get[Symbol.species](){return Ki}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ki(...t[0].concat(this)):new Ki(...t.concat(this))}};function tp(e){return Dn(e)?lv(e,()=>{}):e}function np(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(gt(10));const r=n.insert(t,e);return e.set(t,r),r}function Sw(e){return typeof e=="boolean"}var Cw=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let l=new uv;return n&&(Sw(n)?l.push(yw):l.push(gw(n.extraArgument))),l},kw="RTK_autoBatch",cv=e=>t=>{setTimeout(t,e)},Ew=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:cv(10),xw=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,l=!1;const a=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?Ew:e.type==="callback"?e.queueNotification:cv(e.timeout),f=()=>{l=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),y=r.subscribe(h);return a.add(p),()=>{y(),a.delete(p)}},dispatch(p){var h;try{return i=!((h=p==null?void 0:p.meta)!=null&&h[kw]),o=!i,o&&(l||(l=!0,s(f))),r.dispatch(p)}finally{i=!0}}})},Pw=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new uv(e);return r&&i.push(xw(typeof r=="object"?r:void 0)),i},Tw=!0;function Ow(e){const t=Cw(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Jc(n))a=G_(n);else throw new Error(gt(1));let s;typeof r=="function"?s=r(t):s=t();let f=ra;i&&(f=ww({trace:!Tw,...typeof i=="object"&&i}));const p=J_(...s),h=Pw(p);let y=typeof l=="function"?l(h):h();const w=f(...y);return qm(a,o,w)}function fv(e){const t={},n=[];let r;const i={addCase(o,l){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(gt(28));if(a in t)throw new Error(gt(29));return t[a]=l,i},addMatcher(o,l){return n.push({matcher:o,reducer:l}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Lw(e){return typeof e=="function"}function bw(e,t){let[n,r,i]=fv(t),o;if(Lw(e))o=()=>tp(e());else{const a=tp(e);o=()=>a}function l(a=o(),s){let f=[n[s.type],...r.filter(({matcher:p})=>p(s)).map(({reducer:p})=>p)];return f.filter(p=>!!p).length===0&&(f=[i]),f.reduce((p,h)=>{if(h)if(or(p)){const w=h(p,s);return w===void 0?p:w}else{if(Dn(p))return lv(p,y=>h(y,s));{const y=h(p,s);if(y===void 0){if(p===null)return p;throw new Error(gt(9))}return y}}return p},a)}return l.getInitialState=o,l}var Aw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mw=(e=21)=>{let t="",n=e;for(;n--;)t+=Aw[Math.random()*64|0];return t},jw=Symbol.for("rtk-slice-createasyncthunk");function Fw(e,t){return`${e}/${t}`}function Iw({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[jw];return function(i){const{name:o,reducerPath:l=o}=i;if(!o)throw new Error(gt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Nw()):i.reducers)||{},s=Object.keys(a),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,E){const A=typeof g=="string"?g:g.type;if(!A)throw new Error(gt(12));if(A in f.sliceCaseReducersByType)throw new Error(gt(13));return f.sliceCaseReducersByType[A]=E,p},addMatcher(g,E){return f.sliceMatchers.push({matcher:g,reducer:E}),p},exposeAction(g,E){return f.actionCreators[g]=E,p},exposeCaseReducer(g,E){return f.sliceCaseReducersByName[g]=E,p}};s.forEach(g=>{const E=a[g],A={reducerName:g,type:Fw(o,g),createNotation:typeof i.reducers=="function"};zw(E)?Ww(A,E,p,t):Rw(A,E,p)});function h(){const[g={},E=[],A=void 0]=typeof i.extraReducers=="function"?fv(i.extraReducers):[i.extraReducers],D={...g,...f.sliceCaseReducersByType};return bw(i.initialState,x=>{for(let L in D)x.addCase(L,D[L]);for(let L of f.sliceMatchers)x.addMatcher(L.matcher,L.reducer);for(let L of E)x.addMatcher(L.matcher,L.reducer);A&&x.addDefaultCase(A)})}const y=g=>g,w=new Map;let S;function C(g,E){return S||(S=h()),S(g,E)}function P(){return S||(S=h()),S.getInitialState()}function v(g,E=!1){function A(x){let L=x[g];return typeof L>"u"&&E&&(L=P()),L}function D(x=y){const L=np(w,E,{insert:()=>new WeakMap});return np(L,x,{insert:()=>{const N={};for(const[W,Z]of Object.entries(i.selectors??{}))N[W]=Dw(Z,x,P,E);return N}})}return{reducerPath:g,getSelectors:D,get selectors(){return D(A)},selectSlice:A}}const _={name:o,reducer:C,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:P,...v(l),injectInto(g,{reducerPath:E,...A}={}){const D=E??l;return g.inject({reducerPath:D,reducer:C},A),{..._,...v(D,!0)}}};return _}}function Dw(e,t,n,r){function i(o,...l){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return i.unwrapped=e,i}var $w=Iw();function Nw(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Rw({type:e,reducerName:t,createNotation:n},r,i){let o,l;if("reducer"in r){if(n&&!Uw(r))throw new Error(gt(17));o=r.reducer,l=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?hi(e,l):hi(e))}function zw(e){return e._reducerDefinitionType==="asyncThunk"}function Uw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ww({type:e,reducerName:t},n,r,i){if(!i)throw new Error(gt(18));const{payloadCreator:o,fulfilled:l,pending:a,rejected:s,settled:f,options:p}=n,h=i(e,o,p);r.exposeAction(t,h),l&&r.addCase(h.fulfilled,l),a&&r.addCase(h.pending,a),s&&r.addCase(h.rejected,s),f&&r.addMatcher(h.settled,f),r.exposeCaseReducer(t,{fulfilled:l||fl,pending:a||fl,rejected:s||fl,settled:f||fl})}function fl(){}var Bw=(e,t)=>{if(typeof e!="function")throw new Error(gt(32))},ef="listenerMiddleware",Vw=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=hi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(gt(21));return Bw(o),{predicate:i,type:t,effect:o}},Hw=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Vw(e);return{id:Mw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(gt(22))}}},{withTypes:()=>Hw}),Kw=Object.assign(hi(`${ef}/add`),{withTypes:()=>Kw});hi(`${ef}/removeAll`);var Qw=Object.assign(hi(`${ef}/remove`),{withTypes:()=>Qw});function gt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const dv="https://lottie.host/9ac9c440-c19e-4ac9-b60e-869b6d0ef8cb/7h97gYMCNE.lottie",Yw={src:dv,isJson:!0,theme:"",speed:1,autoplay:!0,loop:!0,backgroundColor:"#F3F6F8",currentFrame:0,totalFrames:0,themes:[],animations:[],activeAnimationId:"",activeThemeId:"",segment:[],currentState:"idle",mode:"forward",userSrc:"",loadTime:{lottieWeb:0,dotLottie:0}},pv=$w({name:"viewer",initialState:Yw,reducers:{setSrc:(e,t)=>{e.src=t.payload,e.src.endsWith(".json")||e.src.startsWith("data:application/json")?e.isJson=!0:e.isJson=!1},setIsJson:(e,t)=>{e.isJson=t.payload},setTheme:(e,t)=>{e.theme=t.payload},setSpeed:(e,t)=>{e.speed=t.payload},setAutoplay:(e,t)=>{e.autoplay=t.payload},setLoop:(e,t)=>{e.loop=t.payload},setBackgroundColor:(e,t)=>{e.backgroundColor=t.payload},setCurrentFrame:(e,t)=>{e.currentFrame=t.payload},setTotalFrames:(e,t)=>{e.totalFrames=t.payload},setCurrentState:(e,t)=>{e.currentState=t.payload},setMdode:(e,t)=>{e.mode=t.payload},setThemes:(e,t)=>{e.themes=t.payload},setAnimations:(e,t)=>{e.animations=t.payload},setActiveAnimationId:(e,t)=>{e.activeAnimationId=t.payload},setActiveThemeId:(e,t)=>{e.activeThemeId=t.payload},setUserSrc:(e,t)=>{e.userSrc=t.payload},resetUserConfig:e=>{e.userSrc="",e.src=dv,e.src.endsWith(".json")||e.src.startsWith("data:application/json")?e.isJson=!0:e.isJson=!1},setLoadTimeDotLottie:(e,t)=>{e.loadTime.dotLottie=t.payload},setLoadTimeLottieWeb:(e,t)=>{e.loadTime.lottieWeb=t.payload}}}),{setSrc:aa,setTheme:kk,setSpeed:Gw,setAutoplay:Ek,setLoop:Jw,setBackgroundColor:Xw,setCurrentFrame:qw,setTotalFrames:Zw,setCurrentState:dl,setMdode:eS,setThemes:rp,setAnimations:ip,setActiveAnimationId:Ll,setActiveThemeId:tS,setUserSrc:Uu,resetUserConfig:nS,setIsJson:xk,setLoadTimeDotLottie:rS,setLoadTimeLottieWeb:iS}=pv.actions,oS=pv.reducer;var hv={exports:{}},lS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aS=lS,sS=aS;function mv(){}function vv(){}vv.resetWarningCache=mv;var uS=function(){function e(r,i,o,l,a,s){if(s!==sS){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vv,resetWarningCache:mv};return n.PropTypes=n,n};hv.exports=uS();var cS=hv.exports;const he=jp(cS);function gi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(p){try{f(r.next(p))}catch(h){l(h)}}function s(p){try{f(r.throw(p))}catch(h){l(h)}}function f(p){p.done?o(p.value):i(p.value).then(a,s)}f((r=r.apply(e,t||[])).next())})}function _i(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(f){return function(p){return s([f,p])}}function s(f){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){l={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function lp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function dS(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=fS.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var pS=[".DS_Store","Thumbs.db"];function hS(e){return gi(this,void 0,void 0,function(){return _i(this,function(t){return sa(e)&&mS(e.dataTransfer)?[2,_S(e.dataTransfer,e.type)]:vS(e)?[2,yS(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,gS(e)]:[2,[]]})})}function mS(e){return sa(e)}function vS(e){return sa(e)&&sa(e.target)}function sa(e){return typeof e=="object"&&e!==null}function yS(e){return Wu(e.target.files).map(function(t){return Mo(t)})}function gS(e){return gi(this,void 0,void 0,function(){var t;return _i(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Mo(r)})]}})})}function _S(e,t){return gi(this,void 0,void 0,function(){var n,r;return _i(this,function(i){switch(i.label){case 0:return e.items?(n=Wu(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(wS))]):[3,2];case 1:return r=i.sent(),[2,ap(yv(r))];case 2:return[2,ap(Wu(e.files).map(function(o){return Mo(o)}))]}})})}function ap(e){return e.filter(function(t){return pS.indexOf(t.name)===-1})}function Wu(e){if(e===null)return[];for(var t=[],n=0;n{throw new Error("uSES not initialized!")};function Gc(e=ir){return function(){return kt.useContext(e)}}var Gm=Gc(),Jm=A_,M_=e=>{Jm=e},j_=(e,t)=>e===t;function I_(e=ir){const t=e===ir?Gm:Gc(e),n=(r,i={})=>{const{equalityFn:o=j_,devModeChecks:l={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:s,getServerState:f,stabilityCheck:p,identityFunctionCheck:h}=t();kt.useRef(!0);const y=kt.useCallback({[r.name](S){return r(S)}}[r.name],[r,p,l.stabilityCheck]),w=Jm(s.addNestedSub,a.getState,f||a.getState,y,o);return kt.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var F_=I_();function D_(e){e()}function $_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){D_(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Kd={notify(){},get:()=>[]};function N_(e,t){let n,r=Kd,i=0,o=!1;function l(C){p();const P=r.subscribe(C);let v=!1;return()=>{v||(v=!0,P(),h())}}function a(){r.notify()}function s(){S.onStateChange&&S.onStateChange()}function f(){return o}function p(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=$_())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Kd)}function y(){o||(o=!0,p())}function w(){o&&(o=!1,h())}const S={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:f,trySubscribe:y,tryUnsubscribe:w,getListeners:()=>r};return S}var R_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z_=R_?kt.useLayoutEffect:kt.useEffect;function U_({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const l=kt.useMemo(()=>{const f=N_(e);return{store:e,subscription:f,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=kt.useMemo(()=>e.getState(),[e]);z_(()=>{const{subscription:f}=l;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),a!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[l,a]);const s=t||ir;return kt.createElement(s.Provider,{value:l},n)}var W_=U_;function Xm(e=ir){const t=e===ir?Gm:Gc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var B_=Xm();function V_(e=ir){const t=e===ir?B_:Xm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var H_=V_();M_(L_.useSyncExternalStoreWithSelector);const Ao=H_,Ie=F_;function Ye(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var K_=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qd=K_,bs=()=>Math.random().toString(36).substring(7).split("").join("."),Q_={INIT:`@@redux/INIT${bs()}`,REPLACE:`@@redux/REPLACE${bs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bs()}`},na=Q_;function Jc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qm(e,t,n){if(typeof e!="function")throw new Error(Ye(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ye(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ye(1));return n(qm)(e,t)}let r=e,i=t,o=new Map,l=o,a=0,s=!1;function f(){l===o&&(l=new Map,o.forEach((P,v)=>{l.set(v,P)}))}function p(){if(s)throw new Error(Ye(3));return i}function h(P){if(typeof P!="function")throw new Error(Ye(4));if(s)throw new Error(Ye(5));let v=!0;f();const _=a++;return l.set(_,P),function(){if(v){if(s)throw new Error(Ye(6));v=!1,f(),l.delete(_),o=null}}}function y(P){if(!Jc(P))throw new Error(Ye(7));if(typeof P.type>"u")throw new Error(Ye(8));if(typeof P.type!="string")throw new Error(Ye(17));if(s)throw new Error(Ye(9));try{s=!0,i=r(i,P)}finally{s=!1}return(o=l).forEach(_=>{_()}),P}function w(P){if(typeof P!="function")throw new Error(Ye(10));r=P,y({type:na.REPLACE})}function S(){const P=h;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ye(11));function _(){const E=v;E.next&&E.next(p())}return _(),{unsubscribe:P(_)}},[Qd](){return this}}}return y({type:na.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:w,[Qd]:S}}function Y_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:na.INIT})>"u")throw new Error(Ye(12));if(typeof n(void 0,{type:na.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ye(13))})}function G_(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw a&&a.type,new Error(Ye(14));f[h]=S,s=s||S!==w}return s=s||r.length!==Object.keys(l).length,s?f:l}}function ra(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function J_(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Ye(15))};const l={getState:i.getState,dispatch:(s,...f)=>o(s,...f)},a=e.map(s=>s(l));return o=ra(...a)(i.dispatch),{...i,dispatch:o}}}function X_(e){return Jc(e)&&"type"in e&&typeof e.type=="string"}var Zm=Symbol.for("immer-nothing"),Yd=Symbol.for("immer-draftable"),Pt=Symbol.for("immer-state");function Xt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pi=Object.getPrototypeOf;function or(e){return!!e&&!!e[Pt]}function Dn(e){var t;return e?ev(e)||Array.isArray(e)||!!e[Yd]||!!((t=e.constructor)!=null&&t[Yd])||Da(e)||$a(e):!1}var q_=Object.prototype.constructor.toString();function ev(e){if(!e||typeof e!="object")return!1;const t=pi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===q_}function ia(e,t){Fa(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Fa(e){const t=e[Pt];return t?t.type_:Array.isArray(e)?1:Da(e)?2:$a(e)?3:0}function Fu(e,t){return Fa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tv(e,t,n){const r=Fa(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Z_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Da(e){return e instanceof Map}function $a(e){return e instanceof Set}function gr(e){return e.copy_||e.base_}function Du(e,t){if(Da(e))return new Map(e);if($a(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&ev(e))return pi(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Pt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=ew),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Xc(r,!0))),e}function ew(){Xt(2)}function Na(e){return Object.isFrozen(e)}var tw={};function Ar(e){const t=tw[e];return t||Xt(0,e),t}var Co;function nv(){return Co}function nw(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Gd(e,t){t&&(Ar("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $u(e){Nu(e),e.drafts_.forEach(rw),e.drafts_=null}function Nu(e){e===Co&&(Co=e.parent_)}function Jd(e){return Co=nw(Co,e)}function rw(e){const t=e[Pt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Pt].modified_&&($u(t),Xt(4)),Dn(e)&&(e=oa(t,e),t.parent_||la(t,e)),t.patches_&&Ar("Patches").generateReplacementPatches_(n[Pt].base_,e,t.patches_,t.inversePatches_)):e=oa(t,n,[]),$u(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zm?e:void 0}function oa(e,t,n){if(Na(t))return t;const r=t[Pt];if(!r)return ia(t,(i,o)=>qd(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return la(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,l=!1;r.type_===3&&(o=new Set(i),i.clear(),l=!0),ia(o,(a,s)=>qd(e,r,i,a,s,n,l)),la(e,i,!1),n&&e.patches_&&Ar("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function qd(e,t,n,r,i,o,l){if(or(i)){const a=o&&t&&t.type_!==3&&!Fu(t.assigned_,r)?o.concat(r):void 0,s=oa(e,i,a);if(tv(n,r,s),or(s))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Dn(i)&&!Na(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;oa(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&la(e,i)}}function la(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xc(t,n)}function iw(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:nv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=qc;n&&(i=[r],o=ko);const{revoke:l,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=l,a}var qc={get(e,t){if(t===Pt)return e;const n=gr(e);if(!Fu(n,t))return ow(e,n,t);const r=n[t];return e.finalized_||!Dn(r)?r:r===As(e.base_,t)?(Ms(e),e.copy_[t]=zu(r,e)):r},has(e,t){return t in gr(e)},ownKeys(e){return Reflect.ownKeys(gr(e))},set(e,t,n){const r=rv(gr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=As(gr(e),t),o=i==null?void 0:i[Pt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Z_(n,i)&&(n!==void 0||Fu(e.base_,t)))return!0;Ms(e),Ru(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return As(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ms(e),Ru(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=gr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Xt(11)},getPrototypeOf(e){return pi(e.base_)},setPrototypeOf(){Xt(12)}},ko={};ia(qc,(e,t)=>{ko[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ko.deleteProperty=function(e,t){return ko.set.call(this,e,t,void 0)};ko.set=function(e,t,n){return qc.set.call(this,e[0],t,n,e[0])};function As(e,t){const n=e[Pt];return(n?gr(n):e)[t]}function ow(e,t,n){var i;const r=rv(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function rv(e,t){if(!(t in e))return;let n=pi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=pi(n)}}function Ru(e){e.modified_||(e.modified_=!0,e.parent_&&Ru(e.parent_))}function Ms(e){e.copy_||(e.copy_=Du(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var lw=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(s=o,...f){return l.produce(s,p=>n.call(this,p,...f))}}typeof n!="function"&&Xt(6),r!==void 0&&typeof r!="function"&&Xt(7);let i;if(Dn(t)){const o=Jd(this),l=zu(t,void 0);let a=!0;try{i=n(l),a=!1}finally{a?$u(o):Nu(o)}return Gd(o,r),Xd(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Zm&&(i=void 0),this.autoFreeze_&&Xc(i,!0),r){const o=[],l=[];Ar("Patches").generateReplacementPatches_(t,i,o,l),r(o,l)}return i}else Xt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,s=>t(s,...a));let r,i;return[this.produce(t,n,(l,a)=>{r=l,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Dn(e)||Xt(8),or(e)&&(e=iv(e));const t=Jd(this),n=zu(e,void 0);return n[Pt].isManual_=!0,Nu(t),n}finishDraft(e,t){const n=e&&e[Pt];(!n||!n.isManual_)&&Xt(9);const{scope_:r}=n;return Gd(r,t),Xd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ar("Patches").applyPatches_;return or(e)?r(e,t):this.produce(e,i=>r(i,t))}};function zu(e,t){const n=Da(e)?Ar("MapSet").proxyMap_(e,t):$a(e)?Ar("MapSet").proxySet_(e,t):iw(e,t);return(t?t.scope_:nv()).drafts_.push(n),n}function iv(e){return or(e)||Xt(10,e),ov(e)}function ov(e){if(!Dn(e)||Na(e))return e;const t=e[Pt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Du(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Du(e,!0);return ia(n,(r,i)=>{tv(n,r,ov(i))}),t&&(t.finalized_=!1),n}var Tt=new lw,lv=Tt.produce;Tt.produceWithPatches.bind(Tt);Tt.setAutoFreeze.bind(Tt);Tt.setUseStrictShallowCopy.bind(Tt);Tt.applyPatches.bind(Tt);Tt.createDraft.bind(Tt);Tt.finishDraft.bind(Tt);function aw(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function sw(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function uw(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zd=e=>Array.isArray(e)?e:[e];function cw(e){const t=Array.isArray(e[0])?e[0]:e;return uw(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fw(e,t){const n=[],{length:r}=e;for(let i=0;i{n=cl(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function av(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,l=0,a,s={},f=i.pop();typeof f=="object"&&(s=f,f=i.pop()),aw(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const p={...n,...s},{memoize:h,memoizeOptions:y=[],argsMemoize:w=Zc,argsMemoizeOptions:S=[],devModeChecks:C={}}=p,P=Zd(y),v=Zd(S),_=cw(i),g=h(function(){return o++,f.apply(null,arguments)},...P),E=w(function(){l++;const D=fw(_,arguments);return a=g.apply(null,D),a},...v);return Object.assign(E,{resultFunc:f,memoizedResultFunc:g,dependencies:_,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:h,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var mw=av(Zc),vw=Object.assign((e,t=mw)=>{sw(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,a,s)=>(l[n[s]]=a,l),{}))},{withTypes:()=>vw});function sv(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var yw=sv(),gw=sv,_w=(...e)=>{const t=av(...e),n=Object.assign((...r)=>{const i=t(...r),o=(l,...a)=>i(or(l)?iv(l):l,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};_w(Zc);var ww=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ra:ra.apply(null,arguments)};function hi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(gt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>X_(r)&&r.type===e,n}var uv=class Ki extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ki.prototype)}static get[Symbol.species](){return Ki}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ki(...t[0].concat(this)):new Ki(...t.concat(this))}};function tp(e){return Dn(e)?lv(e,()=>{}):e}function np(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(gt(10));const r=n.insert(t,e);return e.set(t,r),r}function Sw(e){return typeof e=="boolean"}var Cw=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let l=new uv;return n&&(Sw(n)?l.push(yw):l.push(gw(n.extraArgument))),l},kw="RTK_autoBatch",cv=e=>t=>{setTimeout(t,e)},Ew=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:cv(10),xw=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,l=!1;const a=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?Ew:e.type==="callback"?e.queueNotification:cv(e.timeout),f=()=>{l=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),y=r.subscribe(h);return a.add(p),()=>{y(),a.delete(p)}},dispatch(p){var h;try{return i=!((h=p==null?void 0:p.meta)!=null&&h[kw]),o=!i,o&&(l||(l=!0,s(f))),r.dispatch(p)}finally{i=!0}}})},Pw=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new uv(e);return r&&i.push(xw(typeof r=="object"?r:void 0)),i},Tw=!0;function Ow(e){const t=Cw(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Jc(n))a=G_(n);else throw new Error(gt(1));let s;typeof r=="function"?s=r(t):s=t();let f=ra;i&&(f=ww({trace:!Tw,...typeof i=="object"&&i}));const p=J_(...s),h=Pw(p);let y=typeof l=="function"?l(h):h();const w=f(...y);return qm(a,o,w)}function fv(e){const t={},n=[];let r;const i={addCase(o,l){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(gt(28));if(a in t)throw new Error(gt(29));return t[a]=l,i},addMatcher(o,l){return n.push({matcher:o,reducer:l}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Lw(e){return typeof e=="function"}function bw(e,t){let[n,r,i]=fv(t),o;if(Lw(e))o=()=>tp(e());else{const a=tp(e);o=()=>a}function l(a=o(),s){let f=[n[s.type],...r.filter(({matcher:p})=>p(s)).map(({reducer:p})=>p)];return f.filter(p=>!!p).length===0&&(f=[i]),f.reduce((p,h)=>{if(h)if(or(p)){const w=h(p,s);return w===void 0?p:w}else{if(Dn(p))return lv(p,y=>h(y,s));{const y=h(p,s);if(y===void 0){if(p===null)return p;throw new Error(gt(9))}return y}}return p},a)}return l.getInitialState=o,l}var Aw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mw=(e=21)=>{let t="",n=e;for(;n--;)t+=Aw[Math.random()*64|0];return t},jw=Symbol.for("rtk-slice-createasyncthunk");function Iw(e,t){return`${e}/${t}`}function Fw({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[jw];return function(i){const{name:o,reducerPath:l=o}=i;if(!o)throw new Error(gt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Nw()):i.reducers)||{},s=Object.keys(a),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,E){const A=typeof g=="string"?g:g.type;if(!A)throw new Error(gt(12));if(A in f.sliceCaseReducersByType)throw new Error(gt(13));return f.sliceCaseReducersByType[A]=E,p},addMatcher(g,E){return f.sliceMatchers.push({matcher:g,reducer:E}),p},exposeAction(g,E){return f.actionCreators[g]=E,p},exposeCaseReducer(g,E){return f.sliceCaseReducersByName[g]=E,p}};s.forEach(g=>{const E=a[g],A={reducerName:g,type:Iw(o,g),createNotation:typeof i.reducers=="function"};zw(E)?Ww(A,E,p,t):Rw(A,E,p)});function h(){const[g={},E=[],A=void 0]=typeof i.extraReducers=="function"?fv(i.extraReducers):[i.extraReducers],D={...g,...f.sliceCaseReducersByType};return bw(i.initialState,x=>{for(let L in D)x.addCase(L,D[L]);for(let L of f.sliceMatchers)x.addMatcher(L.matcher,L.reducer);for(let L of E)x.addMatcher(L.matcher,L.reducer);A&&x.addDefaultCase(A)})}const y=g=>g,w=new Map;let S;function C(g,E){return S||(S=h()),S(g,E)}function P(){return S||(S=h()),S.getInitialState()}function v(g,E=!1){function A(x){let L=x[g];return typeof L>"u"&&E&&(L=P()),L}function D(x=y){const L=np(w,E,{insert:()=>new WeakMap});return np(L,x,{insert:()=>{const N={};for(const[W,Z]of Object.entries(i.selectors??{}))N[W]=Dw(Z,x,P,E);return N}})}return{reducerPath:g,getSelectors:D,get selectors(){return D(A)},selectSlice:A}}const _={name:o,reducer:C,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:P,...v(l),injectInto(g,{reducerPath:E,...A}={}){const D=E??l;return g.inject({reducerPath:D,reducer:C},A),{..._,...v(D,!0)}}};return _}}function Dw(e,t,n,r){function i(o,...l){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return i.unwrapped=e,i}var $w=Fw();function Nw(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Rw({type:e,reducerName:t,createNotation:n},r,i){let o,l;if("reducer"in r){if(n&&!Uw(r))throw new Error(gt(17));o=r.reducer,l=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?hi(e,l):hi(e))}function zw(e){return e._reducerDefinitionType==="asyncThunk"}function Uw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ww({type:e,reducerName:t},n,r,i){if(!i)throw new Error(gt(18));const{payloadCreator:o,fulfilled:l,pending:a,rejected:s,settled:f,options:p}=n,h=i(e,o,p);r.exposeAction(t,h),l&&r.addCase(h.fulfilled,l),a&&r.addCase(h.pending,a),s&&r.addCase(h.rejected,s),f&&r.addMatcher(h.settled,f),r.exposeCaseReducer(t,{fulfilled:l||fl,pending:a||fl,rejected:s||fl,settled:f||fl})}function fl(){}var Bw=(e,t)=>{if(typeof e!="function")throw new Error(gt(32))},ef="listenerMiddleware",Vw=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=hi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(gt(21));return Bw(o),{predicate:i,type:t,effect:o}},Hw=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Vw(e);return{id:Mw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(gt(22))}}},{withTypes:()=>Hw}),Kw=Object.assign(hi(`${ef}/add`),{withTypes:()=>Kw});hi(`${ef}/removeAll`);var Qw=Object.assign(hi(`${ef}/remove`),{withTypes:()=>Qw});function gt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const dv="https://lottie.host/9ac9c440-c19e-4ac9-b60e-869b6d0ef8cb/7h97gYMCNE.lottie",Yw={src:dv,isJson:!0,theme:"",speed:1,autoplay:!0,loop:!0,backgroundColor:"#F3F6F8",currentFrame:0,totalFrames:0,themes:[],animations:[],activeAnimationId:"",activeThemeId:"",segment:[],currentState:"idle",mode:"forward",userSrc:"",loadTime:{lottieWeb:0,dotLottie:0}},pv=$w({name:"viewer",initialState:Yw,reducers:{setSrc:(e,t)=>{e.activeAnimationId="",e.src=t.payload,e.src.endsWith(".json")||e.src.startsWith("data:application/json")?e.isJson=!0:e.isJson=!1},setIsJson:(e,t)=>{e.isJson=t.payload},setTheme:(e,t)=>{e.theme=t.payload},setSpeed:(e,t)=>{e.speed=t.payload},setAutoplay:(e,t)=>{e.autoplay=t.payload},setLoop:(e,t)=>{e.loop=t.payload},setBackgroundColor:(e,t)=>{e.backgroundColor=t.payload},setCurrentFrame:(e,t)=>{e.currentFrame=t.payload},setTotalFrames:(e,t)=>{e.totalFrames=t.payload},setCurrentState:(e,t)=>{e.currentState=t.payload},setMdode:(e,t)=>{e.mode=t.payload},setThemes:(e,t)=>{e.themes=t.payload},setAnimations:(e,t)=>{e.animations=t.payload},setActiveAnimationId:(e,t)=>{e.activeAnimationId=t.payload},setActiveThemeId:(e,t)=>{e.activeThemeId=t.payload},setUserSrc:(e,t)=>{e.userSrc=t.payload},resetUserConfig:e=>{e.userSrc="",e.activeAnimationId="",e.src=dv,e.src.endsWith(".json")||e.src.startsWith("data:application/json")?e.isJson=!0:e.isJson=!1},setLoadTimeDotLottie:(e,t)=>{e.loadTime.dotLottie=t.payload},setLoadTimeLottieWeb:(e,t)=>{e.loadTime.lottieWeb=t.payload}}}),{setSrc:aa,setTheme:kk,setSpeed:Gw,setAutoplay:Ek,setLoop:Jw,setBackgroundColor:Xw,setCurrentFrame:qw,setTotalFrames:Zw,setCurrentState:dl,setMdode:eS,setThemes:rp,setAnimations:ip,setActiveAnimationId:Ll,setActiveThemeId:tS,setUserSrc:Uu,resetUserConfig:nS,setIsJson:xk,setLoadTimeDotLottie:rS,setLoadTimeLottieWeb:iS}=pv.actions,oS=pv.reducer;var hv={exports:{}},lS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aS=lS,sS=aS;function mv(){}function vv(){}vv.resetWarningCache=mv;var uS=function(){function e(r,i,o,l,a,s){if(s!==sS){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vv,resetWarningCache:mv};return n.PropTypes=n,n};hv.exports=uS();var cS=hv.exports;const he=jp(cS);function gi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(p){try{f(r.next(p))}catch(h){l(h)}}function s(p){try{f(r.throw(p))}catch(h){l(h)}}function f(p){p.done?o(p.value):i(p.value).then(a,s)}f((r=r.apply(e,t||[])).next())})}function _i(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(f){return function(p){return s([f,p])}}function s(f){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){l={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function lp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function dS(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=fS.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var pS=[".DS_Store","Thumbs.db"];function hS(e){return gi(this,void 0,void 0,function(){return _i(this,function(t){return sa(e)&&mS(e.dataTransfer)?[2,_S(e.dataTransfer,e.type)]:vS(e)?[2,yS(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,gS(e)]:[2,[]]})})}function mS(e){return sa(e)}function vS(e){return sa(e)&&sa(e.target)}function sa(e){return typeof e=="object"&&e!==null}function yS(e){return Wu(e.target.files).map(function(t){return Mo(t)})}function gS(e){return gi(this,void 0,void 0,function(){var t;return _i(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Mo(r)})]}})})}function _S(e,t){return gi(this,void 0,void 0,function(){var n,r;return _i(this,function(i){switch(i.label){case 0:return e.items?(n=Wu(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(wS))]):[3,2];case 1:return r=i.sent(),[2,ap(yv(r))];case 2:return[2,ap(Wu(e.files).map(function(o){return Mo(o)}))]}})})}function ap(e){return e.filter(function(t){return pS.indexOf(t.name)===-1})}function Wu(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,dp(n)];if(e.sizen)return[!1,dp(n)]}return[!0,null]}function _r(e){return e!=null}function MS(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,l=e.maxFiles,a=e.validator;return!o&&t.length>1||o&&l>=1&&t.length>l?!1:t.every(function(s){var f=xv(s,n),p=Eo(f,1),h=p[0],y=Pv(s,r,i),w=Eo(y,1),S=w[0],C=a?a(s):null;return h&&S&&!C})}function ca(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function pl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function hp(e){e.preventDefault()}function jS(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function FS(e){return e.indexOf("Edge/")!==-1}function IS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return jS(e)||FS(e)}function fn(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,dp(n)];if(e.sizen)return[!1,dp(n)]}return[!0,null]}function _r(e){return e!=null}function MS(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,l=e.maxFiles,a=e.validator;return!o&&t.length>1||o&&l>=1&&t.length>l?!1:t.every(function(s){var f=xv(s,n),p=Eo(f,1),h=p[0],y=Pv(s,r,i),w=Eo(y,1),S=w[0],C=a?a(s):null;return h&&S&&!C})}function ca(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function pl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function hp(e){e.preventDefault()}function jS(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function IS(e){return e.indexOf("Edge/")!==-1}function FS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return jS(e)||IS(e)}function fn(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ra=I.forwardRef(function(e,t){var n=e.children,r=fa(e,US),i=ZS(r),o=i.open,l=fa(i,WS);return I.useImperativeHandle(t,function(){return{open:o}},[o]),Ee.createElement(I.Fragment,null,n(Ce(Ce({},l),{},{open:o})))});Ra.displayName="Dropzone";var bv={disabled:!1,getFilesFromEvent:hS,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ra.defaultProps=bv;Ra.propTypes={children:he.func,accept:he.objectOf(he.arrayOf(he.string)),multiple:he.bool,preventDropOnDocument:he.bool,noClick:he.bool,noKeyboard:he.bool,noDrag:he.bool,noDragEventsBubbling:he.bool,minSize:he.number,maxSize:he.number,maxFiles:he.number,disabled:he.bool,getFilesFromEvent:he.func,onFileDialogCancel:he.func,onFileDialogOpen:he.func,useFsAccessApi:he.bool,autoFocus:he.bool,onDragEnter:he.func,onDragLeave:he.func,onDragOver:he.func,onDrop:he.func,onDropAccepted:he.func,onDropRejected:he.func,onError:he.func,validator:he.func};const Av=Ra;var Ku={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ZS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ce(Ce({},bv),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,a=t.multiple,s=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,y=t.onDrop,w=t.onDropAccepted,S=t.onDropRejected,C=t.onFileDialogCancel,P=t.onFileDialogOpen,v=t.useFsAccessApi,_=t.autoFocus,g=t.preventDropOnDocument,E=t.noClick,A=t.noKeyboard,D=t.noDrag,x=t.noDragEventsBubbling,L=t.onError,N=t.validator,W=I.useMemo(function(){return NS(n)},[n]),Z=I.useMemo(function(){return $S(n)},[n]),ae=I.useMemo(function(){return typeof P=="function"?P:vp},[P]),re=I.useMemo(function(){return typeof C=="function"?C:vp},[C]),Y=I.useRef(null),te=I.useRef(null),$e=I.useReducer(e2,Ku),me=js($e,2),R=me[0],H=me[1],J=R.isFocused,oe=R.isFileDialogActive,de=I.useRef(typeof window<"u"&&window.isSecureContext&&v&&DS()),Qe=function(){!de.current&&oe&&setTimeout(function(){if(te.current){var Q=te.current.files;Q.length||(H({type:"closeDialog"}),re())}},300)};I.useEffect(function(){return window.addEventListener("focus",Qe,!1),function(){window.removeEventListener("focus",Qe,!1)}},[te,oe,re,de]);var we=I.useRef([]),it=function(Q){Y.current&&Y.current.contains(Q.target)||(Q.preventDefault(),we.current=[])};I.useEffect(function(){return g&&(document.addEventListener("dragover",hp,!1),document.addEventListener("drop",it,!1)),function(){g&&(document.removeEventListener("dragover",hp),document.removeEventListener("drop",it))}},[Y,g]),I.useEffect(function(){return!r&&_&&Y.current&&Y.current.focus(),function(){}},[Y,_,r]);var Ae=I.useCallback(function(U){L?L(U):console.error(U)},[L]),dt=I.useCallback(function(U){U.preventDefault(),U.persist(),dr(U),we.current=[].concat(HS(we.current),[U.target]),pl(U)&&Promise.resolve(i(U)).then(function(Q){if(!(ca(U)&&!x)){var Te=Q.length,Ne=Te>0&&MS({files:Q,accept:W,minSize:l,maxSize:o,multiple:a,maxFiles:s,validator:N}),Ue=Te>0&&!Ne;H({isDragAccept:Ne,isDragReject:Ue,isDragActive:!0,type:"setDraggedFiles"}),f&&f(U)}}).catch(function(Q){return Ae(Q)})},[i,f,Ae,x,W,l,o,a,s,N]),cr=I.useCallback(function(U){U.preventDefault(),U.persist(),dr(U);var Q=pl(U);if(Q&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return Q&&h&&h(U),!1},[h,x]),fr=I.useCallback(function(U){U.preventDefault(),U.persist(),dr(U);var Q=we.current.filter(function(Ne){return Y.current&&Y.current.contains(Ne)}),Te=Q.indexOf(U.target);Te!==-1&&Q.splice(Te,1),we.current=Q,!(Q.length>0)&&(H({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pl(U)&&p&&p(U))},[Y,p,x]),rn=I.useCallback(function(U,Q){var Te=[],Ne=[];U.forEach(function(Ue){var _n=xv(Ue,W),ln=js(_n,2),an=ln[0],Ht=ln[1],Rn=Pv(Ue,l,o),pr=js(Rn,2),zn=pr[0],Mt=pr[1],Ei=N?N(Ue):null;if(an&&zn&&!Ei)Te.push(Ue);else{var xi=[Ht,Mt];Ei&&(xi=xi.concat(Ei)),Ne.push({file:Ue,errors:xi.filter(function(Va){return Va})})}}),(!a&&Te.length>1||a&&s>=1&&Te.length>s)&&(Te.forEach(function(Ue){Ne.push({file:Ue,errors:[AS]})}),Te.splice(0)),H({acceptedFiles:Te,fileRejections:Ne,type:"setFiles"}),y&&y(Te,Ne,Q),Ne.length>0&&S&&S(Ne,Q),Te.length>0&&w&&w(Te,Q)},[H,a,W,l,o,s,y,w,S,N]),on=I.useCallback(function(U){U.preventDefault(),U.persist(),dr(U),we.current=[],pl(U)&&Promise.resolve(i(U)).then(function(Q){ca(U)&&!x||rn(Q,U)}).catch(function(Q){return Ae(Q)}),H({type:"reset"})},[i,rn,Ae,x]),bt=I.useCallback(function(){if(de.current){H({type:"openDialog"}),ae();var U={multiple:a,types:Z};window.showOpenFilePicker(U).then(function(Q){return i(Q)}).then(function(Q){rn(Q,null),H({type:"closeDialog"})}).catch(function(Q){RS(Q)?(re(Q),H({type:"closeDialog"})):zS(Q)?(de.current=!1,te.current?(te.current.value=null,te.current.click()):Ae(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ae(Q)});return}te.current&&(H({type:"openDialog"}),ae(),te.current.value=null,te.current.click())},[H,ae,re,v,rn,Ae,Z,a]),At=I.useCallback(function(U){!Y.current||!Y.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),bt())},[Y,bt]),No=I.useCallback(function(){H({type:"focus"})},[]),Ro=I.useCallback(function(){H({type:"blur"})},[]),Ci=I.useCallback(function(){E||(IS()?setTimeout(bt,0):bt())},[E,bt]),Nn=function(Q){return r?null:Q},ki=function(Q){return A?null:Nn(Q)},Dr=function(Q){return D?null:Nn(Q)},dr=function(Q){x&&Q.stopPropagation()},zo=I.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=U.refKey,Te=Q===void 0?"ref":Q,Ne=U.role,Ue=U.onKeyDown,_n=U.onFocus,ln=U.onBlur,an=U.onClick,Ht=U.onDragEnter,Rn=U.onDragOver,pr=U.onDragLeave,zn=U.onDrop,Mt=fa(U,BS);return Ce(Ce(Hu({onKeyDown:ki(fn(Ue,At)),onFocus:ki(fn(_n,No)),onBlur:ki(fn(ln,Ro)),onClick:Nn(fn(an,Ci)),onDragEnter:Dr(fn(Ht,dt)),onDragOver:Dr(fn(Rn,cr)),onDragLeave:Dr(fn(pr,fr)),onDrop:Dr(fn(zn,on)),role:typeof Ne=="string"&&Ne!==""?Ne:"presentation"},Te,Y),!r&&!A?{tabIndex:0}:{}),Mt)}},[Y,At,No,Ro,Ci,dt,cr,fr,on,A,D,r]),Wa=I.useCallback(function(U){U.stopPropagation()},[]),Ba=I.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=U.refKey,Te=Q===void 0?"ref":Q,Ne=U.onChange,Ue=U.onClick,_n=fa(U,VS),ln=Hu({accept:W,multiple:a,type:"file",style:{display:"none"},onChange:Nn(fn(Ne,on)),onClick:Nn(fn(Ue,Wa)),tabIndex:-1},Te,te);return Ce(Ce({},ln),_n)}},[te,n,a,on,r]);return Ce(Ce({},R),{},{isFocused:J&&!r,getRootProps:zo,getInputProps:Ba,rootRef:Y,inputRef:te,open:Nn(bt)})}function e2(e,t){switch(t.type){case"focus":return Ce(Ce({},e),{},{isFocused:!0});case"blur":return Ce(Ce({},e),{},{isFocused:!1});case"openDialog":return Ce(Ce({},Ku),{},{isFileDialogActive:!0});case"closeDialog":return Ce(Ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ce(Ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ce(Ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ce({},Ku);default:return e}}function vp(){}const Qu=({className:e="",...t})=>{let n=`border bg-transparent w-full py-1 min-h-10 ${e}`;return t.type!=="color"?n+=" px-2":n+=" px-1",M.jsx("input",{className:n,...t})};var Mv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yp=Ee.createContext&&Ee.createContext(Mv),t2=["attr","size","title"];function n2(e,t){if(e==null)return{};var n=r2(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;tEe.createElement(t.tag,pa({key:n},t.attr),jv(t.child)))}function wi(e){return t=>Ee.createElement(a2,da({attr:pa({},e.attr)},t),jv(e.child))}function a2(e){var t=n=>{var{attr:r,size:i,title:o}=e,l=n2(e,t2),a=i||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),Ee.createElement("svg",da({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:s,style:pa(pa({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ee.createElement("title",null,o),e.children)};return yp!==void 0?Ee.createElement(yp.Consumer,null,n=>t(n)):t(Mv)}function s2(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function u2(e){return wi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function c2(e){return wi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}const Fs=({className:e="",items:t,placeholder:n,emptyMessage:r,...i})=>{const o=`border bg-transparent px-2 py-2 min-h-10 ${e}`,[l,a]=I.useState(()=>n?[{value:"",label:n},...t]:t);return I.useEffect(()=>{a(n?[{value:"",label:n},...t]:t)},[t,n]),t.length===0?M.jsxs("span",{className:"min-h-10 text-gray-500 text-xs flex items-center gap-2 h-10",children:[M.jsx(s2,{}),r]}):M.jsx("select",{className:o,...i,children:l.map(s=>M.jsx("option",{value:s.value,children:s.label},s.value))})},Ui=({className:e="",lablel:t,children:n,...r})=>{const i=`flex flex-col gap-1 w-full ${e}`;return M.jsxs("div",{className:i,children:[M.jsx("label",{className:"text-sm",...r,children:t}),M.jsx("div",{children:n})]})};function f2(){const e=Fe(l=>l.viewer.speed),t=Fe(l=>l.viewer.animations),n=Fe(l=>l.viewer.themes),r=Fe(l=>l.viewer.backgroundColor),i=Fe(l=>l.viewer.activeAnimationId),o=Ao();return M.jsx("div",{className:"flex border p-4 bg-white rounded-lg h-full",children:M.jsxs("div",{className:"flex flex-col items-center gap-4 w-full",children:[M.jsx(Ui,{lablel:"backgroundColor",children:M.jsx(Qu,{type:"color",defaultValue:r,onChange:l=>{o(Xw(l.target.value))}})}),M.jsx(Ui,{lablel:"Speed",children:M.jsx(Qu,{type:"number",defaultValue:e,onChange:l=>{o(Gw(parseFloat(l.target.value)))}})}),M.jsx(Ui,{lablel:"Animation",children:M.jsx(Fs,{className:"w-full",onChange:l=>{o(Ll(l.target.value))},value:i,emptyMessage:"Single animation available for this file",placeholder:"Select an Animation",items:t.length===1?[]:t.map(l=>({value:l,label:l}))})}),M.jsx(Ui,{lablel:"Themes",children:M.jsx(Fs,{className:"w-full",onChange:l=>{o(tS(l.target.value))},placeholder:"Select a Theme",emptyMessage:"No themes available for this animation",items:n.map(l=>({value:l.id,label:l.id}))})}),M.jsx(Ui,{lablel:"Mode",children:M.jsx(Fs,{className:"w-full",onChange:l=>{o(eS(l.target.value))},defaultValue:"3",items:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"},{value:"bounce",label:"Bounce"},{value:"reverse-bounce",label:"Reverse Bounce"}]})})]})})}var d2=Object.create,Fv=Object.defineProperty,p2=Object.getOwnPropertyDescriptor,Iv=Object.getOwnPropertyNames,h2=Object.getPrototypeOf,m2=Object.prototype.hasOwnProperty,v2=(e,t)=>function(){return t||(0,e[Iv(e)[0]])((t={exports:{}}).exports,t),t.exports},y2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Iv(t))!m2.call(e,i)&&i!==n&&Fv(e,i,{get:()=>t[i],enumerable:!(r=p2(t,i))||r.enumerable});return e},g2=(e,t,n)=>(n=e!=null?d2(h2(e)):{},y2(t||!e||!e.__esModule?Fv(n,"default",{value:e,enumerable:!0}):n,e)),_2=v2({"../../node_modules/.pnpm/debounce@2.0.0/node_modules/debounce/index.js"(e,t){function n(r,i=100,o={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");const{immediate:l}=typeof o=="boolean"?{immediate:o}:o;let a,s,f,p,h;function y(){const S=Date.now()-p;if(S=0)f=setTimeout(y,i-S);else if(f=void 0,!l){const C=a,P=s;a=void 0,s=void 0,h=r.apply(C,P)}}const w=function(...S){if(a&&this!==a)throw new Error("Debounced method called with different contexts.");a=this,s=S,p=Date.now();const C=l&&!f;if(f||(f=setTimeout(y,i)),C){const P=a,v=s;a=void 0,s=void 0,h=r.apply(P,v)}return h};return w.clear=()=>{f&&(clearTimeout(f),f=void 0)},w.flush=()=>{if(!f)return;const S=a,C=s;a=void 0,s=void 0,h=r.apply(S,C),clearTimeout(f),f=void 0},w}t.exports.debounce=n,t.exports=n}}),w2=Object.defineProperty,S2=(e,t,n)=>t in e?w2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>(S2(e,typeof t!="symbol"?t+"":t,n),n),C2=class{requestAnimationFrame(t){return requestAnimationFrame(t)}cancelAnimationFrame(t){cancelAnimationFrame(t)}},k2=class{constructor(){tt(this,"_lastHandleId",0),tt(this,"_lastImmediate",null)}requestAnimationFrame(t){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{t(Date.now())}),this._lastHandleId}cancelAnimationFrame(t){this._lastImmediate&&clearImmediate(this._lastImmediate)}},E2=class{constructor(){tt(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new C2:new k2}requestAnimationFrame(t){return this._strategy.requestAnimationFrame(t)}cancelAnimationFrame(t){this._strategy.cancelAnimationFrame(t)}},_p=typeof window<"u"&&typeof window.document<"u",ha={name:"@lottiefiles/dotlottie-web",version:"0.18.1",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",engines:{node:">=18"},main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.0.1",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},x2=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){var n=t,r,i;n.ready=new Promise((u,c)=>{r=u,i=c});var o=Object.assign({},n),l="./this.program",a=!0,s="";function f(u){return n.locateFile?n.locateFile(u,s):s+u}typeof document<"u"&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s.indexOf("blob:")!==0?s=s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):s="";var p=n.print||console.log.bind(console),h=n.printErr||console.error.bind(console);Object.assign(n,o),o=null,n.arguments&&n.arguments,n.thisProgram&&(l=n.thisProgram),n.quit&&n.quit;var y;n.wasmBinary&&(y=n.wasmBinary),typeof WebAssembly!="object"&&oe("no native wasm support detected");var w,S=!1,C,P,v,_,g,E,A,D;function x(){var u=w.buffer;n.HEAP8=C=new Int8Array(u),n.HEAP16=v=new Int16Array(u),n.HEAPU8=P=new Uint8Array(u),n.HEAPU16=_=new Uint16Array(u),n.HEAP32=g=new Int32Array(u),n.HEAPU32=E=new Uint32Array(u),n.HEAPF32=A=new Float32Array(u),n.HEAPF64=D=new Float64Array(u)}var L=[],N=[],W=[];function Z(){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)Y(n.preRun.shift());rn(L)}function ae(){rn(N)}function re(){if(n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;)$e(n.postRun.shift());rn(W)}function Y(u){L.unshift(u)}function te(u){N.unshift(u)}function $e(u){W.unshift(u)}var me=0,R=null;function H(u){var c;me++,(c=n.monitorRunDependencies)==null||c.call(n,me)}function J(u){var d;if(me--,(d=n.monitorRunDependencies)==null||d.call(n,me),me==0&&R){var c=R;R=null,c()}}function oe(u){var d;(d=n.onAbort)==null||d.call(n,u),u="Aborted("+u+")",h(u),S=!0,u+=". Build with -sASSERTIONS for more info.";var c=new WebAssembly.RuntimeError(u);throw i(c),c}var de="data:application/octet-stream;base64,",Qe=u=>u.startsWith(de),we;we="DotLottiePlayer.wasm",Qe(we)||(we=f(we));function it(u){if(u==we&&y)return new Uint8Array(y);throw"both async and sync fetching of the wasm failed"}function Ae(u){return!y&&a&&typeof fetch=="function"?fetch(u,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+u+"'";return c.arrayBuffer()}).catch(()=>it(u)):Promise.resolve().then(()=>it(u))}function dt(u,c,d){return Ae(u).then(m=>WebAssembly.instantiate(m,c)).then(m=>m).then(d,m=>{h(`failed to asynchronously prepare wasm: ${m}`),oe(m)})}function cr(u,c,d,m){return!u&&typeof WebAssembly.instantiateStreaming=="function"&&!Qe(c)&&typeof fetch=="function"?fetch(c,{credentials:"same-origin"}).then(k=>{var T=WebAssembly.instantiateStreaming(k,d);return T.then(m,function(b){return h(`wasm streaming compile failed: ${b}`),h("falling back to ArrayBuffer instantiation"),dt(c,d,m)})}):dt(c,d,m)}function fr(){var u={a:Rg};function c(m,k){return Me=m.exports,w=Me.ba,x(),_f=Me.ea,te(Me.ca),J(),Me}H();function d(m){c(m.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(u,c)}catch(m){h(`Module.instantiateWasm callback failed with error: ${m}`),i(m)}return cr(y,we,u,d).catch(i),{}}var rn=u=>{for(;u.length>0;)u.shift()(n)};n.noExitRuntime;var on=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,bt=(u,c,d)=>{for(var m=c+d,k=c;u[k]&&!(k>=m);)++k;if(k-c>16&&u.buffer&&on)return on.decode(u.subarray(c,k));for(var T="";c>10,56320|z&1023)}}return T},At=(u,c)=>u?bt(P,u,c):"",No=(u,c,d,m)=>{oe(`Assertion failed: ${At(u)}, at: `+[c?At(c):"unknown filename",d,m?At(m):"unknown function"])};function Ro(u){this.excPtr=u,this.ptr=u-24,this.set_type=function(c){E[this.ptr+4>>2]=c},this.get_type=function(){return E[this.ptr+4>>2]},this.set_destructor=function(c){E[this.ptr+8>>2]=c},this.get_destructor=function(){return E[this.ptr+8>>2]},this.set_caught=function(c){c=c?1:0,C[this.ptr+12>>0]=c},this.get_caught=function(){return C[this.ptr+12>>0]!=0},this.set_rethrown=function(c){c=c?1:0,C[this.ptr+13>>0]=c},this.get_rethrown=function(){return C[this.ptr+13>>0]!=0},this.init=function(c,d){this.set_adjusted_ptr(0),this.set_type(c),this.set_destructor(d)},this.set_adjusted_ptr=function(c){E[this.ptr+16>>2]=c},this.get_adjusted_ptr=function(){return E[this.ptr+16>>2]},this.get_exception_ptr=function(){var c=bf(this.get_type());if(c)return E[this.excPtr>>2];var d=this.get_adjusted_ptr();return d!==0?d:this.excPtr}}var Ci=0,Nn=(u,c,d)=>{var m=new Ro(u);throw m.init(c,d),Ci=u,Ci};function ki(u,c,d){return 0}var Dr=(u,c)=>{},dr=u=>{for(var c=0,d=0;d=55296&&m<=57343?(c+=4,++d):c+=3}return c},zo=(u,c,d,m)=>{if(!(m>0))return 0;for(var k=d,T=d+m-1,b=0;b=55296&&O<=57343){var j=u.charCodeAt(++b);O=65536+((O&1023)<<10)|j&1023}if(O<=127){if(d>=T)break;c[d++]=O}else if(O<=2047){if(d+1>=T)break;c[d++]=192|O>>6,c[d++]=128|O&63}else if(O<=65535){if(d+2>=T)break;c[d++]=224|O>>12,c[d++]=128|O>>6&63,c[d++]=128|O&63}else{if(d+3>=T)break;c[d++]=240|O>>18,c[d++]=128|O>>12&63,c[d++]=128|O>>6&63,c[d++]=128|O&63}}return c[d]=0,d-k},Wa=(u,c,d)=>zo(u,P,c,d),Ba=(u,c)=>{};function U(u,c,d){return 0}var Q=(u,c,d,m)=>{};function Te(u,c,d,m){}var Ne=(u,c)=>{},Ue={},_n=u=>{for(;u.length;){var c=u.pop(),d=u.pop();d(c)}};function ln(u){return this.fromWireType(g[u>>2])}var an={},Ht={},Rn={},pr,zn=u=>{throw new pr(u)},Mt=(u,c,d)=>{u.forEach(function(O){Rn[O]=c});function m(O){var j=d(O);j.length!==u.length&&zn("Mismatched type converter count");for(var z=0;z{Ht.hasOwnProperty(O)?k[j]=Ht[O]:(T.push(O),an.hasOwnProperty(O)||(an[O]=[]),an[O].push(()=>{k[j]=Ht[O],++b,b===T.length&&m(k)}))}),T.length===0&&m(k)},Ei=u=>{var c=Ue[u];delete Ue[u];var d=c.rawConstructor,m=c.rawDestructor,k=c.fields,T=k.map(b=>b.getterReturnType).concat(k.map(b=>b.setterArgumentType));Mt([u],T,b=>{var O={};return k.forEach((j,z)=>{var V=j.fieldName,G=b[z],X=j.getter,ee=j.getterContext,je=b[z+k.length],Be=j.setter,ye=j.setterContext;O[V]={read:wt=>G.fromWireType(X(ee,wt)),write:(wt,F)=>{var K=[];Be(ye,wt,je.toWireType(K,F)),_n(K)}}}),[{name:c.name,fromWireType:j=>{var z={};for(var V in O)z[V]=O[V].read(j);return m(j),z},toWireType:(j,z)=>{for(var V in O)if(!(V in z))throw new TypeError(`Missing field: "${V}"`);var G=d();for(V in O)O[V].write(G,z[V]);return j!==null&&j.push(m,G),G},argPackAdvance:un,readValueFromPointer:ln,destructorFunction:m}]})},xi=(u,c,d,m,k)=>{},Va=()=>{for(var u=new Array(256),c=0;c<256;++c)u[c]=String.fromCharCode(c);ff=u},ff,We=u=>{for(var c="",d=u;P[d];)c+=ff[P[d++]];return c},$r,le=u=>{throw new $r(u)};function ay(u,c,d={}){var m=c.name;if(u||le(`type "${m}" must have a positive integer typeid pointer`),Ht.hasOwnProperty(u)){if(d.ignoreDuplicateRegistrations)return;le(`Cannot register type '${m}' twice`)}if(Ht[u]=c,delete Rn[u],an.hasOwnProperty(u)){var k=an[u];delete an[u],k.forEach(T=>T())}}function sn(u,c,d={}){if(!("argPackAdvance"in c))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ay(u,c,d)}var un=8,sy=(u,c,d,m)=>{c=We(c),sn(u,{name:c,fromWireType:function(k){return!!k},toWireType:function(k,T){return T?d:m},argPackAdvance:un,readValueFromPointer:function(k){return this.fromWireType(P[k])},destructorFunction:null})},uy=u=>({count:u.count,deleteScheduled:u.deleteScheduled,preservePointerOnDelete:u.preservePointerOnDelete,ptr:u.ptr,ptrType:u.ptrType,smartPtr:u.smartPtr,smartPtrType:u.smartPtrType}),Ha=u=>{function c(d){return d.$$.ptrType.registeredClass.name}le(c(u)+" instance already deleted")},Ka=!1,df=u=>{},cy=u=>{u.smartPtr?u.smartPtrType.rawDestructor(u.smartPtr):u.ptrType.registeredClass.rawDestructor(u.ptr)},pf=u=>{u.count.value-=1;var c=u.count.value===0;c&&cy(u)},hf=(u,c,d)=>{if(c===d)return u;if(d.baseClass===void 0)return null;var m=hf(u,c,d.baseClass);return m===null?null:d.downcast(m)},mf={},fy=()=>Object.keys(Oi).length,dy=()=>{var u=[];for(var c in Oi)Oi.hasOwnProperty(c)&&u.push(Oi[c]);return u},Pi=[],Qa=()=>{for(;Pi.length;){var u=Pi.pop();u.$$.deleteScheduled=!1,u.delete()}},Ti,py=u=>{Ti=u,Pi.length&&Ti&&Ti(Qa)},hy=()=>{n.getInheritedInstanceCount=fy,n.getLiveInheritedInstances=dy,n.flushPendingDeletes=Qa,n.setDelayFunction=py},Oi={},my=(u,c)=>{for(c===void 0&&le("ptr should not be undefined");u.baseClass;)c=u.upcast(c),u=u.baseClass;return c},vy=(u,c)=>(c=my(u,c),Oi[c]),Uo=(u,c)=>{(!c.ptrType||!c.ptr)&&zn("makeClassHandle requires ptr and ptrType");var d=!!c.smartPtrType,m=!!c.smartPtr;return d!==m&&zn("Both smartPtrType and smartPtr must be specified"),c.count={value:1},Li(Object.create(u,{$$:{value:c,writable:!0}}))};function yy(u){var c=this.getPointee(u);if(!c)return this.destructor(u),null;var d=vy(this.registeredClass,c);if(d!==void 0){if(d.$$.count.value===0)return d.$$.ptr=c,d.$$.smartPtr=u,d.clone();var m=d.clone();return this.destructor(u),m}function k(){return this.isSmartPointer?Uo(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:c,smartPtrType:this,smartPtr:u}):Uo(this.registeredClass.instancePrototype,{ptrType:this,ptr:u})}var T=this.registeredClass.getActualType(c),b=mf[T];if(!b)return k.call(this);var O;this.isConst?O=b.constPointerType:O=b.pointerType;var j=hf(c,this.registeredClass,O.registeredClass);return j===null?k.call(this):this.isSmartPointer?Uo(O.registeredClass.instancePrototype,{ptrType:O,ptr:j,smartPtrType:this,smartPtr:u}):Uo(O.registeredClass.instancePrototype,{ptrType:O,ptr:j})}var Li=u=>typeof FinalizationRegistry>"u"?(Li=c=>c,u):(Ka=new FinalizationRegistry(c=>{pf(c.$$)}),Li=c=>{var d=c.$$,m=!!d.smartPtr;if(m){var k={$$:d};Ka.register(c,k,c)}return c},df=c=>Ka.unregister(c),Li(u)),gy=()=>{Object.assign(Wo.prototype,{isAliasOf(u){if(!(this instanceof Wo)||!(u instanceof Wo))return!1;var c=this.$$.ptrType.registeredClass,d=this.$$.ptr;u.$$=u.$$;for(var m=u.$$.ptrType.registeredClass,k=u.$$.ptr;c.baseClass;)d=c.upcast(d),c=c.baseClass;for(;m.baseClass;)k=m.upcast(k),m=m.baseClass;return c===m&&d===k},clone(){if(this.$$.ptr||Ha(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var u=Li(Object.create(Object.getPrototypeOf(this),{$$:{value:uy(this.$$)}}));return u.$$.count.value+=1,u.$$.deleteScheduled=!1,u},delete(){this.$$.ptr||Ha(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&le("Object already scheduled for deletion"),df(this),pf(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ha(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&le("Object already scheduled for deletion"),Pi.push(this),Pi.length===1&&Ti&&Ti(Qa),this.$$.deleteScheduled=!0,this}})};function Wo(){}var bi=(u,c)=>Object.defineProperty(c,"name",{value:u}),vf=(u,c,d)=>{if(u[c].overloadTable===void 0){var m=u[c];u[c]=function(){return u[c].overloadTable.hasOwnProperty(arguments.length)||le(`Function '${d}' called with an invalid number of arguments (${arguments.length}) - expects one of (${u[c].overloadTable})!`),u[c].overloadTable[arguments.length].apply(this,arguments)},u[c].overloadTable=[],u[c].overloadTable[m.argCount]=m}},Ya=(u,c,d)=>{n.hasOwnProperty(u)?((d===void 0||n[u].overloadTable!==void 0&&n[u].overloadTable[d]!==void 0)&&le(`Cannot register public name '${u}' twice`),vf(n,u,u),n.hasOwnProperty(d)&&le(`Cannot register multiple overloads of a function with the same number of arguments (${d})!`),n[u].overloadTable[d]=c):(n[u]=c,d!==void 0&&(n[u].numArguments=d))},_y=48,wy=57,Sy=u=>{if(u===void 0)return"_unknown";u=u.replace(/[^a-zA-Z0-9_]/g,"$");var c=u.charCodeAt(0);return c>=_y&&c<=wy?`_${u}`:u};function Cy(u,c,d,m,k,T,b,O){this.name=u,this.constructor=c,this.instancePrototype=d,this.rawDestructor=m,this.baseClass=k,this.getActualType=T,this.upcast=b,this.downcast=O,this.pureVirtualFunctions=[]}var Ga=(u,c,d)=>{for(;c!==d;)c.upcast||le(`Expected null or instance of ${d.name}, got an instance of ${c.name}`),u=c.upcast(u),c=c.baseClass;return u};function ky(u,c){if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),0;c.$$||le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`);var d=c.$$.ptrType.registeredClass,m=Ga(c.$$.ptr,d,this.registeredClass);return m}function Ey(u,c){var d;if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),this.isSmartPointer?(d=this.rawConstructor(),u!==null&&u.push(this.rawDestructor,d),d):0;(!c||!c.$$)&&le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&c.$$.ptrType.isConst&&le(`Cannot convert argument of type ${c.$$.smartPtrType?c.$$.smartPtrType.name:c.$$.ptrType.name} to parameter type ${this.name}`);var m=c.$$.ptrType.registeredClass;if(d=Ga(c.$$.ptr,m,this.registeredClass),this.isSmartPointer)switch(c.$$.smartPtr===void 0&&le("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:c.$$.smartPtrType===this?d=c.$$.smartPtr:le(`Cannot convert argument of type ${c.$$.smartPtrType?c.$$.smartPtrType.name:c.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:d=c.$$.smartPtr;break;case 2:if(c.$$.smartPtrType===this)d=c.$$.smartPtr;else{var k=c.clone();d=this.rawShare(d,hr.toHandle(()=>k.delete())),u!==null&&u.push(this.rawDestructor,d)}break;default:le("Unsupporting sharing policy")}return d}function xy(u,c){if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),0;c.$$||le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`),c.$$.ptrType.isConst&&le(`Cannot convert argument of type ${c.$$.ptrType.name} to parameter type ${this.name}`);var d=c.$$.ptrType.registeredClass,m=Ga(c.$$.ptr,d,this.registeredClass);return m}function yf(u){return this.fromWireType(E[u>>2])}var Py=()=>{Object.assign(Ai.prototype,{getPointee(u){return this.rawGetPointee&&(u=this.rawGetPointee(u)),u},destructor(u){var c;(c=this.rawDestructor)==null||c.call(this,u)},argPackAdvance:un,readValueFromPointer:yf,deleteObject(u){u!==null&&u.delete()},fromWireType:yy})};function Ai(u,c,d,m,k,T,b,O,j,z,V){this.name=u,this.registeredClass=c,this.isReference=d,this.isConst=m,this.isSmartPointer=k,this.pointeeType=T,this.sharingPolicy=b,this.rawGetPointee=O,this.rawConstructor=j,this.rawShare=z,this.rawDestructor=V,!k&&c.baseClass===void 0?m?(this.toWireType=ky,this.destructorFunction=null):(this.toWireType=xy,this.destructorFunction=null):this.toWireType=Ey}var gf=(u,c,d)=>{n.hasOwnProperty(u)||zn("Replacing nonexistant public symbol"),n[u].overloadTable!==void 0&&d!==void 0?n[u].overloadTable[d]=c:(n[u]=c,n[u].argCount=d)},Ty=(u,c,d)=>{var m=n["dynCall_"+u];return d&&d.length?m.apply(null,[c].concat(d)):m.call(null,c)},_f,wn=u=>_f.get(u),Oy=(u,c,d)=>{if(u.includes("j"))return Ty(u,c,d);var m=wn(c).apply(null,d);return m},Ly=(u,c)=>{var d=[];return function(){return d.length=0,Object.assign(d,arguments),Oy(u,c,d)}},ot=(u,c)=>{u=We(u);function d(){return u.includes("j")?Ly(u,c):wn(c)}var m=d();return typeof m!="function"&&le(`unknown function pointer with signature ${u}: ${c}`),m},by=(u,c)=>{var d=bi(c,function(m){this.name=c,this.message=m;var k=new Error(m).stack;k!==void 0&&(this.stack=this.toString()+` -`+k.replace(/^Error(:[^\n]*)?\n/,""))});return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},d},wf,Sf=u=>{var c=Lf(u),d=We(c);return Sn(c),d},Bo=(u,c)=>{var d=[],m={};function k(T){if(!m[T]&&!Ht[T]){if(Rn[T]){Rn[T].forEach(k);return}d.push(T),m[T]=!0}}throw c.forEach(k),new wf(`${u}: `+d.map(Sf).join([", "]))},Ay=(u,c,d,m,k,T,b,O,j,z,V,G,X)=>{V=We(V),T=ot(k,T),O&&(O=ot(b,O)),z&&(z=ot(j,z)),X=ot(G,X);var ee=Sy(V);Ya(ee,function(){Bo(`Cannot construct ${V} due to unbound types`,[m])}),Mt([u,c,d],m?[m]:[],function(je){var Be;je=je[0];var ye,wt;m?(ye=je.registeredClass,wt=ye.instancePrototype):wt=Wo.prototype;var F=bi(V,function(){if(Object.getPrototypeOf(this)!==K)throw new $r("Use 'new' to construct "+V);if(ue.constructor_body===void 0)throw new $r(V+" has no accessible constructor");var jf=ue.constructor_body[arguments.length];if(jf===void 0)throw new $r(`Tried to invoke ctor of ${V} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(ue.constructor_body).toString()}) parameters instead!`);return jf.apply(this,arguments)}),K=Object.create(wt,{constructor:{value:F}});F.prototype=K;var ue=new Cy(V,F,K,X,ye,T,O,z);ue.baseClass&&((Be=ue.baseClass).__derivedClasses??(Be.__derivedClasses=[]),ue.baseClass.__derivedClasses.push(ue));var Ve=new Ai(V,ue,!0,!1,!1),mr=new Ai(V+"*",ue,!1,!1,!1),Ko=new Ai(V+" const*",ue,!1,!0,!1);return mf[u]={pointerType:mr,constPointerType:Ko},gf(ee,F),[Ve,mr,Ko]})},Ja=(u,c)=>{for(var d=[],m=0;m>2]);return d};function My(u){for(var c=1;c{var b=Ja(c,d);k=ot(m,k),Mt([],[u],function(O){O=O[0];var j=`constructor ${O.name}`;if(O.registeredClass.constructor_body===void 0&&(O.registeredClass.constructor_body=[]),O.registeredClass.constructor_body[c-1]!==void 0)throw new $r(`Cannot register multiple constructors with identical number of parameters (${c-1}) for class '${O.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return O.registeredClass.constructor_body[c-1]=()=>{Bo(`Cannot construct ${O.name} due to unbound types`,b)},Mt([],b,z=>(z.splice(1,0,null),O.registeredClass.constructor_body[c-1]=Xa(j,z,null,k,T),[])),[]})},Cf=u=>{u=u.trim();let c=u.indexOf("(");return c!==-1?u.substr(0,c):u},Fy=(u,c,d,m,k,T,b,O,j)=>{var z=Ja(d,m);c=We(c),c=Cf(c),T=ot(k,T),Mt([],[u],function(V){V=V[0];var G=`${V.name}.${c}`;c.startsWith("@@")&&(c=Symbol[c.substring(2)]),O&&V.registeredClass.pureVirtualFunctions.push(c);function X(){Bo(`Cannot call ${G} due to unbound types`,z)}var ee=V.registeredClass.instancePrototype,je=ee[c];return je===void 0||je.overloadTable===void 0&&je.className!==V.name&&je.argCount===d-2?(X.argCount=d-2,X.className=V.name,ee[c]=X):(vf(ee,c,G),ee[c].overloadTable[d-2]=X),Mt([],z,function(Be){var ye=Xa(G,Be,V,T,b);return ee[c].overloadTable===void 0?(ye.argCount=d-2,ee[c]=ye):ee[c].overloadTable[d-2]=ye,[]}),[]})};function Iy(){Object.assign(kf.prototype,{get(u){return this.allocated[u]},has(u){return this.allocated[u]!==void 0},allocate(u){var c=this.freelist.pop()||this.allocated.length;return this.allocated[c]=u,c},free(u){this.allocated[u]=void 0,this.freelist.push(u)}})}function kf(){this.allocated=[void 0],this.freelist=[]}var jt=new kf,qa=u=>{u>=jt.reserved&&--jt.get(u).refcount===0&&jt.free(u)},Dy=()=>{for(var u=0,c=jt.reserved;c{jt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),jt.reserved=jt.allocated.length,n.count_emval_handles=Dy},hr={toValue:u=>(u||le("Cannot use deleted val. handle = "+u),jt.get(u).value),toHandle:u=>{switch(u){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return jt.allocate({refcount:1,value:u})}}},Ny=(u,c)=>{c=We(c),sn(u,{name:c,fromWireType:d=>{var m=hr.toValue(d);return qa(d),m},toWireType:(d,m)=>hr.toHandle(m),argPackAdvance:un,readValueFromPointer:ln,destructorFunction:null})},Ry=(u,c,d)=>{switch(c){case 1:return d?function(m){return this.fromWireType(C[m>>0])}:function(m){return this.fromWireType(P[m>>0])};case 2:return d?function(m){return this.fromWireType(v[m>>1])}:function(m){return this.fromWireType(_[m>>1])};case 4:return d?function(m){return this.fromWireType(g[m>>2])}:function(m){return this.fromWireType(E[m>>2])};default:throw new TypeError(`invalid integer width (${c}): ${u}`)}},zy=(u,c,d,m)=>{c=We(c);function k(){}k.values={},sn(u,{name:c,constructor:k,fromWireType:function(T){return this.constructor.values[T]},toWireType:(T,b)=>b.value,argPackAdvance:un,readValueFromPointer:Ry(c,d,m),destructorFunction:null}),Ya(c,k)},Za=(u,c)=>{var d=Ht[u];return d===void 0&&le(c+" has unknown type "+Sf(u)),d},Uy=(u,c,d)=>{var m=Za(u,"enum");c=We(c);var k=m.constructor,T=Object.create(m.constructor.prototype,{value:{value:d},constructor:{value:bi(`${m.name}_${c}`,function(){})}});k.values[d]=T,k[c]=T},es=u=>{if(u===null)return"null";var c=typeof u;return c==="object"||c==="array"||c==="function"?u.toString():""+u},Wy=(u,c)=>{switch(c){case 4:return function(d){return this.fromWireType(A[d>>2])};case 8:return function(d){return this.fromWireType(D[d>>3])};default:throw new TypeError(`invalid float width (${c}): ${u}`)}},By=(u,c,d)=>{c=We(c),sn(u,{name:c,fromWireType:m=>m,toWireType:(m,k)=>k,argPackAdvance:un,readValueFromPointer:Wy(c,d),destructorFunction:null})},Vy=(u,c,d,m,k,T,b)=>{var O=Ja(c,d);u=We(u),u=Cf(u),k=ot(m,k),Ya(u,function(){Bo(`Cannot call ${u} due to unbound types`,O)},c-1),Mt([],O,function(j){var z=[j[0],null].concat(j.slice(1));return gf(u,Xa(u,z,null,k,T),c-1),[]})},Hy=(u,c,d)=>{switch(c){case 1:return d?m=>C[m>>0]:m=>P[m>>0];case 2:return d?m=>v[m>>1]:m=>_[m>>1];case 4:return d?m=>g[m>>2]:m=>E[m>>2];default:throw new TypeError(`invalid integer width (${c}): ${u}`)}},Ky=(u,c,d,m,k)=>{c=We(c);var T=V=>V;if(m===0){var b=32-8*d;T=V=>V<>>b}var O=c.includes("unsigned"),j=(V,G)=>{},z;O?z=function(V,G){return j(G,this.name),G>>>0}:z=function(V,G){return j(G,this.name),G},sn(u,{name:c,fromWireType:T,toWireType:z,argPackAdvance:un,readValueFromPointer:Hy(c,d,m!==0),destructorFunction:null})},Qy=(u,c,d)=>{var m=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],k=m[c];function T(b){var O=E[b>>2],j=E[b+4>>2];return new k(C.buffer,j,O)}d=We(d),sn(u,{name:d,fromWireType:T,argPackAdvance:un,readValueFromPointer:T},{ignoreDuplicateRegistrations:!0})},Yy=(u,c,d,m,k,T,b,O,j,z,V,G)=>{d=We(d),T=ot(k,T),O=ot(b,O),z=ot(j,z),G=ot(V,G),Mt([u],[c],function(X){X=X[0];var ee=new Ai(d,X.registeredClass,!1,!1,!0,X,m,T,O,z,G);return[ee]})},Gy=(u,c)=>{c=We(c);var d=c==="std::string";sn(u,{name:c,fromWireType(m){var k=E[m>>2],T=m+4,b;if(d)for(var O=T,j=0;j<=k;++j){var z=T+j;if(j==k||P[z]==0){var V=z-O,G=At(O,V);b===void 0?b=G:(b+="\0",b+=G),O=z+1}}else{for(var X=new Array(k),j=0;j>2]=T,d&&b)Wa(k,j,T+1);else if(b)for(var z=0;z255&&(Sn(j),le("String has UTF-16 code units that do not fit in 8 bits")),P[j+z]=V}else for(var z=0;z{for(var d=u,m=d>>1,k=m+c/2;!(m>=k)&&_[m];)++m;if(d=m<<1,d-u>32&&Ef)return Ef.decode(P.subarray(u,d));for(var T="",b=0;!(b>=c/2);++b){var O=v[u+b*2>>1];if(O==0)break;T+=String.fromCharCode(O)}return T},Xy=(u,c,d)=>{if(d??(d=2147483647),d<2)return 0;d-=2;for(var m=c,k=d>1]=b,c+=2}return v[c>>1]=0,c-m},qy=u=>u.length*2,Zy=(u,c)=>{for(var d=0,m="";!(d>=c/4);){var k=g[u+d*4>>2];if(k==0)break;if(++d,k>=65536){var T=k-65536;m+=String.fromCharCode(55296|T>>10,56320|T&1023)}else m+=String.fromCharCode(k)}return m},eg=(u,c,d)=>{if(d??(d=2147483647),d<4)return 0;for(var m=c,k=m+d-4,T=0;T=55296&&b<=57343){var O=u.charCodeAt(++T);b=65536+((b&1023)<<10)|O&1023}if(g[c>>2]=b,c+=4,c+4>k)break}return g[c>>2]=0,c-m},tg=u=>{for(var c=0,d=0;d=55296&&m<=57343&&++d,c+=4}return c},ng=(u,c,d)=>{d=We(d);var m,k,T,b,O;c===2?(m=Jy,k=Xy,b=qy,T=()=>_,O=1):c===4&&(m=Zy,k=eg,b=tg,T=()=>E,O=2),sn(u,{name:d,fromWireType:j=>{for(var z=E[j>>2],V=T(),G,X=j+4,ee=0;ee<=z;++ee){var je=j+4+ee*c;if(ee==z||V[je>>O]==0){var Be=je-X,ye=m(X,Be);G===void 0?G=ye:(G+="\0",G+=ye),X=je+c}}return Sn(j),G},toWireType:(j,z)=>{typeof z!="string"&&le(`Cannot pass non-string to C++ string type ${d}`);var V=b(z),G=rs(4+V+c);return E[G>>2]=V>>O,k(z,G+4,V+c),j!==null&&j.push(Sn,G),G},argPackAdvance:un,readValueFromPointer:ln,destructorFunction(j){Sn(j)}})},rg=(u,c,d,m,k,T)=>{Ue[u]={name:We(c),rawConstructor:ot(d,m),rawDestructor:ot(k,T),fields:[]}},ig=(u,c,d,m,k,T,b,O,j,z)=>{Ue[u].fields.push({fieldName:We(c),getterReturnType:d,getter:ot(m,k),getterContext:T,setterArgumentType:b,setter:ot(O,j),setterContext:z})},og=(u,c)=>{c=We(c),sn(u,{isVoid:!0,name:c,argPackAdvance:0,fromWireType:()=>{},toWireType:(d,m)=>{}})},lg=()=>{throw 1/0},ts=[],ag=(u,c,d,m)=>(u=ts[u],c=hr.toValue(c),u(null,c,d,m)),sg=u=>{var c=ts.length;return ts.push(u),c},ug=(u,c)=>{for(var d=new Array(u),m=0;m>2],"parameter "+m);return d},cg=Reflect.construct,fg=(u,c,d)=>{var m=[],k=u.toWireType(m,d);return m.length&&(E[c>>2]=hr.toHandle(m)),k},dg=(u,c,d)=>{var m=ug(u,c),k=m.shift();u--;var T=new Array(u),b=(j,z,V,G)=>{var Be,ye;for(var X=0,ee=0;eej.name).join(", ")}) => ${k.name}>`;return sg(bi(O,b))},pg=u=>{u>4&&(jt.get(u).refcount+=1)},hg=u=>{var c=hr.toValue(u);_n(c),qa(u)},mg=(u,c)=>{u=Za(u,"_emval_take_value");var d=u.readValueFromPointer(c);return hr.toHandle(d)},vg=()=>{oe("")},xf;xf=()=>performance.now();var yg=(u,c,d)=>P.copyWithin(u,c,c+d),gg=()=>2147483648,_g=u=>{var c=w.buffer,d=(u-c.byteLength+65535)/65536;try{return w.grow(d),x(),1}catch{}},wg=u=>{var c=P.length;u>>>=0;var d=gg();if(u>d)return!1;for(var m=(j,z)=>j+(z-j%z)%z,k=1;k<=4;k*=2){var T=c*(1+.2/k);T=Math.min(T,u+100663296);var b=Math.min(d,m(Math.max(u,T),65536)),O=_g(b);if(O)return!0}return!1},ns={},Sg=()=>l||"./this.program",Mi=()=>{if(!Mi.strings){var u=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",c={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:u,_:Sg()};for(var d in ns)ns[d]===void 0?delete c[d]:c[d]=ns[d];var m=[];for(var d in c)m.push(`${d}=${c[d]}`);Mi.strings=m}return Mi.strings},Cg=(u,c)=>{for(var d=0;d>0]=u.charCodeAt(d);C[c>>0]=0},kg=(u,c)=>{var d=0;return Mi().forEach((m,k)=>{var T=c+d;E[u+k*4>>2]=T,Cg(m,T),d+=m.length+1}),0},Eg=(u,c)=>{var d=Mi();E[u>>2]=d.length;var m=0;return d.forEach(k=>m+=k.length+1),E[c>>2]=m,0},xg=u=>52,Pg=(u,c,d,m)=>52;function Tg(u,c,d,m,k){return 70}var Og=[null,[],[]],Lg=(u,c)=>{var d=Og[u];c===0||c===10?((u===1?p:h)(bt(d,0)),d.length=0):d.push(c)},bg=(u,c,d,m)=>{for(var k=0,T=0;T>2],O=E[c+4>>2];c+=8;for(var j=0;j>2]=k,0},Ag=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return u=>crypto.getRandomValues(u);oe("initRandomDevice")},Pf=u=>(Pf=Ag())(u),Mg=(u,c)=>(Pf(P.subarray(u,u+c)),0),Vo=u=>u%4===0&&(u%100!==0||u%400===0),jg=(u,c)=>{for(var d=0,m=0;m<=c;d+=u[m++]);return d},Tf=[31,29,31,30,31,30,31,31,30,31,30,31],Of=[31,28,31,30,31,30,31,31,30,31,30,31],Fg=(u,c)=>{for(var d=new Date(u.getTime());c>0;){var m=Vo(d.getFullYear()),k=d.getMonth(),T=(m?Tf:Of)[k];if(c>T-d.getDate())c-=T-d.getDate()+1,d.setDate(1),k<11?d.setMonth(k+1):(d.setMonth(0),d.setFullYear(d.getFullYear()+1));else return d.setDate(d.getDate()+c),d}return d};function Ig(u,c,d){var m=d>0?d:dr(u)+1,k=new Array(m),T=zo(u,k,0,k.length);return c&&(k.length=T),k}var Dg=(u,c)=>{C.set(u,c)},$g=(u,c,d,m)=>{var k=E[m+40>>2],T={tm_sec:g[m>>2],tm_min:g[m+4>>2],tm_hour:g[m+8>>2],tm_mday:g[m+12>>2],tm_mon:g[m+16>>2],tm_year:g[m+20>>2],tm_wday:g[m+24>>2],tm_yday:g[m+28>>2],tm_isdst:g[m+32>>2],tm_gmtoff:g[m+36>>2],tm_zone:k?At(k):""},b=At(d),O={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var j in O)b=b.replace(new RegExp(j,"g"),O[j]);var z=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],V=["January","February","March","April","May","June","July","August","September","October","November","December"];function G(F,K,ue){for(var Ve=typeof F=="number"?F.toString():F||"";Ve.length0?1:0}var Ve;return(Ve=ue(F.getFullYear()-K.getFullYear()))===0&&(Ve=ue(F.getMonth()-K.getMonth()))===0&&(Ve=ue(F.getDate()-K.getDate())),Ve}function je(F){switch(F.getDay()){case 0:return new Date(F.getFullYear()-1,11,29);case 1:return F;case 2:return new Date(F.getFullYear(),0,3);case 3:return new Date(F.getFullYear(),0,2);case 4:return new Date(F.getFullYear(),0,1);case 5:return new Date(F.getFullYear()-1,11,31);case 6:return new Date(F.getFullYear()-1,11,30)}}function Be(F){var K=Fg(new Date(F.tm_year+1900,0,1),F.tm_yday),ue=new Date(K.getFullYear(),0,4),Ve=new Date(K.getFullYear()+1,0,4),mr=je(ue),Ko=je(Ve);return ee(mr,K)<=0?ee(Ko,K)<=0?K.getFullYear()+1:K.getFullYear():K.getFullYear()-1}var ye={"%a":F=>z[F.tm_wday].substring(0,3),"%A":F=>z[F.tm_wday],"%b":F=>V[F.tm_mon].substring(0,3),"%B":F=>V[F.tm_mon],"%C":F=>{var K=F.tm_year+1900;return X(K/100|0,2)},"%d":F=>X(F.tm_mday,2),"%e":F=>G(F.tm_mday,2," "),"%g":F=>Be(F).toString().substring(2),"%G":F=>Be(F),"%H":F=>X(F.tm_hour,2),"%I":F=>{var K=F.tm_hour;return K==0?K=12:K>12&&(K-=12),X(K,2)},"%j":F=>X(F.tm_mday+jg(Vo(F.tm_year+1900)?Tf:Of,F.tm_mon-1),3),"%m":F=>X(F.tm_mon+1,2),"%M":F=>X(F.tm_min,2),"%n":()=>` -`,"%p":F=>F.tm_hour>=0&&F.tm_hour<12?"AM":"PM","%S":F=>X(F.tm_sec,2),"%t":()=>" ","%u":F=>F.tm_wday||7,"%U":F=>{var K=F.tm_yday+7-F.tm_wday;return X(Math.floor(K/7),2)},"%V":F=>{var K=Math.floor((F.tm_yday+7-(F.tm_wday+6)%7)/7);if((F.tm_wday+371-F.tm_yday-2)%7<=2&&K++,K){if(K==53){var ue=(F.tm_wday+371-F.tm_yday)%7;ue!=4&&(ue!=3||!Vo(F.tm_year))&&(K=1)}}else{K=52;var Ve=(F.tm_wday+7-F.tm_yday-1)%7;(Ve==4||Ve==5&&Vo(F.tm_year%400-1))&&K++}return X(K,2)},"%w":F=>F.tm_wday,"%W":F=>{var K=F.tm_yday+7-(F.tm_wday+6)%7;return X(Math.floor(K/7),2)},"%y":F=>(F.tm_year+1900).toString().substring(2),"%Y":F=>F.tm_year+1900,"%z":F=>{var K=F.tm_gmtoff,ue=K>=0;return K=Math.abs(K)/60,K=K/60*100+K%60,(ue?"+":"-")+("0000"+K).slice(-4)},"%Z":F=>F.tm_zone,"%%":()=>"%"};b=b.replace(/%%/g,"\0\0");for(var j in ye)b.includes(j)&&(b=b.replace(new RegExp(j,"g"),ye[j](T)));b=b.replace(/\0\0/g,"%");var wt=Ig(b,!1);return wt.length>c?0:(Dg(wt,u),wt.length-1)},Ng=(u,c,d,m,k)=>$g(u,c,d,m);pr=n.InternalError=class extends Error{constructor(u){super(u),this.name="InternalError"}},Va(),$r=n.BindingError=class extends Error{constructor(u){super(u),this.name="BindingError"}},gy(),hy(),Py(),wf=n.UnboundTypeError=by(Error,"UnboundTypeError"),Iy(),$y();var Rg={a:No,j:Nn,z:ki,O:Dr,L:Ba,Q:U,M:Q,y:Te,N:Ne,t:Ei,F:xi,V:sy,u:Ay,s:jy,c:Fy,U:Ny,v:zy,h:Uy,A:By,aa:Vy,i:Ky,d:Qy,$:Yy,B:Gy,r:ng,o:rg,g:ig,W:og,I:lg,_:ag,H:qa,Z:dg,p:pg,Y:hg,m:mg,C:vg,f:xf,R:yg,K:wg,S:kg,T:Eg,q:xg,x:Pg,E:Tg,P:bg,X:Mg,n:Vg,e:Bg,k:Wg,w:Hg,l:zg,b:Ug,G:Kg,D:Qg,J:Ng},Me=fr(),rs=u=>(rs=Me.da)(u),Sn=u=>(Sn=Me.fa)(u),Lf=u=>(Lf=Me.ga)(u),Cn=(u,c)=>(Cn=Me.ha)(u,c),kn=()=>(kn=Me.ia)(),En=u=>(En=Me.ja)(u),bf=u=>(bf=Me.ka)(u);n.dynCall_iijj=(u,c,d,m,k,T)=>(n.dynCall_iijj=Me.la)(u,c,d,m,k,T),n.dynCall_vijj=(u,c,d,m,k,T)=>(n.dynCall_vijj=Me.ma)(u,c,d,m,k,T),n.dynCall_jii=(u,c,d)=>(n.dynCall_jii=Me.na)(u,c,d);var Af=n.dynCall_viiij=(u,c,d,m,k,T)=>(Af=n.dynCall_viiij=Me.oa)(u,c,d,m,k,T);n.dynCall_jiji=(u,c,d,m,k)=>(n.dynCall_jiji=Me.pa)(u,c,d,m,k),n.dynCall_viijii=(u,c,d,m,k,T,b)=>(n.dynCall_viijii=Me.qa)(u,c,d,m,k,T,b),n.dynCall_iiiiij=(u,c,d,m,k,T,b)=>(n.dynCall_iiiiij=Me.ra)(u,c,d,m,k,T,b),n.dynCall_iiiiijj=(u,c,d,m,k,T,b,O,j)=>(n.dynCall_iiiiijj=Me.sa)(u,c,d,m,k,T,b,O,j),n.dynCall_iiiiiijj=(u,c,d,m,k,T,b,O,j,z)=>(n.dynCall_iiiiiijj=Me.ta)(u,c,d,m,k,T,b,O,j,z);function zg(u,c){var d=kn();try{wn(u)(c)}catch(m){if(En(d),m!==m+0)throw m;Cn(1,0)}}function Ug(u,c,d){var m=kn();try{wn(u)(c,d)}catch(k){if(En(m),k!==k+0)throw k;Cn(1,0)}}function Wg(u,c,d,m){var k=kn();try{return wn(u)(c,d,m)}catch(T){if(En(k),T!==T+0)throw T;Cn(1,0)}}function Bg(u,c,d){var m=kn();try{return wn(u)(c,d)}catch(k){if(En(m),k!==k+0)throw k;Cn(1,0)}}function Vg(u,c){var d=kn();try{return wn(u)(c)}catch(m){if(En(d),m!==m+0)throw m;Cn(1,0)}}function Hg(u,c,d,m,k,T){var b=kn();try{return wn(u)(c,d,m,k,T)}catch(O){if(En(b),O!==O+0)throw O;Cn(1,0)}}function Kg(u,c,d,m,k){var T=kn();try{wn(u)(c,d,m,k)}catch(b){if(En(T),b!==b+0)throw b;Cn(1,0)}}function Qg(u,c,d,m,k,T){var b=kn();try{Af(u,c,d,m,k,T)}catch(O){if(En(b),O!==O+0)throw O;Cn(1,0)}}var Ho;R=function u(){Ho||Mf(),Ho||(R=u)};function Mf(){if(me>0||(Z(),me>0))return;function u(){Ho||(Ho=!0,n.calledRun=!0,!S&&(ae(),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),re()))}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),u()},1)):u()}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Mf(),t.ready}})(),P2=x2,ma=class{constructor(){throw new Error("RendererLoader is a static class and cannot be instantiated.")}static async _tryLoad(t){return await P2({locateFile:()=>t})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async t=>{let n=`https://unpkg.com/${ha.name}@${ha.version}/dist/dotlottie-player.wasm`;console.warn(`Trying backup URL for WASM loading: ${n}`);try{return await this._tryLoad(n)}catch(r){throw console.error(`Both primary and backup WASM URLs failed. Primary error: ${t.message}, Backup error: ${r.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(t){this._wasmURL=t,this._ModulePromise=null}};tt(ma,"_ModulePromise",null),tt(ma,"_wasmURL",`https://cdn.jsdelivr.net/npm/${ha.name}@${ha.version}/dist/dotlottie-player.wasm`);var T2=class{constructor(){tt(this,"_eventListeners",new Map)}addEventListener(t,n){let r=this._eventListeners.get(t);r||(r=new Set,this._eventListeners.set(t,r)),r.add(n)}removeEventListener(t,n){let r=this._eventListeners.get(t);r&&(n?(r.delete(n),r.size===0&&this._eventListeners.delete(t)):this._eventListeners.delete(t))}dispatch(t){var n;(n=this._eventListeners.get(t.type))==null||n.forEach(r=>r(t))}removeAllEventListeners(){this._eventListeners.clear()}},Is=(e,t)=>e==="reverse"?t.Mode.Reverse:e==="bounce"?t.Mode.Bounce:e==="reverse-bounce"?t.Mode.ReverseBounce:t.Mode.Forward,Ds=(e,t)=>e==="contain"?t.Fit.Contain:e==="cover"?t.Fit.Cover:e==="fill"?t.Fit.Fill:e==="fit-height"?t.Fit.FitHeight:e==="fit-width"?t.Fit.FitWidth:t.Fit.None,$s=(e,t)=>{let n=new t.VectorFloat;return n.push_back(e[0]),n.push_back(e[1]),n},Ns=(e,t)=>{let n=new t.VectorFloat;return e.length!==2||(n.push_back(e[0]),n.push_back(e[1])),n},O2=class{constructor(t){tt(this,"_canvas"),tt(this,"_context"),tt(this,"_eventManager"),tt(this,"_animationFrameId",null),tt(this,"_frameManager"),tt(this,"_dotLottieCore",null),tt(this,"_wasmModule",null),tt(this,"_renderConfig",{}),tt(this,"_isFrozen",!1),tt(this,"_backgroundColor",null),this._canvas=t.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new T2,this._frameManager=new E2,this._renderConfig=t.renderConfig??{},ma.load().then(n=>{this._wasmModule=n,this._dotLottieCore=new n.DotLottiePlayer({autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:Is(t.mode??"forward",n),segment:Ns(t.segment??[],n),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:t.layout?{align:$s(t.layout.align,n),fit:Ds(t.layout.fit,n)}:n.createDefaultLayout()}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(n=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${n}`)})})}_loadFromSrc(t){async function n(){let r=await fetch(t);if(!r.ok)throw new Error(`Failed to fetch the animation data from URL: ${t}. ${r.status}: ${r.statusText}`);let i=r.headers.get("content-type"),o;return["application/json","text/plain"].includes(i??"")?o=await r.text():o=await r.arrayBuffer(),o}n().then(r=>{this._loadFromData(r)}).catch(r=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${t}. ${r}`)})})}_loadFromData(t){if(this._dotLottieCore===null)return;let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t=="string")i=this._dotLottieCore.loadAnimationData(t,n,r);else if(t instanceof ArrayBuffer)i=this._dotLottieCore.loadDotLottieData(t,n,r);else if(typeof t=="object")i=this._dotLottieCore.loadAnimationData(JSON.stringify(t),n,r);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}i?(this._eventManager.dispatch({type:"load"}),_p&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get layout(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.config().layout;if(t)return{align:[t.align.get(0),t.align.get(1)],fit:(()=>{var r,i,o,l,a,s;switch(t.fit){case((r=this._wasmModule)==null?void 0:r.Fit.Contain):return"contain";case((i=this._wasmModule)==null?void 0:i.Fit.Cover):return"cover";case((o=this._wasmModule)==null?void 0:o.Fit.Fill):return"fill";case((l=this._wasmModule)==null?void 0:l.Fit.FitHeight):return"fit-height";case((a=this._wasmModule)==null?void 0:a.Fit.FitWidth):return"fit-width";case((s=this._wasmModule)==null?void 0:s.Fit.None):return"none";default:return"contain"}})()}}get marker(){var t;return(t=this._dotLottieCore)==null?void 0:t.config().marker}get manifest(){var t;try{let n=(t=this._dotLottieCore)==null?void 0:t.manifestString();if(this._dotLottieCore===null||!n)return null;let r=JSON.parse(n);return Object.keys(r).length===0?null:r}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.config().segment;if(t&&t.size()===2)return[t.get(0),t.get(1)]}get loop(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().loopAnimation)??!1}get mode(){var n,r,i,o;let t=(n=this._dotLottieCore)==null?void 0:n.config().mode;return t===((r=this._wasmModule)==null?void 0:r.Mode.Reverse)?"reverse":t===((i=this._wasmModule)==null?void 0:i.Mode.Bounce)?"bounce":t===((o=this._wasmModule)==null?void 0:o.Mode.ReverseBounce)?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().autoplay)??!1}get useFrameInterpolation(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().useFrameInterpolation)??!1}get speed(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().speed)??0}get isLoaded(){var t;return((t=this._dotLottieCore)==null?void 0:t.isLoaded())??!1}get isPlaying(){var t;return((t=this._dotLottieCore)==null?void 0:t.isPlaying())??!1}get isPaused(){var t;return((t=this._dotLottieCore)==null?void 0:t.isPaused())??!1}get isStopped(){var t;return((t=this._dotLottieCore)==null?void 0:t.isStopped())??!1}get currentFrame(){var t;return((t=this._dotLottieCore)==null?void 0:t.currentFrame())??0}get loopCount(){var t;return((t=this._dotLottieCore)==null?void 0:t.loopCount())??0}get totalFrames(){var t;return((t=this._dotLottieCore)==null?void 0:t.totalFrames())??0}get duration(){var t;return((t=this._dotLottieCore)==null?void 0:t.duration())??0}load(t){this._dotLottieCore===null||this._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:Is(t.mode??"forward",this._wasmModule),segment:Ns(t.segment??[],this._wasmModule),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:t.layout?{align:$s(t.layout.align,this._wasmModule),fit:Ds(t.layout.fit,this._wasmModule)}:this._wasmModule.createDefaultLayout()}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),this.setBackgroundColor(t.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let t=this._dotLottieCore.buffer(),n=this._context.createImageData(this._canvas.width,this._canvas.height);return n.data.set(t),this._context.putImageData(n,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let t=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(t)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let t=this._dotLottieCore.play();this._isFrozen=!1,t&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(t){this._dotLottieCore===null||t<0||t>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(t)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:t})}setBackgroundColor(t){this._dotLottieCore!==null&&(this._canvas instanceof HTMLCanvasElement&&(this._canvas.style.backgroundColor=t),this._backgroundColor=t)}setLoop(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:t})}setUseFrameInterpolation(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:t})}addEventListener(t,n){this._eventManager.addEventListener(t,n)}removeEventListener(t,n){this._eventManager.removeEventListener(t,n)}destroy(){var t;(t=this._dotLottieCore)==null||t.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){var i;if(!_p||!(this._canvas instanceof HTMLCanvasElement))return;let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:n,width:r}=this._canvas.getBoundingClientRect();this._canvas.width=r*t,this._canvas.height=n*t,(i=this._dotLottieCore)!=null&&i.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(t,n){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:Ns([t,n],this._wasmModule)})}setMode(t){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Is(t,this._wasmModule)})}setRenderConfig(t){this._renderConfig=t}loadAnimation(t){this._dotLottieCore!==null&&(this._dotLottieCore.loadAnimation(t,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${t}`)}))}setMarker(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:t})}markers(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.markers();if(t){let r=[];for(let i=0;i{const[t,n]=I.useState(null),r=I.useRef(null),i=I.useRef(e),o=I.useRef(null),l=I.useRef(null);r.current=t,i.current=e;const a=I.useCallback(w=>{var S,C;!((S=i.current)!=null&&S.playOnHover)||!((C=r.current)!=null&&C.isLoaded)||(w.type==="mouseenter"?r.current.play():w.type==="mouseleave"&&r.current.pause())},[]),s=I.useMemo(()=>{const w=(0,wp.default)(S=>{S.forEach(C=>{var P,v;C.isIntersecting?(P=r.current)==null||P.unfreeze():(v=r.current)==null||v.freeze()})},150);return new IntersectionObserver(w,{threshold:0})},[]),f=I.useMemo(()=>{const w=(0,wp.default)(()=>{var S,C;(S=i.current)!=null&&S.autoResizeCanvas&&((C=r.current)==null||C.resize())},150);return new ResizeObserver(w)},[]),p=I.useCallback(w=>{var S;if(w){const C=new O2({...e,canvas:w});n(C),s.observe(w),e!=null&&e.autoResizeCanvas&&f.observe(w),w.addEventListener("mouseenter",a),w.addEventListener("mouseleave",a)}else(S=r.current)==null||S.destroy(),s.disconnect(),f.disconnect();o.current=w},[s,f,a]),h=I.useCallback(w=>{l.current=w},[]),y=I.useCallback(w=>Ee.createElement(L2,{setContainerRef:h,setCanvasRef:p,...w}),[p,h]);return I.useEffect(()=>()=>{var w,S;t&&(t.destroy(),n(null),f.disconnect(),s.disconnect(),(w=o.current)==null||w.removeEventListener("mouseenter",a),(S=o.current)==null||S.removeEventListener("mouseleave",a))},[]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.speed)=="number"&&e.speed!==t.speed&&t.isLoaded&&t.setSpeed(e.speed)},[e==null?void 0:e.speed]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.mode)=="string"&&e.mode!==t.mode&&t.isLoaded&&t.setMode(e.mode)},[e==null?void 0:e.mode]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.loop)=="boolean"&&e.loop!==t.loop&&t.isLoaded&&t.setLoop(e.loop)},[e==null?void 0:e.loop]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.useFrameInterpolation)=="boolean"&&e.useFrameInterpolation!==t.useFrameInterpolation&&t.isLoaded&&t.setUseFrameInterpolation(e.useFrameInterpolation)},[e==null?void 0:e.useFrameInterpolation]),I.useEffect(()=>{if(t&&typeof(e==null?void 0:e.segment)=="object"&&Array.isArray(e.segment)&&e.segment.length===2&&t.isLoaded){const w=e.segment[0],S=e.segment[1];t.setSegment(w,S)}},[e==null?void 0:e.segment]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.backgroundColor)=="string"&&e.backgroundColor!==t.backgroundColor&&t.setBackgroundColor(e.backgroundColor)},[e==null?void 0:e.backgroundColor]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.renderConfig)=="object"&&t.setRenderConfig(e.renderConfig)},[e==null?void 0:e.renderConfig]),I.useEffect(()=>{t&&(typeof(e==null?void 0:e.data)=="string"||(e==null?void 0:e.data)instanceof ArrayBuffer)&&t.load({data:e.data,...i.current||{}})},[e==null?void 0:e.data]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.src)=="string"&&t.load({src:e.src,...i.current||{}})},[e==null?void 0:e.src]),I.useEffect(()=>{t&&typeof(e==null?void 0:e.marker)=="string"&&t.setMarker(e.marker)},[e==null?void 0:e.marker]),I.useEffect(()=>{e!=null&&e.autoResizeCanvas&&o.current?f.observe(o.current):f.disconnect()},[e==null?void 0:e.autoResizeCanvas,f]),{dotLottie:t,setCanvasRef:p,setContainerRef:h,canvas:o.current,container:l.current,DotLottieComponent:y}},A2=typeof window<"u"?I.useLayoutEffect:I.useEffect;function M2(e){const t=I.useRef(e);return A2(()=>{t.current=e}),I.useCallback((...n)=>t.current(...n),[t])}var j2=({autoResizeCanvas:e=!0,autoplay:t,backgroundColor:n,data:r,dotLottieRefCallback:i,loop:o,marker:l,mode:a,playOnHover:s,renderConfig:f,segment:p,speed:h,src:y,useFrameInterpolation:w,...S})=>{const{DotLottieComponent:C,dotLottie:P}=b2({data:r,mode:a,speed:h,src:y,autoplay:t,loop:o,segment:p,renderConfig:f,backgroundColor:n,useFrameInterpolation:w,playOnHover:s,autoResizeCanvas:e,marker:l}),v=typeof i=="function"?M2(i):void 0;return Ee.useEffect(()=>{typeof v=="function"&&v(P)},[v,P]),Ee.createElement(C,{...S})};function F2(e){return M.jsx(M.Fragment,{children:M.jsx("div",{className:"",children:M.jsx(j2,{...e})})})}const I2="modulepreload",D2=function(e){return"/dotlottie-web/"+e},Sp={},Pn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(s=>{if(s=D2(s),s in Sp)return;Sp[s]=!0;const f=s.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!r)for(let w=o.length-1;w>=0;w--){const S=o[w];if(S.href===s&&(!f||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${p}`))return;const y=document.createElement("link");if(y.rel=f?"stylesheet":I2,f||(y.as="script",y.crossOrigin=""),y.href=s,a&&y.setAttribute("nonce",a),document.head.appendChild(y),f)return new Promise((w,S)=>{y.addEventListener("load",w),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var Cp={},$2=function(e,t,n,r,i){var o=new Worker(Cp[t]||(Cp[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(l){var a=l.data,s=a.$e$;if(s){var f=new Error(s[0]);f.code=s[1],f.stack=s[2],i(f,null)}else i(null,a)},o.postMessage(n,r),o},st=Uint8Array,kr=Uint16Array,Dv=Int32Array,tf=new st([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nf=new st([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),$v=new st([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nv=function(e,t){for(var n=new kr(31),r=0;r<31;++r)n[r]=t+=1<>1|(se&21845)<<1,xn=(xn&52428)>>2|(xn&13107)<<2,xn=(xn&61680)>>4|(xn&3855)<<4,va[se]=((xn&65280)>>8|(xn&255)<<8)>>1;var xn,se,ii=function(e,t,n){for(var r=e.length,i=0,o=new kr(t);i>s]=f}else for(a=new kr(r),i=0;i>15-e[i]);return a},jo=new st(288);for(se=0;se<144;++se)jo[se]=8;var se;for(se=144;se<256;++se)jo[se]=9;var se;for(se=256;se<280;++se)jo[se]=7;var se;for(se=280;se<288;++se)jo[se]=8;var se,Uv=new st(32);for(se=0;se<32;++se)Uv[se]=5;var se,Wv=ii(jo,9,1),Bv=ii(Uv,5,1),bl=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},Dt=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Al=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Vv=function(e){return(e+7)/8|0},za=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new st(e.subarray(t,n))},Hv=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],at=function(e,t,n){var r=new Error(t||Hv[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,at),!n)throw r;return r},Kv=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new st(0);var l=!n,a=l||t.i!=2,s=t.i;l&&(n=new st(i*3));var f=function(on){var bt=n.length;if(on>bt){var At=new st(Math.max(bt*2,on));At.set(n),n=At}},p=t.f||0,h=t.p||0,y=t.b||0,w=t.l,S=t.d,C=t.m,P=t.n,v=i*8;do{if(!w){p=Dt(e,h,1);var _=Dt(e,h+1,3);if(h+=3,_)if(_==1)w=Wv,S=Bv,C=9,P=5;else if(_==2){var g=Dt(e,h,31)+257,E=Dt(e,h+10,15)+4,A=g+Dt(e,h+5,31)+1;h+=14;for(var D=new st(A),x=new st(19),L=0;L>4;if(re<16)D[L++]=re;else{var Y=0,te=0;for(re==16?(te=3+Dt(e,h,3),h+=2,Y=D[L-1]):re==17?(te=3+Dt(e,h,7),h+=3):re==18&&(te=11+Dt(e,h,127),h+=7);te--;)D[L++]=Y}}var $e=D.subarray(0,g),me=D.subarray(g);C=bl($e),P=bl(me),w=ii($e,C,1),S=ii(me,P,1)}else at(1);else{var re=Vv(h)+4,R=e[re-4]|e[re-3]<<8,H=re+R;if(H>i){s&&at(0);break}a&&f(y+R),n.set(e.subarray(re,H),y),t.b=y+=R,t.p=h=H*8,t.f=p;continue}if(h>v){s&&at(0);break}}a&&f(y+131072);for(var J=(1<>4;if(h+=Y&15,h>v){s&&at(0);break}if(Y||at(2),Qe<256)n[y++]=Qe;else if(Qe==256){de=h,w=null;break}else{var we=Qe-254;if(Qe>264){var L=Qe-257,it=tf[L];we=Dt(e,h,(1<>4;Ae||at(3),h+=Ae&15;var me=zv[dt];if(dt>3){var it=nf[dt];me+=Al(e,h)&(1<v){s&&at(0);break}a&&f(y+131072);var cr=y+we;if(y>>0},Rs=function(e,t){return Jt(e,t)+Jt(e,t+4)*4294967296};function K2(e,t,n){return n||(n=t,t={}),typeof n!="function"&&at(7),H2(e,t,[V2],function(r){return Qv(of(r.data[0],Yv(r.data[1])))},1,n)}function of(e,t){return Kv(e,{i:2},t&&t.out,t&&t.dictionary)}var Yu=typeof TextDecoder<"u"&&new TextDecoder,Q2=0;try{Yu.decode(z2,{stream:!0}),Q2=1}catch{}var Y2=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:za(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Si(e,t){if(t){for(var n="",r=0;r65558)return l(at(13,0,1),null),i;var s=mn(e,a+8);if(s){var f=s,p=Jt(e,a+16),h=p==4294967295||f==65535;if(h){var y=Jt(e,a-12);h=Jt(e,y)==101075792,h&&(f=s=Jt(e,y+32),p=Jt(e,y+48))}for(var w=t&&t.filter,S=function(P){var v=J2(e,p,h),_=v[0],g=v[1],E=v[2],A=v[3],D=v[4],x=v[5],L=G2(e,x);p=D;var N=function(Z,ae){Z?(i(),l(Z,null)):(ae&&(o[A]=ae),--s||l(null,o))};if(!w||w({name:A,size:g,originalSize:E,compression:_}))if(!_)N(null,za(e,L,L+g));else if(_==8){var W=e.subarray(L,L+g);if(g<32e4)try{N(null,of(W,{out:new st(E)}))}catch(Z){N(Z,null)}else r.push(K2(W,{size:E},N))}else N(at(14,"unknown compression type "+_,1),null);else N(null,null)},C=0;C{if(n.path){let r=n.path.map(({key:i})=>i).join(".");t.nested[r]=[...t.nested[r]||[],n.message]}else t.root=[...t.root||[],n.message];return t},{nested:{}})}var eC=class extends Error{constructor(t){super(t[0].message);q(this,"issues");this.name="ValiError",this.issues=t}};function tC(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}}function nC(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}}function ur(e,t,n,r){if(!t||!t.length)return{output:e};let i,o,l=e;for(let a of t){let s=a(l);if(s.issue){i=i||nC(n,r);let f=tC(i,s.issue);if(o?o.push(f):o=[f],i.abortEarly||i.abortPipeEarly)break}else l=s.output}return o?{issues:o}:{output:l}}function nn(e,t){return!e||typeof e=="string"?[e,t]:[void 0,e]}function gn(e,t,n,r,i,o){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:r,input:i,issues:o,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}]}}function rC(e=[]){return{schema:"any",async:!1,_parse(t,n){return ur(t,e,n,"any")}}}function no(e,t,n){let[r,i]=nn(t,n);return{schema:"array",array:{item:e},async:!1,_parse(o,l){if(!Array.isArray(o))return gn(l,"type","array",r||"Invalid type",o);let a,s=[];for(let f=0;fa.length)return gn(s,"type","tuple",o||"Invalid type",a);let f,p=[];for(let h=0;h({...o,...l.object}),{}),r,i)}function uC(e,t,n,r){let[i,o]=nn(n,r);return Vt(Object.entries(e.object).reduce((l,[a,s])=>t.includes(a)?l:{...l,[a]:s},{}),i,o)}function cC(e,t,n){let r=e._parse(t,n);return r.issues?{success:!1,error:new eC(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function Ju(e,t){return n=>n>e?{issue:{validation:"max_value",message:t||"Invalid value",input:n}}:{output:n}}function Xu(e,t){return n=>nt in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>function(){return t||(0,e[Gv(e)[0]])((t={exports:{}}).exports,t),t.exports},vC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gv(t))!hC.call(e,i)&&i!==n&&lf(e,i,{get:()=>t[i],enumerable:!(r=dC(t,i))||r.enumerable});return e},yC=(e,t,n)=>(n=e!=null?fC(pC(e)):{},vC(t||!e||!e.__esModule?lf(n,"default",{value:e,enumerable:!0}):n,e)),gC=(e,t,n)=>(mC(e,typeof t!="symbol"?t+"":t,n),n),_C=Io({"../../node_modules/.pnpm/@rgba-image+copy@0.1.3/node_modules/@rgba-image/copy/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.copy=void 0;var t=(n,r,i=0,o=0,l=n.width-i,a=n.height-o,s=0,f=0)=>{if(i=i|0,o=o|0,l=l|0,a=a|0,s=s|0,f=f|0,l<=0||a<=0)return;let p=new Uint32Array(n.data.buffer),h=new Uint32Array(r.data.buffer);for(let y=0;y=n.height)continue;let S=f+y;if(!(S<0||S>=r.height))for(let C=0;C=n.width)continue;let v=s+C;if(v<0||v>=r.width)continue;let _=w*n.width+P,g=S*r.width+v;h[g]=p[_]}}};e.copy=t}}),wC=Io({"../../node_modules/.pnpm/@rgba-image+create-image@0.1.1/node_modules/@rgba-image/create-image/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreateImageFactory=(t=[0,0,0,0],n=4)=>{if(n=Math.floor(n),isNaN(n)||n<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in t)||t.lengthi===0);return(i,o,l)=>{if(i===void 0||o===void 0)throw TypeError("Not enough arguments");if(i=Math.floor(i),o=Math.floor(o),isNaN(i)||i<1||isNaN(o)||o<1)throw TypeError("Index or size is negative or greater than the allowed amount");let a=i*o*n;if(l===void 0&&(l=new Uint8ClampedArray(a)),l instanceof Uint8ClampedArray){if(l.length!==a)throw TypeError("Index or size is negative or greater than the allowed amount");if(!r)for(let s=0;s{if(o<=-l||o>=l||o==0)return 0;let a=o*Math.PI;return Math.sin(a)/a*Math.sin(a/l)/(a/l)},r=o=>Math.round(o*((1<{let p=f?2:3,h=1/a,y=Math.min(1,a),w=p/y,S=Math.floor((w+1)*2),C=new Int16Array((S+2)*l),P=0;for(let v=0;v>1]+=r(1-W);let Z=0;for(;Z0&&x[ae]===0;)ae--;let re=g+Z,Y=ae-Z+1;C[P++]=re,C[P++]=Y,C.set(x.subarray(Z,ae+1),P),P+=Y}return C};e.filters=i}}),CC=Io({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/convolve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convolve=void 0;var t=14,n=(r,i,o,l,a,s)=>{let f=0,p=0;for(let h=0;h0;E--){let A=s[y++];P=P+A*r[C]|0,v=v+A*r[C+1]|0,_=_+A*r[C+2]|0,g=g+A*r[C+3]|0,C=C+4|0}i[p]=P+8192>>t,i[p+1]=v+8192>>t,i[p+2]=_+8192>>t,i[p+3]=g+8192>>t,p=p+l*4|0}p=(h+1)*4|0,f=(h+1)*o*4|0}};e.convolve=n}}),kC=Io({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lanczos2=e.lanczos=void 0;var t=_C(),n=wC(),r=SC(),i=CC(),o=(s,f,p=!1)=>{let h=f.width/s.width,y=f.height/s.height,w=r.filters(s.width,f.width,h,0,p),S=r.filters(s.height,f.height,y,0,p),C=new Uint8ClampedArray(f.width*s.height*4);i.convolve(s.data,C,s.width,s.height,f.width,w),i.convolve(C,f.data,s.height,f.width,f.height,S)},l=(s,f,p=0,h=0,y=s.width-p,w=s.height-h,S=0,C=0,P=f.width-S,v=f.height-C)=>{if(p=p|0,h=h|0,y=y|0,w=w|0,S=S|0,C=C|0,P=P|0,v=v|0,y<=0||w<=0||P<=0||v<=0)return;if(p===0&&h===0&&y===s.width&&w===s.height&&S===0&&C===0&&P===f.width&&v===f.height){o(s,f);return}let _=n.createImage(y,w),g=n.createImage(P,v);t.copy(s,_,p,h),o(_,g),t.copy(g,f,0,0,g.width,g.height,S,C)};e.lanczos=l;var a=(s,f,p=0,h=0,y=s.width-p,w=s.height-h,S=0,C=0,P=f.width-S,v=f.height-C)=>{if(p=p|0,h=h|0,y=y|0,w=w|0,S=S|0,C=C|0,P=P|0,v=v|0,y<=0||w<=0||P<=0||v<=0)return;if(p===0&&h===0&&y===s.width&&w===s.height&&S===0&&C===0&&P===f.width&&v===f.height){o(s,f,!0);return}let _=n.createImage(y,w),g=n.createImage(P,v);t.copy(s,_,p,h),o(_,g,!0),t.copy(g,f,0,0,g.width,g.height,S,C)};e.lanczos2=a}}),Jv=(e=>(e.Bounce="bounce",e.Normal="normal",e))(Jv||{}),EC=iC(Jv),Xv=Vt({autoplay:fe(zs()),defaultTheme:fe(Je()),direction:fe(Gu([xp(1),xp(-1)])),hover:fe(zs()),id:Je(),intermission:fe(qt()),loop:fe(Gu([zs(),qt()])),playMode:fe(EC),speed:fe(qt()),themeColor:fe(Je())}),xC=Vt({animations:no(Je()),id:Je()}),PC=Vt({activeAnimationId:fe(Je()),animations:no(Xv),author:fe(Je()),custom:fe(aC(Je(),rC())),description:fe(Je()),generator:fe(Je()),keywords:fe(Je()),revision:fe(qt()),themes:fe(no(xC)),states:fe(no(Je())),version:fe(Je())}),qv=uC(Xv,["id"]),Fr=Vt({state:Je()}),TC=Fr,OC=Fo([Fr,Vt({ms:qt()})]),LC=Fo([Fr,Vt({count:qt()})]),bC=Fr,AC=Fr,MC=Fr,jC=Fo([Fr,Vt({threshold:fe(no(qt([Xu(0),Ju(1)])))})]),FC=Vt({onAfter:fe(OC),onClick:fe(TC),onComplete:fe(MC),onEnter:fe(LC),onMouseEnter:fe(bC),onMouseLeave:fe(AC),onShow:fe(jC)}),IC=Fo([qv,Vt({playOnScroll:fe(Pp([qt([Xu(0),Ju(1)]),qt([Xu(0),Ju(1)])])),segments:fe(Gu([Pp([qt(),qt()]),Je()]))})]);Fo([FC,Vt({animationId:fe(Je()),playbackSettings:IC})]);var DC={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp",mpeg:"audio/mpeg",mp3:"audio/mp3"},Tp={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120],mp3:[73,68,51,3,0,0,0,0],mpeg:[73,68,51,3,0,0,0,0]},$C=e=>{let t=null,n=[];if(!e)return null;let r=e.substring(e.indexOf(",")+1);typeof window>"u"?t=Buffer.from(r,"base64").toString("binary"):t=atob(r);let i=new Uint8Array(t.length);for(let o=0;oa===l[s]))return DC[o]}return null},af=class extends Error{constructor(e,t){super(e),gC(this,"code"),this.name="[dotlottie-js]",this.code=t}};function Zv(e){let t;if(typeof window>"u")t=Buffer.from(e).toString("base64");else{let n=Array.prototype.map.call(e,r=>String.fromCharCode(r)).join("");t=window.btoa(n)}return`data:${$C(t)};base64,${t}`}function Op(e){return"w"in e&&"h"in e&&!("xt"in e)&&"p"in e}function qu(e){return!("h"in e)&&!("w"in e)&&"p"in e&&"e"in e&&"u"in e&&"id"in e}async function Do(e,t=()=>!0){if(!(e instanceof Uint8Array))throw new af("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((n,r)=>{q2(e,{filter:t},(i,o)=>{i&&r(i),n(o)})})}async function sf(e,t,n){if(!(e instanceof Uint8Array))throw new af("DotLottie not found","INVALID_DOTLOTTIE");return(await Do(e,r=>r.name===t&&(!n||n(r))))[t]}async function Zu(e){let t="manifest.json",n=(await Do(e,r=>r.name===t))[t];if(!(typeof n>"u"))return JSON.parse(Si(n,!1))}async function NC(e){if(!(e instanceof Uint8Array))return{success:!1,error:"DotLottie not found"};let t=await Zu(e);if(typeof t>"u")return{success:!1,error:"Invalid .lottie file, manifest.json is missing"};let n=cC(PC,t);return n.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(Z2(n.error).nested,null,2)}`}}async function Lp(e){let t=new Uint8Array(e),n=await NC(t);if(n.error)throw new af(n.error,"INVALID_DOTLOTTIE");return t}async function RC(e,t){let n=await Do(e,i=>{let o=i.name.replace("audio/","");return i.name.startsWith("audio/")&&(!t||t({...i,name:o}))}),r={};for(let i in n){let o=n[i];if(o instanceof Uint8Array){let l=i.replace("audio/","");r[l]=Zv(o)}}return r}async function zC(e,t){var n;let r=new Map;for(let[o,l]of Object.entries(t))for(let a of l.assets||[])if(qu(a)){let s=a.p;r.has(s)||r.set(s,new Set),(n=r.get(s))==null||n.add(o)}let i=await RC(e,o=>r.has(o.name));for(let[o,l]of r){let a=i[o];if(a)for(let s of l){let f=t[s];for(let p of(f==null?void 0:f.assets)||[])qu(p)&&p.p===o&&(p.p=a,p.u="",p.e=1)}}}async function UC(e,t){let n=await Do(e,i=>{let o=i.name.replace("images/","");return i.name.startsWith("images/")&&(!t||t({...i,name:o}))}),r={};for(let i in n){let o=n[i];if(o instanceof Uint8Array){let l=i.replace("images/","");r[l]=Zv(o)}}return r}async function WC(e,t){var n;let r=new Map;for(let[o,l]of Object.entries(t))for(let a of l.assets||[])if(Op(a)){let s=a.p;r.has(s)||r.set(s,new Set),(n=r.get(s))==null||n.add(o)}let i=await UC(e,o=>r.has(o.name));for(let[o,l]of r){let a=i[o];if(a)for(let s of l){let f=t[s];for(let p of(f==null?void 0:f.assets)||[])Op(p)&&p.p===o&&(p.p=a,p.u="",p.e=1)}}}async function BC(e,t,{inlineAssets:n}={},r){let i=`animations/${t}.json`,o=await sf(e,i,r);if(typeof o>"u")return;let l=JSON.parse(Si(o,!1));if(!n)return l;let a={[t]:l};return await WC(e,a),await zC(e,a),l}async function VC(e,t,n){let r=`themes/${t}.json`,i=await sf(e,r,n);if(!(typeof i>"u"))return JSON.parse(Si(i,!1))}async function HC(e,t){let n={},r=await Do(e,i=>{let o=i.name.replace("states/","").replace(".json","");return i.name.startsWith("states/")&&(!t||t({...i,name:o}))});for(let i in r){let o=r[i];if(o instanceof Uint8Array){let l=i.replace("states/","").replace(".json","");n[l]=Si(o,!1)}}return n}async function KC(e,t,n){let r=`states/${t}.json`,i=await sf(e,r,n);return typeof i>"u"?void 0:JSON.parse(Si(i,!1))}yC(kC());function ce(e,t="dotLottie-common"){return new Error(`[${t}]: ${e}`)}function Rr(e,t="dotLottie-common",...n){console.error(`[${t}]:`,e,...n)}function Oe(e,t="dotLottie-common",...n){console.warn(`[${t}]:`,e,...n)}function QC(e=""){let t=e.trim(),n=t.lastIndexOf("/"),r=t.substring(n+1),i=r.indexOf(".");return i!==-1?r.substring(0,i):r}function ya(e){return["v","ip","op","layers","fr","w","h"].every(t=>Object.prototype.hasOwnProperty.call(e,t))}function YC(e){let t=e.assets;return t?t.some(n=>qu(n)):!1}function GC(e){try{let t=JSON.parse(e);return ya(t)}catch{return!1}}function Mk(e,t){let n=Object.keys(e).find(r=>e[r]===t);if(n===void 0)throw new Error("Value not found in the object.");return n}function Us(e){return JSON.parse(JSON.stringify(e))}var JC=class{constructor(){q(this,"_dotLottie");q(this,"_animationsMap",new Map);q(this,"_themeMap",new Map);q(this,"_stateMachinesMap",new Map);q(this,"_manifest")}get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(t){let n=await fetch(t,{method:"GET",mode:"cors"});if(!n.ok)throw new Error(`Failed to load dotLottie from ${t} with status ${n.status}`);let r=n.headers.get("content-type");if(r!=null&&r.includes("application/json")){let i=await n.json();if(!ya(i))throw new Error(`Invalid lottie JSON at ${t}`);let o=QC(t);this._animationsMap.set(o,i);let l={activeAnimationId:o,animations:[{id:o}]};this._manifest=l}else{this._dotLottie=await Lp(await n.arrayBuffer());let i=await Zu(this._dotLottie);if(!i)throw new Error("Manifest not found");this._manifest=i}}loadFromLottieJSON(t){if(!ya(t))throw new Error("Invalid lottie JSON");let n="my-animation";this._animationsMap.set(n,t);let r={activeAnimationId:n,animations:[{id:n}]};this._manifest=r}async loadFromArrayBuffer(t){this._dotLottie=await Lp(t);let n=await Zu(this._dotLottie);if(!n)throw new Error("Manifest not found");this._manifest=n}async getAnimation(t){if(this._animationsMap.get(t))return this._animationsMap.get(t);if(!this._dotLottie)return;let n=await BC(this._dotLottie,t,{inlineAssets:!0});return n&&this._animationsMap.set(t,n),n}async getTheme(t){if(this._themeMap.get(t))return this._themeMap.get(t);if(!this._dotLottie)return;let n=await VC(this._dotLottie,t);return n&&this._themeMap.set(t,n),n}async getStateMachines(){if(!this._dotLottie)return;let t=await HC(this._dotLottie);for(let n in t)if(n){let r=t[n];if(r){let i=JSON.parse(r);if(i){let o=i.descriptor.id;this._stateMachinesMap.get(o)||this._stateMachinesMap.set(o,i)}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(t){if(this._stateMachinesMap.get(t))return this._stateMachinesMap.get(t);if(!this._dotLottie)return;let n=await KC(this._dotLottie,t);return n&&this._stateMachinesMap.set(n.descriptor.id,n),n}};async function XC(e,t){let[{DotLottieStateMachineManager:n}]=await Promise.all([Pn(()=>import("./dotlottie-state-machine-manager-2E7RUGJG-BicjYFdB.js"),[])]);if(!e.length)throw ce("No state machines available inside this .lottie!");return new n(e,t)}function Ua(){throw new Error("Cycle detected")}function uf(){if(oi>1)oi--;else{for(var e,t=!1;ro!==void 0;){var n=ro;for(ro=void 0,ec++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&ty(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(ec=0,oi--,t)throw e}}var Le=void 0,ro=void 0,oi=0,ec=0,ga=0;function ey(e){if(Le!==void 0){var t=e.n;if(t===void 0||t.t!==Le)return t={i:0,S:e,p:Le.s,n:void 0,t:Le,e:void 0,x:void 0,r:t},Le.s!==void 0&&(Le.s.n=t),Le.s=t,e.n=t,32&Le.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Le.s,t.n=void 0,Le.s.n=t,Le.s=t),t}}function _t(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}_t.prototype.h=function(){return!0};_t.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};_t.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};_t.prototype.subscribe=function(e){var t=this;return ek(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})};_t.prototype.valueOf=function(){return this.value};_t.prototype.toString=function(){return this.value+""};_t.prototype.toJSON=function(){return this.value};_t.prototype.peek=function(){return this.v};Object.defineProperty(_t.prototype,"value",{get:function(){var e=ey(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(Le instanceof Ir&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){ec>100&&Ua(),this.v=e,this.i++,ga++,oi++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{uf()}}}});function qC(e){return new _t(e)}function ty(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ny(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ry(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Ir(e){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=ga-1,this.f=4}(Ir.prototype=new _t).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ga))return!0;if(this.g=ga,this.f|=1,this.i>0&&!ty(this))return this.f&=-2,!0;var e=Le;try{ny(this),Le=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Le=e,ry(this),this.f&=-2,!0};Ir.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}_t.prototype.S.call(this,e)};Ir.prototype.U=function(e){if(this.t!==void 0&&(_t.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ir.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Ir.prototype.peek=function(){if(this.h()||Ua(),16&this.f)throw this.v;return this.v};Object.defineProperty(Ir.prototype,"value",{get:function(){1&this.f&&Ua();var e=ey(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function iy(e){var t=e.u;if(e.u=void 0,typeof t=="function"){oi++;var n=Le;Le=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,cf(e),r}finally{Le=n,uf()}}}function cf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,iy(e)}function ZC(e){if(Le!==this)throw new Error("Out-of-order effect");ry(this),Le=e,this.f&=-2,8&this.f&&cf(this),uf()}function $o(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}$o.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};$o.prototype.S=function(){1&this.f&&Ua(),this.f|=1,this.f&=-9,iy(this),ny(this),oi++;var e=Le;return Le=this,ZC.bind(this,e)};$o.prototype.N=function(){2&this.f||(this.f|=2,this.o=ro,ro=this)};$o.prototype.d=function(){this.f|=8,1&this.f||cf(this)};function ek(e){var t=new $o(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var tk=class{constructor(e){q(this,"_state");q(this,"_prevState");this._prevState=e,this._state=qC(e)}setState(e){this._prevState=this._state.value,this._state.value=e}subscribe(e){return this._state.subscribe(t=>e(t,this._prevState))}},nk={name:"@dotlottie/common",version:"0.7.11",type:"module",description:"",author:"Afsal , Sam Osborne ",license:"MIT",engines:{node:">18.0.0"},module:"dist/index.js",main:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:[],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint .","type-check":"tsc --noEmit"},dependencies:{"@dotlottie/dotlottie-js":"^0.7.0","@preact/signals-core":"^1.2.3",howler:"^2.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"},devDependencies:{"@lottiefiles/lottie-types":"^1.2.0","@types/howler":"^2.2.8",tsup:"^7.2.0",typescript:"^4.7.4"},publishConfig:{access:"public"}},$t=(e=>(e.Complete="complete",e.DataFail="data_fail",e.DataReady="data_ready",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.LoopComplete="loopComplete",e.Pause="pause",e.Play="play",e.Ready="ready",e.Stop="stop",e.VisibilityChange="visibilityChange",e))($t||{}),dn=(e=>(e.Completed="completed",e.Error="error",e.Fetching="fetching",e.Frozen="frozen",e.Initial="initial",e.Loading="loading",e.Paused="paused",e.Playing="playing",e.Ready="ready",e.Stopped="stopped",e))(dn||{}),rk=(e=>(e.Bounce="bounce",e.Normal="normal",e))(rk||{}),Ft={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:"normal",speed:1,defaultTheme:""},oy={activeStateId:"",autoplay:!1,currentState:"initial",frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:"normal",speed:1,background:"transparent",intermission:0,currentAnimationId:void 0,visibilityPercentage:0},ik=class{constructor(e,t,n){q(this,"_lottie");q(this,"_src");q(this,"_animationConfig");q(this,"_prevUserPlaybackOptions",{});q(this,"_userPlaybackOptions");q(this,"_hover",!1);q(this,"_loop",!1);q(this,"_counter",0);q(this,"_intermission",0);q(this,"_counterInterval",null);q(this,"_container",null);q(this,"_name");q(this,"_mode","normal");q(this,"_background","transparent");q(this,"_animation");q(this,"_defaultTheme");q(this,"_activeAnimationId");q(this,"_currentAnimationId");q(this,"_testId");q(this,"_listeners",new Map);q(this,"_currentState","initial");q(this,"_stateBeforeFreeze","initial");q(this,"state",new tk(oy));q(this,"_light",!1);q(this,"_worker",!1);q(this,"_dotLottieLoader",new JC);q(this,"_activeStateId");q(this,"_inInteractiveMode",!1);q(this,"_scrollTicking",!1);q(this,"_scrollCallback");q(this,"_onShowIntersectionObserver");q(this,"_visibilityPercentage",0);q(this,"_audios",[]);q(this,"_stateMachineManager");typeof e=="string"?this._src=e:this._src=Us(e),n!=null&&n.testId&&(this._testId=n.testId),this._defaultTheme=(n==null?void 0:n.defaultTheme)||"",this._userPlaybackOptions=this._validatePlaybackOptions(n||{}),typeof(n==null?void 0:n.activeAnimationId)=="string"&&(this._activeAnimationId=n.activeAnimationId),this._container=t||null,typeof(n==null?void 0:n.background)=="string"&&this.setBackground(n.background),typeof(n==null?void 0:n.activeStateId)<"u"&&(this._activeStateId=n.activeStateId);let{rendererSettings:r,...i}=n||{};this._animationConfig={loop:!1,autoplay:!1,renderer:"svg",rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0,filterSize:{width:"200%",height:"200%",x:"-50%",y:"-50%"},...r},...i},n!=null&&n.light&&(this._light=n.light),n!=null&&n.worker&&(this._worker=n.worker),this._listenToHover(),this._listenToVisibilityChange()}_listenToHover(){var e,t,n,r;let i=()=>{this._hover&&this.currentState!=="playing"&&this.play()},o=()=>{this._hover&&this.currentState==="playing"&&this.stop()};(e=this._container)==null||e.removeEventListener("mouseenter",i),(t=this._container)==null||t.removeEventListener("mouseleave",o),(n=this._container)==null||n.addEventListener("mouseleave",o),(r=this._container)==null||r.addEventListener("mouseenter",i)}_onVisibilityChange(){!this._lottie||typeof document>"u"||(document.hidden&&this.currentState==="playing"?this.freeze():this.currentState==="frozen"&&this.unfreeze())}_listenToVisibilityChange(){typeof document<"u"&&typeof document.hidden<"u"&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange())}_getOption(e){var t;if(typeof this._userPlaybackOptions[e]<"u")return this._userPlaybackOptions[e];let n=(t=this._dotLottieLoader.manifest)==null?void 0:t.animations.find(r=>r.id===this._currentAnimationId);return n&&typeof n[e]<"u"?n[e]:Ft[e]}_getPlaybackOptions(){let e={};for(let t in Ft)typeof Ft[t]<"u"&&(e[t]=this._getOption(t));return e}_setPlayerState(e){var t,n,r;let i=e(this._getPlaybackOptions());try{qv._parse(i)}catch{Oe(`Invalid PlaybackOptions, ${JSON.stringify(i,null,2)}`);return}typeof i.defaultTheme<"u"&&(this._defaultTheme=i.defaultTheme),typeof i.playMode<"u"&&(this._mode=i.playMode),typeof i.intermission<"u"&&(this._intermission=i.intermission),typeof i.hover<"u"&&(this._hover=i.hover),typeof i.loop<"u"&&(this.clearCountTimer(),this._loop=i.loop,this._counter=0,(t=this._lottie)==null||t.setLoop(typeof i.loop=="number"?!0:i.loop)),typeof i.speed<"u"&&((n=this._lottie)==null||n.setSpeed(i.speed)),typeof i.autoplay<"u"&&this._lottie&&(this._lottie.autoplay=i.autoplay),typeof i.direction<"u"&&((r=this._lottie)==null||r.setDirection(i.direction))}_getOptionsFromAnimation(e){let{id:t,...n}=e;return{...Ft,...n}}_updateTestData(){!this._testId||!this._lottie||(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed})}setContainer(e){e!==this._container&&(this._container=e,this.setBackground(this._background),this._listenToHover())}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval)}setCurrentState(e){this._currentState=e,this._notify(),this._updateTestData()}static isPathJSON(e){var t;return((t=e.split(".").pop())==null?void 0:t.toLowerCase())==="json"}get src(){return this._src}updateSrc(e){this._src!==e&&(typeof e=="string"?this._src=e:this._src=Us(e),this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load())}get intermission(){return this._intermission}get hover(){return this._hover}setHover(e){typeof e=="boolean"&&(this._hover=e,this._userPlaybackOptions.hover=e,this._notify())}setIntermission(e){this._intermission=e,this._userPlaybackOptions.intermission=e,this._notify()}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(e){typeof e=="string"&&(this._mode=e,this._userPlaybackOptions.playMode=e,this._setPlayerState(()=>({playMode:e})),this._notify(),this._updateTestData())}get container(){if(this._container)return this._container}goToAndPlay(e,t,n){if(!this._lottie||["loading"].includes(this._currentState)){Oe("goToAndPlay() Can't use whilst loading.");return}this._lottie.goToAndPlay(e,t,n),this.setCurrentState("playing")}goToAndStop(e,t,n){if(!this._lottie||["loading"].includes(this._currentState)){Oe("goToAndStop() Can't use whilst loading.");return}this._lottie.goToAndStop(e,t,n),this.setCurrentState("stopped")}seek(e){if(!this._lottie||["loading"].includes(this._currentState)){Oe("seek() Can't use whilst loading.");return}let t=e;typeof t=="number"&&(t=Math.round(t));let n=/^(\d+)(%?)$/u.exec(t.toString());if(!n)return;let r=n[2]==="%"?this.totalFrames*Number(n[1])/100:n[1];r!==void 0&&(this._lottie.goToAndPlay(r,!0),this.currentState==="playing"?this.play():this.currentState==="frozen"?this.freeze():this.pause())}_areNumbersInRange(e,t){return e>=0&&e<=1&&t>=0&&t<=1}_updatePosition(e,t,n){let[r,i]=e??[0,this.totalFrames-1],[o,l]=t??[0,1];if(!this._areNumbersInRange(o,l)){Rr("threshold values must be between 0 and 1");return}if(this.container){let{height:a,top:s}=this.container.getBoundingClientRect(),f=window.innerHeight-s,p=window.innerHeight+a,h=f/p,y=r+Math.round((h-o)/(l-o)*(i-r));n&&n(h),this.goToAndStop(y,!0),(y>=i||h>=l)&&this._handleAnimationComplete()}this._scrollTicking=!1}_requestTick(e,t,n){this._scrollTicking||(requestAnimationFrame(()=>this._updatePosition(e,t,n)),this._scrollTicking=!0)}playOnScroll(e){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(e==null?void 0:e.segments,e==null?void 0:e.threshold,e==null?void 0:e.positionCallback),window.addEventListener("scroll",this._scrollCallback)}stopPlayOnScroll(){this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback),this._scrollCallback=void 0)}stopPlayOnShow(){this._onShowIntersectionObserver&&(this._onShowIntersectionObserver.disconnect(),this._onShowIntersectionObserver=void 0)}addIntersectionObserver(e){if(!this.container)throw ce("Can't play on show, player container element not available.");let t={root:null,rootMargin:"0px",threshold:e!=null&&e.threshold?e.threshold:[0,1]},n=r=>{r.forEach(i=>{var o,l;this._visibilityPercentage=i.intersectionRatio*100,i.isIntersecting?(e!=null&&e.callbackOnIntersect&&e.callbackOnIntersect(this._visibilityPercentage),(o=this._container)==null||o.dispatchEvent(new Event("visibilityChange"))):e!=null&&e.callbackOnIntersect&&(e.callbackOnIntersect(0),(l=this._container)==null||l.dispatchEvent(new Event("visibilityChange")))})};this._onShowIntersectionObserver=new IntersectionObserver(n,t),this._onShowIntersectionObserver.observe(this.container)}playOnShow(e){var t;if(this.stop(),!this.container)throw ce("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:(t=e==null?void 0:e.threshold)!=null?t:[],callbackOnIntersect:n=>{n===0?this.pause():this.play()}})}_validatePlaybackOptions(e){if(!e)return{};let t={};for(let[n,r]of Object.entries(e))switch(n){case"autoplay":typeof r=="boolean"&&(t.autoplay=r);break;case"direction":typeof r=="number"&&[1,-1].includes(r)&&(t.direction=r);break;case"loop":(typeof r=="boolean"||typeof r=="number")&&(t.loop=r);break;case"playMode":typeof r=="string"&&["normal","bounce"].includes(r)&&(t.playMode=r);break;case"speed":typeof r=="number"&&(t.speed=r);break;case"themeColor":typeof r=="string"&&(t.themeColor=r);break;case"hover":typeof r=="boolean"&&(t.hover=r);break;case"intermission":typeof r=="number"&&(t.intermission=r);break;case"defaultTheme":typeof r=="string"&&(t.defaultTheme=r);break}return this._requireValidPlaybackOptions(t),t}_requireAnimationsInTheManifest(){var e;if(!((e=this._dotLottieLoader.manifest)!=null&&e.animations.length))throw ce("No animations found in manifest.")}_requireAnimationsToBeLoaded(){if(this._dotLottieLoader.animationsMap.size===0)throw ce("No animations have been loaded.")}async play(e,t){var n,r;if(["initial","loading"].includes(this._currentState)){Oe("Player unable to play whilst loading.");return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!e){this._lottie.playDirection===-1&&this._lottie.currentFrame===0?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState("playing");return}if(typeof e=="number"){let i=(n=this._dotLottieLoader.manifest)==null?void 0:n.animations[e];if(!i)throw ce("animation not found.");typeof t=="function"?await this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id})}if(typeof e=="string"){let i=(r=this._dotLottieLoader.manifest)==null?void 0:r.animations.find(o=>o.id===e);if(!i)throw ce("animation not found.");typeof t=="function"?await this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id})}}playSegments(e,t){if(!this._lottie||["loading"].includes(this._currentState)){Oe("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(e,t),this.setCurrentState("playing")}resetSegments(e){if(!this._lottie||["loading"].includes(this._currentState)){Oe("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(e)}togglePlay(){this.currentState==="playing"?this.pause():this.play()}_getAnimationByIdOrIndex(e){var t,n;if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof e=="number"){let r=(t=this._dotLottieLoader.manifest)==null?void 0:t.animations[e];if(!r)throw ce("animation not found.");return r}if(typeof e=="string"){let r=(n=this._dotLottieLoader.manifest)==null?void 0:n.animations.find(i=>i.id===e);if(!r)throw ce("animation not found.");return r}throw ce("first param must be a number or string")}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(e){if(!this._inInteractiveMode){Rr("Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.");return}if(this._dotLottieLoader.stateMachinesMap.size===0&&await this._dotLottieLoader.getStateMachines(),this._dotLottieLoader.stateMachinesMap.size===0)throw ce("No interactivity states are available.");if(e==="undefined")throw ce("stateId is not specified.");this._stateMachineManager||(this._stateMachineManager=await XC(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(e)}enterInteractiveMode(e){var t;if(e)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&((t=this._stateMachineManager)==null||t.stop()),this._activeStateId=e,this._inInteractiveMode=!0,this._startInteractivity(e);else throw ce("stateId must be a non-empty string.")}exitInteractiveMode(){var e;this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",(e=this._stateMachineManager)==null||e.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset())}reset(){var e;let t=this._getActiveAnimationId(),n=(e=this._dotLottieLoader.manifest)==null?void 0:e.animations.find(r=>r.id===t);if(this._inInteractiveMode&&this.exitInteractiveMode(),!n)throw ce("animation not found.");this.play(t)}previous(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ce("manifest not found.");if(this._inInteractiveMode){Oe("previous() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(t===-1)throw ce("animation not found.");let n=this._dotLottieLoader.manifest.animations[(t-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw ce("animation not found.");typeof e=="function"?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}next(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ce("manifest not found.");if(this._inInteractiveMode){Oe("next() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(t===-1)throw ce("animation not found.");let n=this._dotLottieLoader.manifest.animations[(t+1)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw ce("animation not found.");typeof e=="function"?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("resize() Can't use whilst loading.");return}this._lottie.resize()}stop(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("stop() Can't use whilst loading.");return}this.clearCountTimer(),this._counter=0,this._setPlayerState(()=>({direction:this._getOption("direction")})),this._lottie.stop(),this.setCurrentState("stopped")}pause(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused")}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("freeze() Can't use whilst loading.");return}this.currentState!=="frozen"&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState("frozen")}unfreeze(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("unfreeze() Can't use whilst loading.");return}this._stateBeforeFreeze==="playing"?this.play():this.pause()}destroy(){var e,t;(e=this._container)!=null&&e.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this._audios.length&&(this._audios.forEach(n=>{n.unload()}),this._audios=[]),this.clearCountTimer(),typeof document<"u"&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,(t=this._lottie)==null||t.destroy(),this._lottie=void 0}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return`${nk.dependencies["lottie-web"]}`}addEventListener(e,t){var n,r,i;this._listeners.has(e)||this._listeners.set(e,new Set),(n=this._listeners.get(e))==null||n.add(t);try{e==="complete"?(r=this._container)==null||r.addEventListener(e,t):(i=this._lottie)==null||i.addEventListener(e,t)}catch(o){Rr(`addEventListener ${o}`)}}getState(){var e,t,n,r,i,o,l;return{autoplay:(t=(e=this._lottie)==null?void 0:e.autoplay)!=null?t:!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:(r=(n=this._lottie)==null?void 0:n.playDirection)!=null?r:1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:(o=(i=this._lottie)==null?void 0:i.playSpeed)!=null?o:1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:(l=this._activeStateId)!=null?l:""}}_notify(){this.state.setState(this.getState())}get totalFrames(){var e;return((e=this._lottie)==null?void 0:e.totalFrames)||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(e){this._requireValidDirection(e),this._setPlayerState(()=>({direction:e})),this._userPlaybackOptions.direction=e}get speed(){var e;return((e=this._lottie)==null?void 0:e.playSpeed)||1}setSpeed(e){this._requireValidSpeed(e),this._setPlayerState(()=>({speed:e})),this._userPlaybackOptions.speed=e}get autoplay(){var e,t;return(t=(e=this._lottie)==null?void 0:e.autoplay)!=null?t:!1}setAutoplay(e){if(this._requireValidAutoplay(e),!this._lottie||["loading"].includes(this._currentState)){Oe("setAutoplay() Can't use whilst loading.");return}this._setPlayerState(()=>({autoplay:e})),this._userPlaybackOptions.autoplay=e}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("toggleAutoplay() Can't use whilst loading.");return}this.setAutoplay(!this._lottie.autoplay)}get defaultTheme(){return this._defaultTheme}setDefaultTheme(e){this._setPlayerState(()=>({defaultTheme:e})),this._userPlaybackOptions.defaultTheme=e,this._animation&&this.render()}get loop(){return this._loop}setLoop(e){this._requireValidLoop(e),this._setPlayerState(()=>({loop:e})),this._userPlaybackOptions.loop=e}toggleLoop(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop)}get background(){return this._background}setBackground(e){this._requireValidBackground(e),this._background=e,this._container&&(this._container.style.backgroundColor=e)}get _frame(){return this._lottie?this.currentState==="completed"?this.direction===-1?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(e){var t;let n;!Array.isArray(e)||e.length===0?n=["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"]:n=e;let r=!1;if(n.includes("activeAnimationId")){let i=(t=this._dotLottieLoader.manifest)==null?void 0:t.activeAnimationId,o=this._getAnimationByIdOrIndex(i||0);this._activeAnimationId=i,await this._setCurrentAnimation(o.id),r=!0}n.forEach(i=>{switch(i){case"autoplay":delete this._userPlaybackOptions.autoplay,this.setAutoplay(this._getOption("autoplay"));break;case"defaultTheme":delete this._userPlaybackOptions.defaultTheme,this.setDefaultTheme(this._getOption("defaultTheme"));break;case"direction":delete this._userPlaybackOptions.direction,this.setDirection(this._getOption("direction"));break;case"hover":delete this._userPlaybackOptions.hover,this.setHover(this._getOption("hover"));break;case"intermission":delete this._userPlaybackOptions.intermission,this.setIntermission(this._getOption("intermission"));break;case"loop":delete this._userPlaybackOptions.loop,this.setLoop(this._getOption("loop"));break;case"playMode":delete this._userPlaybackOptions.playMode,this.setMode(this._getOption("playMode")),this.setDirection(this._getOption("direction"));break;case"speed":delete this._userPlaybackOptions.speed,this.setSpeed(this._getOption("speed"));break}}),r&&this.render()}removeEventListener(e,t){var n,r,i;try{e==="complete"?(n=this._container)==null||n.removeEventListener(e,t):(r=this._lottie)==null||r.removeEventListener(e,t),(i=this._listeners.get(e))==null||i.delete(t)}catch(o){Rr("removeEventListener",o)}}_handleAnimationComplete(){var e;typeof this._loop=="number"&&this.stop();let t=this.direction===-1?0:this.totalFrames-1;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),(e=this._container)==null||e.dispatchEvent(new Event("complete"))}addEventListeners(){var e;if(!this._lottie||["loading"].includes(this._currentState)){Oe("addEventListeners() Can't use whilst loading.");return}this._lottie.addEventListener("enterFrame",()=>{var t;if(!this._lottie){Oe("enterFrame event : Lottie is undefined.");return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&((t=this._container)==null||t.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify()}),this._lottie.addEventListener("loopComplete",()=>{var t;if(!this._lottie){Oe("loopComplete event : Lottie is undefined.");return}(t=this._container)==null||t.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let n=this._lottie.playDirection;if(typeof this._loop=="number"&&this._loop>0&&(this._counter+=this._mode==="bounce"?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}this._mode==="bounce"&&typeof n=="number"&&(n=Number(n)*-1);let r=n===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(r,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:n})),this.goToAndPlay(r,!0))},this._intermission)):(this._setPlayerState(()=>({direction:n})),this.goToAndPlay(n===-1?this.totalFrames-1:0,!0))}),this._lottie.addEventListener("complete",()=>{if(this._lottie&&this._loop===!1&&this._mode==="bounce"){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let t=this._lottie.playDirection;this._mode==="bounce"&&typeof t=="number"&&(t=Number(t)*-1);let n=t===-1?this.totalFrames-1:0;this._setPlayerState(()=>({direction:t})),this.goToAndPlay(n,!0)},this._intermission)}else this._handleAnimationComplete()});for(let[t,n]of this._listeners)if(t==="complete")for(let r of n)(e=this._container)==null||e.addEventListener(t,r);else for(let r of n)this._lottie.addEventListener(t,r)}async _setCurrentAnimation(e){this._currentState="loading";let t=await this._dotLottieLoader.getAnimation(e);this._currentAnimationId=e,this._animation=t,this._currentState="ready"}async _getAudioFactory(){if(this._animation&&YC(this._animation)){let{DotLottieAudio:e}=await Pn(()=>import("./dotlottie-audio-efUd5333.js"),__vite__mapDeps([0,1]));return t=>{let n=new e({src:[t]});return this._audios.push(n),n}}return null}async render(e){var t,n,r,i,o,l,a,s,f,p,h,y,w,S,C,P,v,_;if(e!=null&&e.id)await this._setCurrentAnimation(e.id);else if(!this._animation)throw ce("no animation selected");let g=(t=Ft.loop)!=null?t:!1,E=(n=Ft.autoplay)!=null?n:!1,A=(r=Ft.playMode)!=null?r:"normal",D=(i=Ft.intermission)!=null?i:0,x=(o=Ft.hover)!=null?o:!1,L=(l=Ft.direction)!=null?l:1,N=(a=Ft.speed)!=null?a:1,W=(s=Ft.defaultTheme)!=null?s:"";g=(f=e==null?void 0:e.loop)!=null?f:this._getOption("loop"),E=(p=e==null?void 0:e.autoplay)!=null?p:this._getOption("autoplay"),A=(h=e==null?void 0:e.playMode)!=null?h:this._getOption("playMode"),D=(y=e==null?void 0:e.intermission)!=null?y:this._getOption("intermission"),x=(w=e==null?void 0:e.hover)!=null?w:this._getOption("hover"),L=(S=e==null?void 0:e.direction)!=null?S:this._getOption("direction"),N=(C=e==null?void 0:e.speed)!=null?C:this._getOption("speed"),W=(P=e==null?void 0:e.defaultTheme)!=null?P:this._getOption("defaultTheme");let Z={...this._animationConfig,autoplay:x?!1:E,loop:typeof g=="number"?!0:g,renderer:this._worker?"svg":(v=this._animationConfig.renderer)!=null?v:"svg"},[ae,re,Y]=await Promise.all([this._dotLottieLoader.getTheme(W),this._getLottiePlayerInstance(),this._getAudioFactory()]);if(ae&&this._animation?(this._animation=Us(this._animation),this._animation.slots=ae):this._animation=await this._dotLottieLoader.getAnimation((_=this._currentAnimationId)!=null?_:""),this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:W,playMode:A,intermission:D,hover:x,loop:g})),Y?this._lottie=re.loadAnimation({...Z,container:this._container,animationData:this._animation,audioFactory:Y}):this._lottie=re.loadAnimation({...Z,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>"u"&&(this._lottie.resetSegments=()=>{var te;(te=this._lottie)==null||te.playSegments([0,this._lottie.totalFrames],!0)}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:L,speed:N})),E&&!x&&(g===!1&&L===-1?this.play():this.setCurrentState("playing")),this._updateTestData()}async _getLottiePlayerInstance(){var e;let t=(e=this._animationConfig.renderer)!=null?e:"svg",n;if(this._worker)return t!=="svg"&&Oe("Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning."),n=await Pn(()=>import("./lottie_worker-Q23FJ6ZR-CZgcfgj7.js"),__vite__mapDeps([2,1])),n.default;switch(t){case"svg":{this._light?n=await Pn(()=>import("./lottie_light-KMJEUZFY-DZNzI0EV.js"),__vite__mapDeps([3,1])):n=await Pn(()=>import("./lottie_svg-MJGYILXD-Be1OGMYj.js"),__vite__mapDeps([4,1]));break}case"canvas":{this._light?n=await Pn(()=>import("./lottie_light_canvas-B5UTTNXA-zkUt6Qm4.js"),__vite__mapDeps([5,1])):n=await Pn(()=>import("./lottie_canvas-CDSUBMCL-jm7H_fxU.js"),__vite__mapDeps([6,1]));break}case"html":{this._light?n=await Pn(()=>import("./lottie_light_html-SLCECTRT-n6mnomVq.js"),__vite__mapDeps([7,1])):n=await Pn(()=>import("./lottie_html-X3TYKVQI-B12kHkKK.js"),__vite__mapDeps([8,1]));break}default:throw new Error(`Invalid renderer: ${t}`)}return n.default}_getActiveAnimationId(){var e,t,n,r;let i=this._dotLottieLoader.manifest;return(r=(n=(e=this._activeAnimationId)!=null?e:i==null?void 0:i.activeAnimationId)!=null?n:(t=i==null?void 0:i.animations[0])==null?void 0:t.id)!=null?r:void 0}async load(e){if(this._currentState==="loading"){Oe("Loading in progress..");return}try{if(this.setCurrentState("loading"),typeof this._src=="string")if(GC(this._src)){let n=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(n)}else{let n=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(n.toString())}else if(typeof this._src=="object"&&ya(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw ce("Invalid src provided");if(!this._dotLottieLoader.manifest)throw ce("No manifest found");let t=this._getActiveAnimationId();if(!t)throw ce("No active animation found");await this._setCurrentAnimation(t),await this.render(e)}catch(t){this.setCurrentState("error"),t instanceof Error&&Rr(`Error loading animation: ${t.message}`)}}setErrorState(e){this.setCurrentState("error"),Rr(e)}_requireValidDirection(e){if(e!==-1&&e!==1)throw ce("Direction can only be -1 (backwards) or 1 (forwards)")}_requireValidIntermission(e){if(e<0||!Number.isInteger(e))throw ce("intermission must be a positive number")}_requireValidLoop(e){if(typeof e=="number"&&(!Number.isInteger(e)||e<0))throw ce("loop must be a positive number or boolean")}_requireValidSpeed(e){if(typeof e!="number")throw ce("speed must be a number")}_requireValidBackground(e){if(typeof e!="string")throw ce("background must be a string")}_requireValidAutoplay(e){if(typeof e!="boolean")throw ce("autoplay must be a boolean")}_requireValidPlaybackOptions(e){e.direction&&this._requireValidDirection(e.direction),e.intermission&&this._requireValidIntermission(e.intermission),e.loop&&this._requireValidLoop(e.loop),e.speed&&this._requireValidSpeed(e.speed)}};function ok(){var e=I.useRef(!0);return e.current?(e.current=!1,!0):e.current}var lk=function(e,t){var n=ok();I.useEffect(function(){if(!n)return e()},t)},It=lk,ak=I.createContext(null),sk=ak.Provider,uk=(e,t,n)=>{let[r,i]=I.useState(()=>n());return I.useEffect(()=>{let o=e(()=>{let l=t();i(l)});return()=>{o()}},[e]),r},ck=typeof window>"u"?I.useEffect:I.useLayoutEffect,fk=(e,t,n)=>{let[r]=I.useState(()=>new ik(e,t.current,n)),i=I.useRef(!1);return ck(()=>{async function o(){!i.current&&t.current&&(i.current=!0,r.setContainer(t.current),await r.load())}return o(),()=>{i.current&&r.destroy()}},[r]),r};function ml(e,t){let n=I.useCallback(()=>t(e.getState()),[t,e]),r=I.useCallback(i=>e.state.subscribe(i),[e]);return uk(r,n,()=>t(oy))}var bp={animation:{position:"relative",width:"100%",height:"100%"},animationWithControls:{position:"relative"}},ly=Ee.forwardRef(({onEvent:e,activeAnimationId:t,autoplay:n,background:r="transparent",direction:i,intermission:o,loop:l,playMode:a,hover:s,speed:f,renderer:p="svg",rendererSettings:h={},src:y,className:w="",testId:S,children:C,defaultTheme:P,light:v=!1,worker:_=!1,activeStateId:g,lottieRef:E,...A},D)=>{let x=I.useRef(null),L=fk(y,x,{renderer:p,activeAnimationId:t,rendererSettings:{clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0,...h},hover:s,loop:l,direction:i,speed:f,intermission:o,background:r,playMode:a,autoplay:s?!1:n,testId:S,defaultTheme:P,light:v,worker:_,activeStateId:g}),N=I.useRef(L);N.current=L,Ee.useImperativeHandle(D,()=>L,[L]),Ee.useImperativeHandle(E,()=>L,[L]);let W=ml(L,Y=>Y.currentState),Z=ml(L,Y=>Y.frame),ae=ml(L,Y=>Y.seeker),re=ml(L,Y=>Y.currentAnimationId);return It(()=>{typeof l>"u"?N.current.revertToManifestValues(["loop"]):N.current.setLoop(l)},[l]),It(()=>{[dn.Initial,dn.Loading].includes(W)||(typeof n>"u"?N.current.revertToManifestValues(["autoplay"]):N.current.setAutoplay(n))},[n]),It(()=>{typeof i>"u"?N.current.revertToManifestValues(["direction"]):N.current.setDirection(i)},[i]),It(()=>{typeof f>"u"?N.current.revertToManifestValues(["speed"]):N.current.setSpeed(f)},[f]),It(()=>{typeof a>"u"?N.current.revertToManifestValues(["playMode"]):N.current.setMode(a)},[a]),It(()=>{typeof s>"u"?N.current.revertToManifestValues(["hover"]):N.current.setHover(s)},[s]),It(()=>{typeof r>"u"?N.current.setBackground("transparent"):N.current.setBackground(r)},[r]),It(()=>{typeof o>"u"?N.current.revertToManifestValues(["intermission"]):N.current.setIntermission(o)},[o]),It(()=>{typeof P>"u"||!P?N.current.revertToManifestValues(["defaultTheme"]):N.current.setDefaultTheme(P)},[P]),It(()=>{t&&N.current.play(t)},[t]),It(()=>(typeof g<"u"&&N.current.enterInteractiveMode(g),()=>{N.current.exitInteractiveMode()}),[g]),It(()=>{typeof y<"u"&&N.current.updateSrc(y)},[y]),I.useEffect(()=>{let Y=()=>{e==null||e($t.Ready)},te=()=>{e==null||e($t.DataReady)},$e=()=>{e==null||e($t.DataFail)},me=()=>{N.current.currentState!==dn.Playing&&(e==null||e($t.Complete))},R=()=>{e==null||e($t.LoopComplete)};return N.current.addEventListener("DOMLoaded",Y),N.current.addEventListener("data_ready",te),N.current.addEventListener("data_failed",$e),N.current.addEventListener("complete",me),N.current.addEventListener("loopComplete",R),()=>{N.current.removeEventListener("DOMLoaded",Y),N.current.removeEventListener("data_ready",te),N.current.removeEventListener("data_failed",$e),N.current.removeEventListener("complete",me),N.current.removeEventListener("loopComplete",R)}},[]),I.useEffect(()=>{switch(W){case dn.Stopped:e==null||e($t.Stop);break;case dn.Paused:e==null||e($t.Pause);break;case dn.Playing:e==null||e($t.Play);break;case dn.Frozen:e==null||e($t.Freeze);break;case dn.Error:e==null||e($t.Error);break}},[W]),I.useEffect(()=>{e==null||e($t.Frame,{frame:Z,seeker:ae})},[Z]),Ee.createElement(sk,{value:L},Ee.createElement("div",{className:`dotlottie-container main ${C?"controls":""} ${w}`,lang:"en",...S&&{"data-testid":S},...A},Ee.createElement("div",{ref:x,"data-name":`${re}`,role:"figure",className:`animation ${C?"controls":""}`,style:C?bp.animationWithControls:bp.animation,...S&&{"data-testid":"animation"}},W===dn.Error&&Ee.createElement("div",{...S&&{"data-testid":"error"},className:"error"},"⚠️")),C))});function dk(e){return wi({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5h10v3l4-4-4-4v3h-12v6h2zM14 11h-10v-3l-4 4 4 4v-3h12v-6h-2z"},child:[]}]})(e)}function pk(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M84.41 106c-15.63.1-27.67 13.8-25.69 29.3 16 124 16 117.4 0 241.4-2.54 19.8 17.33 35 35.79 27.3L361.5 292.9v98.8c0 7.9 8.9 14.2 20 14.3h52c11.1-.1 20-6.4 20-14.3V120.2c-.1-7.8-9-14.1-20-14.2h-52c-11 .1-19.9 6.4-20 14.2v98.9L94.51 108c-3.2-1.3-6.63-2-10.1-2z"},child:[]}]})(e)}function hk(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M427.6 106c15.6.1 27.7 13.8 25.7 29.3-16 124-16 117.4 0 241.4 2.5 19.8-17.4 35-35.8 27.3l-267-111.1v98.8c0 7.9-8.9 14.2-20 14.3H78.49c-11.1-.1-20-6.4-20-14.3V120.2c.1-7.8 9-14.1 20-14.2h52.01c11 .1 19.9 6.4 20 14.2v98.9l267-111.1c3.2-1.3 6.6-2 10.1-2z"},child:[]}]})(e)}const Ap=({className:e="",title:t,loadTime:n,...r})=>M.jsxs("div",{className:`flex flex-col items-center ${e}`,...r,children:[M.jsx("p",{className:"text-xl font-bold mb-2",children:t}),M.jsxs("p",{className:"text-xs px-2 py-1 bg-strong rounded-full flex justify-center items-center",children:["Load Time: ",n,"ms"]})]});let vl=performance.now();function mk(){const e=I.useRef(null),[t,n]=I.useState(null),r=Fe(x=>x.viewer.src),i=Fe(x=>x.viewer.backgroundColor),o=Fe(x=>x.viewer.speed),l=Fe(x=>x.viewer.autoplay),a=Fe(x=>x.viewer.loop),s=Fe(x=>x.viewer.totalFrames),f=Fe(x=>x.viewer.currentFrame),p=Fe(x=>x.viewer.currentState),h=Fe(x=>x.viewer.mode),y=Fe(x=>x.viewer.activeAnimationId),w=Fe(x=>x.viewer.activeThemeId),S=Fe(x=>x.viewer.isJson),C=Fe(x=>x.viewer.loadTime),P=Fe(x=>x.viewer.animations),v=Ao(),_=I.useCallback(()=>{var L,N,W,Z,ae,re;v(Zw(t==null?void 0:t.totalFrames));const x=performance.now();v(rS(x-vl)),!r.endsWith(".json")&&!r.startsWith("data:application/json")&&(y||v(Ll(((W=(N=(L=t==null?void 0:t.manifest)==null?void 0:L.animations)==null?void 0:N[0])==null?void 0:W.id)||"")),v(ip(((ae=(Z=t==null?void 0:t.manifest)==null?void 0:Z.animations)==null?void 0:ae.map(Y=>Y.id))||[])),v(rp(((re=t==null?void 0:t.manifest)==null?void 0:re.themes)||[])))},[r,t,v,y]),g=I.useCallback(()=>{v(qw((t==null?void 0:t.currentFrame)||0))},[v,t]),E=I.useCallback(()=>{const x=P.indexOf(y);if(x===-1)return;const L=(x+1)%P.length;return P[L]},[P,y]),A=I.useCallback(()=>{const x=P.indexOf(y);if(x===-1)return;const L=(x-1+P.length)%P.length;return P[L]},[P,y]);I.useEffect(()=>{if(t)return t.addEventListener("load",_),t.addEventListener("frame",g),()=>{t.removeEventListener("load",_),t.removeEventListener("frame",g)}},[_,t,g]);const D=I.useCallback(x=>{x.addEventListener("complete",()=>{v(dl("stopped"))}),x.addEventListener("stop",()=>{v(dl("stopped"))}),x.addEventListener("play",()=>{v(dl("playing"))}),x.addEventListener("pause",()=>{v(dl("paused"))})},[v]);return I.useEffect(()=>{t&&(vl=performance.now(),t==null||t.loadAnimation(y))},[y,t]),I.useEffect(()=>{t&&(t==null||t.loadTheme(w))},[w,t]),I.useEffect(()=>{var x,L,N;t&&(v(ip(((L=(x=t==null?void 0:t.manifest)==null?void 0:x.animations)==null?void 0:L.map(W=>W.id))||[])),v(rp(((N=t==null?void 0:t.manifest)==null?void 0:N.themes)||[])))},[t,v]),I.useEffect(()=>{vl=performance.now()},[r,t]),M.jsx(M.Fragment,{children:M.jsxs("div",{className:"h-full flex-grow flex justify-between items-center flex-col gap-4",children:[M.jsxs("div",{className:"flex justify-center h-full",children:[M.jsxs("div",{className:"flex flex-col dotlottie-player",children:[M.jsx(Ap,{className:"mb-4",title:"dotLottie Web",loadTime:parseFloat(C.dotLottie.toFixed(2))}),M.jsx("div",{className:"flex justify-center items-center p-4 flex-grow",children:M.jsx("div",{style:{width:"350px",height:"350px"},children:M.jsx(F2,{backgroundColor:i,width:350,height:350,autoplay:l,loop:a,mode:h,speed:o,dotLottieRefCallback:x=>{x&&(D(x),n(x))},src:r})})})]}),S?M.jsxs("div",{className:"flex flex-col lottie-web",children:[M.jsx(Ap,{className:"mb-4",title:"Lottie Web",loadTime:parseFloat(C.lottieWeb.toFixed(2))}),M.jsx("div",{className:"flex justify-center items-center p-4 flex-grow",children:M.jsx("div",{style:{width:"350px",height:"350px"},children:M.jsx(ly,{lottieRef:x=>{e.current=x},background:i,autoplay:l,loop:a,speed:o,onEvent:x=>{if(x==="ready"){const L=performance.now();v(iS(L-vl))}},src:r})})})]}):null]}),M.jsxs("div",{className:"flex items-center gap-4 w-full max-w-[720px]",children:[P.length>1?M.jsx("button",{onClick:()=>{const x=A();x&&v(Ll(x))},children:M.jsx(hk,{})}):null,p!=="playing"?M.jsx("button",{onClick:()=>{var x;t==null||t.play(),(x=e.current)==null||x.play()},children:M.jsx(c2,{})}):M.jsx("button",{onClick:()=>{var x;t==null||t.pause(),(x=e.current)==null||x.pause()},children:M.jsx(u2,{})}),P.length>1?M.jsx("button",{onClick:()=>{const x=E();x&&v(Ll(x))},children:M.jsx(pk,{})}):null,M.jsx(Qu,{onMouseDown:()=>{var x;t==null||t.pause(),(x=e.current)==null||x.pause()},onChange:x=>{var L;t==null||t.setFrame(parseFloat(x.target.value)),(L=e.current)==null||L.seek(parseFloat(x.target.value))},type:"range",className:"w-full seeker",min:0,max:s,value:f}),M.jsxs("span",{className:"p-2 w-36 text-center flex",children:[M.jsx("input",{className:"w-14 text-right pr-1 bg-transparent",value:f.toFixed(2),disabled:!0}),"/ ",M.jsx("input",{className:"w-14 pl-1 bg-transparent",value:s,disabled:!0})]}),M.jsx("button",{className:"cursor-pointer",onClick:()=>v(Jw(!a)),children:M.jsx(dk,{className:`${a?"":"text-gray-500"}`})})]})]})})}const vk="/dotlottie-web/assets/brand-logo-B3LfkM1n.svg";function Mp(e){const t=Ao();return M.jsxs("button",{onClick:()=>{t(aa(e.url))},className:"rounded-lg bg-white border border-transparent hover:border-lottie",children:[M.jsx("div",{children:M.jsx(ly,{style:{height:"120px"},src:e.url})}),M.jsx("div",{className:"text-xs py-1 bg-strong rounded-b-lg",children:e.name})]})}const yk=({className:e="",...t})=>M.jsxs("div",{className:`gap-2 flex flex-col ${e}`,...t,children:[M.jsx(Mp,{name:"multi-animations",url:"https://lottie.host/294b684d-d6b4-4116-ab35-85ef566d4379/VkGHcqcMUI.lottie"}),M.jsx(Mp,{name:"theming example",url:"/dotlottie-web/theming_example.lottie"})]});function gk(){return M.jsxs("section",{className:"p-4 flex flex-col gap-4 h-full",children:[M.jsx("a",{href:"/",children:M.jsx("img",{src:vk,alt:"logo"})}),M.jsxs("div",{className:"flex flex-col gap-4 flex-grow overflow-auto",children:[M.jsx("p",{className:"text-primary text-3xl font-bold",children:"Unleash the power of animations using dotLottie"}),M.jsx("p",{className:"text-secondary",children:"Create captivating product experiences with dotLottie animations."}),M.jsx("a",{href:"https://developers.lottiefiles.com/docs/dotlottie-web/dotlottie-web/getting-started/",className:"bg-lottie rounded-lg p-4 text-white font-bold w-fit",children:"Get Started"}),M.jsx(yk,{})]})]})}const _k=({className:e="",...t})=>{const n=Ao(),r=I.useRef(null),i=Fe(a=>a.viewer.userSrc);function o(a){const s=a[0],f=new FileReader;f.onload=()=>{const p=f.result;typeof p=="string"&&(n(aa(p)),n(Uu(s.name)))},f.readAsDataURL(s)}function l(a){a.forEach(s=>{const{file:f,errors:p}=s;p.forEach(h=>{switch(h.code){case ua.FileTooLarge:alert(`${f.name} is too large, please pick a smaller file`);break;case ua.FileInvalidType:alert(`${f.name} is not supported, please pick a supported file`);break}})})}return M.jsx("div",{className:`flex justify-center items-center gap-2 bg-strong px-4 py-2 rounded-lg ${e}`,...t,children:i?M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"",children:i}),M.jsx("button",{className:"p-2 bg-subtle rounded-lg font-bold",onClick:()=>{n(nS())},children:"Reset"})]}):M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"font-bold",children:"Try it yourself!"}),M.jsx(Av,{onDrop:o,onDropRejected:l,children:a=>M.jsxs("button",{className:"p-2 bg-subtle rounded-lg font-bold",...a.getRootProps(),children:[M.jsx("input",{...a.getInputProps()}),"Browse file"]})}),M.jsx("span",{children:"or"}),M.jsx("input",{ref:r,className:"p-2 rounded-lg flex-grow",placeholder:"Paste JSON or .lottie URL"}),M.jsx("button",{className:"p-2 bg-subtle rounded-lg font-bold",onClick:()=>{r.current&&(n(aa(r.current.value)),n(Uu(r.current.value)))},children:"Load animation"})]})})};function wk(){const e=Fe(o=>o.viewer.theme),t=Ao(),n=I.useRef(null);I.useEffect(()=>{var o;e&&((o=n.current)==null||o.loadTheme(e))},[e,n]);function r(o){const l=o[0],a=new FileReader;a.onload=()=>{const s=a.result;typeof s=="string"&&(t(aa(s)),t(Uu(l.name)))},a.readAsDataURL(l)}function i(o){o.forEach(l=>{const{file:a,errors:s}=l;s.forEach(f=>{switch(f.code){case ua.FileTooLarge:alert(`${a.name} is too large, please pick a smaller file`);break;case ua.FileInvalidType:alert(`${a.name} is not supported, please pick a supported file`);break}})})}return M.jsx(M.Fragment,{children:M.jsx(Av,{noClick:!0,onDrop:r,onDropRejected:i,children:o=>M.jsxs("div",{className:"flex gap-4 p-4 h-screen",...o.getRootProps(),children:[M.jsx("input",{...o.getInputProps()}),o.isDragActive?M.jsx("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-60 flex justify-center items-center text-white bold",children:M.jsx("div",{children:"Drop it like it's hot!"})}):null,M.jsx("div",{className:"bg-subtle border border-subtle rounded-lg max-w-80",children:M.jsx(gk,{})}),M.jsxs("div",{className:"flex flex-col gap-4 flex-grow",children:[M.jsx(_k,{}),M.jsxs("div",{className:"flex-1 flex p-4 gap-4 bg-subtle rounded-lg",children:[M.jsx("div",{className:"flex-1",children:M.jsx(mk,{})}),M.jsx("div",{className:"w-80",children:M.jsx(f2,{})})]})]})]})})})}const Sk=Ow({reducer:{viewer:oS}});Ws.createRoot(document.getElementById("root")).render(M.jsx(Ee.StrictMode,{children:M.jsx(W_,{store:Sk,children:M.jsx(wk,{})})}));export{Rr as a,Mk as d,ce as o,Ft as u}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lv(e,t){if(e){if(typeof e=="string")return Vu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vu(e,t)}}function Vu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ra=F.forwardRef(function(e,t){var n=e.children,r=fa(e,US),i=ZS(r),o=i.open,l=fa(i,WS);return F.useImperativeHandle(t,function(){return{open:o}},[o]),Ee.createElement(F.Fragment,null,n(Ce(Ce({},l),{},{open:o})))});Ra.displayName="Dropzone";var bv={disabled:!1,getFilesFromEvent:hS,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ra.defaultProps=bv;Ra.propTypes={children:he.func,accept:he.objectOf(he.arrayOf(he.string)),multiple:he.bool,preventDropOnDocument:he.bool,noClick:he.bool,noKeyboard:he.bool,noDrag:he.bool,noDragEventsBubbling:he.bool,minSize:he.number,maxSize:he.number,maxFiles:he.number,disabled:he.bool,getFilesFromEvent:he.func,onFileDialogCancel:he.func,onFileDialogOpen:he.func,useFsAccessApi:he.bool,autoFocus:he.bool,onDragEnter:he.func,onDragLeave:he.func,onDragOver:he.func,onDrop:he.func,onDropAccepted:he.func,onDropRejected:he.func,onError:he.func,validator:he.func};const Av=Ra;var Ku={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ZS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ce(Ce({},bv),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,a=t.multiple,s=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,y=t.onDrop,w=t.onDropAccepted,S=t.onDropRejected,C=t.onFileDialogCancel,P=t.onFileDialogOpen,v=t.useFsAccessApi,_=t.autoFocus,g=t.preventDropOnDocument,E=t.noClick,A=t.noKeyboard,D=t.noDrag,x=t.noDragEventsBubbling,L=t.onError,N=t.validator,W=F.useMemo(function(){return NS(n)},[n]),Z=F.useMemo(function(){return $S(n)},[n]),ae=F.useMemo(function(){return typeof P=="function"?P:vp},[P]),re=F.useMemo(function(){return typeof C=="function"?C:vp},[C]),Y=F.useRef(null),te=F.useRef(null),$e=F.useReducer(e2,Ku),me=js($e,2),R=me[0],H=me[1],J=R.isFocused,oe=R.isFileDialogActive,de=F.useRef(typeof window<"u"&&window.isSecureContext&&v&&DS()),Qe=function(){!de.current&&oe&&setTimeout(function(){if(te.current){var Q=te.current.files;Q.length||(H({type:"closeDialog"}),re())}},300)};F.useEffect(function(){return window.addEventListener("focus",Qe,!1),function(){window.removeEventListener("focus",Qe,!1)}},[te,oe,re,de]);var we=F.useRef([]),it=function(Q){Y.current&&Y.current.contains(Q.target)||(Q.preventDefault(),we.current=[])};F.useEffect(function(){return g&&(document.addEventListener("dragover",hp,!1),document.addEventListener("drop",it,!1)),function(){g&&(document.removeEventListener("dragover",hp),document.removeEventListener("drop",it))}},[Y,g]),F.useEffect(function(){return!r&&_&&Y.current&&Y.current.focus(),function(){}},[Y,_,r]);var Ae=F.useCallback(function(U){L?L(U):console.error(U)},[L]),dt=F.useCallback(function(U){U.preventDefault(),U.persist(),dr(U),we.current=[].concat(HS(we.current),[U.target]),pl(U)&&Promise.resolve(i(U)).then(function(Q){if(!(ca(U)&&!x)){var Te=Q.length,Ne=Te>0&&MS({files:Q,accept:W,minSize:l,maxSize:o,multiple:a,maxFiles:s,validator:N}),Ue=Te>0&&!Ne;H({isDragAccept:Ne,isDragReject:Ue,isDragActive:!0,type:"setDraggedFiles"}),f&&f(U)}}).catch(function(Q){return Ae(Q)})},[i,f,Ae,x,W,l,o,a,s,N]),cr=F.useCallback(function(U){U.preventDefault(),U.persist(),dr(U);var Q=pl(U);if(Q&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return Q&&h&&h(U),!1},[h,x]),fr=F.useCallback(function(U){U.preventDefault(),U.persist(),dr(U);var Q=we.current.filter(function(Ne){return Y.current&&Y.current.contains(Ne)}),Te=Q.indexOf(U.target);Te!==-1&&Q.splice(Te,1),we.current=Q,!(Q.length>0)&&(H({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pl(U)&&p&&p(U))},[Y,p,x]),rn=F.useCallback(function(U,Q){var Te=[],Ne=[];U.forEach(function(Ue){var _n=xv(Ue,W),ln=js(_n,2),an=ln[0],Ht=ln[1],Rn=Pv(Ue,l,o),pr=js(Rn,2),zn=pr[0],Mt=pr[1],Ei=N?N(Ue):null;if(an&&zn&&!Ei)Te.push(Ue);else{var xi=[Ht,Mt];Ei&&(xi=xi.concat(Ei)),Ne.push({file:Ue,errors:xi.filter(function(Va){return Va})})}}),(!a&&Te.length>1||a&&s>=1&&Te.length>s)&&(Te.forEach(function(Ue){Ne.push({file:Ue,errors:[AS]})}),Te.splice(0)),H({acceptedFiles:Te,fileRejections:Ne,type:"setFiles"}),y&&y(Te,Ne,Q),Ne.length>0&&S&&S(Ne,Q),Te.length>0&&w&&w(Te,Q)},[H,a,W,l,o,s,y,w,S,N]),on=F.useCallback(function(U){U.preventDefault(),U.persist(),dr(U),we.current=[],pl(U)&&Promise.resolve(i(U)).then(function(Q){ca(U)&&!x||rn(Q,U)}).catch(function(Q){return Ae(Q)}),H({type:"reset"})},[i,rn,Ae,x]),bt=F.useCallback(function(){if(de.current){H({type:"openDialog"}),ae();var U={multiple:a,types:Z};window.showOpenFilePicker(U).then(function(Q){return i(Q)}).then(function(Q){rn(Q,null),H({type:"closeDialog"})}).catch(function(Q){RS(Q)?(re(Q),H({type:"closeDialog"})):zS(Q)?(de.current=!1,te.current?(te.current.value=null,te.current.click()):Ae(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ae(Q)});return}te.current&&(H({type:"openDialog"}),ae(),te.current.value=null,te.current.click())},[H,ae,re,v,rn,Ae,Z,a]),At=F.useCallback(function(U){!Y.current||!Y.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),bt())},[Y,bt]),No=F.useCallback(function(){H({type:"focus"})},[]),Ro=F.useCallback(function(){H({type:"blur"})},[]),Ci=F.useCallback(function(){E||(FS()?setTimeout(bt,0):bt())},[E,bt]),Nn=function(Q){return r?null:Q},ki=function(Q){return A?null:Nn(Q)},Dr=function(Q){return D?null:Nn(Q)},dr=function(Q){x&&Q.stopPropagation()},zo=F.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=U.refKey,Te=Q===void 0?"ref":Q,Ne=U.role,Ue=U.onKeyDown,_n=U.onFocus,ln=U.onBlur,an=U.onClick,Ht=U.onDragEnter,Rn=U.onDragOver,pr=U.onDragLeave,zn=U.onDrop,Mt=fa(U,BS);return Ce(Ce(Hu({onKeyDown:ki(fn(Ue,At)),onFocus:ki(fn(_n,No)),onBlur:ki(fn(ln,Ro)),onClick:Nn(fn(an,Ci)),onDragEnter:Dr(fn(Ht,dt)),onDragOver:Dr(fn(Rn,cr)),onDragLeave:Dr(fn(pr,fr)),onDrop:Dr(fn(zn,on)),role:typeof Ne=="string"&&Ne!==""?Ne:"presentation"},Te,Y),!r&&!A?{tabIndex:0}:{}),Mt)}},[Y,At,No,Ro,Ci,dt,cr,fr,on,A,D,r]),Wa=F.useCallback(function(U){U.stopPropagation()},[]),Ba=F.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=U.refKey,Te=Q===void 0?"ref":Q,Ne=U.onChange,Ue=U.onClick,_n=fa(U,VS),ln=Hu({accept:W,multiple:a,type:"file",style:{display:"none"},onChange:Nn(fn(Ne,on)),onClick:Nn(fn(Ue,Wa)),tabIndex:-1},Te,te);return Ce(Ce({},ln),_n)}},[te,n,a,on,r]);return Ce(Ce({},R),{},{isFocused:J&&!r,getRootProps:zo,getInputProps:Ba,rootRef:Y,inputRef:te,open:Nn(bt)})}function e2(e,t){switch(t.type){case"focus":return Ce(Ce({},e),{},{isFocused:!0});case"blur":return Ce(Ce({},e),{},{isFocused:!1});case"openDialog":return Ce(Ce({},Ku),{},{isFileDialogActive:!0});case"closeDialog":return Ce(Ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ce(Ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ce(Ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ce({},Ku);default:return e}}function vp(){}const Qu=({className:e="",...t})=>{let n=`border bg-transparent w-full py-1 min-h-10 ${e}`;return t.type!=="color"?n+=" px-2":n+=" px-1",M.jsx("input",{className:n,...t})};var Mv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yp=Ee.createContext&&Ee.createContext(Mv),t2=["attr","size","title"];function n2(e,t){if(e==null)return{};var n=r2(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;tEe.createElement(t.tag,pa({key:n},t.attr),jv(t.child)))}function wi(e){return t=>Ee.createElement(a2,da({attr:pa({},e.attr)},t),jv(e.child))}function a2(e){var t=n=>{var{attr:r,size:i,title:o}=e,l=n2(e,t2),a=i||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),Ee.createElement("svg",da({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:s,style:pa(pa({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ee.createElement("title",null,o),e.children)};return yp!==void 0?Ee.createElement(yp.Consumer,null,n=>t(n)):t(Mv)}function s2(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function u2(e){return wi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function c2(e){return wi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}const Is=({className:e="",items:t,placeholder:n,emptyMessage:r,...i})=>{const o=`border bg-transparent px-2 py-2 min-h-10 ${e}`,[l,a]=F.useState(()=>n?[{value:"",label:n},...t]:t);return F.useEffect(()=>{a(n?[{value:"",label:n},...t]:t)},[t,n]),t.length===0?M.jsxs("span",{className:"min-h-10 text-gray-500 text-xs flex items-center gap-2 h-10",children:[M.jsx(s2,{}),r]}):M.jsx("select",{className:o,...i,children:l.map(s=>M.jsx("option",{value:s.value,children:s.label},s.value))})},Ui=({className:e="",lablel:t,children:n,...r})=>{const i=`flex flex-col gap-1 w-full ${e}`;return M.jsxs("div",{className:i,children:[M.jsx("label",{className:"text-sm",...r,children:t}),M.jsx("div",{children:n})]})};function f2(){const e=Ie(l=>l.viewer.speed),t=Ie(l=>l.viewer.animations),n=Ie(l=>l.viewer.themes),r=Ie(l=>l.viewer.backgroundColor),i=Ie(l=>l.viewer.activeAnimationId),o=Ao();return M.jsx("div",{className:"flex border p-4 bg-white rounded-lg h-full",children:M.jsxs("div",{className:"flex flex-col items-center gap-4 w-full",children:[M.jsx(Ui,{lablel:"backgroundColor",children:M.jsx(Qu,{type:"color",defaultValue:r,onChange:l=>{o(Xw(l.target.value))}})}),M.jsx(Ui,{lablel:"Speed",children:M.jsx(Qu,{type:"number",defaultValue:e,onChange:l=>{o(Gw(parseFloat(l.target.value)))}})}),M.jsx(Ui,{lablel:"Animation",children:M.jsx(Is,{className:"w-full",onChange:l=>{o(Ll(l.target.value))},value:i,emptyMessage:"Single animation available for this file",placeholder:"Select an Animation",items:t.length===1?[]:t.map(l=>({value:l,label:l}))})}),M.jsx(Ui,{lablel:"Themes",children:M.jsx(Is,{className:"w-full",onChange:l=>{o(tS(l.target.value))},placeholder:"default theme",emptyMessage:"No themes available for this animation",items:n.map(l=>({value:l.id,label:l.id}))})}),M.jsx(Ui,{lablel:"Mode",children:M.jsx(Is,{className:"w-full",onChange:l=>{o(eS(l.target.value))},defaultValue:"3",items:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"},{value:"bounce",label:"Bounce"},{value:"reverse-bounce",label:"Reverse Bounce"}]})})]})})}var d2=Object.create,Iv=Object.defineProperty,p2=Object.getOwnPropertyDescriptor,Fv=Object.getOwnPropertyNames,h2=Object.getPrototypeOf,m2=Object.prototype.hasOwnProperty,v2=(e,t)=>function(){return t||(0,e[Fv(e)[0]])((t={exports:{}}).exports,t),t.exports},y2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Fv(t))!m2.call(e,i)&&i!==n&&Iv(e,i,{get:()=>t[i],enumerable:!(r=p2(t,i))||r.enumerable});return e},g2=(e,t,n)=>(n=e!=null?d2(h2(e)):{},y2(t||!e||!e.__esModule?Iv(n,"default",{value:e,enumerable:!0}):n,e)),_2=v2({"../../node_modules/.pnpm/debounce@2.0.0/node_modules/debounce/index.js"(e,t){function n(r,i=100,o={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");const{immediate:l}=typeof o=="boolean"?{immediate:o}:o;let a,s,f,p,h;function y(){const S=Date.now()-p;if(S=0)f=setTimeout(y,i-S);else if(f=void 0,!l){const C=a,P=s;a=void 0,s=void 0,h=r.apply(C,P)}}const w=function(...S){if(a&&this!==a)throw new Error("Debounced method called with different contexts.");a=this,s=S,p=Date.now();const C=l&&!f;if(f||(f=setTimeout(y,i)),C){const P=a,v=s;a=void 0,s=void 0,h=r.apply(P,v)}return h};return w.clear=()=>{f&&(clearTimeout(f),f=void 0)},w.flush=()=>{if(!f)return;const S=a,C=s;a=void 0,s=void 0,h=r.apply(S,C),clearTimeout(f),f=void 0},w}t.exports.debounce=n,t.exports=n}}),w2=Object.defineProperty,S2=(e,t,n)=>t in e?w2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>(S2(e,typeof t!="symbol"?t+"":t,n),n),C2=class{requestAnimationFrame(t){return requestAnimationFrame(t)}cancelAnimationFrame(t){cancelAnimationFrame(t)}},k2=class{constructor(){tt(this,"_lastHandleId",0),tt(this,"_lastImmediate",null)}requestAnimationFrame(t){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{t(Date.now())}),this._lastHandleId}cancelAnimationFrame(t){this._lastImmediate&&clearImmediate(this._lastImmediate)}},E2=class{constructor(){tt(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new C2:new k2}requestAnimationFrame(t){return this._strategy.requestAnimationFrame(t)}cancelAnimationFrame(t){this._strategy.cancelAnimationFrame(t)}},_p=typeof window<"u"&&typeof window.document<"u",ha={name:"@lottiefiles/dotlottie-web",version:"0.18.1",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",engines:{node:">=18"},main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.0.1",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},x2=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){var n=t,r,i;n.ready=new Promise((u,c)=>{r=u,i=c});var o=Object.assign({},n),l="./this.program",a=!0,s="";function f(u){return n.locateFile?n.locateFile(u,s):s+u}typeof document<"u"&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s.indexOf("blob:")!==0?s=s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):s="";var p=n.print||console.log.bind(console),h=n.printErr||console.error.bind(console);Object.assign(n,o),o=null,n.arguments&&n.arguments,n.thisProgram&&(l=n.thisProgram),n.quit&&n.quit;var y;n.wasmBinary&&(y=n.wasmBinary),typeof WebAssembly!="object"&&oe("no native wasm support detected");var w,S=!1,C,P,v,_,g,E,A,D;function x(){var u=w.buffer;n.HEAP8=C=new Int8Array(u),n.HEAP16=v=new Int16Array(u),n.HEAPU8=P=new Uint8Array(u),n.HEAPU16=_=new Uint16Array(u),n.HEAP32=g=new Int32Array(u),n.HEAPU32=E=new Uint32Array(u),n.HEAPF32=A=new Float32Array(u),n.HEAPF64=D=new Float64Array(u)}var L=[],N=[],W=[];function Z(){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)Y(n.preRun.shift());rn(L)}function ae(){rn(N)}function re(){if(n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;)$e(n.postRun.shift());rn(W)}function Y(u){L.unshift(u)}function te(u){N.unshift(u)}function $e(u){W.unshift(u)}var me=0,R=null;function H(u){var c;me++,(c=n.monitorRunDependencies)==null||c.call(n,me)}function J(u){var d;if(me--,(d=n.monitorRunDependencies)==null||d.call(n,me),me==0&&R){var c=R;R=null,c()}}function oe(u){var d;(d=n.onAbort)==null||d.call(n,u),u="Aborted("+u+")",h(u),S=!0,u+=". Build with -sASSERTIONS for more info.";var c=new WebAssembly.RuntimeError(u);throw i(c),c}var de="data:application/octet-stream;base64,",Qe=u=>u.startsWith(de),we;we="DotLottiePlayer.wasm",Qe(we)||(we=f(we));function it(u){if(u==we&&y)return new Uint8Array(y);throw"both async and sync fetching of the wasm failed"}function Ae(u){return!y&&a&&typeof fetch=="function"?fetch(u,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+u+"'";return c.arrayBuffer()}).catch(()=>it(u)):Promise.resolve().then(()=>it(u))}function dt(u,c,d){return Ae(u).then(m=>WebAssembly.instantiate(m,c)).then(m=>m).then(d,m=>{h(`failed to asynchronously prepare wasm: ${m}`),oe(m)})}function cr(u,c,d,m){return!u&&typeof WebAssembly.instantiateStreaming=="function"&&!Qe(c)&&typeof fetch=="function"?fetch(c,{credentials:"same-origin"}).then(k=>{var T=WebAssembly.instantiateStreaming(k,d);return T.then(m,function(b){return h(`wasm streaming compile failed: ${b}`),h("falling back to ArrayBuffer instantiation"),dt(c,d,m)})}):dt(c,d,m)}function fr(){var u={a:Rg};function c(m,k){return Me=m.exports,w=Me.ba,x(),_f=Me.ea,te(Me.ca),J(),Me}H();function d(m){c(m.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(u,c)}catch(m){h(`Module.instantiateWasm callback failed with error: ${m}`),i(m)}return cr(y,we,u,d).catch(i),{}}var rn=u=>{for(;u.length>0;)u.shift()(n)};n.noExitRuntime;var on=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,bt=(u,c,d)=>{for(var m=c+d,k=c;u[k]&&!(k>=m);)++k;if(k-c>16&&u.buffer&&on)return on.decode(u.subarray(c,k));for(var T="";c>10,56320|z&1023)}}return T},At=(u,c)=>u?bt(P,u,c):"",No=(u,c,d,m)=>{oe(`Assertion failed: ${At(u)}, at: `+[c?At(c):"unknown filename",d,m?At(m):"unknown function"])};function Ro(u){this.excPtr=u,this.ptr=u-24,this.set_type=function(c){E[this.ptr+4>>2]=c},this.get_type=function(){return E[this.ptr+4>>2]},this.set_destructor=function(c){E[this.ptr+8>>2]=c},this.get_destructor=function(){return E[this.ptr+8>>2]},this.set_caught=function(c){c=c?1:0,C[this.ptr+12>>0]=c},this.get_caught=function(){return C[this.ptr+12>>0]!=0},this.set_rethrown=function(c){c=c?1:0,C[this.ptr+13>>0]=c},this.get_rethrown=function(){return C[this.ptr+13>>0]!=0},this.init=function(c,d){this.set_adjusted_ptr(0),this.set_type(c),this.set_destructor(d)},this.set_adjusted_ptr=function(c){E[this.ptr+16>>2]=c},this.get_adjusted_ptr=function(){return E[this.ptr+16>>2]},this.get_exception_ptr=function(){var c=bf(this.get_type());if(c)return E[this.excPtr>>2];var d=this.get_adjusted_ptr();return d!==0?d:this.excPtr}}var Ci=0,Nn=(u,c,d)=>{var m=new Ro(u);throw m.init(c,d),Ci=u,Ci};function ki(u,c,d){return 0}var Dr=(u,c)=>{},dr=u=>{for(var c=0,d=0;d=55296&&m<=57343?(c+=4,++d):c+=3}return c},zo=(u,c,d,m)=>{if(!(m>0))return 0;for(var k=d,T=d+m-1,b=0;b=55296&&O<=57343){var j=u.charCodeAt(++b);O=65536+((O&1023)<<10)|j&1023}if(O<=127){if(d>=T)break;c[d++]=O}else if(O<=2047){if(d+1>=T)break;c[d++]=192|O>>6,c[d++]=128|O&63}else if(O<=65535){if(d+2>=T)break;c[d++]=224|O>>12,c[d++]=128|O>>6&63,c[d++]=128|O&63}else{if(d+3>=T)break;c[d++]=240|O>>18,c[d++]=128|O>>12&63,c[d++]=128|O>>6&63,c[d++]=128|O&63}}return c[d]=0,d-k},Wa=(u,c,d)=>zo(u,P,c,d),Ba=(u,c)=>{};function U(u,c,d){return 0}var Q=(u,c,d,m)=>{};function Te(u,c,d,m){}var Ne=(u,c)=>{},Ue={},_n=u=>{for(;u.length;){var c=u.pop(),d=u.pop();d(c)}};function ln(u){return this.fromWireType(g[u>>2])}var an={},Ht={},Rn={},pr,zn=u=>{throw new pr(u)},Mt=(u,c,d)=>{u.forEach(function(O){Rn[O]=c});function m(O){var j=d(O);j.length!==u.length&&zn("Mismatched type converter count");for(var z=0;z{Ht.hasOwnProperty(O)?k[j]=Ht[O]:(T.push(O),an.hasOwnProperty(O)||(an[O]=[]),an[O].push(()=>{k[j]=Ht[O],++b,b===T.length&&m(k)}))}),T.length===0&&m(k)},Ei=u=>{var c=Ue[u];delete Ue[u];var d=c.rawConstructor,m=c.rawDestructor,k=c.fields,T=k.map(b=>b.getterReturnType).concat(k.map(b=>b.setterArgumentType));Mt([u],T,b=>{var O={};return k.forEach((j,z)=>{var V=j.fieldName,G=b[z],X=j.getter,ee=j.getterContext,je=b[z+k.length],Be=j.setter,ye=j.setterContext;O[V]={read:wt=>G.fromWireType(X(ee,wt)),write:(wt,I)=>{var K=[];Be(ye,wt,je.toWireType(K,I)),_n(K)}}}),[{name:c.name,fromWireType:j=>{var z={};for(var V in O)z[V]=O[V].read(j);return m(j),z},toWireType:(j,z)=>{for(var V in O)if(!(V in z))throw new TypeError(`Missing field: "${V}"`);var G=d();for(V in O)O[V].write(G,z[V]);return j!==null&&j.push(m,G),G},argPackAdvance:un,readValueFromPointer:ln,destructorFunction:m}]})},xi=(u,c,d,m,k)=>{},Va=()=>{for(var u=new Array(256),c=0;c<256;++c)u[c]=String.fromCharCode(c);ff=u},ff,We=u=>{for(var c="",d=u;P[d];)c+=ff[P[d++]];return c},$r,le=u=>{throw new $r(u)};function ay(u,c,d={}){var m=c.name;if(u||le(`type "${m}" must have a positive integer typeid pointer`),Ht.hasOwnProperty(u)){if(d.ignoreDuplicateRegistrations)return;le(`Cannot register type '${m}' twice`)}if(Ht[u]=c,delete Rn[u],an.hasOwnProperty(u)){var k=an[u];delete an[u],k.forEach(T=>T())}}function sn(u,c,d={}){if(!("argPackAdvance"in c))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ay(u,c,d)}var un=8,sy=(u,c,d,m)=>{c=We(c),sn(u,{name:c,fromWireType:function(k){return!!k},toWireType:function(k,T){return T?d:m},argPackAdvance:un,readValueFromPointer:function(k){return this.fromWireType(P[k])},destructorFunction:null})},uy=u=>({count:u.count,deleteScheduled:u.deleteScheduled,preservePointerOnDelete:u.preservePointerOnDelete,ptr:u.ptr,ptrType:u.ptrType,smartPtr:u.smartPtr,smartPtrType:u.smartPtrType}),Ha=u=>{function c(d){return d.$$.ptrType.registeredClass.name}le(c(u)+" instance already deleted")},Ka=!1,df=u=>{},cy=u=>{u.smartPtr?u.smartPtrType.rawDestructor(u.smartPtr):u.ptrType.registeredClass.rawDestructor(u.ptr)},pf=u=>{u.count.value-=1;var c=u.count.value===0;c&&cy(u)},hf=(u,c,d)=>{if(c===d)return u;if(d.baseClass===void 0)return null;var m=hf(u,c,d.baseClass);return m===null?null:d.downcast(m)},mf={},fy=()=>Object.keys(Oi).length,dy=()=>{var u=[];for(var c in Oi)Oi.hasOwnProperty(c)&&u.push(Oi[c]);return u},Pi=[],Qa=()=>{for(;Pi.length;){var u=Pi.pop();u.$$.deleteScheduled=!1,u.delete()}},Ti,py=u=>{Ti=u,Pi.length&&Ti&&Ti(Qa)},hy=()=>{n.getInheritedInstanceCount=fy,n.getLiveInheritedInstances=dy,n.flushPendingDeletes=Qa,n.setDelayFunction=py},Oi={},my=(u,c)=>{for(c===void 0&&le("ptr should not be undefined");u.baseClass;)c=u.upcast(c),u=u.baseClass;return c},vy=(u,c)=>(c=my(u,c),Oi[c]),Uo=(u,c)=>{(!c.ptrType||!c.ptr)&&zn("makeClassHandle requires ptr and ptrType");var d=!!c.smartPtrType,m=!!c.smartPtr;return d!==m&&zn("Both smartPtrType and smartPtr must be specified"),c.count={value:1},Li(Object.create(u,{$$:{value:c,writable:!0}}))};function yy(u){var c=this.getPointee(u);if(!c)return this.destructor(u),null;var d=vy(this.registeredClass,c);if(d!==void 0){if(d.$$.count.value===0)return d.$$.ptr=c,d.$$.smartPtr=u,d.clone();var m=d.clone();return this.destructor(u),m}function k(){return this.isSmartPointer?Uo(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:c,smartPtrType:this,smartPtr:u}):Uo(this.registeredClass.instancePrototype,{ptrType:this,ptr:u})}var T=this.registeredClass.getActualType(c),b=mf[T];if(!b)return k.call(this);var O;this.isConst?O=b.constPointerType:O=b.pointerType;var j=hf(c,this.registeredClass,O.registeredClass);return j===null?k.call(this):this.isSmartPointer?Uo(O.registeredClass.instancePrototype,{ptrType:O,ptr:j,smartPtrType:this,smartPtr:u}):Uo(O.registeredClass.instancePrototype,{ptrType:O,ptr:j})}var Li=u=>typeof FinalizationRegistry>"u"?(Li=c=>c,u):(Ka=new FinalizationRegistry(c=>{pf(c.$$)}),Li=c=>{var d=c.$$,m=!!d.smartPtr;if(m){var k={$$:d};Ka.register(c,k,c)}return c},df=c=>Ka.unregister(c),Li(u)),gy=()=>{Object.assign(Wo.prototype,{isAliasOf(u){if(!(this instanceof Wo)||!(u instanceof Wo))return!1;var c=this.$$.ptrType.registeredClass,d=this.$$.ptr;u.$$=u.$$;for(var m=u.$$.ptrType.registeredClass,k=u.$$.ptr;c.baseClass;)d=c.upcast(d),c=c.baseClass;for(;m.baseClass;)k=m.upcast(k),m=m.baseClass;return c===m&&d===k},clone(){if(this.$$.ptr||Ha(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var u=Li(Object.create(Object.getPrototypeOf(this),{$$:{value:uy(this.$$)}}));return u.$$.count.value+=1,u.$$.deleteScheduled=!1,u},delete(){this.$$.ptr||Ha(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&le("Object already scheduled for deletion"),df(this),pf(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ha(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&le("Object already scheduled for deletion"),Pi.push(this),Pi.length===1&&Ti&&Ti(Qa),this.$$.deleteScheduled=!0,this}})};function Wo(){}var bi=(u,c)=>Object.defineProperty(c,"name",{value:u}),vf=(u,c,d)=>{if(u[c].overloadTable===void 0){var m=u[c];u[c]=function(){return u[c].overloadTable.hasOwnProperty(arguments.length)||le(`Function '${d}' called with an invalid number of arguments (${arguments.length}) - expects one of (${u[c].overloadTable})!`),u[c].overloadTable[arguments.length].apply(this,arguments)},u[c].overloadTable=[],u[c].overloadTable[m.argCount]=m}},Ya=(u,c,d)=>{n.hasOwnProperty(u)?((d===void 0||n[u].overloadTable!==void 0&&n[u].overloadTable[d]!==void 0)&&le(`Cannot register public name '${u}' twice`),vf(n,u,u),n.hasOwnProperty(d)&&le(`Cannot register multiple overloads of a function with the same number of arguments (${d})!`),n[u].overloadTable[d]=c):(n[u]=c,d!==void 0&&(n[u].numArguments=d))},_y=48,wy=57,Sy=u=>{if(u===void 0)return"_unknown";u=u.replace(/[^a-zA-Z0-9_]/g,"$");var c=u.charCodeAt(0);return c>=_y&&c<=wy?`_${u}`:u};function Cy(u,c,d,m,k,T,b,O){this.name=u,this.constructor=c,this.instancePrototype=d,this.rawDestructor=m,this.baseClass=k,this.getActualType=T,this.upcast=b,this.downcast=O,this.pureVirtualFunctions=[]}var Ga=(u,c,d)=>{for(;c!==d;)c.upcast||le(`Expected null or instance of ${d.name}, got an instance of ${c.name}`),u=c.upcast(u),c=c.baseClass;return u};function ky(u,c){if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),0;c.$$||le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`);var d=c.$$.ptrType.registeredClass,m=Ga(c.$$.ptr,d,this.registeredClass);return m}function Ey(u,c){var d;if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),this.isSmartPointer?(d=this.rawConstructor(),u!==null&&u.push(this.rawDestructor,d),d):0;(!c||!c.$$)&&le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&c.$$.ptrType.isConst&&le(`Cannot convert argument of type ${c.$$.smartPtrType?c.$$.smartPtrType.name:c.$$.ptrType.name} to parameter type ${this.name}`);var m=c.$$.ptrType.registeredClass;if(d=Ga(c.$$.ptr,m,this.registeredClass),this.isSmartPointer)switch(c.$$.smartPtr===void 0&&le("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:c.$$.smartPtrType===this?d=c.$$.smartPtr:le(`Cannot convert argument of type ${c.$$.smartPtrType?c.$$.smartPtrType.name:c.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:d=c.$$.smartPtr;break;case 2:if(c.$$.smartPtrType===this)d=c.$$.smartPtr;else{var k=c.clone();d=this.rawShare(d,hr.toHandle(()=>k.delete())),u!==null&&u.push(this.rawDestructor,d)}break;default:le("Unsupporting sharing policy")}return d}function xy(u,c){if(c===null)return this.isReference&&le(`null is not a valid ${this.name}`),0;c.$$||le(`Cannot pass "${es(c)}" as a ${this.name}`),c.$$.ptr||le(`Cannot pass deleted object as a pointer of type ${this.name}`),c.$$.ptrType.isConst&&le(`Cannot convert argument of type ${c.$$.ptrType.name} to parameter type ${this.name}`);var d=c.$$.ptrType.registeredClass,m=Ga(c.$$.ptr,d,this.registeredClass);return m}function yf(u){return this.fromWireType(E[u>>2])}var Py=()=>{Object.assign(Ai.prototype,{getPointee(u){return this.rawGetPointee&&(u=this.rawGetPointee(u)),u},destructor(u){var c;(c=this.rawDestructor)==null||c.call(this,u)},argPackAdvance:un,readValueFromPointer:yf,deleteObject(u){u!==null&&u.delete()},fromWireType:yy})};function Ai(u,c,d,m,k,T,b,O,j,z,V){this.name=u,this.registeredClass=c,this.isReference=d,this.isConst=m,this.isSmartPointer=k,this.pointeeType=T,this.sharingPolicy=b,this.rawGetPointee=O,this.rawConstructor=j,this.rawShare=z,this.rawDestructor=V,!k&&c.baseClass===void 0?m?(this.toWireType=ky,this.destructorFunction=null):(this.toWireType=xy,this.destructorFunction=null):this.toWireType=Ey}var gf=(u,c,d)=>{n.hasOwnProperty(u)||zn("Replacing nonexistant public symbol"),n[u].overloadTable!==void 0&&d!==void 0?n[u].overloadTable[d]=c:(n[u]=c,n[u].argCount=d)},Ty=(u,c,d)=>{var m=n["dynCall_"+u];return d&&d.length?m.apply(null,[c].concat(d)):m.call(null,c)},_f,wn=u=>_f.get(u),Oy=(u,c,d)=>{if(u.includes("j"))return Ty(u,c,d);var m=wn(c).apply(null,d);return m},Ly=(u,c)=>{var d=[];return function(){return d.length=0,Object.assign(d,arguments),Oy(u,c,d)}},ot=(u,c)=>{u=We(u);function d(){return u.includes("j")?Ly(u,c):wn(c)}var m=d();return typeof m!="function"&&le(`unknown function pointer with signature ${u}: ${c}`),m},by=(u,c)=>{var d=bi(c,function(m){this.name=c,this.message=m;var k=new Error(m).stack;k!==void 0&&(this.stack=this.toString()+` +`+k.replace(/^Error(:[^\n]*)?\n/,""))});return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},d},wf,Sf=u=>{var c=Lf(u),d=We(c);return Sn(c),d},Bo=(u,c)=>{var d=[],m={};function k(T){if(!m[T]&&!Ht[T]){if(Rn[T]){Rn[T].forEach(k);return}d.push(T),m[T]=!0}}throw c.forEach(k),new wf(`${u}: `+d.map(Sf).join([", "]))},Ay=(u,c,d,m,k,T,b,O,j,z,V,G,X)=>{V=We(V),T=ot(k,T),O&&(O=ot(b,O)),z&&(z=ot(j,z)),X=ot(G,X);var ee=Sy(V);Ya(ee,function(){Bo(`Cannot construct ${V} due to unbound types`,[m])}),Mt([u,c,d],m?[m]:[],function(je){var Be;je=je[0];var ye,wt;m?(ye=je.registeredClass,wt=ye.instancePrototype):wt=Wo.prototype;var I=bi(V,function(){if(Object.getPrototypeOf(this)!==K)throw new $r("Use 'new' to construct "+V);if(ue.constructor_body===void 0)throw new $r(V+" has no accessible constructor");var jf=ue.constructor_body[arguments.length];if(jf===void 0)throw new $r(`Tried to invoke ctor of ${V} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(ue.constructor_body).toString()}) parameters instead!`);return jf.apply(this,arguments)}),K=Object.create(wt,{constructor:{value:I}});I.prototype=K;var ue=new Cy(V,I,K,X,ye,T,O,z);ue.baseClass&&((Be=ue.baseClass).__derivedClasses??(Be.__derivedClasses=[]),ue.baseClass.__derivedClasses.push(ue));var Ve=new Ai(V,ue,!0,!1,!1),mr=new Ai(V+"*",ue,!1,!1,!1),Ko=new Ai(V+" const*",ue,!1,!0,!1);return mf[u]={pointerType:mr,constPointerType:Ko},gf(ee,I),[Ve,mr,Ko]})},Ja=(u,c)=>{for(var d=[],m=0;m>2]);return d};function My(u){for(var c=1;c{var b=Ja(c,d);k=ot(m,k),Mt([],[u],function(O){O=O[0];var j=`constructor ${O.name}`;if(O.registeredClass.constructor_body===void 0&&(O.registeredClass.constructor_body=[]),O.registeredClass.constructor_body[c-1]!==void 0)throw new $r(`Cannot register multiple constructors with identical number of parameters (${c-1}) for class '${O.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return O.registeredClass.constructor_body[c-1]=()=>{Bo(`Cannot construct ${O.name} due to unbound types`,b)},Mt([],b,z=>(z.splice(1,0,null),O.registeredClass.constructor_body[c-1]=Xa(j,z,null,k,T),[])),[]})},Cf=u=>{u=u.trim();let c=u.indexOf("(");return c!==-1?u.substr(0,c):u},Iy=(u,c,d,m,k,T,b,O,j)=>{var z=Ja(d,m);c=We(c),c=Cf(c),T=ot(k,T),Mt([],[u],function(V){V=V[0];var G=`${V.name}.${c}`;c.startsWith("@@")&&(c=Symbol[c.substring(2)]),O&&V.registeredClass.pureVirtualFunctions.push(c);function X(){Bo(`Cannot call ${G} due to unbound types`,z)}var ee=V.registeredClass.instancePrototype,je=ee[c];return je===void 0||je.overloadTable===void 0&&je.className!==V.name&&je.argCount===d-2?(X.argCount=d-2,X.className=V.name,ee[c]=X):(vf(ee,c,G),ee[c].overloadTable[d-2]=X),Mt([],z,function(Be){var ye=Xa(G,Be,V,T,b);return ee[c].overloadTable===void 0?(ye.argCount=d-2,ee[c]=ye):ee[c].overloadTable[d-2]=ye,[]}),[]})};function Fy(){Object.assign(kf.prototype,{get(u){return this.allocated[u]},has(u){return this.allocated[u]!==void 0},allocate(u){var c=this.freelist.pop()||this.allocated.length;return this.allocated[c]=u,c},free(u){this.allocated[u]=void 0,this.freelist.push(u)}})}function kf(){this.allocated=[void 0],this.freelist=[]}var jt=new kf,qa=u=>{u>=jt.reserved&&--jt.get(u).refcount===0&&jt.free(u)},Dy=()=>{for(var u=0,c=jt.reserved;c{jt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),jt.reserved=jt.allocated.length,n.count_emval_handles=Dy},hr={toValue:u=>(u||le("Cannot use deleted val. handle = "+u),jt.get(u).value),toHandle:u=>{switch(u){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return jt.allocate({refcount:1,value:u})}}},Ny=(u,c)=>{c=We(c),sn(u,{name:c,fromWireType:d=>{var m=hr.toValue(d);return qa(d),m},toWireType:(d,m)=>hr.toHandle(m),argPackAdvance:un,readValueFromPointer:ln,destructorFunction:null})},Ry=(u,c,d)=>{switch(c){case 1:return d?function(m){return this.fromWireType(C[m>>0])}:function(m){return this.fromWireType(P[m>>0])};case 2:return d?function(m){return this.fromWireType(v[m>>1])}:function(m){return this.fromWireType(_[m>>1])};case 4:return d?function(m){return this.fromWireType(g[m>>2])}:function(m){return this.fromWireType(E[m>>2])};default:throw new TypeError(`invalid integer width (${c}): ${u}`)}},zy=(u,c,d,m)=>{c=We(c);function k(){}k.values={},sn(u,{name:c,constructor:k,fromWireType:function(T){return this.constructor.values[T]},toWireType:(T,b)=>b.value,argPackAdvance:un,readValueFromPointer:Ry(c,d,m),destructorFunction:null}),Ya(c,k)},Za=(u,c)=>{var d=Ht[u];return d===void 0&&le(c+" has unknown type "+Sf(u)),d},Uy=(u,c,d)=>{var m=Za(u,"enum");c=We(c);var k=m.constructor,T=Object.create(m.constructor.prototype,{value:{value:d},constructor:{value:bi(`${m.name}_${c}`,function(){})}});k.values[d]=T,k[c]=T},es=u=>{if(u===null)return"null";var c=typeof u;return c==="object"||c==="array"||c==="function"?u.toString():""+u},Wy=(u,c)=>{switch(c){case 4:return function(d){return this.fromWireType(A[d>>2])};case 8:return function(d){return this.fromWireType(D[d>>3])};default:throw new TypeError(`invalid float width (${c}): ${u}`)}},By=(u,c,d)=>{c=We(c),sn(u,{name:c,fromWireType:m=>m,toWireType:(m,k)=>k,argPackAdvance:un,readValueFromPointer:Wy(c,d),destructorFunction:null})},Vy=(u,c,d,m,k,T,b)=>{var O=Ja(c,d);u=We(u),u=Cf(u),k=ot(m,k),Ya(u,function(){Bo(`Cannot call ${u} due to unbound types`,O)},c-1),Mt([],O,function(j){var z=[j[0],null].concat(j.slice(1));return gf(u,Xa(u,z,null,k,T),c-1),[]})},Hy=(u,c,d)=>{switch(c){case 1:return d?m=>C[m>>0]:m=>P[m>>0];case 2:return d?m=>v[m>>1]:m=>_[m>>1];case 4:return d?m=>g[m>>2]:m=>E[m>>2];default:throw new TypeError(`invalid integer width (${c}): ${u}`)}},Ky=(u,c,d,m,k)=>{c=We(c);var T=V=>V;if(m===0){var b=32-8*d;T=V=>V<>>b}var O=c.includes("unsigned"),j=(V,G)=>{},z;O?z=function(V,G){return j(G,this.name),G>>>0}:z=function(V,G){return j(G,this.name),G},sn(u,{name:c,fromWireType:T,toWireType:z,argPackAdvance:un,readValueFromPointer:Hy(c,d,m!==0),destructorFunction:null})},Qy=(u,c,d)=>{var m=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],k=m[c];function T(b){var O=E[b>>2],j=E[b+4>>2];return new k(C.buffer,j,O)}d=We(d),sn(u,{name:d,fromWireType:T,argPackAdvance:un,readValueFromPointer:T},{ignoreDuplicateRegistrations:!0})},Yy=(u,c,d,m,k,T,b,O,j,z,V,G)=>{d=We(d),T=ot(k,T),O=ot(b,O),z=ot(j,z),G=ot(V,G),Mt([u],[c],function(X){X=X[0];var ee=new Ai(d,X.registeredClass,!1,!1,!0,X,m,T,O,z,G);return[ee]})},Gy=(u,c)=>{c=We(c);var d=c==="std::string";sn(u,{name:c,fromWireType(m){var k=E[m>>2],T=m+4,b;if(d)for(var O=T,j=0;j<=k;++j){var z=T+j;if(j==k||P[z]==0){var V=z-O,G=At(O,V);b===void 0?b=G:(b+="\0",b+=G),O=z+1}}else{for(var X=new Array(k),j=0;j>2]=T,d&&b)Wa(k,j,T+1);else if(b)for(var z=0;z255&&(Sn(j),le("String has UTF-16 code units that do not fit in 8 bits")),P[j+z]=V}else for(var z=0;z{for(var d=u,m=d>>1,k=m+c/2;!(m>=k)&&_[m];)++m;if(d=m<<1,d-u>32&&Ef)return Ef.decode(P.subarray(u,d));for(var T="",b=0;!(b>=c/2);++b){var O=v[u+b*2>>1];if(O==0)break;T+=String.fromCharCode(O)}return T},Xy=(u,c,d)=>{if(d??(d=2147483647),d<2)return 0;d-=2;for(var m=c,k=d>1]=b,c+=2}return v[c>>1]=0,c-m},qy=u=>u.length*2,Zy=(u,c)=>{for(var d=0,m="";!(d>=c/4);){var k=g[u+d*4>>2];if(k==0)break;if(++d,k>=65536){var T=k-65536;m+=String.fromCharCode(55296|T>>10,56320|T&1023)}else m+=String.fromCharCode(k)}return m},eg=(u,c,d)=>{if(d??(d=2147483647),d<4)return 0;for(var m=c,k=m+d-4,T=0;T=55296&&b<=57343){var O=u.charCodeAt(++T);b=65536+((b&1023)<<10)|O&1023}if(g[c>>2]=b,c+=4,c+4>k)break}return g[c>>2]=0,c-m},tg=u=>{for(var c=0,d=0;d=55296&&m<=57343&&++d,c+=4}return c},ng=(u,c,d)=>{d=We(d);var m,k,T,b,O;c===2?(m=Jy,k=Xy,b=qy,T=()=>_,O=1):c===4&&(m=Zy,k=eg,b=tg,T=()=>E,O=2),sn(u,{name:d,fromWireType:j=>{for(var z=E[j>>2],V=T(),G,X=j+4,ee=0;ee<=z;++ee){var je=j+4+ee*c;if(ee==z||V[je>>O]==0){var Be=je-X,ye=m(X,Be);G===void 0?G=ye:(G+="\0",G+=ye),X=je+c}}return Sn(j),G},toWireType:(j,z)=>{typeof z!="string"&&le(`Cannot pass non-string to C++ string type ${d}`);var V=b(z),G=rs(4+V+c);return E[G>>2]=V>>O,k(z,G+4,V+c),j!==null&&j.push(Sn,G),G},argPackAdvance:un,readValueFromPointer:ln,destructorFunction(j){Sn(j)}})},rg=(u,c,d,m,k,T)=>{Ue[u]={name:We(c),rawConstructor:ot(d,m),rawDestructor:ot(k,T),fields:[]}},ig=(u,c,d,m,k,T,b,O,j,z)=>{Ue[u].fields.push({fieldName:We(c),getterReturnType:d,getter:ot(m,k),getterContext:T,setterArgumentType:b,setter:ot(O,j),setterContext:z})},og=(u,c)=>{c=We(c),sn(u,{isVoid:!0,name:c,argPackAdvance:0,fromWireType:()=>{},toWireType:(d,m)=>{}})},lg=()=>{throw 1/0},ts=[],ag=(u,c,d,m)=>(u=ts[u],c=hr.toValue(c),u(null,c,d,m)),sg=u=>{var c=ts.length;return ts.push(u),c},ug=(u,c)=>{for(var d=new Array(u),m=0;m>2],"parameter "+m);return d},cg=Reflect.construct,fg=(u,c,d)=>{var m=[],k=u.toWireType(m,d);return m.length&&(E[c>>2]=hr.toHandle(m)),k},dg=(u,c,d)=>{var m=ug(u,c),k=m.shift();u--;var T=new Array(u),b=(j,z,V,G)=>{var Be,ye;for(var X=0,ee=0;eej.name).join(", ")}) => ${k.name}>`;return sg(bi(O,b))},pg=u=>{u>4&&(jt.get(u).refcount+=1)},hg=u=>{var c=hr.toValue(u);_n(c),qa(u)},mg=(u,c)=>{u=Za(u,"_emval_take_value");var d=u.readValueFromPointer(c);return hr.toHandle(d)},vg=()=>{oe("")},xf;xf=()=>performance.now();var yg=(u,c,d)=>P.copyWithin(u,c,c+d),gg=()=>2147483648,_g=u=>{var c=w.buffer,d=(u-c.byteLength+65535)/65536;try{return w.grow(d),x(),1}catch{}},wg=u=>{var c=P.length;u>>>=0;var d=gg();if(u>d)return!1;for(var m=(j,z)=>j+(z-j%z)%z,k=1;k<=4;k*=2){var T=c*(1+.2/k);T=Math.min(T,u+100663296);var b=Math.min(d,m(Math.max(u,T),65536)),O=_g(b);if(O)return!0}return!1},ns={},Sg=()=>l||"./this.program",Mi=()=>{if(!Mi.strings){var u=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",c={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:u,_:Sg()};for(var d in ns)ns[d]===void 0?delete c[d]:c[d]=ns[d];var m=[];for(var d in c)m.push(`${d}=${c[d]}`);Mi.strings=m}return Mi.strings},Cg=(u,c)=>{for(var d=0;d>0]=u.charCodeAt(d);C[c>>0]=0},kg=(u,c)=>{var d=0;return Mi().forEach((m,k)=>{var T=c+d;E[u+k*4>>2]=T,Cg(m,T),d+=m.length+1}),0},Eg=(u,c)=>{var d=Mi();E[u>>2]=d.length;var m=0;return d.forEach(k=>m+=k.length+1),E[c>>2]=m,0},xg=u=>52,Pg=(u,c,d,m)=>52;function Tg(u,c,d,m,k){return 70}var Og=[null,[],[]],Lg=(u,c)=>{var d=Og[u];c===0||c===10?((u===1?p:h)(bt(d,0)),d.length=0):d.push(c)},bg=(u,c,d,m)=>{for(var k=0,T=0;T>2],O=E[c+4>>2];c+=8;for(var j=0;j>2]=k,0},Ag=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return u=>crypto.getRandomValues(u);oe("initRandomDevice")},Pf=u=>(Pf=Ag())(u),Mg=(u,c)=>(Pf(P.subarray(u,u+c)),0),Vo=u=>u%4===0&&(u%100!==0||u%400===0),jg=(u,c)=>{for(var d=0,m=0;m<=c;d+=u[m++]);return d},Tf=[31,29,31,30,31,30,31,31,30,31,30,31],Of=[31,28,31,30,31,30,31,31,30,31,30,31],Ig=(u,c)=>{for(var d=new Date(u.getTime());c>0;){var m=Vo(d.getFullYear()),k=d.getMonth(),T=(m?Tf:Of)[k];if(c>T-d.getDate())c-=T-d.getDate()+1,d.setDate(1),k<11?d.setMonth(k+1):(d.setMonth(0),d.setFullYear(d.getFullYear()+1));else return d.setDate(d.getDate()+c),d}return d};function Fg(u,c,d){var m=d>0?d:dr(u)+1,k=new Array(m),T=zo(u,k,0,k.length);return c&&(k.length=T),k}var Dg=(u,c)=>{C.set(u,c)},$g=(u,c,d,m)=>{var k=E[m+40>>2],T={tm_sec:g[m>>2],tm_min:g[m+4>>2],tm_hour:g[m+8>>2],tm_mday:g[m+12>>2],tm_mon:g[m+16>>2],tm_year:g[m+20>>2],tm_wday:g[m+24>>2],tm_yday:g[m+28>>2],tm_isdst:g[m+32>>2],tm_gmtoff:g[m+36>>2],tm_zone:k?At(k):""},b=At(d),O={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var j in O)b=b.replace(new RegExp(j,"g"),O[j]);var z=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],V=["January","February","March","April","May","June","July","August","September","October","November","December"];function G(I,K,ue){for(var Ve=typeof I=="number"?I.toString():I||"";Ve.length0?1:0}var Ve;return(Ve=ue(I.getFullYear()-K.getFullYear()))===0&&(Ve=ue(I.getMonth()-K.getMonth()))===0&&(Ve=ue(I.getDate()-K.getDate())),Ve}function je(I){switch(I.getDay()){case 0:return new Date(I.getFullYear()-1,11,29);case 1:return I;case 2:return new Date(I.getFullYear(),0,3);case 3:return new Date(I.getFullYear(),0,2);case 4:return new Date(I.getFullYear(),0,1);case 5:return new Date(I.getFullYear()-1,11,31);case 6:return new Date(I.getFullYear()-1,11,30)}}function Be(I){var K=Ig(new Date(I.tm_year+1900,0,1),I.tm_yday),ue=new Date(K.getFullYear(),0,4),Ve=new Date(K.getFullYear()+1,0,4),mr=je(ue),Ko=je(Ve);return ee(mr,K)<=0?ee(Ko,K)<=0?K.getFullYear()+1:K.getFullYear():K.getFullYear()-1}var ye={"%a":I=>z[I.tm_wday].substring(0,3),"%A":I=>z[I.tm_wday],"%b":I=>V[I.tm_mon].substring(0,3),"%B":I=>V[I.tm_mon],"%C":I=>{var K=I.tm_year+1900;return X(K/100|0,2)},"%d":I=>X(I.tm_mday,2),"%e":I=>G(I.tm_mday,2," "),"%g":I=>Be(I).toString().substring(2),"%G":I=>Be(I),"%H":I=>X(I.tm_hour,2),"%I":I=>{var K=I.tm_hour;return K==0?K=12:K>12&&(K-=12),X(K,2)},"%j":I=>X(I.tm_mday+jg(Vo(I.tm_year+1900)?Tf:Of,I.tm_mon-1),3),"%m":I=>X(I.tm_mon+1,2),"%M":I=>X(I.tm_min,2),"%n":()=>` +`,"%p":I=>I.tm_hour>=0&&I.tm_hour<12?"AM":"PM","%S":I=>X(I.tm_sec,2),"%t":()=>" ","%u":I=>I.tm_wday||7,"%U":I=>{var K=I.tm_yday+7-I.tm_wday;return X(Math.floor(K/7),2)},"%V":I=>{var K=Math.floor((I.tm_yday+7-(I.tm_wday+6)%7)/7);if((I.tm_wday+371-I.tm_yday-2)%7<=2&&K++,K){if(K==53){var ue=(I.tm_wday+371-I.tm_yday)%7;ue!=4&&(ue!=3||!Vo(I.tm_year))&&(K=1)}}else{K=52;var Ve=(I.tm_wday+7-I.tm_yday-1)%7;(Ve==4||Ve==5&&Vo(I.tm_year%400-1))&&K++}return X(K,2)},"%w":I=>I.tm_wday,"%W":I=>{var K=I.tm_yday+7-(I.tm_wday+6)%7;return X(Math.floor(K/7),2)},"%y":I=>(I.tm_year+1900).toString().substring(2),"%Y":I=>I.tm_year+1900,"%z":I=>{var K=I.tm_gmtoff,ue=K>=0;return K=Math.abs(K)/60,K=K/60*100+K%60,(ue?"+":"-")+("0000"+K).slice(-4)},"%Z":I=>I.tm_zone,"%%":()=>"%"};b=b.replace(/%%/g,"\0\0");for(var j in ye)b.includes(j)&&(b=b.replace(new RegExp(j,"g"),ye[j](T)));b=b.replace(/\0\0/g,"%");var wt=Fg(b,!1);return wt.length>c?0:(Dg(wt,u),wt.length-1)},Ng=(u,c,d,m,k)=>$g(u,c,d,m);pr=n.InternalError=class extends Error{constructor(u){super(u),this.name="InternalError"}},Va(),$r=n.BindingError=class extends Error{constructor(u){super(u),this.name="BindingError"}},gy(),hy(),Py(),wf=n.UnboundTypeError=by(Error,"UnboundTypeError"),Fy(),$y();var Rg={a:No,j:Nn,z:ki,O:Dr,L:Ba,Q:U,M:Q,y:Te,N:Ne,t:Ei,F:xi,V:sy,u:Ay,s:jy,c:Iy,U:Ny,v:zy,h:Uy,A:By,aa:Vy,i:Ky,d:Qy,$:Yy,B:Gy,r:ng,o:rg,g:ig,W:og,I:lg,_:ag,H:qa,Z:dg,p:pg,Y:hg,m:mg,C:vg,f:xf,R:yg,K:wg,S:kg,T:Eg,q:xg,x:Pg,E:Tg,P:bg,X:Mg,n:Vg,e:Bg,k:Wg,w:Hg,l:zg,b:Ug,G:Kg,D:Qg,J:Ng},Me=fr(),rs=u=>(rs=Me.da)(u),Sn=u=>(Sn=Me.fa)(u),Lf=u=>(Lf=Me.ga)(u),Cn=(u,c)=>(Cn=Me.ha)(u,c),kn=()=>(kn=Me.ia)(),En=u=>(En=Me.ja)(u),bf=u=>(bf=Me.ka)(u);n.dynCall_iijj=(u,c,d,m,k,T)=>(n.dynCall_iijj=Me.la)(u,c,d,m,k,T),n.dynCall_vijj=(u,c,d,m,k,T)=>(n.dynCall_vijj=Me.ma)(u,c,d,m,k,T),n.dynCall_jii=(u,c,d)=>(n.dynCall_jii=Me.na)(u,c,d);var Af=n.dynCall_viiij=(u,c,d,m,k,T)=>(Af=n.dynCall_viiij=Me.oa)(u,c,d,m,k,T);n.dynCall_jiji=(u,c,d,m,k)=>(n.dynCall_jiji=Me.pa)(u,c,d,m,k),n.dynCall_viijii=(u,c,d,m,k,T,b)=>(n.dynCall_viijii=Me.qa)(u,c,d,m,k,T,b),n.dynCall_iiiiij=(u,c,d,m,k,T,b)=>(n.dynCall_iiiiij=Me.ra)(u,c,d,m,k,T,b),n.dynCall_iiiiijj=(u,c,d,m,k,T,b,O,j)=>(n.dynCall_iiiiijj=Me.sa)(u,c,d,m,k,T,b,O,j),n.dynCall_iiiiiijj=(u,c,d,m,k,T,b,O,j,z)=>(n.dynCall_iiiiiijj=Me.ta)(u,c,d,m,k,T,b,O,j,z);function zg(u,c){var d=kn();try{wn(u)(c)}catch(m){if(En(d),m!==m+0)throw m;Cn(1,0)}}function Ug(u,c,d){var m=kn();try{wn(u)(c,d)}catch(k){if(En(m),k!==k+0)throw k;Cn(1,0)}}function Wg(u,c,d,m){var k=kn();try{return wn(u)(c,d,m)}catch(T){if(En(k),T!==T+0)throw T;Cn(1,0)}}function Bg(u,c,d){var m=kn();try{return wn(u)(c,d)}catch(k){if(En(m),k!==k+0)throw k;Cn(1,0)}}function Vg(u,c){var d=kn();try{return wn(u)(c)}catch(m){if(En(d),m!==m+0)throw m;Cn(1,0)}}function Hg(u,c,d,m,k,T){var b=kn();try{return wn(u)(c,d,m,k,T)}catch(O){if(En(b),O!==O+0)throw O;Cn(1,0)}}function Kg(u,c,d,m,k){var T=kn();try{wn(u)(c,d,m,k)}catch(b){if(En(T),b!==b+0)throw b;Cn(1,0)}}function Qg(u,c,d,m,k,T){var b=kn();try{Af(u,c,d,m,k,T)}catch(O){if(En(b),O!==O+0)throw O;Cn(1,0)}}var Ho;R=function u(){Ho||Mf(),Ho||(R=u)};function Mf(){if(me>0||(Z(),me>0))return;function u(){Ho||(Ho=!0,n.calledRun=!0,!S&&(ae(),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),re()))}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),u()},1)):u()}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Mf(),t.ready}})(),P2=x2,ma=class{constructor(){throw new Error("RendererLoader is a static class and cannot be instantiated.")}static async _tryLoad(t){return await P2({locateFile:()=>t})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async t=>{let n=`https://unpkg.com/${ha.name}@${ha.version}/dist/dotlottie-player.wasm`;console.warn(`Trying backup URL for WASM loading: ${n}`);try{return await this._tryLoad(n)}catch(r){throw console.error(`Both primary and backup WASM URLs failed. Primary error: ${t.message}, Backup error: ${r.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(t){this._wasmURL=t,this._ModulePromise=null}};tt(ma,"_ModulePromise",null),tt(ma,"_wasmURL",`https://cdn.jsdelivr.net/npm/${ha.name}@${ha.version}/dist/dotlottie-player.wasm`);var T2=class{constructor(){tt(this,"_eventListeners",new Map)}addEventListener(t,n){let r=this._eventListeners.get(t);r||(r=new Set,this._eventListeners.set(t,r)),r.add(n)}removeEventListener(t,n){let r=this._eventListeners.get(t);r&&(n?(r.delete(n),r.size===0&&this._eventListeners.delete(t)):this._eventListeners.delete(t))}dispatch(t){var n;(n=this._eventListeners.get(t.type))==null||n.forEach(r=>r(t))}removeAllEventListeners(){this._eventListeners.clear()}},Fs=(e,t)=>e==="reverse"?t.Mode.Reverse:e==="bounce"?t.Mode.Bounce:e==="reverse-bounce"?t.Mode.ReverseBounce:t.Mode.Forward,Ds=(e,t)=>e==="contain"?t.Fit.Contain:e==="cover"?t.Fit.Cover:e==="fill"?t.Fit.Fill:e==="fit-height"?t.Fit.FitHeight:e==="fit-width"?t.Fit.FitWidth:t.Fit.None,$s=(e,t)=>{let n=new t.VectorFloat;return n.push_back(e[0]),n.push_back(e[1]),n},Ns=(e,t)=>{let n=new t.VectorFloat;return e.length!==2||(n.push_back(e[0]),n.push_back(e[1])),n},O2=class{constructor(t){tt(this,"_canvas"),tt(this,"_context"),tt(this,"_eventManager"),tt(this,"_animationFrameId",null),tt(this,"_frameManager"),tt(this,"_dotLottieCore",null),tt(this,"_wasmModule",null),tt(this,"_renderConfig",{}),tt(this,"_isFrozen",!1),tt(this,"_backgroundColor",null),this._canvas=t.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new T2,this._frameManager=new E2,this._renderConfig=t.renderConfig??{},ma.load().then(n=>{this._wasmModule=n,this._dotLottieCore=new n.DotLottiePlayer({autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:Fs(t.mode??"forward",n),segment:Ns(t.segment??[],n),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:t.layout?{align:$s(t.layout.align,n),fit:Ds(t.layout.fit,n)}:n.createDefaultLayout()}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(n=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${n}`)})})}_loadFromSrc(t){async function n(){let r=await fetch(t);if(!r.ok)throw new Error(`Failed to fetch the animation data from URL: ${t}. ${r.status}: ${r.statusText}`);let i=r.headers.get("content-type"),o;return["application/json","text/plain"].includes(i??"")?o=await r.text():o=await r.arrayBuffer(),o}n().then(r=>{this._loadFromData(r)}).catch(r=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${t}. ${r}`)})})}_loadFromData(t){if(this._dotLottieCore===null)return;let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t=="string")i=this._dotLottieCore.loadAnimationData(t,n,r);else if(t instanceof ArrayBuffer)i=this._dotLottieCore.loadDotLottieData(t,n,r);else if(typeof t=="object")i=this._dotLottieCore.loadAnimationData(JSON.stringify(t),n,r);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}i?(this._eventManager.dispatch({type:"load"}),_p&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get layout(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.config().layout;if(t)return{align:[t.align.get(0),t.align.get(1)],fit:(()=>{var r,i,o,l,a,s;switch(t.fit){case((r=this._wasmModule)==null?void 0:r.Fit.Contain):return"contain";case((i=this._wasmModule)==null?void 0:i.Fit.Cover):return"cover";case((o=this._wasmModule)==null?void 0:o.Fit.Fill):return"fill";case((l=this._wasmModule)==null?void 0:l.Fit.FitHeight):return"fit-height";case((a=this._wasmModule)==null?void 0:a.Fit.FitWidth):return"fit-width";case((s=this._wasmModule)==null?void 0:s.Fit.None):return"none";default:return"contain"}})()}}get marker(){var t;return(t=this._dotLottieCore)==null?void 0:t.config().marker}get manifest(){var t;try{let n=(t=this._dotLottieCore)==null?void 0:t.manifestString();if(this._dotLottieCore===null||!n)return null;let r=JSON.parse(n);return Object.keys(r).length===0?null:r}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.config().segment;if(t&&t.size()===2)return[t.get(0),t.get(1)]}get loop(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().loopAnimation)??!1}get mode(){var n,r,i,o;let t=(n=this._dotLottieCore)==null?void 0:n.config().mode;return t===((r=this._wasmModule)==null?void 0:r.Mode.Reverse)?"reverse":t===((i=this._wasmModule)==null?void 0:i.Mode.Bounce)?"bounce":t===((o=this._wasmModule)==null?void 0:o.Mode.ReverseBounce)?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().autoplay)??!1}get useFrameInterpolation(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().useFrameInterpolation)??!1}get speed(){var t;return((t=this._dotLottieCore)==null?void 0:t.config().speed)??0}get isLoaded(){var t;return((t=this._dotLottieCore)==null?void 0:t.isLoaded())??!1}get isPlaying(){var t;return((t=this._dotLottieCore)==null?void 0:t.isPlaying())??!1}get isPaused(){var t;return((t=this._dotLottieCore)==null?void 0:t.isPaused())??!1}get isStopped(){var t;return((t=this._dotLottieCore)==null?void 0:t.isStopped())??!1}get currentFrame(){var t;return((t=this._dotLottieCore)==null?void 0:t.currentFrame())??0}get loopCount(){var t;return((t=this._dotLottieCore)==null?void 0:t.loopCount())??0}get totalFrames(){var t;return((t=this._dotLottieCore)==null?void 0:t.totalFrames())??0}get duration(){var t;return((t=this._dotLottieCore)==null?void 0:t.duration())??0}load(t){this._dotLottieCore===null||this._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:Fs(t.mode??"forward",this._wasmModule),segment:Ns(t.segment??[],this._wasmModule),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:t.layout?{align:$s(t.layout.align,this._wasmModule),fit:Ds(t.layout.fit,this._wasmModule)}:this._wasmModule.createDefaultLayout()}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),this.setBackgroundColor(t.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let t=this._dotLottieCore.buffer(),n=this._context.createImageData(this._canvas.width,this._canvas.height);return n.data.set(t),this._context.putImageData(n,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let t=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(t)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let t=this._dotLottieCore.play();this._isFrozen=!1,t&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(t){this._dotLottieCore===null||t<0||t>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(t)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:t})}setBackgroundColor(t){this._dotLottieCore!==null&&(this._canvas instanceof HTMLCanvasElement&&(this._canvas.style.backgroundColor=t),this._backgroundColor=t)}setLoop(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:t})}setUseFrameInterpolation(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:t})}addEventListener(t,n){this._eventManager.addEventListener(t,n)}removeEventListener(t,n){this._eventManager.removeEventListener(t,n)}destroy(){var t;(t=this._dotLottieCore)==null||t.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){var i;if(!_p||!(this._canvas instanceof HTMLCanvasElement))return;let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:n,width:r}=this._canvas.getBoundingClientRect();this._canvas.width=r*t,this._canvas.height=n*t,(i=this._dotLottieCore)!=null&&i.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(t,n){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:Ns([t,n],this._wasmModule)})}setMode(t){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Fs(t,this._wasmModule)})}setRenderConfig(t){this._renderConfig=t}loadAnimation(t){this._dotLottieCore!==null&&(this._dotLottieCore.loadAnimation(t,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${t}`)}))}setMarker(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:t})}markers(){var n;let t=(n=this._dotLottieCore)==null?void 0:n.markers();if(t){let r=[];for(let i=0;i{const[t,n]=F.useState(null),r=F.useRef(null),i=F.useRef(e),o=F.useRef(null),l=F.useRef(null);r.current=t,i.current=e;const a=F.useCallback(w=>{var S,C;!((S=i.current)!=null&&S.playOnHover)||!((C=r.current)!=null&&C.isLoaded)||(w.type==="mouseenter"?r.current.play():w.type==="mouseleave"&&r.current.pause())},[]),s=F.useMemo(()=>{const w=(0,wp.default)(S=>{S.forEach(C=>{var P,v;C.isIntersecting?(P=r.current)==null||P.unfreeze():(v=r.current)==null||v.freeze()})},150);return new IntersectionObserver(w,{threshold:0})},[]),f=F.useMemo(()=>{const w=(0,wp.default)(()=>{var S,C;(S=i.current)!=null&&S.autoResizeCanvas&&((C=r.current)==null||C.resize())},150);return new ResizeObserver(w)},[]),p=F.useCallback(w=>{var S;if(w){const C=new O2({...e,canvas:w});n(C),s.observe(w),e!=null&&e.autoResizeCanvas&&f.observe(w),w.addEventListener("mouseenter",a),w.addEventListener("mouseleave",a)}else(S=r.current)==null||S.destroy(),s.disconnect(),f.disconnect();o.current=w},[s,f,a]),h=F.useCallback(w=>{l.current=w},[]),y=F.useCallback(w=>Ee.createElement(L2,{setContainerRef:h,setCanvasRef:p,...w}),[p,h]);return F.useEffect(()=>()=>{var w,S;t&&(t.destroy(),n(null),f.disconnect(),s.disconnect(),(w=o.current)==null||w.removeEventListener("mouseenter",a),(S=o.current)==null||S.removeEventListener("mouseleave",a))},[]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.speed)=="number"&&e.speed!==t.speed&&t.isLoaded&&t.setSpeed(e.speed)},[e==null?void 0:e.speed]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.mode)=="string"&&e.mode!==t.mode&&t.isLoaded&&t.setMode(e.mode)},[e==null?void 0:e.mode]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.loop)=="boolean"&&e.loop!==t.loop&&t.isLoaded&&t.setLoop(e.loop)},[e==null?void 0:e.loop]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.useFrameInterpolation)=="boolean"&&e.useFrameInterpolation!==t.useFrameInterpolation&&t.isLoaded&&t.setUseFrameInterpolation(e.useFrameInterpolation)},[e==null?void 0:e.useFrameInterpolation]),F.useEffect(()=>{if(t&&typeof(e==null?void 0:e.segment)=="object"&&Array.isArray(e.segment)&&e.segment.length===2&&t.isLoaded){const w=e.segment[0],S=e.segment[1];t.setSegment(w,S)}},[e==null?void 0:e.segment]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.backgroundColor)=="string"&&e.backgroundColor!==t.backgroundColor&&t.setBackgroundColor(e.backgroundColor)},[e==null?void 0:e.backgroundColor]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.renderConfig)=="object"&&t.setRenderConfig(e.renderConfig)},[e==null?void 0:e.renderConfig]),F.useEffect(()=>{t&&(typeof(e==null?void 0:e.data)=="string"||(e==null?void 0:e.data)instanceof ArrayBuffer)&&t.load({data:e.data,...i.current||{}})},[e==null?void 0:e.data]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.src)=="string"&&t.load({src:e.src,...i.current||{}})},[e==null?void 0:e.src]),F.useEffect(()=>{t&&typeof(e==null?void 0:e.marker)=="string"&&t.setMarker(e.marker)},[e==null?void 0:e.marker]),F.useEffect(()=>{e!=null&&e.autoResizeCanvas&&o.current?f.observe(o.current):f.disconnect()},[e==null?void 0:e.autoResizeCanvas,f]),{dotLottie:t,setCanvasRef:p,setContainerRef:h,canvas:o.current,container:l.current,DotLottieComponent:y}},A2=typeof window<"u"?F.useLayoutEffect:F.useEffect;function M2(e){const t=F.useRef(e);return A2(()=>{t.current=e}),F.useCallback((...n)=>t.current(...n),[t])}var j2=({autoResizeCanvas:e=!0,autoplay:t,backgroundColor:n,data:r,dotLottieRefCallback:i,loop:o,marker:l,mode:a,playOnHover:s,renderConfig:f,segment:p,speed:h,src:y,useFrameInterpolation:w,...S})=>{const{DotLottieComponent:C,dotLottie:P}=b2({data:r,mode:a,speed:h,src:y,autoplay:t,loop:o,segment:p,renderConfig:f,backgroundColor:n,useFrameInterpolation:w,playOnHover:s,autoResizeCanvas:e,marker:l}),v=typeof i=="function"?M2(i):void 0;return Ee.useEffect(()=>{typeof v=="function"&&v(P)},[v,P]),Ee.createElement(C,{...S})};function I2(e){return M.jsx(M.Fragment,{children:M.jsx("div",{className:"",children:M.jsx(j2,{...e})})})}const F2="modulepreload",D2=function(e){return"/dotlottie-web/"+e},Sp={},Pn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(s=>{if(s=D2(s),s in Sp)return;Sp[s]=!0;const f=s.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!r)for(let w=o.length-1;w>=0;w--){const S=o[w];if(S.href===s&&(!f||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${p}`))return;const y=document.createElement("link");if(y.rel=f?"stylesheet":F2,f||(y.as="script",y.crossOrigin=""),y.href=s,a&&y.setAttribute("nonce",a),document.head.appendChild(y),f)return new Promise((w,S)=>{y.addEventListener("load",w),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var Cp={},$2=function(e,t,n,r,i){var o=new Worker(Cp[t]||(Cp[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(l){var a=l.data,s=a.$e$;if(s){var f=new Error(s[0]);f.code=s[1],f.stack=s[2],i(f,null)}else i(null,a)},o.postMessage(n,r),o},st=Uint8Array,kr=Uint16Array,Dv=Int32Array,tf=new st([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nf=new st([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),$v=new st([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nv=function(e,t){for(var n=new kr(31),r=0;r<31;++r)n[r]=t+=1<>1|(se&21845)<<1,xn=(xn&52428)>>2|(xn&13107)<<2,xn=(xn&61680)>>4|(xn&3855)<<4,va[se]=((xn&65280)>>8|(xn&255)<<8)>>1;var xn,se,ii=function(e,t,n){for(var r=e.length,i=0,o=new kr(t);i>s]=f}else for(a=new kr(r),i=0;i>15-e[i]);return a},jo=new st(288);for(se=0;se<144;++se)jo[se]=8;var se;for(se=144;se<256;++se)jo[se]=9;var se;for(se=256;se<280;++se)jo[se]=7;var se;for(se=280;se<288;++se)jo[se]=8;var se,Uv=new st(32);for(se=0;se<32;++se)Uv[se]=5;var se,Wv=ii(jo,9,1),Bv=ii(Uv,5,1),bl=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},Dt=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Al=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Vv=function(e){return(e+7)/8|0},za=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new st(e.subarray(t,n))},Hv=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],at=function(e,t,n){var r=new Error(t||Hv[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,at),!n)throw r;return r},Kv=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new st(0);var l=!n,a=l||t.i!=2,s=t.i;l&&(n=new st(i*3));var f=function(on){var bt=n.length;if(on>bt){var At=new st(Math.max(bt*2,on));At.set(n),n=At}},p=t.f||0,h=t.p||0,y=t.b||0,w=t.l,S=t.d,C=t.m,P=t.n,v=i*8;do{if(!w){p=Dt(e,h,1);var _=Dt(e,h+1,3);if(h+=3,_)if(_==1)w=Wv,S=Bv,C=9,P=5;else if(_==2){var g=Dt(e,h,31)+257,E=Dt(e,h+10,15)+4,A=g+Dt(e,h+5,31)+1;h+=14;for(var D=new st(A),x=new st(19),L=0;L>4;if(re<16)D[L++]=re;else{var Y=0,te=0;for(re==16?(te=3+Dt(e,h,3),h+=2,Y=D[L-1]):re==17?(te=3+Dt(e,h,7),h+=3):re==18&&(te=11+Dt(e,h,127),h+=7);te--;)D[L++]=Y}}var $e=D.subarray(0,g),me=D.subarray(g);C=bl($e),P=bl(me),w=ii($e,C,1),S=ii(me,P,1)}else at(1);else{var re=Vv(h)+4,R=e[re-4]|e[re-3]<<8,H=re+R;if(H>i){s&&at(0);break}a&&f(y+R),n.set(e.subarray(re,H),y),t.b=y+=R,t.p=h=H*8,t.f=p;continue}if(h>v){s&&at(0);break}}a&&f(y+131072);for(var J=(1<>4;if(h+=Y&15,h>v){s&&at(0);break}if(Y||at(2),Qe<256)n[y++]=Qe;else if(Qe==256){de=h,w=null;break}else{var we=Qe-254;if(Qe>264){var L=Qe-257,it=tf[L];we=Dt(e,h,(1<>4;Ae||at(3),h+=Ae&15;var me=zv[dt];if(dt>3){var it=nf[dt];me+=Al(e,h)&(1<v){s&&at(0);break}a&&f(y+131072);var cr=y+we;if(y>>0},Rs=function(e,t){return Jt(e,t)+Jt(e,t+4)*4294967296};function K2(e,t,n){return n||(n=t,t={}),typeof n!="function"&&at(7),H2(e,t,[V2],function(r){return Qv(of(r.data[0],Yv(r.data[1])))},1,n)}function of(e,t){return Kv(e,{i:2},t&&t.out,t&&t.dictionary)}var Yu=typeof TextDecoder<"u"&&new TextDecoder,Q2=0;try{Yu.decode(z2,{stream:!0}),Q2=1}catch{}var Y2=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:za(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Si(e,t){if(t){for(var n="",r=0;r65558)return l(at(13,0,1),null),i;var s=mn(e,a+8);if(s){var f=s,p=Jt(e,a+16),h=p==4294967295||f==65535;if(h){var y=Jt(e,a-12);h=Jt(e,y)==101075792,h&&(f=s=Jt(e,y+32),p=Jt(e,y+48))}for(var w=t&&t.filter,S=function(P){var v=J2(e,p,h),_=v[0],g=v[1],E=v[2],A=v[3],D=v[4],x=v[5],L=G2(e,x);p=D;var N=function(Z,ae){Z?(i(),l(Z,null)):(ae&&(o[A]=ae),--s||l(null,o))};if(!w||w({name:A,size:g,originalSize:E,compression:_}))if(!_)N(null,za(e,L,L+g));else if(_==8){var W=e.subarray(L,L+g);if(g<32e4)try{N(null,of(W,{out:new st(E)}))}catch(Z){N(Z,null)}else r.push(K2(W,{size:E},N))}else N(at(14,"unknown compression type "+_,1),null);else N(null,null)},C=0;C{if(n.path){let r=n.path.map(({key:i})=>i).join(".");t.nested[r]=[...t.nested[r]||[],n.message]}else t.root=[...t.root||[],n.message];return t},{nested:{}})}var eC=class extends Error{constructor(t){super(t[0].message);q(this,"issues");this.name="ValiError",this.issues=t}};function tC(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}}function nC(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}}function ur(e,t,n,r){if(!t||!t.length)return{output:e};let i,o,l=e;for(let a of t){let s=a(l);if(s.issue){i=i||nC(n,r);let f=tC(i,s.issue);if(o?o.push(f):o=[f],i.abortEarly||i.abortPipeEarly)break}else l=s.output}return o?{issues:o}:{output:l}}function nn(e,t){return!e||typeof e=="string"?[e,t]:[void 0,e]}function gn(e,t,n,r,i,o){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:r,input:i,issues:o,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly}]}}function rC(e=[]){return{schema:"any",async:!1,_parse(t,n){return ur(t,e,n,"any")}}}function no(e,t,n){let[r,i]=nn(t,n);return{schema:"array",array:{item:e},async:!1,_parse(o,l){if(!Array.isArray(o))return gn(l,"type","array",r||"Invalid type",o);let a,s=[];for(let f=0;fa.length)return gn(s,"type","tuple",o||"Invalid type",a);let f,p=[];for(let h=0;h({...o,...l.object}),{}),r,i)}function uC(e,t,n,r){let[i,o]=nn(n,r);return Vt(Object.entries(e.object).reduce((l,[a,s])=>t.includes(a)?l:{...l,[a]:s},{}),i,o)}function cC(e,t,n){let r=e._parse(t,n);return r.issues?{success:!1,error:new eC(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function Ju(e,t){return n=>n>e?{issue:{validation:"max_value",message:t||"Invalid value",input:n}}:{output:n}}function Xu(e,t){return n=>nt in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fo=(e,t)=>function(){return t||(0,e[Gv(e)[0]])((t={exports:{}}).exports,t),t.exports},vC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gv(t))!hC.call(e,i)&&i!==n&&lf(e,i,{get:()=>t[i],enumerable:!(r=dC(t,i))||r.enumerable});return e},yC=(e,t,n)=>(n=e!=null?fC(pC(e)):{},vC(t||!e||!e.__esModule?lf(n,"default",{value:e,enumerable:!0}):n,e)),gC=(e,t,n)=>(mC(e,typeof t!="symbol"?t+"":t,n),n),_C=Fo({"../../node_modules/.pnpm/@rgba-image+copy@0.1.3/node_modules/@rgba-image/copy/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.copy=void 0;var t=(n,r,i=0,o=0,l=n.width-i,a=n.height-o,s=0,f=0)=>{if(i=i|0,o=o|0,l=l|0,a=a|0,s=s|0,f=f|0,l<=0||a<=0)return;let p=new Uint32Array(n.data.buffer),h=new Uint32Array(r.data.buffer);for(let y=0;y=n.height)continue;let S=f+y;if(!(S<0||S>=r.height))for(let C=0;C=n.width)continue;let v=s+C;if(v<0||v>=r.width)continue;let _=w*n.width+P,g=S*r.width+v;h[g]=p[_]}}};e.copy=t}}),wC=Fo({"../../node_modules/.pnpm/@rgba-image+create-image@0.1.1/node_modules/@rgba-image/create-image/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreateImageFactory=(t=[0,0,0,0],n=4)=>{if(n=Math.floor(n),isNaN(n)||n<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in t)||t.lengthi===0);return(i,o,l)=>{if(i===void 0||o===void 0)throw TypeError("Not enough arguments");if(i=Math.floor(i),o=Math.floor(o),isNaN(i)||i<1||isNaN(o)||o<1)throw TypeError("Index or size is negative or greater than the allowed amount");let a=i*o*n;if(l===void 0&&(l=new Uint8ClampedArray(a)),l instanceof Uint8ClampedArray){if(l.length!==a)throw TypeError("Index or size is negative or greater than the allowed amount");if(!r)for(let s=0;s{if(o<=-l||o>=l||o==0)return 0;let a=o*Math.PI;return Math.sin(a)/a*Math.sin(a/l)/(a/l)},r=o=>Math.round(o*((1<{let p=f?2:3,h=1/a,y=Math.min(1,a),w=p/y,S=Math.floor((w+1)*2),C=new Int16Array((S+2)*l),P=0;for(let v=0;v>1]+=r(1-W);let Z=0;for(;Z0&&x[ae]===0;)ae--;let re=g+Z,Y=ae-Z+1;C[P++]=re,C[P++]=Y,C.set(x.subarray(Z,ae+1),P),P+=Y}return C};e.filters=i}}),CC=Fo({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/convolve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convolve=void 0;var t=14,n=(r,i,o,l,a,s)=>{let f=0,p=0;for(let h=0;h0;E--){let A=s[y++];P=P+A*r[C]|0,v=v+A*r[C+1]|0,_=_+A*r[C+2]|0,g=g+A*r[C+3]|0,C=C+4|0}i[p]=P+8192>>t,i[p+1]=v+8192>>t,i[p+2]=_+8192>>t,i[p+3]=g+8192>>t,p=p+l*4|0}p=(h+1)*4|0,f=(h+1)*o*4|0}};e.convolve=n}}),kC=Fo({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lanczos2=e.lanczos=void 0;var t=_C(),n=wC(),r=SC(),i=CC(),o=(s,f,p=!1)=>{let h=f.width/s.width,y=f.height/s.height,w=r.filters(s.width,f.width,h,0,p),S=r.filters(s.height,f.height,y,0,p),C=new Uint8ClampedArray(f.width*s.height*4);i.convolve(s.data,C,s.width,s.height,f.width,w),i.convolve(C,f.data,s.height,f.width,f.height,S)},l=(s,f,p=0,h=0,y=s.width-p,w=s.height-h,S=0,C=0,P=f.width-S,v=f.height-C)=>{if(p=p|0,h=h|0,y=y|0,w=w|0,S=S|0,C=C|0,P=P|0,v=v|0,y<=0||w<=0||P<=0||v<=0)return;if(p===0&&h===0&&y===s.width&&w===s.height&&S===0&&C===0&&P===f.width&&v===f.height){o(s,f);return}let _=n.createImage(y,w),g=n.createImage(P,v);t.copy(s,_,p,h),o(_,g),t.copy(g,f,0,0,g.width,g.height,S,C)};e.lanczos=l;var a=(s,f,p=0,h=0,y=s.width-p,w=s.height-h,S=0,C=0,P=f.width-S,v=f.height-C)=>{if(p=p|0,h=h|0,y=y|0,w=w|0,S=S|0,C=C|0,P=P|0,v=v|0,y<=0||w<=0||P<=0||v<=0)return;if(p===0&&h===0&&y===s.width&&w===s.height&&S===0&&C===0&&P===f.width&&v===f.height){o(s,f,!0);return}let _=n.createImage(y,w),g=n.createImage(P,v);t.copy(s,_,p,h),o(_,g,!0),t.copy(g,f,0,0,g.width,g.height,S,C)};e.lanczos2=a}}),Jv=(e=>(e.Bounce="bounce",e.Normal="normal",e))(Jv||{}),EC=iC(Jv),Xv=Vt({autoplay:fe(zs()),defaultTheme:fe(Je()),direction:fe(Gu([xp(1),xp(-1)])),hover:fe(zs()),id:Je(),intermission:fe(qt()),loop:fe(Gu([zs(),qt()])),playMode:fe(EC),speed:fe(qt()),themeColor:fe(Je())}),xC=Vt({animations:no(Je()),id:Je()}),PC=Vt({activeAnimationId:fe(Je()),animations:no(Xv),author:fe(Je()),custom:fe(aC(Je(),rC())),description:fe(Je()),generator:fe(Je()),keywords:fe(Je()),revision:fe(qt()),themes:fe(no(xC)),states:fe(no(Je())),version:fe(Je())}),qv=uC(Xv,["id"]),Ir=Vt({state:Je()}),TC=Ir,OC=Io([Ir,Vt({ms:qt()})]),LC=Io([Ir,Vt({count:qt()})]),bC=Ir,AC=Ir,MC=Ir,jC=Io([Ir,Vt({threshold:fe(no(qt([Xu(0),Ju(1)])))})]),IC=Vt({onAfter:fe(OC),onClick:fe(TC),onComplete:fe(MC),onEnter:fe(LC),onMouseEnter:fe(bC),onMouseLeave:fe(AC),onShow:fe(jC)}),FC=Io([qv,Vt({playOnScroll:fe(Pp([qt([Xu(0),Ju(1)]),qt([Xu(0),Ju(1)])])),segments:fe(Gu([Pp([qt(),qt()]),Je()]))})]);Io([IC,Vt({animationId:fe(Je()),playbackSettings:FC})]);var DC={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp",mpeg:"audio/mpeg",mp3:"audio/mp3"},Tp={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120],mp3:[73,68,51,3,0,0,0,0],mpeg:[73,68,51,3,0,0,0,0]},$C=e=>{let t=null,n=[];if(!e)return null;let r=e.substring(e.indexOf(",")+1);typeof window>"u"?t=Buffer.from(r,"base64").toString("binary"):t=atob(r);let i=new Uint8Array(t.length);for(let o=0;oa===l[s]))return DC[o]}return null},af=class extends Error{constructor(e,t){super(e),gC(this,"code"),this.name="[dotlottie-js]",this.code=t}};function Zv(e){let t;if(typeof window>"u")t=Buffer.from(e).toString("base64");else{let n=Array.prototype.map.call(e,r=>String.fromCharCode(r)).join("");t=window.btoa(n)}return`data:${$C(t)};base64,${t}`}function Op(e){return"w"in e&&"h"in e&&!("xt"in e)&&"p"in e}function qu(e){return!("h"in e)&&!("w"in e)&&"p"in e&&"e"in e&&"u"in e&&"id"in e}async function Do(e,t=()=>!0){if(!(e instanceof Uint8Array))throw new af("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((n,r)=>{q2(e,{filter:t},(i,o)=>{i&&r(i),n(o)})})}async function sf(e,t,n){if(!(e instanceof Uint8Array))throw new af("DotLottie not found","INVALID_DOTLOTTIE");return(await Do(e,r=>r.name===t&&(!n||n(r))))[t]}async function Zu(e){let t="manifest.json",n=(await Do(e,r=>r.name===t))[t];if(!(typeof n>"u"))return JSON.parse(Si(n,!1))}async function NC(e){if(!(e instanceof Uint8Array))return{success:!1,error:"DotLottie not found"};let t=await Zu(e);if(typeof t>"u")return{success:!1,error:"Invalid .lottie file, manifest.json is missing"};let n=cC(PC,t);return n.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(Z2(n.error).nested,null,2)}`}}async function Lp(e){let t=new Uint8Array(e),n=await NC(t);if(n.error)throw new af(n.error,"INVALID_DOTLOTTIE");return t}async function RC(e,t){let n=await Do(e,i=>{let o=i.name.replace("audio/","");return i.name.startsWith("audio/")&&(!t||t({...i,name:o}))}),r={};for(let i in n){let o=n[i];if(o instanceof Uint8Array){let l=i.replace("audio/","");r[l]=Zv(o)}}return r}async function zC(e,t){var n;let r=new Map;for(let[o,l]of Object.entries(t))for(let a of l.assets||[])if(qu(a)){let s=a.p;r.has(s)||r.set(s,new Set),(n=r.get(s))==null||n.add(o)}let i=await RC(e,o=>r.has(o.name));for(let[o,l]of r){let a=i[o];if(a)for(let s of l){let f=t[s];for(let p of(f==null?void 0:f.assets)||[])qu(p)&&p.p===o&&(p.p=a,p.u="",p.e=1)}}}async function UC(e,t){let n=await Do(e,i=>{let o=i.name.replace("images/","");return i.name.startsWith("images/")&&(!t||t({...i,name:o}))}),r={};for(let i in n){let o=n[i];if(o instanceof Uint8Array){let l=i.replace("images/","");r[l]=Zv(o)}}return r}async function WC(e,t){var n;let r=new Map;for(let[o,l]of Object.entries(t))for(let a of l.assets||[])if(Op(a)){let s=a.p;r.has(s)||r.set(s,new Set),(n=r.get(s))==null||n.add(o)}let i=await UC(e,o=>r.has(o.name));for(let[o,l]of r){let a=i[o];if(a)for(let s of l){let f=t[s];for(let p of(f==null?void 0:f.assets)||[])Op(p)&&p.p===o&&(p.p=a,p.u="",p.e=1)}}}async function BC(e,t,{inlineAssets:n}={},r){let i=`animations/${t}.json`,o=await sf(e,i,r);if(typeof o>"u")return;let l=JSON.parse(Si(o,!1));if(!n)return l;let a={[t]:l};return await WC(e,a),await zC(e,a),l}async function VC(e,t,n){let r=`themes/${t}.json`,i=await sf(e,r,n);if(!(typeof i>"u"))return JSON.parse(Si(i,!1))}async function HC(e,t){let n={},r=await Do(e,i=>{let o=i.name.replace("states/","").replace(".json","");return i.name.startsWith("states/")&&(!t||t({...i,name:o}))});for(let i in r){let o=r[i];if(o instanceof Uint8Array){let l=i.replace("states/","").replace(".json","");n[l]=Si(o,!1)}}return n}async function KC(e,t,n){let r=`states/${t}.json`,i=await sf(e,r,n);return typeof i>"u"?void 0:JSON.parse(Si(i,!1))}yC(kC());function ce(e,t="dotLottie-common"){return new Error(`[${t}]: ${e}`)}function Rr(e,t="dotLottie-common",...n){console.error(`[${t}]:`,e,...n)}function Oe(e,t="dotLottie-common",...n){console.warn(`[${t}]:`,e,...n)}function QC(e=""){let t=e.trim(),n=t.lastIndexOf("/"),r=t.substring(n+1),i=r.indexOf(".");return i!==-1?r.substring(0,i):r}function ya(e){return["v","ip","op","layers","fr","w","h"].every(t=>Object.prototype.hasOwnProperty.call(e,t))}function YC(e){let t=e.assets;return t?t.some(n=>qu(n)):!1}function GC(e){try{let t=JSON.parse(e);return ya(t)}catch{return!1}}function Mk(e,t){let n=Object.keys(e).find(r=>e[r]===t);if(n===void 0)throw new Error("Value not found in the object.");return n}function Us(e){return JSON.parse(JSON.stringify(e))}var JC=class{constructor(){q(this,"_dotLottie");q(this,"_animationsMap",new Map);q(this,"_themeMap",new Map);q(this,"_stateMachinesMap",new Map);q(this,"_manifest")}get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(t){let n=await fetch(t,{method:"GET",mode:"cors"});if(!n.ok)throw new Error(`Failed to load dotLottie from ${t} with status ${n.status}`);let r=n.headers.get("content-type");if(r!=null&&r.includes("application/json")){let i=await n.json();if(!ya(i))throw new Error(`Invalid lottie JSON at ${t}`);let o=QC(t);this._animationsMap.set(o,i);let l={activeAnimationId:o,animations:[{id:o}]};this._manifest=l}else{this._dotLottie=await Lp(await n.arrayBuffer());let i=await Zu(this._dotLottie);if(!i)throw new Error("Manifest not found");this._manifest=i}}loadFromLottieJSON(t){if(!ya(t))throw new Error("Invalid lottie JSON");let n="my-animation";this._animationsMap.set(n,t);let r={activeAnimationId:n,animations:[{id:n}]};this._manifest=r}async loadFromArrayBuffer(t){this._dotLottie=await Lp(t);let n=await Zu(this._dotLottie);if(!n)throw new Error("Manifest not found");this._manifest=n}async getAnimation(t){if(this._animationsMap.get(t))return this._animationsMap.get(t);if(!this._dotLottie)return;let n=await BC(this._dotLottie,t,{inlineAssets:!0});return n&&this._animationsMap.set(t,n),n}async getTheme(t){if(this._themeMap.get(t))return this._themeMap.get(t);if(!this._dotLottie)return;let n=await VC(this._dotLottie,t);return n&&this._themeMap.set(t,n),n}async getStateMachines(){if(!this._dotLottie)return;let t=await HC(this._dotLottie);for(let n in t)if(n){let r=t[n];if(r){let i=JSON.parse(r);if(i){let o=i.descriptor.id;this._stateMachinesMap.get(o)||this._stateMachinesMap.set(o,i)}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(t){if(this._stateMachinesMap.get(t))return this._stateMachinesMap.get(t);if(!this._dotLottie)return;let n=await KC(this._dotLottie,t);return n&&this._stateMachinesMap.set(n.descriptor.id,n),n}};async function XC(e,t){let[{DotLottieStateMachineManager:n}]=await Promise.all([Pn(()=>import("./dotlottie-state-machine-manager-2E7RUGJG-Q0qNo-Kd.js"),[])]);if(!e.length)throw ce("No state machines available inside this .lottie!");return new n(e,t)}function Ua(){throw new Error("Cycle detected")}function uf(){if(oi>1)oi--;else{for(var e,t=!1;ro!==void 0;){var n=ro;for(ro=void 0,ec++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&ty(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(ec=0,oi--,t)throw e}}var Le=void 0,ro=void 0,oi=0,ec=0,ga=0;function ey(e){if(Le!==void 0){var t=e.n;if(t===void 0||t.t!==Le)return t={i:0,S:e,p:Le.s,n:void 0,t:Le,e:void 0,x:void 0,r:t},Le.s!==void 0&&(Le.s.n=t),Le.s=t,e.n=t,32&Le.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Le.s,t.n=void 0,Le.s.n=t,Le.s=t),t}}function _t(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}_t.prototype.h=function(){return!0};_t.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};_t.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};_t.prototype.subscribe=function(e){var t=this;return ek(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})};_t.prototype.valueOf=function(){return this.value};_t.prototype.toString=function(){return this.value+""};_t.prototype.toJSON=function(){return this.value};_t.prototype.peek=function(){return this.v};Object.defineProperty(_t.prototype,"value",{get:function(){var e=ey(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(Le instanceof Fr&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){ec>100&&Ua(),this.v=e,this.i++,ga++,oi++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{uf()}}}});function qC(e){return new _t(e)}function ty(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ny(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ry(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Fr(e){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=ga-1,this.f=4}(Fr.prototype=new _t).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ga))return!0;if(this.g=ga,this.f|=1,this.i>0&&!ty(this))return this.f&=-2,!0;var e=Le;try{ny(this),Le=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Le=e,ry(this),this.f&=-2,!0};Fr.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}_t.prototype.S.call(this,e)};Fr.prototype.U=function(e){if(this.t!==void 0&&(_t.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Fr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Fr.prototype.peek=function(){if(this.h()||Ua(),16&this.f)throw this.v;return this.v};Object.defineProperty(Fr.prototype,"value",{get:function(){1&this.f&&Ua();var e=ey(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function iy(e){var t=e.u;if(e.u=void 0,typeof t=="function"){oi++;var n=Le;Le=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,cf(e),r}finally{Le=n,uf()}}}function cf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,iy(e)}function ZC(e){if(Le!==this)throw new Error("Out-of-order effect");ry(this),Le=e,this.f&=-2,8&this.f&&cf(this),uf()}function $o(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}$o.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};$o.prototype.S=function(){1&this.f&&Ua(),this.f|=1,this.f&=-9,iy(this),ny(this),oi++;var e=Le;return Le=this,ZC.bind(this,e)};$o.prototype.N=function(){2&this.f||(this.f|=2,this.o=ro,ro=this)};$o.prototype.d=function(){this.f|=8,1&this.f||cf(this)};function ek(e){var t=new $o(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var tk=class{constructor(e){q(this,"_state");q(this,"_prevState");this._prevState=e,this._state=qC(e)}setState(e){this._prevState=this._state.value,this._state.value=e}subscribe(e){return this._state.subscribe(t=>e(t,this._prevState))}},nk={name:"@dotlottie/common",version:"0.7.11",type:"module",description:"",author:"Afsal , Sam Osborne ",license:"MIT",engines:{node:">18.0.0"},module:"dist/index.js",main:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:[],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint .","type-check":"tsc --noEmit"},dependencies:{"@dotlottie/dotlottie-js":"^0.7.0","@preact/signals-core":"^1.2.3",howler:"^2.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"},devDependencies:{"@lottiefiles/lottie-types":"^1.2.0","@types/howler":"^2.2.8",tsup:"^7.2.0",typescript:"^4.7.4"},publishConfig:{access:"public"}},$t=(e=>(e.Complete="complete",e.DataFail="data_fail",e.DataReady="data_ready",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.LoopComplete="loopComplete",e.Pause="pause",e.Play="play",e.Ready="ready",e.Stop="stop",e.VisibilityChange="visibilityChange",e))($t||{}),dn=(e=>(e.Completed="completed",e.Error="error",e.Fetching="fetching",e.Frozen="frozen",e.Initial="initial",e.Loading="loading",e.Paused="paused",e.Playing="playing",e.Ready="ready",e.Stopped="stopped",e))(dn||{}),rk=(e=>(e.Bounce="bounce",e.Normal="normal",e))(rk||{}),It={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:"normal",speed:1,defaultTheme:""},oy={activeStateId:"",autoplay:!1,currentState:"initial",frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:"normal",speed:1,background:"transparent",intermission:0,currentAnimationId:void 0,visibilityPercentage:0},ik=class{constructor(e,t,n){q(this,"_lottie");q(this,"_src");q(this,"_animationConfig");q(this,"_prevUserPlaybackOptions",{});q(this,"_userPlaybackOptions");q(this,"_hover",!1);q(this,"_loop",!1);q(this,"_counter",0);q(this,"_intermission",0);q(this,"_counterInterval",null);q(this,"_container",null);q(this,"_name");q(this,"_mode","normal");q(this,"_background","transparent");q(this,"_animation");q(this,"_defaultTheme");q(this,"_activeAnimationId");q(this,"_currentAnimationId");q(this,"_testId");q(this,"_listeners",new Map);q(this,"_currentState","initial");q(this,"_stateBeforeFreeze","initial");q(this,"state",new tk(oy));q(this,"_light",!1);q(this,"_worker",!1);q(this,"_dotLottieLoader",new JC);q(this,"_activeStateId");q(this,"_inInteractiveMode",!1);q(this,"_scrollTicking",!1);q(this,"_scrollCallback");q(this,"_onShowIntersectionObserver");q(this,"_visibilityPercentage",0);q(this,"_audios",[]);q(this,"_stateMachineManager");typeof e=="string"?this._src=e:this._src=Us(e),n!=null&&n.testId&&(this._testId=n.testId),this._defaultTheme=(n==null?void 0:n.defaultTheme)||"",this._userPlaybackOptions=this._validatePlaybackOptions(n||{}),typeof(n==null?void 0:n.activeAnimationId)=="string"&&(this._activeAnimationId=n.activeAnimationId),this._container=t||null,typeof(n==null?void 0:n.background)=="string"&&this.setBackground(n.background),typeof(n==null?void 0:n.activeStateId)<"u"&&(this._activeStateId=n.activeStateId);let{rendererSettings:r,...i}=n||{};this._animationConfig={loop:!1,autoplay:!1,renderer:"svg",rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0,filterSize:{width:"200%",height:"200%",x:"-50%",y:"-50%"},...r},...i},n!=null&&n.light&&(this._light=n.light),n!=null&&n.worker&&(this._worker=n.worker),this._listenToHover(),this._listenToVisibilityChange()}_listenToHover(){var e,t,n,r;let i=()=>{this._hover&&this.currentState!=="playing"&&this.play()},o=()=>{this._hover&&this.currentState==="playing"&&this.stop()};(e=this._container)==null||e.removeEventListener("mouseenter",i),(t=this._container)==null||t.removeEventListener("mouseleave",o),(n=this._container)==null||n.addEventListener("mouseleave",o),(r=this._container)==null||r.addEventListener("mouseenter",i)}_onVisibilityChange(){!this._lottie||typeof document>"u"||(document.hidden&&this.currentState==="playing"?this.freeze():this.currentState==="frozen"&&this.unfreeze())}_listenToVisibilityChange(){typeof document<"u"&&typeof document.hidden<"u"&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange())}_getOption(e){var t;if(typeof this._userPlaybackOptions[e]<"u")return this._userPlaybackOptions[e];let n=(t=this._dotLottieLoader.manifest)==null?void 0:t.animations.find(r=>r.id===this._currentAnimationId);return n&&typeof n[e]<"u"?n[e]:It[e]}_getPlaybackOptions(){let e={};for(let t in It)typeof It[t]<"u"&&(e[t]=this._getOption(t));return e}_setPlayerState(e){var t,n,r;let i=e(this._getPlaybackOptions());try{qv._parse(i)}catch{Oe(`Invalid PlaybackOptions, ${JSON.stringify(i,null,2)}`);return}typeof i.defaultTheme<"u"&&(this._defaultTheme=i.defaultTheme),typeof i.playMode<"u"&&(this._mode=i.playMode),typeof i.intermission<"u"&&(this._intermission=i.intermission),typeof i.hover<"u"&&(this._hover=i.hover),typeof i.loop<"u"&&(this.clearCountTimer(),this._loop=i.loop,this._counter=0,(t=this._lottie)==null||t.setLoop(typeof i.loop=="number"?!0:i.loop)),typeof i.speed<"u"&&((n=this._lottie)==null||n.setSpeed(i.speed)),typeof i.autoplay<"u"&&this._lottie&&(this._lottie.autoplay=i.autoplay),typeof i.direction<"u"&&((r=this._lottie)==null||r.setDirection(i.direction))}_getOptionsFromAnimation(e){let{id:t,...n}=e;return{...It,...n}}_updateTestData(){!this._testId||!this._lottie||(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed})}setContainer(e){e!==this._container&&(this._container=e,this.setBackground(this._background),this._listenToHover())}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval)}setCurrentState(e){this._currentState=e,this._notify(),this._updateTestData()}static isPathJSON(e){var t;return((t=e.split(".").pop())==null?void 0:t.toLowerCase())==="json"}get src(){return this._src}updateSrc(e){this._src!==e&&(typeof e=="string"?this._src=e:this._src=Us(e),this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load())}get intermission(){return this._intermission}get hover(){return this._hover}setHover(e){typeof e=="boolean"&&(this._hover=e,this._userPlaybackOptions.hover=e,this._notify())}setIntermission(e){this._intermission=e,this._userPlaybackOptions.intermission=e,this._notify()}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(e){typeof e=="string"&&(this._mode=e,this._userPlaybackOptions.playMode=e,this._setPlayerState(()=>({playMode:e})),this._notify(),this._updateTestData())}get container(){if(this._container)return this._container}goToAndPlay(e,t,n){if(!this._lottie||["loading"].includes(this._currentState)){Oe("goToAndPlay() Can't use whilst loading.");return}this._lottie.goToAndPlay(e,t,n),this.setCurrentState("playing")}goToAndStop(e,t,n){if(!this._lottie||["loading"].includes(this._currentState)){Oe("goToAndStop() Can't use whilst loading.");return}this._lottie.goToAndStop(e,t,n),this.setCurrentState("stopped")}seek(e){if(!this._lottie||["loading"].includes(this._currentState)){Oe("seek() Can't use whilst loading.");return}let t=e;typeof t=="number"&&(t=Math.round(t));let n=/^(\d+)(%?)$/u.exec(t.toString());if(!n)return;let r=n[2]==="%"?this.totalFrames*Number(n[1])/100:n[1];r!==void 0&&(this._lottie.goToAndPlay(r,!0),this.currentState==="playing"?this.play():this.currentState==="frozen"?this.freeze():this.pause())}_areNumbersInRange(e,t){return e>=0&&e<=1&&t>=0&&t<=1}_updatePosition(e,t,n){let[r,i]=e??[0,this.totalFrames-1],[o,l]=t??[0,1];if(!this._areNumbersInRange(o,l)){Rr("threshold values must be between 0 and 1");return}if(this.container){let{height:a,top:s}=this.container.getBoundingClientRect(),f=window.innerHeight-s,p=window.innerHeight+a,h=f/p,y=r+Math.round((h-o)/(l-o)*(i-r));n&&n(h),this.goToAndStop(y,!0),(y>=i||h>=l)&&this._handleAnimationComplete()}this._scrollTicking=!1}_requestTick(e,t,n){this._scrollTicking||(requestAnimationFrame(()=>this._updatePosition(e,t,n)),this._scrollTicking=!0)}playOnScroll(e){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(e==null?void 0:e.segments,e==null?void 0:e.threshold,e==null?void 0:e.positionCallback),window.addEventListener("scroll",this._scrollCallback)}stopPlayOnScroll(){this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback),this._scrollCallback=void 0)}stopPlayOnShow(){this._onShowIntersectionObserver&&(this._onShowIntersectionObserver.disconnect(),this._onShowIntersectionObserver=void 0)}addIntersectionObserver(e){if(!this.container)throw ce("Can't play on show, player container element not available.");let t={root:null,rootMargin:"0px",threshold:e!=null&&e.threshold?e.threshold:[0,1]},n=r=>{r.forEach(i=>{var o,l;this._visibilityPercentage=i.intersectionRatio*100,i.isIntersecting?(e!=null&&e.callbackOnIntersect&&e.callbackOnIntersect(this._visibilityPercentage),(o=this._container)==null||o.dispatchEvent(new Event("visibilityChange"))):e!=null&&e.callbackOnIntersect&&(e.callbackOnIntersect(0),(l=this._container)==null||l.dispatchEvent(new Event("visibilityChange")))})};this._onShowIntersectionObserver=new IntersectionObserver(n,t),this._onShowIntersectionObserver.observe(this.container)}playOnShow(e){var t;if(this.stop(),!this.container)throw ce("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:(t=e==null?void 0:e.threshold)!=null?t:[],callbackOnIntersect:n=>{n===0?this.pause():this.play()}})}_validatePlaybackOptions(e){if(!e)return{};let t={};for(let[n,r]of Object.entries(e))switch(n){case"autoplay":typeof r=="boolean"&&(t.autoplay=r);break;case"direction":typeof r=="number"&&[1,-1].includes(r)&&(t.direction=r);break;case"loop":(typeof r=="boolean"||typeof r=="number")&&(t.loop=r);break;case"playMode":typeof r=="string"&&["normal","bounce"].includes(r)&&(t.playMode=r);break;case"speed":typeof r=="number"&&(t.speed=r);break;case"themeColor":typeof r=="string"&&(t.themeColor=r);break;case"hover":typeof r=="boolean"&&(t.hover=r);break;case"intermission":typeof r=="number"&&(t.intermission=r);break;case"defaultTheme":typeof r=="string"&&(t.defaultTheme=r);break}return this._requireValidPlaybackOptions(t),t}_requireAnimationsInTheManifest(){var e;if(!((e=this._dotLottieLoader.manifest)!=null&&e.animations.length))throw ce("No animations found in manifest.")}_requireAnimationsToBeLoaded(){if(this._dotLottieLoader.animationsMap.size===0)throw ce("No animations have been loaded.")}async play(e,t){var n,r;if(["initial","loading"].includes(this._currentState)){Oe("Player unable to play whilst loading.");return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!e){this._lottie.playDirection===-1&&this._lottie.currentFrame===0?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState("playing");return}if(typeof e=="number"){let i=(n=this._dotLottieLoader.manifest)==null?void 0:n.animations[e];if(!i)throw ce("animation not found.");typeof t=="function"?await this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id})}if(typeof e=="string"){let i=(r=this._dotLottieLoader.manifest)==null?void 0:r.animations.find(o=>o.id===e);if(!i)throw ce("animation not found.");typeof t=="function"?await this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id})}}playSegments(e,t){if(!this._lottie||["loading"].includes(this._currentState)){Oe("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(e,t),this.setCurrentState("playing")}resetSegments(e){if(!this._lottie||["loading"].includes(this._currentState)){Oe("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(e)}togglePlay(){this.currentState==="playing"?this.pause():this.play()}_getAnimationByIdOrIndex(e){var t,n;if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof e=="number"){let r=(t=this._dotLottieLoader.manifest)==null?void 0:t.animations[e];if(!r)throw ce("animation not found.");return r}if(typeof e=="string"){let r=(n=this._dotLottieLoader.manifest)==null?void 0:n.animations.find(i=>i.id===e);if(!r)throw ce("animation not found.");return r}throw ce("first param must be a number or string")}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(e){if(!this._inInteractiveMode){Rr("Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.");return}if(this._dotLottieLoader.stateMachinesMap.size===0&&await this._dotLottieLoader.getStateMachines(),this._dotLottieLoader.stateMachinesMap.size===0)throw ce("No interactivity states are available.");if(e==="undefined")throw ce("stateId is not specified.");this._stateMachineManager||(this._stateMachineManager=await XC(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(e)}enterInteractiveMode(e){var t;if(e)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&((t=this._stateMachineManager)==null||t.stop()),this._activeStateId=e,this._inInteractiveMode=!0,this._startInteractivity(e);else throw ce("stateId must be a non-empty string.")}exitInteractiveMode(){var e;this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",(e=this._stateMachineManager)==null||e.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset())}reset(){var e;let t=this._getActiveAnimationId(),n=(e=this._dotLottieLoader.manifest)==null?void 0:e.animations.find(r=>r.id===t);if(this._inInteractiveMode&&this.exitInteractiveMode(),!n)throw ce("animation not found.");this.play(t)}previous(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ce("manifest not found.");if(this._inInteractiveMode){Oe("previous() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(t===-1)throw ce("animation not found.");let n=this._dotLottieLoader.manifest.animations[(t-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw ce("animation not found.");typeof e=="function"?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}next(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ce("manifest not found.");if(this._inInteractiveMode){Oe("next() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(t===-1)throw ce("animation not found.");let n=this._dotLottieLoader.manifest.animations[(t+1)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw ce("animation not found.");typeof e=="function"?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("resize() Can't use whilst loading.");return}this._lottie.resize()}stop(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("stop() Can't use whilst loading.");return}this.clearCountTimer(),this._counter=0,this._setPlayerState(()=>({direction:this._getOption("direction")})),this._lottie.stop(),this.setCurrentState("stopped")}pause(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused")}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("freeze() Can't use whilst loading.");return}this.currentState!=="frozen"&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState("frozen")}unfreeze(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("unfreeze() Can't use whilst loading.");return}this._stateBeforeFreeze==="playing"?this.play():this.pause()}destroy(){var e,t;(e=this._container)!=null&&e.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this._audios.length&&(this._audios.forEach(n=>{n.unload()}),this._audios=[]),this.clearCountTimer(),typeof document<"u"&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,(t=this._lottie)==null||t.destroy(),this._lottie=void 0}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return`${nk.dependencies["lottie-web"]}`}addEventListener(e,t){var n,r,i;this._listeners.has(e)||this._listeners.set(e,new Set),(n=this._listeners.get(e))==null||n.add(t);try{e==="complete"?(r=this._container)==null||r.addEventListener(e,t):(i=this._lottie)==null||i.addEventListener(e,t)}catch(o){Rr(`addEventListener ${o}`)}}getState(){var e,t,n,r,i,o,l;return{autoplay:(t=(e=this._lottie)==null?void 0:e.autoplay)!=null?t:!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:(r=(n=this._lottie)==null?void 0:n.playDirection)!=null?r:1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:(o=(i=this._lottie)==null?void 0:i.playSpeed)!=null?o:1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:(l=this._activeStateId)!=null?l:""}}_notify(){this.state.setState(this.getState())}get totalFrames(){var e;return((e=this._lottie)==null?void 0:e.totalFrames)||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(e){this._requireValidDirection(e),this._setPlayerState(()=>({direction:e})),this._userPlaybackOptions.direction=e}get speed(){var e;return((e=this._lottie)==null?void 0:e.playSpeed)||1}setSpeed(e){this._requireValidSpeed(e),this._setPlayerState(()=>({speed:e})),this._userPlaybackOptions.speed=e}get autoplay(){var e,t;return(t=(e=this._lottie)==null?void 0:e.autoplay)!=null?t:!1}setAutoplay(e){if(this._requireValidAutoplay(e),!this._lottie||["loading"].includes(this._currentState)){Oe("setAutoplay() Can't use whilst loading.");return}this._setPlayerState(()=>({autoplay:e})),this._userPlaybackOptions.autoplay=e}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("toggleAutoplay() Can't use whilst loading.");return}this.setAutoplay(!this._lottie.autoplay)}get defaultTheme(){return this._defaultTheme}setDefaultTheme(e){this._setPlayerState(()=>({defaultTheme:e})),this._userPlaybackOptions.defaultTheme=e,this._animation&&this.render()}get loop(){return this._loop}setLoop(e){this._requireValidLoop(e),this._setPlayerState(()=>({loop:e})),this._userPlaybackOptions.loop=e}toggleLoop(){if(!this._lottie||["loading"].includes(this._currentState)){Oe("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop)}get background(){return this._background}setBackground(e){this._requireValidBackground(e),this._background=e,this._container&&(this._container.style.backgroundColor=e)}get _frame(){return this._lottie?this.currentState==="completed"?this.direction===-1?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(e){var t;let n;!Array.isArray(e)||e.length===0?n=["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"]:n=e;let r=!1;if(n.includes("activeAnimationId")){let i=(t=this._dotLottieLoader.manifest)==null?void 0:t.activeAnimationId,o=this._getAnimationByIdOrIndex(i||0);this._activeAnimationId=i,await this._setCurrentAnimation(o.id),r=!0}n.forEach(i=>{switch(i){case"autoplay":delete this._userPlaybackOptions.autoplay,this.setAutoplay(this._getOption("autoplay"));break;case"defaultTheme":delete this._userPlaybackOptions.defaultTheme,this.setDefaultTheme(this._getOption("defaultTheme"));break;case"direction":delete this._userPlaybackOptions.direction,this.setDirection(this._getOption("direction"));break;case"hover":delete this._userPlaybackOptions.hover,this.setHover(this._getOption("hover"));break;case"intermission":delete this._userPlaybackOptions.intermission,this.setIntermission(this._getOption("intermission"));break;case"loop":delete this._userPlaybackOptions.loop,this.setLoop(this._getOption("loop"));break;case"playMode":delete this._userPlaybackOptions.playMode,this.setMode(this._getOption("playMode")),this.setDirection(this._getOption("direction"));break;case"speed":delete this._userPlaybackOptions.speed,this.setSpeed(this._getOption("speed"));break}}),r&&this.render()}removeEventListener(e,t){var n,r,i;try{e==="complete"?(n=this._container)==null||n.removeEventListener(e,t):(r=this._lottie)==null||r.removeEventListener(e,t),(i=this._listeners.get(e))==null||i.delete(t)}catch(o){Rr("removeEventListener",o)}}_handleAnimationComplete(){var e;typeof this._loop=="number"&&this.stop();let t=this.direction===-1?0:this.totalFrames-1;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),(e=this._container)==null||e.dispatchEvent(new Event("complete"))}addEventListeners(){var e;if(!this._lottie||["loading"].includes(this._currentState)){Oe("addEventListeners() Can't use whilst loading.");return}this._lottie.addEventListener("enterFrame",()=>{var t;if(!this._lottie){Oe("enterFrame event : Lottie is undefined.");return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&((t=this._container)==null||t.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify()}),this._lottie.addEventListener("loopComplete",()=>{var t;if(!this._lottie){Oe("loopComplete event : Lottie is undefined.");return}(t=this._container)==null||t.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let n=this._lottie.playDirection;if(typeof this._loop=="number"&&this._loop>0&&(this._counter+=this._mode==="bounce"?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}this._mode==="bounce"&&typeof n=="number"&&(n=Number(n)*-1);let r=n===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(r,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:n})),this.goToAndPlay(r,!0))},this._intermission)):(this._setPlayerState(()=>({direction:n})),this.goToAndPlay(n===-1?this.totalFrames-1:0,!0))}),this._lottie.addEventListener("complete",()=>{if(this._lottie&&this._loop===!1&&this._mode==="bounce"){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let t=this._lottie.playDirection;this._mode==="bounce"&&typeof t=="number"&&(t=Number(t)*-1);let n=t===-1?this.totalFrames-1:0;this._setPlayerState(()=>({direction:t})),this.goToAndPlay(n,!0)},this._intermission)}else this._handleAnimationComplete()});for(let[t,n]of this._listeners)if(t==="complete")for(let r of n)(e=this._container)==null||e.addEventListener(t,r);else for(let r of n)this._lottie.addEventListener(t,r)}async _setCurrentAnimation(e){this._currentState="loading";let t=await this._dotLottieLoader.getAnimation(e);this._currentAnimationId=e,this._animation=t,this._currentState="ready"}async _getAudioFactory(){if(this._animation&&YC(this._animation)){let{DotLottieAudio:e}=await Pn(()=>import("./dotlottie-audio-efUd5333.js"),__vite__mapDeps([0,1]));return t=>{let n=new e({src:[t]});return this._audios.push(n),n}}return null}async render(e){var t,n,r,i,o,l,a,s,f,p,h,y,w,S,C,P,v,_;if(e!=null&&e.id)await this._setCurrentAnimation(e.id);else if(!this._animation)throw ce("no animation selected");let g=(t=It.loop)!=null?t:!1,E=(n=It.autoplay)!=null?n:!1,A=(r=It.playMode)!=null?r:"normal",D=(i=It.intermission)!=null?i:0,x=(o=It.hover)!=null?o:!1,L=(l=It.direction)!=null?l:1,N=(a=It.speed)!=null?a:1,W=(s=It.defaultTheme)!=null?s:"";g=(f=e==null?void 0:e.loop)!=null?f:this._getOption("loop"),E=(p=e==null?void 0:e.autoplay)!=null?p:this._getOption("autoplay"),A=(h=e==null?void 0:e.playMode)!=null?h:this._getOption("playMode"),D=(y=e==null?void 0:e.intermission)!=null?y:this._getOption("intermission"),x=(w=e==null?void 0:e.hover)!=null?w:this._getOption("hover"),L=(S=e==null?void 0:e.direction)!=null?S:this._getOption("direction"),N=(C=e==null?void 0:e.speed)!=null?C:this._getOption("speed"),W=(P=e==null?void 0:e.defaultTheme)!=null?P:this._getOption("defaultTheme");let Z={...this._animationConfig,autoplay:x?!1:E,loop:typeof g=="number"?!0:g,renderer:this._worker?"svg":(v=this._animationConfig.renderer)!=null?v:"svg"},[ae,re,Y]=await Promise.all([this._dotLottieLoader.getTheme(W),this._getLottiePlayerInstance(),this._getAudioFactory()]);if(ae&&this._animation?(this._animation=Us(this._animation),this._animation.slots=ae):this._animation=await this._dotLottieLoader.getAnimation((_=this._currentAnimationId)!=null?_:""),this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:W,playMode:A,intermission:D,hover:x,loop:g})),Y?this._lottie=re.loadAnimation({...Z,container:this._container,animationData:this._animation,audioFactory:Y}):this._lottie=re.loadAnimation({...Z,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>"u"&&(this._lottie.resetSegments=()=>{var te;(te=this._lottie)==null||te.playSegments([0,this._lottie.totalFrames],!0)}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:L,speed:N})),E&&!x&&(g===!1&&L===-1?this.play():this.setCurrentState("playing")),this._updateTestData()}async _getLottiePlayerInstance(){var e;let t=(e=this._animationConfig.renderer)!=null?e:"svg",n;if(this._worker)return t!=="svg"&&Oe("Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning."),n=await Pn(()=>import("./lottie_worker-Q23FJ6ZR-CZgcfgj7.js"),__vite__mapDeps([2,1])),n.default;switch(t){case"svg":{this._light?n=await Pn(()=>import("./lottie_light-KMJEUZFY-DZNzI0EV.js"),__vite__mapDeps([3,1])):n=await Pn(()=>import("./lottie_svg-MJGYILXD-Be1OGMYj.js"),__vite__mapDeps([4,1]));break}case"canvas":{this._light?n=await Pn(()=>import("./lottie_light_canvas-B5UTTNXA-zkUt6Qm4.js"),__vite__mapDeps([5,1])):n=await Pn(()=>import("./lottie_canvas-CDSUBMCL-jm7H_fxU.js"),__vite__mapDeps([6,1]));break}case"html":{this._light?n=await Pn(()=>import("./lottie_light_html-SLCECTRT-n6mnomVq.js"),__vite__mapDeps([7,1])):n=await Pn(()=>import("./lottie_html-X3TYKVQI-B12kHkKK.js"),__vite__mapDeps([8,1]));break}default:throw new Error(`Invalid renderer: ${t}`)}return n.default}_getActiveAnimationId(){var e,t,n,r;let i=this._dotLottieLoader.manifest;return(r=(n=(e=this._activeAnimationId)!=null?e:i==null?void 0:i.activeAnimationId)!=null?n:(t=i==null?void 0:i.animations[0])==null?void 0:t.id)!=null?r:void 0}async load(e){if(this._currentState==="loading"){Oe("Loading in progress..");return}try{if(this.setCurrentState("loading"),typeof this._src=="string")if(GC(this._src)){let n=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(n)}else{let n=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(n.toString())}else if(typeof this._src=="object"&&ya(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw ce("Invalid src provided");if(!this._dotLottieLoader.manifest)throw ce("No manifest found");let t=this._getActiveAnimationId();if(!t)throw ce("No active animation found");await this._setCurrentAnimation(t),await this.render(e)}catch(t){this.setCurrentState("error"),t instanceof Error&&Rr(`Error loading animation: ${t.message}`)}}setErrorState(e){this.setCurrentState("error"),Rr(e)}_requireValidDirection(e){if(e!==-1&&e!==1)throw ce("Direction can only be -1 (backwards) or 1 (forwards)")}_requireValidIntermission(e){if(e<0||!Number.isInteger(e))throw ce("intermission must be a positive number")}_requireValidLoop(e){if(typeof e=="number"&&(!Number.isInteger(e)||e<0))throw ce("loop must be a positive number or boolean")}_requireValidSpeed(e){if(typeof e!="number")throw ce("speed must be a number")}_requireValidBackground(e){if(typeof e!="string")throw ce("background must be a string")}_requireValidAutoplay(e){if(typeof e!="boolean")throw ce("autoplay must be a boolean")}_requireValidPlaybackOptions(e){e.direction&&this._requireValidDirection(e.direction),e.intermission&&this._requireValidIntermission(e.intermission),e.loop&&this._requireValidLoop(e.loop),e.speed&&this._requireValidSpeed(e.speed)}};function ok(){var e=F.useRef(!0);return e.current?(e.current=!1,!0):e.current}var lk=function(e,t){var n=ok();F.useEffect(function(){if(!n)return e()},t)},Ft=lk,ak=F.createContext(null),sk=ak.Provider,uk=(e,t,n)=>{let[r,i]=F.useState(()=>n());return F.useEffect(()=>{let o=e(()=>{let l=t();i(l)});return()=>{o()}},[e]),r},ck=typeof window>"u"?F.useEffect:F.useLayoutEffect,fk=(e,t,n)=>{let[r]=F.useState(()=>new ik(e,t.current,n)),i=F.useRef(!1);return ck(()=>{async function o(){!i.current&&t.current&&(i.current=!0,r.setContainer(t.current),await r.load())}return o(),()=>{i.current&&r.destroy()}},[r]),r};function ml(e,t){let n=F.useCallback(()=>t(e.getState()),[t,e]),r=F.useCallback(i=>e.state.subscribe(i),[e]);return uk(r,n,()=>t(oy))}var bp={animation:{position:"relative",width:"100%",height:"100%"},animationWithControls:{position:"relative"}},ly=Ee.forwardRef(({onEvent:e,activeAnimationId:t,autoplay:n,background:r="transparent",direction:i,intermission:o,loop:l,playMode:a,hover:s,speed:f,renderer:p="svg",rendererSettings:h={},src:y,className:w="",testId:S,children:C,defaultTheme:P,light:v=!1,worker:_=!1,activeStateId:g,lottieRef:E,...A},D)=>{let x=F.useRef(null),L=fk(y,x,{renderer:p,activeAnimationId:t,rendererSettings:{clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0,...h},hover:s,loop:l,direction:i,speed:f,intermission:o,background:r,playMode:a,autoplay:s?!1:n,testId:S,defaultTheme:P,light:v,worker:_,activeStateId:g}),N=F.useRef(L);N.current=L,Ee.useImperativeHandle(D,()=>L,[L]),Ee.useImperativeHandle(E,()=>L,[L]);let W=ml(L,Y=>Y.currentState),Z=ml(L,Y=>Y.frame),ae=ml(L,Y=>Y.seeker),re=ml(L,Y=>Y.currentAnimationId);return Ft(()=>{typeof l>"u"?N.current.revertToManifestValues(["loop"]):N.current.setLoop(l)},[l]),Ft(()=>{[dn.Initial,dn.Loading].includes(W)||(typeof n>"u"?N.current.revertToManifestValues(["autoplay"]):N.current.setAutoplay(n))},[n]),Ft(()=>{typeof i>"u"?N.current.revertToManifestValues(["direction"]):N.current.setDirection(i)},[i]),Ft(()=>{typeof f>"u"?N.current.revertToManifestValues(["speed"]):N.current.setSpeed(f)},[f]),Ft(()=>{typeof a>"u"?N.current.revertToManifestValues(["playMode"]):N.current.setMode(a)},[a]),Ft(()=>{typeof s>"u"?N.current.revertToManifestValues(["hover"]):N.current.setHover(s)},[s]),Ft(()=>{typeof r>"u"?N.current.setBackground("transparent"):N.current.setBackground(r)},[r]),Ft(()=>{typeof o>"u"?N.current.revertToManifestValues(["intermission"]):N.current.setIntermission(o)},[o]),Ft(()=>{typeof P>"u"||!P?N.current.revertToManifestValues(["defaultTheme"]):N.current.setDefaultTheme(P)},[P]),Ft(()=>{t&&N.current.play(t)},[t]),Ft(()=>(typeof g<"u"&&N.current.enterInteractiveMode(g),()=>{N.current.exitInteractiveMode()}),[g]),Ft(()=>{typeof y<"u"&&N.current.updateSrc(y)},[y]),F.useEffect(()=>{let Y=()=>{e==null||e($t.Ready)},te=()=>{e==null||e($t.DataReady)},$e=()=>{e==null||e($t.DataFail)},me=()=>{N.current.currentState!==dn.Playing&&(e==null||e($t.Complete))},R=()=>{e==null||e($t.LoopComplete)};return N.current.addEventListener("DOMLoaded",Y),N.current.addEventListener("data_ready",te),N.current.addEventListener("data_failed",$e),N.current.addEventListener("complete",me),N.current.addEventListener("loopComplete",R),()=>{N.current.removeEventListener("DOMLoaded",Y),N.current.removeEventListener("data_ready",te),N.current.removeEventListener("data_failed",$e),N.current.removeEventListener("complete",me),N.current.removeEventListener("loopComplete",R)}},[]),F.useEffect(()=>{switch(W){case dn.Stopped:e==null||e($t.Stop);break;case dn.Paused:e==null||e($t.Pause);break;case dn.Playing:e==null||e($t.Play);break;case dn.Frozen:e==null||e($t.Freeze);break;case dn.Error:e==null||e($t.Error);break}},[W]),F.useEffect(()=>{e==null||e($t.Frame,{frame:Z,seeker:ae})},[Z]),Ee.createElement(sk,{value:L},Ee.createElement("div",{className:`dotlottie-container main ${C?"controls":""} ${w}`,lang:"en",...S&&{"data-testid":S},...A},Ee.createElement("div",{ref:x,"data-name":`${re}`,role:"figure",className:`animation ${C?"controls":""}`,style:C?bp.animationWithControls:bp.animation,...S&&{"data-testid":"animation"}},W===dn.Error&&Ee.createElement("div",{...S&&{"data-testid":"error"},className:"error"},"⚠️")),C))});function dk(e){return wi({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5h10v3l4-4-4-4v3h-12v6h2zM14 11h-10v-3l-4 4 4 4v-3h12v-6h-2z"},child:[]}]})(e)}function pk(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M84.41 106c-15.63.1-27.67 13.8-25.69 29.3 16 124 16 117.4 0 241.4-2.54 19.8 17.33 35 35.79 27.3L361.5 292.9v98.8c0 7.9 8.9 14.2 20 14.3h52c11.1-.1 20-6.4 20-14.3V120.2c-.1-7.8-9-14.1-20-14.2h-52c-11 .1-19.9 6.4-20 14.2v98.9L94.51 108c-3.2-1.3-6.63-2-10.1-2z"},child:[]}]})(e)}function hk(e){return wi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M427.6 106c15.6.1 27.7 13.8 25.7 29.3-16 124-16 117.4 0 241.4 2.5 19.8-17.4 35-35.8 27.3l-267-111.1v98.8c0 7.9-8.9 14.2-20 14.3H78.49c-11.1-.1-20-6.4-20-14.3V120.2c.1-7.8 9-14.1 20-14.2h52.01c11 .1 19.9 6.4 20 14.2v98.9l267-111.1c3.2-1.3 6.6-2 10.1-2z"},child:[]}]})(e)}const Ap=({className:e="",title:t,loadTime:n,...r})=>M.jsxs("div",{className:`flex flex-col items-center ${e}`,...r,children:[M.jsx("p",{className:"text-xl font-bold mb-2",children:t}),M.jsxs("p",{className:"text-xs px-2 py-1 bg-strong rounded-full flex justify-center items-center",children:["Load Time: ",n,"ms"]})]});let vl=performance.now();function mk(){const e=F.useRef(null),[t,n]=F.useState(null),r=Ie(x=>x.viewer.src),i=Ie(x=>x.viewer.backgroundColor),o=Ie(x=>x.viewer.speed),l=Ie(x=>x.viewer.autoplay),a=Ie(x=>x.viewer.loop),s=Ie(x=>x.viewer.totalFrames),f=Ie(x=>x.viewer.currentFrame),p=Ie(x=>x.viewer.currentState),h=Ie(x=>x.viewer.mode),y=Ie(x=>x.viewer.activeAnimationId),w=Ie(x=>x.viewer.activeThemeId),S=Ie(x=>x.viewer.isJson),C=Ie(x=>x.viewer.loadTime),P=Ie(x=>x.viewer.animations),v=Ao(),_=F.useCallback(()=>{var L,N,W,Z,ae,re;v(Zw(t==null?void 0:t.totalFrames));const x=performance.now();v(rS(x-vl)),!r.endsWith(".json")&&!r.startsWith("data:application/json")&&(y||v(Ll(((W=(N=(L=t==null?void 0:t.manifest)==null?void 0:L.animations)==null?void 0:N[0])==null?void 0:W.id)||"")),v(ip(((ae=(Z=t==null?void 0:t.manifest)==null?void 0:Z.animations)==null?void 0:ae.map(Y=>Y.id))||[])),v(rp(((re=t==null?void 0:t.manifest)==null?void 0:re.themes)||[])))},[r,t,v,y]),g=F.useCallback(()=>{v(qw((t==null?void 0:t.currentFrame)||0))},[v,t]),E=F.useCallback(()=>{const x=P.indexOf(y);if(x===-1)return;const L=(x+1)%P.length;return P[L]},[P,y]),A=F.useCallback(()=>{const x=P.indexOf(y);if(x===-1)return;const L=(x-1+P.length)%P.length;return P[L]},[P,y]);F.useEffect(()=>{if(t)return t.addEventListener("load",_),t.addEventListener("frame",g),()=>{t.removeEventListener("load",_),t.removeEventListener("frame",g)}},[_,t,g]);const D=F.useCallback(x=>{x.addEventListener("complete",()=>{v(dl("stopped"))}),x.addEventListener("stop",()=>{v(dl("stopped"))}),x.addEventListener("play",()=>{v(dl("playing"))}),x.addEventListener("pause",()=>{v(dl("paused"))})},[v]);return F.useEffect(()=>{t&&(vl=performance.now(),t==null||t.loadAnimation(y))},[y,t]),F.useEffect(()=>{t&&(t==null||t.loadTheme(w))},[w,t]),F.useEffect(()=>{var x,L,N;t&&(v(ip(((L=(x=t==null?void 0:t.manifest)==null?void 0:x.animations)==null?void 0:L.map(W=>W.id))||[])),v(rp(((N=t==null?void 0:t.manifest)==null?void 0:N.themes)||[])))},[t,v]),F.useEffect(()=>{vl=performance.now()},[r,t]),M.jsx(M.Fragment,{children:M.jsxs("div",{className:"h-full flex-grow flex justify-between items-center flex-col gap-4",children:[M.jsxs("div",{className:"flex justify-center h-full",children:[M.jsxs("div",{className:"flex flex-col dotlottie-player",children:[M.jsx(Ap,{className:"mb-4",title:"dotLottie Web",loadTime:parseFloat(C.dotLottie.toFixed(2))}),M.jsx("div",{className:"flex justify-center items-center p-4 flex-grow",children:M.jsx("div",{style:{width:"350px",height:"350px"},children:M.jsx(I2,{backgroundColor:i,width:350,height:350,autoplay:l,loop:a,mode:h,speed:o,dotLottieRefCallback:x=>{x&&(D(x),n(x))},src:r})})})]}),S?M.jsxs("div",{className:"flex flex-col lottie-web",children:[M.jsx(Ap,{className:"mb-4",title:"Lottie Web",loadTime:parseFloat(C.lottieWeb.toFixed(2))}),M.jsx("div",{className:"flex justify-center items-center p-4 flex-grow",children:M.jsx("div",{style:{width:"350px",height:"350px"},children:M.jsx(ly,{lottieRef:x=>{e.current=x},background:i,autoplay:l,loop:a,speed:o,onEvent:x=>{if(x==="ready"){const L=performance.now();v(iS(L-vl))}},src:r})})})]}):null]}),M.jsxs("div",{className:"flex items-center gap-4 w-full max-w-[720px]",children:[P.length>1?M.jsx("button",{onClick:()=>{const x=A();x&&v(Ll(x))},children:M.jsx(hk,{})}):null,p!=="playing"?M.jsx("button",{onClick:()=>{var x;t==null||t.play(),(x=e.current)==null||x.play()},children:M.jsx(c2,{})}):M.jsx("button",{onClick:()=>{var x;t==null||t.pause(),(x=e.current)==null||x.pause()},children:M.jsx(u2,{})}),P.length>1?M.jsx("button",{onClick:()=>{const x=E();x&&v(Ll(x))},children:M.jsx(pk,{})}):null,M.jsx(Qu,{onMouseDown:()=>{var x;t==null||t.pause(),(x=e.current)==null||x.pause()},onChange:x=>{var L;t==null||t.setFrame(parseFloat(x.target.value)),(L=e.current)==null||L.seek(parseFloat(x.target.value))},type:"range",className:"w-full seeker",min:0,max:s,value:f}),M.jsxs("span",{className:"p-2 w-36 text-center flex",children:[M.jsx("input",{className:"w-14 text-right pr-1 bg-transparent",value:f.toFixed(2),disabled:!0}),"/ ",M.jsx("input",{className:"w-14 pl-1 bg-transparent",value:s,disabled:!0})]}),M.jsx("button",{className:"cursor-pointer",onClick:()=>v(Jw(!a)),children:M.jsx(dk,{className:`${a?"":"text-gray-500"}`})})]})]})})}const vk="/dotlottie-web/assets/brand-logo-B3LfkM1n.svg";function Mp(e){const t=Ao();return M.jsxs("button",{onClick:()=>{t(aa(e.url))},className:"rounded-lg bg-white border border-transparent hover:border-lottie",children:[M.jsx("div",{children:M.jsx(ly,{style:{height:"120px"},src:e.url})}),M.jsx("div",{className:"text-xs py-1 bg-strong rounded-b-lg",children:e.name})]})}const yk=({className:e="",...t})=>M.jsxs("div",{className:`gap-2 flex flex-col ${e}`,...t,children:[M.jsx(Mp,{name:"multi-animations",url:"https://lottie.host/294b684d-d6b4-4116-ab35-85ef566d4379/VkGHcqcMUI.lottie"}),M.jsx(Mp,{name:"theming example",url:"/dotlottie-web/theming_example.lottie"})]});function gk(){return M.jsxs("section",{className:"p-4 flex flex-col gap-4 h-full",children:[M.jsx("a",{href:"/",children:M.jsx("img",{src:vk,alt:"logo"})}),M.jsxs("div",{className:"flex flex-col gap-4 flex-grow overflow-auto",children:[M.jsx("p",{className:"text-primary text-3xl font-bold",children:"Unleash the power of animations using dotLottie"}),M.jsx("p",{className:"text-secondary",children:"Create captivating product experiences with dotLottie animations."}),M.jsx("a",{href:"https://developers.lottiefiles.com/docs/dotlottie-web/dotlottie-web/getting-started/",className:"bg-lottie rounded-lg p-4 text-white font-bold w-fit",children:"Get Started"}),M.jsx(yk,{})]})]})}const _k=({className:e="",...t})=>{const n=Ao(),r=F.useRef(null),i=Ie(a=>a.viewer.userSrc);function o(a){const s=a[0],f=new FileReader;f.onload=()=>{const p=f.result;typeof p=="string"&&(n(aa(p)),n(Uu(s.name)))},f.readAsDataURL(s)}function l(a){a.forEach(s=>{const{file:f,errors:p}=s;p.forEach(h=>{switch(h.code){case ua.FileTooLarge:alert(`${f.name} is too large, please pick a smaller file`);break;case ua.FileInvalidType:alert(`${f.name} is not supported, please pick a supported file`);break}})})}return M.jsx("div",{className:`flex justify-center items-center gap-2 bg-strong px-4 py-2 rounded-lg ${e}`,...t,children:i?M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"",children:i}),M.jsx("button",{className:"p-2 bg-subtle rounded-lg font-bold",onClick:()=>{n(nS())},children:"Reset"})]}):M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"font-bold",children:"Try it yourself!"}),M.jsx(Av,{onDrop:o,onDropRejected:l,children:a=>M.jsxs("button",{className:"p-2 bg-subtle rounded-lg font-bold",...a.getRootProps(),children:[M.jsx("input",{...a.getInputProps()}),"Browse file"]})}),M.jsx("span",{children:"or"}),M.jsx("input",{ref:r,className:"p-2 rounded-lg flex-grow",placeholder:"Paste JSON or .lottie URL"}),M.jsx("button",{className:"p-2 bg-subtle rounded-lg font-bold",onClick:()=>{r.current&&(n(aa(r.current.value)),n(Uu(r.current.value)))},children:"Load animation"})]})})};function wk(){const e=Ie(o=>o.viewer.theme),t=Ao(),n=F.useRef(null);F.useEffect(()=>{var o;e&&((o=n.current)==null||o.loadTheme(e))},[e,n]);function r(o){const l=o[0],a=new FileReader;a.onload=()=>{const s=a.result;typeof s=="string"&&(t(aa(s)),t(Uu(l.name)))},a.readAsDataURL(l)}function i(o){o.forEach(l=>{const{file:a,errors:s}=l;s.forEach(f=>{switch(f.code){case ua.FileTooLarge:alert(`${a.name} is too large, please pick a smaller file`);break;case ua.FileInvalidType:alert(`${a.name} is not supported, please pick a supported file`);break}})})}return M.jsx(M.Fragment,{children:M.jsx(Av,{noClick:!0,onDrop:r,onDropRejected:i,children:o=>M.jsxs("div",{className:"flex gap-4 p-4 h-screen",...o.getRootProps(),children:[M.jsx("input",{...o.getInputProps()}),o.isDragActive?M.jsx("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-60 flex justify-center items-center text-white bold",children:M.jsx("div",{children:"Drop it like it's hot!"})}):null,M.jsx("div",{className:"bg-subtle border border-subtle rounded-lg max-w-80",children:M.jsx(gk,{})}),M.jsxs("div",{className:"flex flex-col gap-4 flex-grow",children:[M.jsx(_k,{}),M.jsxs("div",{className:"flex-1 flex p-4 gap-4 bg-subtle rounded-lg",children:[M.jsx("div",{className:"flex-1",children:M.jsx(mk,{})}),M.jsx("div",{className:"w-80",children:M.jsx(f2,{})})]})]})]})})})}const Sk=Ow({reducer:{viewer:oS}});Ws.createRoot(document.getElementById("root")).render(M.jsx(Ee.StrictMode,{children:M.jsx(W_,{store:Sk,children:M.jsx(wk,{})})}));export{Rr as a,Mk as d,ce as o,It as u}; diff --git a/index.html b/index.html index c24ef18c..f36b05b0 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ dotLottie-viewer - + diff --git a/theming_example.lottie b/theming_example.lottie index b2c99ce9..afe90c60 100644 Binary files a/theming_example.lottie and b/theming_example.lottie differ