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