'use strict'; var i0=Object.defineProperty,r0=Object.defineProperties;var a0=Object.getOwnPropertyDescriptors;var k1=Object.getOwnPropertySymbols;var t3=Object.prototype.hasOwnProperty,n3=Object.prototype.propertyIsEnumerable;var u2=(c,n,i)=>n in c?i0(c,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[n]=i,F=(c,n)=>{for(var i in n||(n={}))t3.call(n,i)&&u2(c,i,n[i]);if(k1)for(var i of k1(n))n3.call(n,i)&&u2(c,i,n[i]);return c},k=(c,n)=>r0(c,a0(n));var O1=(c,n)=>{var i={};for(var s in c)t3.call(c,s)&&n.indexOf(s)<0&&(i[s]=c[s]);if(c!=null&&k1)for(var s of k1(c))n.indexOf(s)<0&&n3.call(c,s)&&(i[s]=c[s]);return i};var _=(c,n,i)=>u2(c,typeof n!="symbol"?n+"":n,i);var g=(c,n,i)=>new Promise((s,d)=>{var m=I=>{try{M(i.next(I));}catch(D){d(D);}},b=I=>{try{M(i.throw(I));}catch(D){d(D);}},M=I=>I.done?s(I.value):Promise.resolve(I.value).then(m,b);M((i=i.apply(c,n)).next());});var l2=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},h2=class{constructor(){_(this,"_lastHandleId",0);_(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},B1=class{constructor(){_(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new l2:new h2;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var x=typeof window!="undefined"&&typeof window.document!="undefined";var W1=new Uint8Array([80,75,3,4]),i3=["v","ip","op","layers","fr","w","h"],c2="0.37.0",p2="@lottiefiles/dotlottie-web",r3=.75;var o0=(()=>{var n;var c=typeof document!="undefined"?(n=document.currentScript)==null?void 0:n.src:void 0;return function(i={}){var s,d=i,m,b,M=new Promise((e,t)=>{m=e,b=t;}),I=Object.assign({},d),D="./this.program",O="",d1;typeof document!="undefined"&&document.currentScript&&(O=document.currentScript.src),c&&(O=c),O.startsWith("blob:")?O="":O=O.substr(0,O.replace(/[?#].*/,"").lastIndexOf("/")+1),d1=e=>fetch(e,{credentials:"same-origin"}).then(t=>t.ok?t.arrayBuffer():Promise.reject(Error(t.status+" : "+t.url)));var C1=d.print||console.log.bind(console),K=d.printErr||console.error.bind(console);Object.assign(d,I),I=null,d.thisProgram&&(D=d.thisProgram);var L1=d.wasmBinary,M1,E1=!1,U1,r1,A,a1,u1,Q,E,b2,C2;function L2(){var e=M1.buffer;d.HEAP8=r1=new Int8Array(e),d.HEAP16=a1=new Int16Array(e),d.HEAPU8=A=new Uint8Array(e),d.HEAPU16=u1=new Uint16Array(e),d.HEAP32=Q=new Int32Array(e),d.HEAPU32=E=new Uint32Array(e),d.HEAPF32=b2=new Float32Array(e),d.HEAPF64=C2=new Float64Array(e);}var M2=[],E2=[],P2=[];function p3(){var e=d.preRun.shift();M2.unshift(e);}var e1=0,l1=null;function P1(e){var t;throw (t=d.onAbort)==null||t.call(d,e),e="Aborted("+e+")",K(e),E1=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),b(e),e}var I2=e=>e.startsWith("data:application/octet-stream;base64,"),h1;function S2(e){if(e==h1&&L1)return new Uint8Array(L1);throw "both async and sync fetching of the wasm failed"}function f3(e){return L1?Promise.resolve().then(()=>S2(e)):d1(e).then(t=>new Uint8Array(t),()=>S2(e))}function T2(e,t,r){return f3(e).then(a=>WebAssembly.instantiate(a,t)).then(r,a=>{K(`failed to asynchronously prepare wasm: ${a}`),P1(a);})}function v3(e,t){var r=h1;return L1||typeof WebAssembly.instantiateStreaming!="function"||I2(r)||typeof fetch!="function"?T2(r,e,t):fetch(r,{credentials:"same-origin"}).then(a=>WebAssembly.instantiateStreaming(a,e).then(t,function(o){return K(`wasm streaming compile failed: ${o}`),K("falling back to ArrayBuffer instantiation"),T2(r,e,t)}))}class A2{constructor(t){_(this,"name","ExitStatus");this.message=`Program terminated with exit(${t})`,this.status=t;}}var H1=e=>{for(;0{var a=t+r;for(r=t;e[r]&&!(r>=a);)++r;if(16o?a+=String.fromCharCode(o):(o-=65536,a+=String.fromCharCode(55296|o>>10,56320|o&1023));}}else a+=String.fromCharCode(o);}return a};class m3{constructor(t){this.Ca=t-24;}}var x2=0,p1=(e,t,r)=>{var a=A;if(0=u){var h=e.charCodeAt(++o);u=65536+((u&1023)<<10)|h&1023;}if(127>=u){if(t>=r)break;a[t++]=u;}else {if(2047>=u){if(t+1>=r)break;a[t++]=192|u>>6;}else {if(65535>=u){if(t+2>=r)break;a[t++]=224|u>>12;}else {if(t+3>=r)break;a[t++]=240|u>>18,a[t++]=128|u>>12&63;}a[t++]=128|u>>6&63;}a[t++]=128|u&63;}}a[t]=0;}},I1={},V1=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function f1(e){return this.fromWireType(E[e>>2])}var o1={},t1={},S1={},v1,Z=(e,t,r)=>{function a(l){if(l=r(l),l.length!==e.length)throw new v1("Mismatched type converter count");for(var p=0;pS1[l]=t);var o=Array(t.length),u=[],h=0;t.forEach((l,p)=>{t1.hasOwnProperty(l)?o[p]=t1[l]:(u.push(l),o1.hasOwnProperty(l)||(o1[l]=[]),o1[l].push(()=>{o[p]=t1[l],++h,h===u.length&&a(o);}));}),u.length===0&&a(o);},D2,R=e=>{for(var t="";A[e];)t+=D2[A[e++]];return t},y;function g3(e,t,r={}){var a=t.name;if(!e)throw new y(`type "${a}" must have a positive integer typeid pointer`);if(t1.hasOwnProperty(e)){if(r.hb)return;throw new y(`Cannot register type '${a}' twice`)}t1[e]=t,delete S1[e],o1.hasOwnProperty(e)&&(t=o1[e],delete o1[e],t.forEach(o=>o()));}function H(e,t,r={}){return g3(e,t,r)}var G1=e=>{throw new y(e.Aa.Da.Ba.name+" instance already deleted")},J1=!1,R2=()=>{},k2=(e,t,r)=>t===r?e:r.Ga===void 0?null:(e=k2(e,t,r.Ga),e===null?null:r.$a(e)),O2={},y3={},w3=(e,t)=>{if(t===void 0)throw new y("ptr should not be undefined");for(;e.Ga;)t=e.Qa(t),e=e.Ga;return y3[t]},T1=(e,t)=>{if(!t.Da||!t.Ca)throw new v1("makeClassHandle requires ptr and ptrType");if(!!t.Ha!=!!t.Fa)throw new v1("Both smartPtrType and smartPtr must be specified");return t.count={value:1},m1(Object.create(e,{Aa:{value:t,writable:!0}}))},m1=e=>typeof FinalizationRegistry=="undefined"?(m1=t=>t,e):(J1=new FinalizationRegistry(t=>{t=t.Aa,--t.count.value,t.count.value===0&&(t.Fa?t.Ha.Ka(t.Fa):t.Da.Ba.Ka(t.Ca));}),m1=t=>{var r=t.Aa;return r.Fa&&J1.register(t,{Aa:r},t),t},R2=t=>{J1.unregister(t);},m1(e));function A1(){}var _1=(e,t)=>Object.defineProperty(t,"name",{value:e}),B2=(e,t,r)=>{if(e[t].Ea===void 0){var a=e[t];e[t]=function(...o){if(!e[t].Ea.hasOwnProperty(o.length))throw new y(`Function '${r}' called with an invalid number of arguments (${o.length}) - expects one of (${e[t].Ea})!`);return e[t].Ea[o.length].apply(this,o)},e[t].Ea=[],e[t].Ea[a.Na]=a;}},q1=(e,t,r)=>{if(d.hasOwnProperty(e)){if(r===void 0||d[e].Ea!==void 0&&d[e].Ea[r]!==void 0)throw new y(`Cannot register public name '${e}' twice`);if(B2(d,e,e),d[e].Ea.hasOwnProperty(r))throw new y(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);d[e].Ea[r]=t;}else d[e]=t,d[e].Na=r;},C3=e=>{e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function L3(e,t,r,a,o,u,h,l){this.name=e,this.constructor=t,this.Ma=r,this.Ka=a,this.Ga=o,this.bb=u,this.Qa=h,this.$a=l,this.jb=[];}var K1=(e,t,r)=>{for(;t!==r;){if(!t.Qa)throw new y(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Qa(e),t=t.Ga;}return e};function M3(e,t){if(t===null){if(this.Ta)throw new y(`null is not a valid ${this.name}`);return 0}if(!t.Aa)throw new y(`Cannot pass "${n2(t)}" as a ${this.name}`);if(!t.Aa.Ca)throw new y(`Cannot pass deleted object as a pointer of type ${this.name}`);return K1(t.Aa.Ca,t.Aa.Da.Ba,this.Ba)}function E3(e,t){if(t===null){if(this.Ta)throw new y(`null is not a valid ${this.name}`);if(this.Sa){var r=this.Ua();return e!==null&&e.push(this.Ka,r),r}return 0}if(!t||!t.Aa)throw new y(`Cannot pass "${n2(t)}" as a ${this.name}`);if(!t.Aa.Ca)throw new y(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Ra&&t.Aa.Da.Ra)throw new y(`Cannot convert argument of type ${t.Aa.Ha?t.Aa.Ha.name:t.Aa.Da.name} to parameter type ${this.name}`);if(r=K1(t.Aa.Ca,t.Aa.Da.Ba,this.Ba),this.Sa){if(t.Aa.Fa===void 0)throw new y("Passing raw pointer to smart pointer is illegal");switch(this.ob){case 0:if(t.Aa.Ha===this)r=t.Aa.Fa;else throw new y(`Cannot convert argument of type ${t.Aa.Ha?t.Aa.Ha.name:t.Aa.Da.name} to parameter type ${this.name}`);break;case 1:r=t.Aa.Fa;break;case 2:if(t.Aa.Ha===this)r=t.Aa.Fa;else {var a=t.clone();r=this.kb(r,x1(()=>a.delete())),e!==null&&e.push(this.Ka,r);}break;default:throw new y("Unsupporting sharing policy")}}return r}function P3(e,t){if(t===null){if(this.Ta)throw new y(`null is not a valid ${this.name}`);return 0}if(!t.Aa)throw new y(`Cannot pass "${n2(t)}" as a ${this.name}`);if(!t.Aa.Ca)throw new y(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.Aa.Da.Ra)throw new y(`Cannot convert argument of type ${t.Aa.Da.name} to parameter type ${this.name}`);return K1(t.Aa.Ca,t.Aa.Da.Ba,this.Ba)}function g1(e,t,r,a,o,u,h,l,p,f,v){this.name=e,this.Ba=t,this.Ta=r,this.Ra=a,this.Sa=o,this.ib=u,this.ob=h,this.Ya=l,this.Ua=p,this.kb=f,this.Ka=v,o||t.Ga!==void 0?this.toWireType=E3:(this.toWireType=a?M3:P3,this.Ja=null);}var W2=(e,t,r)=>{if(!d.hasOwnProperty(e))throw new v1("Replacing nonexistent public symbol");d[e].Ea!==void 0&&r!==void 0?d[e].Ea[r]=t:(d[e]=t,d[e].Na=r);},j,I3=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, d["dynCall_"+e])(t,...r)):t=j.get(t)(...r),t),S3=(e,t)=>(...r)=>I3(e,t,r),B=(e,t)=>{e=R(e);var r=e.includes("j")?S3(e,t):j.get(t);if(typeof r!="function")throw new y(`unknown function pointer with signature ${e}: ${t}`);return r},$2,z2=e=>{e=K2(e);var t=R(e);return X(e),t},F1=(e,t)=>{function r(u){o[u]||t1[u]||(S1[u]?S1[u].forEach(r):(a.push(u),o[u]=!0));}var a=[],o={};throw t.forEach(r),new $2(`${e}: `+a.map(z2).join([", "]))},Y1=(e,t)=>{for(var r=[],a=0;a>2]);return r};function T3(e){for(var t=1;tu)throw new y("argTypes array size mismatch! Must at least get return value and 'this' types!");var h=t[1]!==null&&r!==null,l=T3(t),p=t[0].name!=="void",f=u-2,v=Array(f),w=[],C=[];return _1(e,function(...z){if(C.length=0,w.length=h?2:1,w[0]=o,h){var S=t[1].toWireType(C,this);w[1]=S;}for(var T=0;T{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},Z1=[],Y=[],Q1=e=>{9{if(!e)throw new y("Cannot use deleted val. handle = "+e);return Y[e]},x1=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=Z1.pop()||Y.length;return Y[t]=e,Y[t+1]=1,t}},j2={name:"emscripten::val",fromWireType:e=>{var t=e2(e);return Q1(e),t},toWireType:(e,t)=>x1(t),Ia:8,readValueFromPointer:f1,Ja:null},A3=(e,t,r)=>{switch(t){case 1:return r?function(a){return this.fromWireType(r1[a])}:function(a){return this.fromWireType(A[a])};case 2:return r?function(a){return this.fromWireType(a1[a>>1])}:function(a){return this.fromWireType(u1[a>>1])};case 4:return r?function(a){return this.fromWireType(Q[a>>2])}:function(a){return this.fromWireType(E[a>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},t2=(e,t)=>{var r=t1[e];if(r===void 0)throw e=`${t} has unknown type ${z2(e)}`,new y(e);return r},n2=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},F3=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(b2[r>>2])};case 8:return function(r){return this.fromWireType(C2[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},x3=(e,t,r)=>{switch(t){case 1:return r?a=>r1[a]:a=>A[a];case 2:return r?a=>a1[a>>1]:a=>u1[a>>1];case 4:return r?a=>Q[a>>2]:a=>E[a>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},D3=Object.assign({optional:!0},j2),H2=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):void 0,R3=(e,t)=>{for(var r=e>>1,a=r+t/2;!(r>=a)&&u1[r];)++r;if(r<<=1,32=t/2);++a){var o=a1[e+2*a>>1];if(o==0)break;r+=String.fromCharCode(o);}return r},k3=(e,t,r)=>{if(r!=null||(r=2147483647),2>r)return 0;r-=2;var a=t;r=r<2*e.length?r/2:e.length;for(var o=0;o>1]=e.charCodeAt(o),t+=2;return a1[t>>1]=0,t-a},O3=e=>2*e.length,B3=(e,t)=>{for(var r=0,a="";!(r>=t/4);){var o=Q[e+4*r>>2];if(o==0)break;++r,65536<=o?(o-=65536,a+=String.fromCharCode(55296|o>>10,56320|o&1023)):a+=String.fromCharCode(o);}return a},W3=(e,t,r)=>{if(r!=null||(r=2147483647),4>r)return 0;var a=t;r=a+r-4;for(var o=0;o=u){var h=e.charCodeAt(++o);u=65536+((u&1023)<<10)|h&1023;}if(Q[t>>2]=u,t+=4,t+4>r)break}return Q[t>>2]=0,t-a},$3=e=>{for(var t=0,r=0;r=a&&++r,t+=4;}return t},i2=0,r2=[],z3=e=>{var t=r2.length;return r2.push(e),t},U3=(e,t)=>{for(var r=Array(e),a=0;a>2],"parameter "+a);return r},j3=Reflect.construct,y1={},N2=e=>{if(!(e instanceof A2||e=="unwind"))throw e},V2=e=>{var t;throw U1=e,N1||0{if(!E1)try{if(e(),!(N1||0{if(!o2){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:D||"./this.program"},t;for(t in a2)a2[t]===void 0?delete e[t]:e[t]=a2[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);o2=r;}return o2},o2,N3=[null,[],[]],V3=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);P1("initRandomDevice");},J2=e=>(J2=V3())(e);v1=d.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var q2=Array(256),D1=0;256>D1;++D1)q2[D1]=String.fromCharCode(D1);D2=q2,y=d.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(A1.prototype,{isAliasOf:function(e){if(!(this instanceof A1&&e instanceof A1))return !1;var t=this.Aa.Da.Ba,r=this.Aa.Ca;e.Aa=e.Aa;var a=e.Aa.Da.Ba;for(e=e.Aa.Ca;t.Ga;)r=t.Qa(r),t=t.Ga;for(;a.Ga;)e=a.Qa(e),a=a.Ga;return t===a&&r===e},clone:function(){if(this.Aa.Ca||G1(this),this.Aa.Pa)return this.Aa.count.value+=1,this;var e=m1,t=Object,r=t.create,a=Object.getPrototypeOf(this),o=this.Aa;return e=e(r.call(t,a,{Aa:{value:{count:o.count,Oa:o.Oa,Pa:o.Pa,Ca:o.Ca,Da:o.Da,Fa:o.Fa,Ha:o.Ha}}})),e.Aa.count.value+=1,e.Aa.Oa=!1,e},delete(){if(this.Aa.Ca||G1(this),this.Aa.Oa&&!this.Aa.Pa)throw new y("Object already scheduled for deletion");R2(this);var e=this.Aa;--e.count.value,e.count.value===0&&(e.Fa?e.Ha.Ka(e.Fa):e.Da.Ba.Ka(e.Ca)),this.Aa.Pa||(this.Aa.Fa=void 0,this.Aa.Ca=void 0);},isDeleted:function(){return !this.Aa.Ca},deleteLater:function(){if(this.Aa.Ca||G1(this),this.Aa.Oa&&!this.Aa.Pa)throw new y("Object already scheduled for deletion");return this.Aa.Oa=!0,this}}),Object.assign(g1.prototype,{cb(e){return this.Ya&&(e=this.Ya(e)),e},Wa(e){var t;(t=this.Ka)==null||t.call(this,e);},Ia:8,readValueFromPointer:f1,fromWireType:function(e){function t(){return this.Sa?T1(this.Ba.Ma,{Da:this.ib,Ca:r,Ha:this,Fa:e}):T1(this.Ba.Ma,{Da:this,Ca:e})}var r=this.cb(e);if(!r)return this.Wa(e),null;var a=w3(this.Ba,r);if(a!==void 0)return a.Aa.count.value===0?(a.Aa.Ca=r,a.Aa.Fa=e,a.clone()):(a=a.clone(),this.Wa(e),a);if(a=this.Ba.bb(r),a=O2[a],!a)return t.call(this);a=this.Ra?a.Za:a.pointerType;var o=k2(r,this.Ba,a.Ba);return o===null?t.call(this):this.Sa?T1(a.Ba.Ma,{Da:a,Ca:o,Ha:this,Fa:e}):T1(a.Ba.Ma,{Da:a,Ca:o})}}),$2=d.UnboundTypeError=((e,t)=>{var r=_1(t,function(a){this.name=t,this.message=a,a=Error(a).stack,a!==void 0&&(this.stack=this.toString()+` `+a.replace(/^Error(:[^\n]*)?\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Y.push(0,1,void 0,1,null,1,!0,1,!1,1),d.count_emval_handles=()=>Y.length/2-5-Z1.length;var G3={c:(e,t,r,a)=>{P1(`Assertion failed: ${e?c1(A,e):""}, at: `+[t?t?c1(A,t):"":"unknown filename",r,a?a?c1(A,a):"":"unknown function"]);},m:(e,t,r)=>{var a=new m3(e);throw E[a.Ca+16>>2]=0,E[a.Ca+4>>2]=t,E[a.Ca+8>>2]=r,x2=e,x2},D:function(){return 0},T:()=>{},Q:()=>{},U:function(){return 0},R:()=>{},C:function(){},S:()=>{},V:()=>{P1("");},w:e=>{var t=I1[e];delete I1[e];var r=t.Ua,a=t.Ka,o=t.Xa,u=o.map(h=>h.gb).concat(o.map(h=>h.mb));Z([e],u,h=>{var l={};return o.forEach((p,f)=>{var v=h[f],w=p.eb,C=p.fb,z=h[f+o.length],S=p.lb,T=p.nb;l[p.ab]={read:J=>v.fromWireType(w(C,J)),write:(J,w1)=>{var U=[];S(T,J,z.toWireType(U,w1)),V1(U);}};}),[{name:t.name,fromWireType:p=>{var f={},v;for(v in l)f[v]=l[v].read(p);return a(p),f},toWireType:(p,f)=>{for(var v in l)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var w=r();for(v in l)l[v].write(w,f[v]);return p!==null&&p.push(a,w),w},Ia:8,readValueFromPointer:f1,Ja:a}]});},J:()=>{},_:(e,t,r,a)=>{t=R(t),H(e,{name:t,fromWireType:function(o){return !!o},toWireType:function(o,u){return u?r:a},Ia:8,readValueFromPointer:function(o){return this.fromWireType(A[o])},Ja:null});},r:(e,t,r,a,o,u,h,l,p,f,v,w,C)=>{v=R(v),u=B(o,u),l&&(l=B(h,l)),f&&(f=B(p,f)),C=B(w,C);var z=C3(v);q1(z,function(){F1(`Cannot construct ${v} due to unbound types`,[a]);}),Z([e,t,r],a?[a]:[],S=>{if(S=S[0],a)var T=S.Ba,J=T.Ma;else J=A1.prototype;S=_1(v,function(...d2){if(Object.getPrototypeOf(this)!==w1)throw new y("Use 'new' to construct "+v);if(U.La===void 0)throw new y(v+" has no accessible constructor");var e3=U.La[d2.length];if(e3===void 0)throw new y(`Tried to invoke ctor of ${v} with invalid number of parameters (${d2.length}) - expected (${Object.keys(U.La).toString()}) parameters instead!`);return e3.apply(this,d2)});var w1=Object.create(J,{constructor:{value:S}});S.prototype=w1;var U=new L3(v,S,w1,C,T,u,l,f);if(U.Ga){var b1;((b1=U.Ga).Va)!=null||(b1.Va=[]),U.Ga.Va.push(U);}return T=new g1(v,U,!0,!1,!1),b1=new g1(v+"*",U,!1,!1,!1),J=new g1(v+" const*",U,!1,!0,!1),O2[e]={pointerType:b1,Za:J},W2(z,S),[T,b1,J]});},q:(e,t,r,a,o,u)=>{var h=Y1(t,r);o=B(a,o),Z([],[e],l=>{l=l[0];var p=`constructor ${l.name}`;if(l.Ba.La===void 0&&(l.Ba.La=[]),l.Ba.La[t-1]!==void 0)throw new y(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return l.Ba.La[t-1]=()=>{F1(`Cannot construct ${l.name} due to unbound types`,h);},Z([],h,f=>(f.splice(1,0,null),l.Ba.La[t-1]=X1(p,f,null,o,u),[])),[]});},f:(e,t,r,a,o,u,h,l)=>{var p=Y1(r,a);t=R(t),t=U2(t),u=B(o,u),Z([],[e],f=>{function v(){F1(`Cannot call ${w} due to unbound types`,p);}f=f[0];var w=`${f.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),l&&f.Ba.jb.push(t);var C=f.Ba.Ma,z=C[t];return z===void 0||z.Ea===void 0&&z.className!==f.name&&z.Na===r-2?(v.Na=r-2,v.className=f.name,C[t]=v):(B2(C,t,w),C[t].Ea[r-2]=v),Z([],p,S=>(S=X1(w,S,f,u,h),C[t].Ea===void 0?(S.Na=r-2,C[t]=S):C[t].Ea[r-2]=S,[])),[]});},Z:e=>H(e,j2),y:(e,t,r,a)=>{function o(){}t=R(t),o.values={},H(e,{name:t,constructor:o,fromWireType:function(u){return this.constructor.values[u]},toWireType:(u,h)=>h.value,Ia:8,readValueFromPointer:A3(t,r,a),Ja:null}),q1(t,o);},k:(e,t,r)=>{var a=t2(e,"enum");t=R(t),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:r},constructor:{value:_1(`${a.name}_${t}`,function(){})}}),e.values[r]=a,e[t]=a;},E:(e,t,r)=>{t=R(t),H(e,{name:t,fromWireType:a=>a,toWireType:(a,o)=>o,Ia:8,readValueFromPointer:F3(t,r),Ja:null});},v:(e,t,r,a,o,u)=>{var h=Y1(t,r);e=R(e),e=U2(e),o=B(a,o),q1(e,function(){F1(`Cannot call ${e} due to unbound types`,h);},t-1),Z([],h,l=>(W2(e,X1(e,[l[0],null].concat(l.slice(1)),null,o,u),t-1),[]));},l:(e,t,r,a,o)=>{if(t=R(t),o===-1&&(o=4294967295),o=l=>l,a===0){var u=32-8*r;o=l=>l<>>u;}var h=t.includes("unsigned")?function(l,p){return p>>>0}:function(l,p){return p};H(e,{name:t,fromWireType:o,toWireType:h,Ia:8,readValueFromPointer:x3(t,r,a!==0),Ja:null});},h:(e,t,r)=>{function a(u){return new o(r1.buffer,E[u+4>>2],E[u>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=R(r),H(e,{name:r,fromWireType:a,Ia:8,readValueFromPointer:a},{hb:!0});},u:e=>{H(e,D3);},ea:(e,t,r,a,o,u,h,l,p,f,v,w)=>{r=R(r),u=B(o,u),l=B(h,l),f=B(p,f),w=B(v,w),Z([e],[t],C=>(C=C[0],[new g1(r,C.Ba,!1,!1,!0,C,a,u,l,f,w)]));},F:(e,t)=>{t=R(t);var r=t==="std::string";H(e,{name:t,fromWireType:function(a){var o=E[a>>2],u=a+4;if(r)for(var h=u,l=0;l<=o;++l){var p=u+l;if(l==o||A[p]==0){if(h=h?c1(A,h,p-h):"",f===void 0)var f=h;else f+="\0",f+=h;h=p+1;}}else {for(f=Array(o),l=0;l=p?u++:2047>=p?u+=2:55296<=p&&57343>=p?(u+=4,++l):u+=3;}else u=o.length;if(l=s2(4+u+1),p=l+4,E[l>>2]=u,r&&h)p1(o,p,u+1);else if(h)for(h=0;h{if(r=R(r),t===2)var a=R3,o=k3,u=O3,h=l=>u1[l>>1];else t===4&&(a=B3,o=W3,u=$3,h=l=>E[l>>2]);H(e,{name:r,fromWireType:l=>{for(var p=E[l>>2],f,v=l+4,w=0;w<=p;++w){var C=l+4+w*t;(w==p||h(C)==0)&&(v=a(v,C-v),f===void 0?f=v:(f+="\0",f+=v),v=C+t);}return X(l),f},toWireType:(l,p)=>{if(typeof p!="string")throw new y(`Cannot pass non-string to C++ string type ${r}`);var f=u(p),v=s2(4+f+t);return E[v>>2]=f/t,o(p,v+4,f+t),l!==null&&l.push(X,v),v},Ia:8,readValueFromPointer:f1,Ja(l){X(l);}});},x:(e,t,r,a,o,u)=>{I1[e]={name:R(t),Ua:B(r,a),Ka:B(o,u),Xa:[]};},j:(e,t,r,a,o,u,h,l,p,f)=>{I1[e].Xa.push({ab:R(t),gb:r,eb:B(a,o),fb:u,mb:h,lb:B(l,p),nb:f});},$:(e,t)=>{t=R(t),H(e,{pb:!0,name:t,Ia:0,fromWireType:()=>{},toWireType:()=>{}});},O:()=>{N1=!1,i2=0;},K:()=>{throw 1/0},ca:(e,t,r,a)=>(e=r2[e],t=e2(t),e(null,t,r,a)),G:Q1,ba:(e,t,r)=>{var a=U3(e,t),o=a.shift();e--;var u=Array(e);return t=`methodCaller<(${a.map(h=>h.name).join(", ")}) => ${o.name}>`,z3(_1(t,(h,l,p,f)=>{for(var v=0,w=0;w>2]=x1(h)),l}))},da:e=>{9{var t=e2(e);V1(t),Q1(e);},o:(e,t)=>(e=t2(e,"_emval_take_value"),e=e.readValueFromPointer(t),x1(e)),L:(e,t)=>{if(y1[e]&&(clearTimeout(y1[e].id),delete y1[e]),!t)return 0;var r=setTimeout(()=>{delete y1[e],H3(()=>Y2(e,performance.now()));},t);return y1[e]={id:r,qb:t},0},M:(e,t,r,a)=>{var o=new Date().getFullYear(),u=new Date(o,0,1).getTimezoneOffset();o=new Date(o,6,1).getTimezoneOffset(),E[e>>2]=60*Math.max(u,o),Q[t>>2]=+(u!=o),t=h=>{var l=Math.abs(h);return `UTC${0<=h?"-":"+"}${String(Math.floor(l/60)).padStart(2,"0")}${String(l%60).padStart(2,"0")}`},e=t(u),t=t(o),operformance.now(),N:e=>{var t=A.length;if(e>>>=0,2147483648=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-M1.buffer.byteLength+65535)/65536|0;try{M1.grow(a),L2();var o=1;break e}catch(u){}o=void 0;}if(o)return !0}return !1},X:(e,t)=>{var r=0;return G2().forEach((a,o)=>{var u=t+r;for(o=E[e+4*o>>2]=u,u=0;u{var r=G2();E[e>>2]=r.length;var a=0;return r.forEach(o=>a+=o.length+1),E[t>>2]=a,0},s:()=>52,B:()=>52,I:function(){return 70},A:(e,t,r,a)=>{for(var o=0,u=0;u>2],l=E[t+4>>2];t+=8;for(var p=0;p>2]=o,0},i:X3,d:Y3,e:K3,p:Z3,z:t0,b:J3,a:q3,g:e0,n:Q3,H:n0,W:V2,P:(e,t)=>(J2(A.subarray(e,e+t)),0)},P=function(){var r;function e(a){var o;return P=a.exports,M1=P.ga,L2(),j=P.ka,E2.unshift(P.ha),e1--,(o=d.monitorRunDependencies)==null||o.call(d,e1),e1==0&&(l1&&(a=l1,l1=null,a())),P}var t={a:G3};if(e1++,(r=d.monitorRunDependencies)==null||r.call(d,e1),d.instantiateWasm)try{return d.instantiateWasm(t,e)}catch(a){K(`Module.instantiateWasm callback failed with error: ${a}`),b(a);}return h1!=null||(h1=I2("DotLottiePlayer.wasm")?"DotLottiePlayer.wasm":d.locateFile?d.locateFile("DotLottiePlayer.wasm",O):O+"DotLottiePlayer.wasm"),v3(t,function(a){e(a.instance);}).catch(b),{}}(),s2=e=>(s2=P.ia)(e),K2=e=>(K2=P.ja)(e),X=e=>(X=P.la)(e),Y2=(e,t)=>(Y2=P.ma)(e,t),N=(e,t)=>(N=P.na)(e,t),V=e=>(V=P.oa)(e),G=()=>(G=P.pa)();d.dynCall_iijj=(e,t,r,a,o,u)=>(d.dynCall_iijj=P.qa)(e,t,r,a,o,u),d.dynCall_vijj=(e,t,r,a,o,u)=>(d.dynCall_vijj=P.ra)(e,t,r,a,o,u),d.dynCall_jiii=(e,t,r,a)=>(d.dynCall_jiii=P.sa)(e,t,r,a),d.dynCall_jii=(e,t,r)=>(d.dynCall_jii=P.ta)(e,t,r);var X2=d.dynCall_vijjj=(e,t,r,a,o,u,h,l)=>(X2=d.dynCall_vijjj=P.ua)(e,t,r,a,o,u,h,l);d.dynCall_jiji=(e,t,r,a,o)=>(d.dynCall_jiji=P.va)(e,t,r,a,o),d.dynCall_viijii=(e,t,r,a,o,u,h)=>(d.dynCall_viijii=P.wa)(e,t,r,a,o,u,h),d.dynCall_iiiiij=(e,t,r,a,o,u,h)=>(d.dynCall_iiiiij=P.xa)(e,t,r,a,o,u,h),d.dynCall_iiiiijj=(e,t,r,a,o,u,h,l,p)=>(d.dynCall_iiiiijj=P.ya)(e,t,r,a,o,u,h,l,p),d.dynCall_iiiiiijj=(e,t,r,a,o,u,h,l,p,f)=>(d.dynCall_iiiiiijj=P.za)(e,t,r,a,o,u,h,l,p,f);function J3(e,t){var r=G();try{j.get(e)(t);}catch(a){if(V(r),a!==a+0)throw a;N(1,0);}}function q3(e,t,r){var a=G();try{j.get(e)(t,r);}catch(o){if(V(a),o!==o+0)throw o;N(1,0);}}function K3(e,t,r,a){var o=G();try{return j.get(e)(t,r,a)}catch(u){if(V(o),u!==u+0)throw u;N(1,0);}}function Y3(e,t,r){var a=G();try{return j.get(e)(t,r)}catch(o){if(V(a),o!==o+0)throw o;N(1,0);}}function X3(e,t){var r=G();try{return j.get(e)(t)}catch(a){if(V(r),a!==a+0)throw a;N(1,0);}}function Z3(e,t,r,a,o,u){var h=G();try{return j.get(e)(t,r,a,o,u)}catch(l){if(V(h),l!==l+0)throw l;N(1,0);}}function Q3(e,t,r,a,o){var u=G();try{j.get(e)(t,r,a,o);}catch(h){if(V(u),h!==h+0)throw h;N(1,0);}}function e0(e,t,r,a){var o=G();try{j.get(e)(t,r,a);}catch(u){if(V(o),u!==u+0)throw u;N(1,0);}}function t0(e){var t=G();try{j.get(e)();}catch(r){if(V(t),r!==r+0)throw r;N(1,0);}}function n0(e,t,r,a,o,u,h,l){var p=G();try{X2(e,t,r,a,o,u,h,l);}catch(f){if(V(p),f!==f+0)throw f;N(1,0);}}var R1;l1=function e(){R1||Z2(),R1||(l1=e);};function Z2(){function e(){var r;if(!R1&&(R1=!0,d.calledRun=!0,!E1)){if(H1(E2),m(d),(r=d.onRuntimeInitialized)==null||r.call(d),d.postRun)for(typeof d.postRun=="function"&&(d.postRun=[d.postRun]);d.postRun.length;){var t=d.postRun.shift();P2.unshift(t);}H1(P2);}}if(!(0{setTimeout(()=>d.setStatus(""),1),e();},1)):e());}}if(d.preInit)for(typeof d.preInit=="function"&&(d.preInit=[d.preInit]);0n})})}static _loadWithBackup(){return g(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(n=>g(this,null,function*(){let i=`https://unpkg.com/${p2}@${c2}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${i}`);try{return yield this._tryLoad(i)}catch(s){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${s.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return g(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};_(n1,"_ModulePromise",null),_(n1,"_wasmURL",`https://cdn.jsdelivr.net/npm/${p2}@${c2}/dist/dotlottie-player.wasm`);var s1=class{constructor(){_(this,"_eventListeners",new Map);}addEventListener(n,i){let s=this._eventListeners.get(n);s||(s=new Set,this._eventListeners.set(n,s)),s.add(i);}removeEventListener(n,i){let s=this._eventListeners.get(n);s&&(i?(s.delete(i),s.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){let i=this._eventListeners.get(n.type);i==null||i.forEach(s=>s(n));}removeAllEventListeners(){this._eventListeners.clear();}};var W=class{static _initializeObserver(){if(this._observer)return;let n=i=>{i.forEach(s=>{let d=this._observedCanvases.get(s.target);d&&(s.isIntersecting?d.unfreeze():d.freeze());});};this._observer=new IntersectionObserver(n,{threshold:0});}static observe(n,i){var s;this._initializeObserver(),!this._observedCanvases.has(n)&&(this._observedCanvases.set(n,i),(s=this._observer)==null||s.observe(n));}static unobserve(n){var i,s;(i=this._observer)==null||i.unobserve(n),this._observedCanvases.delete(n),this._observedCanvases.size===0&&((s=this._observer)==null||s.disconnect(),this._observer=null);}};_(W,"_observer",null),_(W,"_observedCanvases",new Map);var $=class{static _initializeObserver(){if(this._observer)return;let n=i=>{i.forEach(s=>{let d=this._observedCanvases.get(s.target);if(!d)return;let[m,b]=d;clearTimeout(b);let M=setTimeout(()=>{m.resize();},100);this._observedCanvases.set(s.target,[m,M]);});};this._observer=new ResizeObserver(n);}static observe(n,i){var s;this._initializeObserver(),!this._observedCanvases.has(n)&&(this._observedCanvases.set(n,[i,0]),(s=this._observer)==null||s.observe(n));}static unobserve(n){var i,s;(i=this._observer)==null||i.unobserve(n),this._observedCanvases.delete(n),this._observedCanvases.size===0&&((s=this._observer)==null||s.disconnect(),this._observer=null);}};_($,"_observer",null),_($,"_observedCanvases",new Map);function s0(c){return /^#([\da-f]{6}|[\da-f]{8})$/iu.test(c)}function s3(c){if(!s0(c))return 0;let n=c.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}function f2(c){if(c.byteLength<4)return !1;let n=new Uint8Array(c.slice(0,W1.byteLength));for(let i=0;iObject.prototype.hasOwnProperty.call(c,n))}function v2(c){if(typeof c=="string")try{return o3(JSON.parse(c))}catch(n){return !1}else return o3(c)}function i1(){return 1+((x?window.devicePixelRatio:1)-1)*r3}function $1(c){let n=c.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)}var m2=(c,n)=>c==="reverse"?n.Mode.Reverse:c==="bounce"?n.Mode.Bounce:c==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,_2=(c,n)=>c==="contain"?n.Fit.Contain:c==="cover"?n.Fit.Cover:c==="fill"?n.Fit.Fill:c==="fit-height"?n.Fit.FitHeight:c==="fit-width"?n.Fit.FitWidth:n.Fit.None,g2=(c,n)=>{let i=new n.VectorFloat;return i.push_back(c[0]),i.push_back(c[1]),i},y2=(c,n)=>{let i=new n.VectorFloat;return c.length!==2||(i.push_back(c[0]),i.push_back(c[1])),i},L=class L{constructor(n){_(this,"_canvas");_(this,"_context",null);_(this,"_eventManager");_(this,"_animationFrameId",null);_(this,"_frameManager");_(this,"_dotLottieCore",null);_(this,"_renderConfig",{});_(this,"_isFrozen",!1);_(this,"_backgroundColor",null);_(this,"_pointerUpMethod");_(this,"_pointerDownMethod");_(this,"_pointerMoveMethod");_(this,"_pointerEnterMethod");_(this,"_pointerExitMethod");var i,s,d;this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new s1,this._frameManager=new B1,this._renderConfig=k(F({},n.renderConfig),{devicePixelRatio:((i=n.renderConfig)==null?void 0:i.devicePixelRatio)||i1(),freezeOnOffscreen:(d=(s=n.renderConfig)==null?void 0:s.freezeOnOffscreen)!=null?d:!0}),n1.load().then(m=>{var b,M,I,D,O,d1,C1,K;L._wasmModule=m,this._dotLottieCore=new m.DotLottiePlayer({themeId:(b=n.themeId)!=null?b:"",autoplay:(M=n.autoplay)!=null?M:!1,backgroundColor:0,loopAnimation:(I=n.loop)!=null?I:!1,mode:m2((D=n.mode)!=null?D:"forward",m),segment:y2((O=n.segment)!=null?O:[],m),speed:(d1=n.speed)!=null?d1:1,useFrameInterpolation:(C1=n.useFrameInterpolation)!=null?C1:!0,marker:(K=n.marker)!=null?K:"",layout:n.layout?{align:g2(n.layout.align,m),fit:_2(n.layout.fit,m)}:m.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(m=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${m}`)});}),this._pointerUpMethod=this._onPointerUp.bind(this),this._pointerDownMethod=this._onPointerDown.bind(this),this._pointerMoveMethod=this._onPointerMove.bind(this),this._pointerEnterMethod=this._onPointerEnter.bind(this),this._pointerExitMethod=this._onPointerLeave.bind(this);}_dispatchError(n){console.error(n),this._eventManager.dispatch({type:"loadError",error:new Error(n)});}_fetchData(n){return g(this,null,function*(){let i=yield fetch(n);if(!i.ok)throw new Error(`Failed to fetch animation data from URL: ${n}. ${i.status}: ${i.statusText}`);let s=yield i.arrayBuffer();return f2(s)?s:new TextDecoder().decode(s)})}_loadFromData(n){if(this._dotLottieCore===null)return;let i=this._canvas.width,s=this._canvas.height,d=!1;if(typeof n=="string"){if(!v2(n)){this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}d=this._dotLottieCore.loadAnimationData(n,i,s);}else if(n instanceof ArrayBuffer){if(!f2(n)){this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");return}d=this._dotLottieCore.loadDotLottieData(n,i,s);}else if(typeof n=="object"){if(!v2(n)){this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");return}d=this._dotLottieCore.loadAnimationData(JSON.stringify(n),i,s);}else {this._dispatchError(`Unsupported data type for animation data. Expected: - string (Lottie JSON), - ArrayBuffer (dotLottie), - object (Lottie JSON). Received: ${typeof n}`);return}d?(this._eventManager.dispatch({type:"load"}),x&&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")),x&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&W.observe(this._canvas,this),this._renderConfig.autoResize&&$.observe(this._canvas,this))):this._dispatchError("Failed to load animation data");}_loadFromSrc(n){this._fetchData(n).then(i=>this._loadFromData(i)).catch(i=>this._dispatchError(`Failed to load animation data from URL: ${n}. ${i}`));}get activeAnimationId(){var n;return (n=this._dotLottieCore)==null?void 0:n.activeAnimationId()}get activeThemeId(){var n;return (n=this._dotLottieCore)==null?void 0:n.activeThemeId()}get layout(){var i;let n=(i=this._dotLottieCore)==null?void 0:i.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{var s,d,m,b,M,I;switch(n.fit){case((s=L._wasmModule)==null?void 0:s.Fit.Contain):return "contain";case((d=L._wasmModule)==null?void 0:d.Fit.Cover):return "cover";case((m=L._wasmModule)==null?void 0:m.Fit.Fill):return "fill";case((b=L._wasmModule)==null?void 0:b.Fit.FitHeight):return "fit-height";case((M=L._wasmModule)==null?void 0:M.Fit.FitWidth):return "fit-width";case((I=L._wasmModule)==null?void 0:I.Fit.None):return "none";default:return "contain"}})()}}get marker(){var i;return (i=this._dotLottieCore)==null?void 0:i.config().marker}get manifest(){var n;try{let i=(n=this._dotLottieCore)==null?void 0:n.manifestString();if(this._dotLottieCore===null||!i)return null;let s=JSON.parse(i);return Object.keys(s).length===0?null:s}catch(i){return null}}get renderConfig(){return this._renderConfig}get segment(){var i;let n=(i=this._dotLottieCore)==null?void 0:i.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.config().loopAnimation)!=null?i:!1}get mode(){var i,s,d,m;let n=(i=this._dotLottieCore)==null?void 0:i.config().mode;return n===((s=L._wasmModule)==null?void 0:s.Mode.Reverse)?"reverse":n===((d=L._wasmModule)==null?void 0:d.Mode.Bounce)?"bounce":n===((m=L._wasmModule)==null?void 0:m.Mode.ReverseBounce)?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){var n;return (n=this._backgroundColor)!=null?n:""}get autoplay(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.config().autoplay)!=null?i:!1}get useFrameInterpolation(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.config().useFrameInterpolation)!=null?i:!1}get speed(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.config().speed)!=null?i:0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.isLoaded())!=null?i:!1}get isPlaying(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.isPlaying())!=null?i:!1}get isPaused(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.isPaused())!=null?i:!1}get isStopped(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.isStopped())!=null?i:!1}get currentFrame(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.currentFrame())!=null?i:0}get loopCount(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.loopCount())!=null?i:0}get totalFrames(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.totalFrames())!=null?i:0}get duration(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.duration())!=null?i:0}get segmentDuration(){var n,i;return (i=(n=this._dotLottieCore)==null?void 0:n.segmentDuration())!=null?i:0}get canvas(){return this._canvas}load(n){var i,s,d,m,b,M,I,D,O;this._dotLottieCore===null||L._wasmModule===null||(this._dotLottieCore.setConfig({themeId:(i=n.themeId)!=null?i:"",autoplay:(s=n.autoplay)!=null?s:!1,backgroundColor:0,loopAnimation:(d=n.loop)!=null?d:!1,mode:m2((m=n.mode)!=null?m:"forward",L._wasmModule),segment:y2((b=n.segment)!=null?b:[],L._wasmModule),speed:(M=n.speed)!=null?M:1,useFrameInterpolation:(I=n.useFrameInterpolation)!=null?I:!0,marker:(D=n.marker)!=null?D:"",layout:n.layout?{align:g2(n.layout.align,L._wasmModule),fit:_2(n.layout.fit,L._wasmModule)}:L._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor((O=n.backgroundColor)!=null?O:""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let i=this._dotLottieCore.buffer(),s=new Uint8ClampedArray(i,0,this._canvas.width*this._canvas.height*4),d=null;return typeof ImageData=="undefined"?(d=this._context.createImageData(this._canvas.width,this._canvas.height),d.data.set(s)):d=new ImageData(s,this._canvas.width,this._canvas.height),this._context.putImageData(d,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 n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(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;(this._dotLottieCore.play()||this._dotLottieCore.isPlaying())&&(this._isFrozen=!1,this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))),x&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!$1(this._canvas)&&this.freeze();}pause(){if(this._dotLottieCore===null)return;(this._dotLottieCore.pause()||this._dotLottieCore.isPaused())&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{speed:n}));}setBackgroundColor(n){this._dotLottieCore!==null&&(x&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{backgroundColor:s3(n)})),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{loopAnimation:n}));}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{useFrameInterpolation:n}));}addEventListener(n,i){this._eventManager.addEventListener(n,i);}removeEventListener(n,i){this._eventManager.removeEventListener(n,i);}destroy(){var n;x&&this._canvas instanceof HTMLCanvasElement&&(W.unobserve(this._canvas),$.unobserve(this._canvas)),(n=this._dotLottieCore)==null||n.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}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(){if(!this._dotLottieCore||!this.isLoaded)return;if(x&&this._canvas instanceof HTMLCanvasElement){let i=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:s,width:d}=this._canvas.getBoundingClientRect();this._canvas.width=d*i,this._canvas.height=s*i;}this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,i){this._dotLottieCore===null||L._wasmModule===null||this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{segment:y2([n,i],L._wasmModule)}));}setMode(n){this._dotLottieCore===null||L._wasmModule===null||this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{mode:m2(n,L._wasmModule)}));}setRenderConfig(n){let m=n,{devicePixelRatio:i,freezeOnOffscreen:s}=m,d=O1(m,["devicePixelRatio","freezeOnOffscreen"]);this._renderConfig=k(F(F({},this._renderConfig),d),{devicePixelRatio:i||i1(),freezeOnOffscreen:s!=null?s:!0}),x&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?$.observe(this._canvas,this):$.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?W.observe(this._canvas,this):(W.unobserve(this._canvas),this._isFrozen&&this.unfreeze()));}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(k(F({},this._dotLottieCore.config()),{marker:n}));}markers(){var i;let n=(i=this._dotLottieCore)==null?void 0:i.markers();if(n){let s=[];for(let d=0;d{let M=I=>{let D=I.data;D.id===d.id&&(this._worker.removeEventListener("message",M),D.error?b(new Error(`Failed to execute method ${n}: ${D.error}`)):m(D.result));};this._worker.addEventListener("message",M);})})}addEventListener(n,i){this._eventManager.addEventListener(n,i);}removeEventListener(n,i){this._eventManager.removeEventListener(n,i);}static setWasmUrl(n){q._wasmUrl=n;}loadStateMachine(n){return g(this,null,function*(){if(!this._created)return !1;let i=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),i})}loadStateMachineData(n){return g(this,null,function*(){if(!this._created)return !1;let i=yield this._sendMessage("loadStateMachineData",{instanceId:this._id,stateMachineData:n});return yield this._updateDotLottieInstanceState(),i})}startStateMachine(){return g(this,null,function*(){if(!this._created)return !1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return g(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}getStateMachineListeners(){return g(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let i=this._canvas.getBoundingClientRect(),s=this._canvas.width/i.width,d=this._canvas.height/i.height,m=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,b=(n.clientX-i.left)*s/m,M=(n.clientY-i.top)*d/m;return {x:b,y:M}}_onPointerUp(n){let{x:i,y:s}=this._getPointerPosition(n);this._sendMessage("postPointerUpEvent",{instanceId:this._id,x:i,y:s});}_onPointerDown(n){let{x:i,y:s}=this._getPointerPosition(n);this._sendMessage("postPointerDownEvent",{instanceId:this._id,x:i,y:s});}_onPointerMove(n){let{x:i,y:s}=this._getPointerPosition(n);this._sendMessage("postPointerMoveEvent",{instanceId:this._id,x:i,y:s});}_onPointerEnter(n){let{x:i,y:s}=this._getPointerPosition(n);this._sendMessage("postPointerEnterEvent",{instanceId:this._id,x:i,y:s});}_onPointerLeave(n){let{x:i,y:s}=this._getPointerPosition(n);this._sendMessage("postPointerExitEvent",{instanceId:this._id,x:i,y:s});}_setupStateMachineListeners(){return g(this,null,function*(){if(x&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._pointerUpMethod),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._pointerDownMethod),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._pointerMoveMethod),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._pointerEnterMethod),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._pointerExitMethod);}})}_cleanupStateMachineListeners(){x&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._pointerUpMethod),this._canvas.removeEventListener("pointerdown",this._pointerDownMethod),this._canvas.removeEventListener("pointermove",this._pointerMoveMethod),this._canvas.removeEventListener("pointerenter",this._pointerEnterMethod),this._canvas.removeEventListener("pointerleave",this._pointerExitMethod));}};_(q,"_workerManager",new z1),_(q,"_wasmUrl","");var c3=q; exports.DotLottie = d3; exports.DotLottieWorker = c3; //# sourceMappingURL=index.cjs.map //# sourceMappingURL=index.cjs.map