UNPKG

@lottiefiles/dotlottie-wc

Version:

Web component wrapper around the dotlottie-web library

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