UNPKG

@lottiefiles/dotlottie-web

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