@thorvg/lottie-player 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gl/lottie-player.cjs.js +2 -2
- package/dist/gl/lottie-player.cjs.js.map +1 -1
- package/dist/gl/lottie-player.esm.js +2 -2
- package/dist/gl/lottie-player.esm.js.map +1 -1
- package/dist/gl/lottie-player.js +2 -2
- package/dist/gl/lottie-player.js.map +1 -1
- package/dist/gl/thorvg.wasm +0 -0
- package/dist/gl-lite/lottie-player.cjs.js +2 -2
- package/dist/gl-lite/lottie-player.cjs.js.map +1 -1
- package/dist/gl-lite/lottie-player.esm.js +2 -2
- package/dist/gl-lite/lottie-player.esm.js.map +1 -1
- package/dist/gl-lite/lottie-player.js +2 -2
- package/dist/gl-lite/lottie-player.js.map +1 -1
- package/dist/gl-lite/thorvg.wasm +0 -0
- package/dist/lottie-player.cjs.js +2 -2
- package/dist/lottie-player.cjs.js.map +1 -1
- package/dist/lottie-player.d.ts +5 -0
- package/dist/lottie-player.esm.js +2 -2
- package/dist/lottie-player.esm.js.map +1 -1
- package/dist/lottie-player.js +2 -2
- package/dist/lottie-player.js.map +1 -1
- package/dist/sw/lottie-player.cjs.js +2 -2
- package/dist/sw/lottie-player.cjs.js.map +1 -1
- package/dist/sw/lottie-player.esm.js +2 -2
- package/dist/sw/lottie-player.esm.js.map +1 -1
- package/dist/sw/lottie-player.js +2 -2
- package/dist/sw/lottie-player.js.map +1 -1
- package/dist/sw/thorvg.wasm +0 -0
- package/dist/sw-lite/lottie-player.cjs.js +2 -2
- package/dist/sw-lite/lottie-player.cjs.js.map +1 -1
- package/dist/sw-lite/lottie-player.esm.js +2 -2
- package/dist/sw-lite/lottie-player.esm.js.map +1 -1
- package/dist/sw-lite/lottie-player.js +2 -2
- package/dist/sw-lite/lottie-player.js.map +1 -1
- package/dist/sw-lite/thorvg.wasm +0 -0
- package/dist/thorvg.wasm +0 -0
- package/dist/wg/lottie-player.cjs.js +2 -2
- package/dist/wg/lottie-player.cjs.js.map +1 -1
- package/dist/wg/lottie-player.esm.js +2 -2
- package/dist/wg/lottie-player.esm.js.map +1 -1
- package/dist/wg/lottie-player.js +2 -2
- package/dist/wg/lottie-player.js.map +1 -1
- package/dist/wg/thorvg.wasm +0 -0
- package/dist/wg-lite/lottie-player.cjs.js +2 -2
- package/dist/wg-lite/lottie-player.cjs.js.map +1 -1
- package/dist/wg-lite/lottie-player.esm.js +2 -2
- package/dist/wg-lite/lottie-player.esm.js.map +1 -1
- package/dist/wg-lite/lottie-player.js +2 -2
- package/dist/wg-lite/lottie-player.js.map +1 -1
- package/dist/wg-lite/thorvg.wasm +0 -0
- package/package.json +1 -1
package/dist/wg/lottie-player.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["lottie-player"]={})}(this,function(t){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const r=globalThis,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;let o=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(e,t))}return t}toString(){return this.cssText}};const s=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:u,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:f}=Object,p=globalThis,m=p.trustedTypes,b=m?m.emptyScript:"",v=p.reactiveElementPolyfillSupport,w=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},y=(t,e)=>!l(t,e),$={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&c(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){const a=n?.call(this);i?.call(this,e),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...h(t),...d(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),i=r.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=n.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:g).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=n;const a=i.fromAttribute(e,t.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){const n=this.constructor,i=this[t];if(r??=n.getPropertyOptions(t),!((r.hasChanged??y)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:i},a){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==i||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t){const{wrapped:t}=r,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,r,n)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[w("elementProperties")]=new Map,_[w("finalized")]=new Map,v?.({ReactiveElement:_}),(p.reactiveElementVersions??=[]).push("2.1.1");const A={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y},x=(t=A,e,r)=>{const{kind:n,metadata:i}=r;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t,e),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function S(t){return(e,r)=>"object"==typeof r?x(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}const k=globalThis,E=k.trustedTypes,I=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+T,U=`<${P}>`,R=document,M=()=>R.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,N="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,j=/>/g,D=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,z=/"/g,J=/^(?:script|style|textarea|title)$/i,W=(t,...e)=>({_$litType$:1,strings:t,values:e}),G=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),q=new WeakMap,X=R.createTreeWalker(R,129);function Y(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}const K=(t,e)=>{const r=t.length-1,n=[];let i,a=2===e?"<svg>":3===e?"<math>":"",o=F;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,u=0;for(;u<r.length&&(o.lastIndex=u,l=o.exec(r),null!==l);)u=o.lastIndex,o===F?"!--"===l[1]?o=V:void 0!==l[1]?o=j:void 0!==l[2]?(J.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=D):void 0!==l[3]&&(o=D):o===D?">"===l[0]?(o=i??F,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,s=l[1],o=void 0===l[3]?D:'"'===l[3]?z:B):o===z||o===B?o=D:o===V||o===j?o=F:(o=D,i=void 0);const h=o===D&&t[e+1].startsWith("/>")?" ":"";a+=o===F?r+U:c>=0?(n.push(s),r.slice(0,c)+C+r.slice(c)+T+h):r+T+(-2===c?e:h)}return[Y(t,a+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class Q{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,a=0;const o=t.length-1,s=this.parts,[l,c]=K(t,e);if(this.el=Q.createElement(l,r),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=X.nextNode())&&s.length<o;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(C)){const e=c[a++],r=n.getAttribute(t).split(T),o=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:o[2],strings:r,ctor:"."===o[1]?nt:"?"===o[1]?it:"@"===o[1]?at:rt}),n.removeAttribute(t)}else t.startsWith(T)&&(s.push({type:6,index:i}),n.removeAttribute(t));if(J.test(n.tagName)){const t=n.textContent.split(T),e=t.length-1;if(e>0){n.textContent=E?E.emptyScript:"";for(let r=0;r<e;r++)n.append(t[r],M()),X.nextNode(),s.push({type:2,index:++i});n.append(t[e],M())}}}else if(8===n.nodeType)if(n.data===P)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(T,t+1));)s.push({type:7,index:i}),t+=T.length-1}i++}}static createElement(t,e){const r=R.createElement("template");return r.innerHTML=t,r}}function Z(t,e,r=t,n){if(e===G)return e;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=L(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(e=Z(t,i._$AS(t,e.values),i,n)),e}class tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??R).importNode(e,!0);X.currentNode=n;let i=X.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new et(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ot(i,this,t)),this._$AV.push(e),s=r[++o]}a!==s?.index&&(i=X.nextNode(),a++)}return X.currentNode=R,n}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class et{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),L(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,n="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Q.createElement(Y(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{const t=new tt(n,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Q(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new et(this.O(M()),this.O(M()),this,this.options)):r=e[n],r._$AI(i),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=H}_$AI(t,e=this,r,n){const i=this.strings;let a=!1;if(void 0===i)t=Z(this,t,e,0),a=!L(t)||t!==this._$AH&&t!==G,a&&(this._$AH=t);else{const n=t;let o,s;for(t=i[0],o=0;o<i.length-1;o++)s=Z(this,n[r+o],e,o),s===G&&(s=this._$AH[o]),a||=!L(s)||s!==this._$AH[o],s===H?t=H:t!==H&&(t+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}class it extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class at extends rt{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??H)===G)return;const r=this._$AH,n=t===H&&r!==H||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==H&&(r===H||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const st=k.litHtmlPolyfillSupport;st?.(Q,et),(k.litHtmlVersions??=[]).push("3.3.1");const lt=globalThis;class ct extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new et(e.insertBefore(M(),t),t,void 0,r??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ct._$litElement$=!0,ct.finalized=!0,lt.litElementHydrateSupport?.({LitElement:ct});const ut=lt.litElementPolyfillSupport;function ht(t,e,r,n){var i,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,r,o):i(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}ut?.({LitElement:ct}),(lt.litElementVersions??=[]).push("4.2.1");let dt=null,ft=!1;var pt=function(t){return t.JSON="json",t.LOT="lot",t.JPG="jpg",t.PNG="png",t.SVG="svg",t}({});const mt=t=>new Promise(e=>setTimeout(e,t));let bt="idle";class vt extends ct{src;wasmUrl;fileType="json";speed=1;autoPlay=!1;count;loop=!1;direction=1;mode="normal";intermission=1;totalFrame=0;currentFrame=0;currentState="loading";get size(){return Float32Array.from(this.TVG?.size()||[0,0])}TVG=null;canvas;config;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;_assetResolverCallback;_assetResolverData;async _init(){if(ft)for(;!dt;)await mt(100);if(dt||(ft=!0,dt=await async function(t={}){var r,n=t,i=!!globalThis.window,a=!!globalThis.WorkerGlobalScope,o=globalThis.process?.versions?.node&&"renderer"!=globalThis.process?.type;if(o){const{createRequire:t}=await Promise.resolve().then(function(){return yt});var s=t("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href)}var l,c,u=(t,e)=>{throw e},h="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href,d="";if(o){var f=s("fs");h.startsWith("file:")&&(d=s("path").dirname(s("url").fileURLToPath(h))+"/"),c=t=>(t=U(t)?new URL(t):t,f.readFileSync(t)),l=async t=>(t=U(t)?new URL(t):t,f.readFileSync(t,void 0)),process.argv.slice(2),u=(t,e)=>{throw process.exitCode=t,e}}else if(i||a){try{d=new URL(".",h).href}catch{}a&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{if(U(t))return new Promise((e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r(n.status)},n.onerror=r,n.send(null)});var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var p,m,b,v,w,g,y,$,_,A,x,S,k,E,I,C=function(){}.bind(),T=function(){}.bind(),P=!1,U=t=>t.startsWith("file://"),R=!1;function M(){var t=ln.buffer;w=new Int8Array(t),y=new Int16Array(t),g=new Uint8Array(t),$=new Uint16Array(t),_=new Int32Array(t),A=new Uint32Array(t),x=new Float32Array(t),S=new Float64Array(t),k=new BigInt64Array(t),E=new BigUint64Array(t)}function L(t){throw n.onAbort?.(t),T(t="Aborted("+t+")"),P=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),v?.(t),t}class O{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var N=t=>{for(;0<t.length;)t.shift()(n)},F=[],V=[],j=()=>{var t=n.preRun.shift();V.push(t)},D=!0,B=new TextDecoder,z=(t,e,r,n)=>{if(r=e+r,n)return r;for(;t[e]&&!(e>=r);)++e;return e},J=(t,e,r)=>t?B.decode(g.subarray(t,z(g,t,e,r))):"",W=t=>{for(var e="";;){var r=g[t++];if(!r)return e;e+=String.fromCharCode(r)}},G={},H={},q={},X=class extends Error{constructor(t){super(t),this.name="BindingError"}},Y=t=>{throw new X(t)};function K(t,e,r={}){return function(t,e,r={}){var n=e.name;if(!t)throw new X(`type "${n}" must have a positive integer typeid pointer`);if(H.hasOwnProperty(t)){if(r.Gc)return;throw new X(`Cannot register type '${n}' twice`)}H[t]=e,delete q[t],G.hasOwnProperty(t)&&(e=G[t],delete G[t],e.forEach(t=>t()))}(t,e,r)}var Q=(t,e,r)=>{switch(e){case 1:return r?t=>w[t]:t=>g[t];case 2:return r?t=>y[t>>1]:t=>$[t>>1];case 4:return r?t=>_[t>>2]:t=>A[t>>2];case 8:return r?t=>k[t>>3]:t=>E[t>>3];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Z=t=>{throw new X(t.Ja.Xa.Ua.name+" instance already deleted")},tt=!1,et=()=>{},rt=t=>globalThis.FinalizationRegistry?(tt=new FinalizationRegistry(t=>{--(t=t.Ja).count.value,0===t.count.value&&(t.ib?t.mb.zb(t.ib):t.Xa.Ua.zb(t.Va))}),rt=t=>{var e=t.Ja;return e.ib&&tt.register(t,{Ja:e},t),t},et=t=>{tt.unregister(t)},rt(t)):(rt=t=>t,t);function nt(){}var it=(t,e)=>Object.defineProperty(e,"name",{value:t}),at={},ot=(t,e,r)=>{if(void 0===t[e].hb){var n=t[e];t[e]=function(...n){if(!t[e].hb.hasOwnProperty(n.length))throw new X(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${t[e].hb})!`);return t[e].hb[n.length].apply(this,n)},t[e].hb=[],t[e].hb[n.Hb]=n}},st=(t,e,r)=>{if(n.hasOwnProperty(t)){if(void 0===r||void 0!==n[t].hb&&void 0!==n[t].hb[r])throw new X(`Cannot register public name '${t}' twice`);if(ot(n,t,t),n[t].hb.hasOwnProperty(r))throw new X(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);n[t].hb[r]=e}else n[t]=e,n[t].Hb=r};function lt(t,e,r,n,i,a,o,s){this.name=t,this.constructor=e,this.Eb=r,this.zb=n,this.kb=i,this.Cc=a,this.Mb=o,this.zc=s,this.Mc=[]}var ct=(t,e,r)=>{for(;e!==r;){if(!e.Mb)throw new X(`Expected null or instance of ${r.name}, got an instance of ${e.name}`);t=e.Mb(t),e=e.kb}return t},ut=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function ht(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);return 0}if(!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);return ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua)}function dt(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);if(this.Pb){var r=this.Nc();return null!==t&&t.push(this.zb,r),r}return 0}if(!e||!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Ob&&e.Ja.Xa.Ob)throw new X(`Cannot convert argument of type ${e.Ja.mb?e.Ja.mb.name:e.Ja.Xa.name} to parameter type ${this.name}`);if(r=ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua),this.Pb){if(void 0===e.Ja.ib)throw new X("Passing raw pointer to smart pointer is illegal");switch(this.Pc){case 0:if(e.Ja.mb!==this)throw new X(`Cannot convert argument of type ${e.Ja.mb?e.Ja.mb.name:e.Ja.Xa.name} to parameter type ${this.name}`);r=e.Ja.ib;break;case 1:r=e.Ja.ib;break;case 2:if(e.Ja.mb===this)r=e.Ja.ib;else{var n=e.clone();r=this.Oc(r,Ot(()=>n.delete())),null!==t&&t.push(this.zb,r)}break;default:throw new X("Unsupporting sharing policy")}}return r}function ft(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);return 0}if(!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.Ja.Xa.Ob)throw new X(`Cannot convert argument of type ${e.Ja.Xa.name} to parameter type ${this.name}`);return ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua)}function pt(t){return this.jb(A[t>>2])}var mt=(t,e,r)=>e===r?t:void 0===r.kb||null===(t=mt(t,e,r.kb))?null:r.zc(t),bt={},vt=class extends Error{constructor(t){super(t),this.name="InternalError"}},wt=(t,e)=>{if(!e.Xa||!e.Va)throw new vt("makeClassHandle requires ptr and ptrType");if(!!e.mb!=!!e.ib)throw new vt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},rt(Object.create(t,{Ja:{value:e,writable:!0}}))};function gt(t,e,r,n,i,a,o,s,l,c,u){this.name=t,this.Ua=e,this.Wb=r,this.Ob=n,this.Pb=i,this.Lc=a,this.Pc=o,this.pc=s,this.Nc=l,this.Oc=c,this.zb=u,i||void 0!==e.kb?this.nb=dt:(this.nb=n?ht:ft,this.ob=null)}var $t=(t,e,r)=>{if(!n.hasOwnProperty(t))throw new vt("Replacing nonexistent public symbol");void 0!==n[t].hb&&void 0!==r?n[t].hb[r]=e:(n[t]=e,n[t].Hb=r)},_t=(t,e)=>{t=W(t);var r=cn.get(e);if("function"!=typeof r)throw new X(`unknown function pointer with signature ${t}: ${e}`);return r};class At extends Error{}var xt=t=>{t=jr(t);var e=W(t);return Fr(t),e},St=(t,e)=>{var r=[],n={};throw e.forEach(function t(e){n[e]||H[e]||(q[e]?q[e].forEach(t):(r.push(e),n[e]=!0))}),new At(`${t}: `+r.map(xt).join([", "]))},kt=(t,e,r)=>{function n(e){if((e=r(e)).length!==t.length)throw new vt("Mismatched type converter count");for(var n=0;n<t.length;++n)K(t[n],e[n])}t.forEach(t=>q[t]=e);var i=Array(e.length),a=[],o=0;for(let[t,r]of e.entries())H.hasOwnProperty(r)?i[t]=H[r]:(a.push(r),G.hasOwnProperty(r)||(G[r]=[]),G[r].push(()=>{i[t]=H[r],++o===a.length&&n(i)}));0===a.length&&n(i)},Et=(t,e)=>{for(var r=[],n=0;n<t;n++)r.push(A[e+4*n>>2]);return r},It=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Ct(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].ob)return!0;return!1}function Tt(t,e,r,n,i,a){var o=e.length;if(2>o)throw new X("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=Ct(e);r=!e[0].nc;var c=e[0],u=e[1];for(n=[t,Y,n,i,It,c.jb.bind(c),u?.nb.bind(u)],i=2;i<o;++i)n.push((c=e[i]).nb.bind(c));if(!l)for(i=s?1:2;i<e.length;++i)null!==e[i].ob&&n.push(e[i].ob);for(l=Ct(e),i=e.length-2,u=[],c=["fn"],s&&c.push("thisWired"),o=0;o<i;++o)u.push(`arg${o}`),c.push(`arg${o}Wired`);u=u.join(","),c=c.join(","),u=`return function (${u}) {\n`,l&&(u+="var destructors = [];\n");var h=l?"destructors":"null",d="humanName throwBindingError invoker fn runDestructors fromRetWire toClassParamWire".split(" ");for(s&&(u+=`var thisWired = toClassParamWire(${h}, this);\n`),o=0;o<i;++o){var f=`toArg${o}Wire`;u+=`var arg${o}Wired = ${f}(${h}, arg${o});\n`,d.push(f)}if(u+=(r||a?"var rv = ":"")+`invoker(${c});\n`,l)u+="runDestructors(destructors);\n";else for(o=s?1:2;o<e.length;++o)a=1===o?"thisWired":"arg"+(o-2)+"Wired",null!==e[o].ob&&(u+=`${a}_dtor(${a});\n`,d.push(`${a}_dtor`));return r&&(u+="var ret = fromRetWire(rv);\nreturn ret;\n"),e=new Function(d,u+"}\n")(...n),it(t,e)}var Pt=t=>{const e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},Ut=[],Rt=[0,1,,1,null,1,!0,1,!1,1],Mt=t=>{9<t&&0===--Rt[t+1]&&(Rt[t]=void 0,Ut.push(t))},Lt=t=>{if(!t)throw new X(`Cannot use deleted val. handle = ${t}`);return Rt[t]},Ot=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const e=Ut.pop()||Rt.length;return Rt[e]=t,Rt[e+1]=1,e}},Nt={name:"emscripten::val",jb:t=>{var e=Lt(t);return Mt(t),e},nb:(t,e)=>Ot(e),xb:pt,ob:null},Ft=(t,e)=>{switch(e){case 4:return function(t){return this.jb(x[t>>2])};case 8:return function(t){return this.jb(S[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Vt=(t,e,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var a=0;a<t.length;++a){var o=t.codePointAt(a);if(127>=o){if(r>=n)break;e[r++]=o}else if(2047>=o){if(r+1>=n)break;e[r++]=192|o>>6,e[r++]=128|63&o}else if(65535>=o){if(r+2>=n)break;e[r++]=224|o>>12,e[r++]=128|o>>6&63,e[r++]=128|63&o}else{if(r+3>=n)break;e[r++]=240|o>>18,e[r++]=128|o>>12&63,e[r++]=128|o>>6&63,e[r++]=128|63&o,a++}}return e[r]=0,r-i},jt=t=>{for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);127>=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e},Dt=new TextDecoder("utf-16le"),Bt=(t,e,r)=>Dt.decode($.subarray(t>>=1,z($,t,e/2,r))),zt=(t,e,r)=>{if(r??=2147483647,2>r)return 0;var n=e;r=(r-=2)<2*t.length?r/2:t.length;for(var i=0;i<r;++i)y[e>>1]=t.charCodeAt(i),e+=2;return y[e>>1]=0,e-n},Jt=t=>2*t.length,Wt=(t,e,r)=>{var n="";t>>=2;for(var i=0;!(i>=e/4);i++){var a=A[t+i];if(!a&&!r)break;n+=String.fromCodePoint(a)}return n},Gt=(t,e,r)=>{if(r??=2147483647,4>r)return 0;var n=e;r=n+r-4;for(var i=0;i<t.length;++i){var a=t.codePointAt(i);if(65535<a&&i++,_[e>>2]=a,(e+=4)+4>r)break}return _[e>>2]=0,e-n},Ht=t=>{for(var e=0,r=0;r<t.length;++r)65535<t.codePointAt(r)&&r++,e+=4;return e},qt=0,Xt=[],Yt=(t,e,r)=>{var n=[];return t=t(n,r),n.length&&(A[e>>2]=Ot(n)),t},Kt={},Qt=t=>{var e=Kt[t];return void 0===e?W(t):e},Zt={},te=t=>{m=t,D||0<qt||(n.onExit?.(t),P=!0),u(t,new O(t))},ee=t=>{if(!P)try{if(t(),!(D||0<qt))try{m=t=m,te(t)}catch(t){t instanceof O||"unwind"==t||u(1,t)}}catch(t){t instanceof O||"unwind"==t||u(1,t)}},re=t=>{var e=jt(t)+1,r=on(e);return Vt(t,g,r,e),r},ne=[],ie=[],ae=t=>{if(t)return ne[t>>>0]},oe=t=>J(A[t>>2],A[t+4>>2]),se=t=>{var e=A[t>>2];return t=A[t+4>>2],e?J(e,t):0===t?"":void 0},le=t=>({width:A[t>>2],height:A[t+4>>2],depthOrArrayLayers:A[t+8>>2]}),ce=t=>{var e=t+8;return{texture:ae(A[t>>2]),mipLevel:A[t+4>>2],origin:{x:A[e>>2],y:A[e+4>>2],z:A[e+8>>2]},aspect:Re[A[t+20>>2]]}},ue=(t,e)=>{if(t){for(var r={},n=0;n<t;++n){var i=e+24*n;r[oe(i+4)]=S[i+16>>3]}return r}},he=t=>t?ae(t):"auto",de=[,"clamp-to-edge","repeat","mirror-repeat"],fe=[,"zero","one","src","one-minus-src","src-alpha","one-minus-src-alpha","dst","one-minus-dst","dst-alpha","one-minus-dst-alpha","src-alpha-saturated","constant","one-minus-constant","src1","one-minus-src1","src1alpha","one-minus-src1alpha"],pe=[,"add","subtract","reverse-subtract","min","max"],me=["binding-not-used",,"uniform","storage","read-only-storage"],be=[,"never","less","equal","less-equal","greater","not-equal","greater-equal","always"],ve=[,"opaque","premultiplied","unpremultiplied","inherit"],we=[,"none","front","back"],ge=[,"compatibility","core"],ye={1:"core-features-and-limits",2:"depth-clip-control",3:"depth32float-stencil8",4:"texture-compression-bc",5:"texture-compression-bc-sliced-3d",6:"texture-compression-etc2",7:"texture-compression-astc",8:"texture-compression-astc-sliced-3d",9:"timestamp-query",10:"indirect-first-instance",11:"shader-f16",12:"rg11b10ufloat-renderable",13:"bgra8unorm-storage",14:"float32-filterable",15:"float32-blendable",16:"clip-distances",17:"dual-source-blending",18:"subgroups",19:"texture-formats-tier1",20:"texture-formats-tier2",21:"primitive-index",327692:"chromium-experimental-unorm16-texture-formats",327693:"chromium-experimental-snorm16-texture-formats",327732:"chromium-experimental-multi-draw-indirect"},$e=[,"nearest","linear"],_e=[,"ccw","cw"],Ae=[,"uint16","uint32"],xe=[,"load","clear"],Se=[,"nearest","linear"],ke=[,"low-power","high-performance"],Ee=[,"srgb","display-p3"],Ie=[,"point-list","line-list","line-strip","triangle-list","triangle-strip"],Ce=["binding-not-used",,"filtering","non-filtering","comparison"],Te=[,"keep","zero","replace","invert","increment-clamp","decrement-clamp","increment-wrap","decrement-wrap"],Pe=["binding-not-used",,"write-only","read-only","read-write"],Ue=[,"store","discard"],Re=[,"all","stencil-only","depth-only"],Me=[,"1d","2d","3d"],Le=[,"r8unorm","r8snorm","r8uint","r8sint","r16unorm","r16snorm","r16uint","r16sint","r16float","rg8unorm","rg8snorm","rg8uint","rg8sint","r32float","r32uint","r32sint","rg16unorm","rg16snorm","rg16uint","rg16sint","rg16float","rgba8unorm","rgba8unorm-srgb","rgba8snorm","rgba8uint","rgba8sint","bgra8unorm","bgra8unorm-srgb","rgb10a2uint","rgb10a2unorm","rg11b10ufloat","rgb9e5ufloat","rg32float","rg32uint","rg32sint","rgba16unorm","rgba16snorm","rgba16uint","rgba16sint","rgba16float","rgba32float","rgba32uint","rgba32sint","stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8","bc1-rgba-unorm","bc1-rgba-unorm-srgb","bc2-rgba-unorm","bc2-rgba-unorm-srgb","bc3-rgba-unorm","bc3-rgba-unorm-srgb","bc4-r-unorm","bc4-r-snorm","bc5-rg-unorm","bc5-rg-snorm","bc6h-rgb-ufloat","bc6h-rgb-float","bc7-rgba-unorm","bc7-rgba-unorm-srgb","etc2-rgb8unorm","etc2-rgb8unorm-srgb","etc2-rgb8a1unorm","etc2-rgb8a1unorm-srgb","etc2-rgba8unorm","etc2-rgba8unorm-srgb","eac-r11unorm","eac-r11snorm","eac-rg11unorm","eac-rg11snorm","astc-4x4-unorm","astc-4x4-unorm-srgb","astc-5x4-unorm","astc-5x4-unorm-srgb","astc-5x5-unorm","astc-5x5-unorm-srgb","astc-6x5-unorm","astc-6x5-unorm-srgb","astc-6x6-unorm","astc-6x6-unorm-srgb","astc-8x5-unorm","astc-8x5-unorm-srgb","astc-8x6-unorm","astc-8x6-unorm-srgb","astc-8x8-unorm","astc-8x8-unorm-srgb","astc-10x5-unorm","astc-10x5-unorm-srgb","astc-10x6-unorm","astc-10x6-unorm-srgb","astc-10x8-unorm","astc-10x8-unorm-srgb","astc-10x10-unorm","astc-10x10-unorm-srgb","astc-12x10-unorm","astc-12x10-unorm-srgb","astc-12x12-unorm","astc-12x12-unorm-srgb"],Oe=["binding-not-used",,"float","unfilterable-float","depth","sint","uint"],Ne=[,"1d","2d","2d-array","cube","cube-array","3d"],Fe=[,"standard","extended"],Ve=[,"uint8","uint8x2","uint8x4","sint8","sint8x2","sint8x4","unorm8","unorm8x2","unorm8x4","snorm8","snorm8x2","snorm8x4","uint16","uint16x2","uint16x4","sint16","sint16x2","sint16x4","unorm16","unorm16x2","unorm16x4","snorm16","snorm16x2","snorm16x4","float16","float16x2","float16x4","float32","float32x2","float32x3","float32x4","uint32","uint32x2","uint32x3","uint32x4","sint32","sint32x2","sint32x3","sint32x4","unorm10-10-10-2","unorm8x4-bgra"],je=[,"vertex","instance"],De={undefined:1,unknown:1,destroyed:2},Be=t=>-9007199254740992>t||9007199254740992<t?NaN:Number(t),ze=(t,e)=>{for(var r=0,n=t.length-1;0<=n;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r;r--)t.unshift("..");return t},Je=t=>{var e="/"===t.charAt(0),r="/"===t.slice(-1);return(t=ze(t.split("/").filter(t=>!!t),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},We=t=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return t=e[0],e=e[1],t||e?(e&&=e.slice(0,-1),t+e):"."},Ge=t=>t&&t.match(/([^\/]+|\/)\/*$/)[1],He=t=>{(He=(()=>{if(o){var t=s("crypto");return e=>t.randomFillSync(e)}return t=>crypto.getRandomValues(t)})())(t)},qe=(...t)=>{for(var e="",r=!1,n=t.length-1;-1<=n&&!r;n--){if("string"!=typeof(r=0<=n?t[n]:Or.cwd()))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,r="/"===r.charAt(0)}return e=ze(e.split("/").filter(t=>!!t),!r).join("/"),(r?"/":"")+e||"."},Xe=(t,e)=>{function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;0<=r&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=qe(t).slice(1),e=qe(e).slice(1),t=r(t.split("/")),e=r(e.split("/"));for(var n=Math.min(t.length,e.length),i=n,a=0;a<n;a++)if(t[a]!==e[a]){i=a;break}for(n=[],a=i;a<t.length;a++)n.push("..");return(n=n.concat(e.slice(i))).join("/")},Ye=t=>{var e=z(t,0);return B.decode(t.buffer?t.subarray(0,e):new Uint8Array(t.slice(0,e)))},Ke=[],Qe=t=>{var e=Array(jt(t)+1);return t=Vt(t,e,0,e.length),e.length=t,e},Ze=[];function tr(t,e){Ze[t]={input:[],output:[],Gb:e},fr(t,er)}var er={open(t){var e=Ze[t.node.rdev];if(!e)throw new Or.Ia(43);t.tty=e,t.seekable=!1},close(t){t.tty.Gb.fsync(t.tty)},fsync(t){t.tty.Gb.fsync(t.tty)},read(t,e,r,n){if(!t.tty||!t.tty.Gb.kc)throw new Or.Ia(60);for(var i=0,a=0;a<n;a++){try{var o=t.tty.Gb.kc(t.tty)}catch(t){throw new Or.Ia(29)}if(void 0===o&&0===i)throw new Or.Ia(6);if(null==o)break;i++,e[r+a]=o}return i&&(t.node.atime=Date.now()),i},write(t,e,r,n){if(!t.tty||!t.tty.Gb.$b)throw new Or.Ia(60);try{for(var i=0;i<n;i++)t.tty.Gb.$b(t.tty,e[r+i])}catch(t){throw new Or.Ia(29)}return n&&(t.node.mtime=t.node.ctime=Date.now()),i}},rr={kc(){t:{if(!Ke.length){var t=null;if(o){var e=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=f.readSync(n,e,0,256)}catch(t){if(!t.toString().includes("EOF"))throw t;r=0}0<r&&(t=e.slice(0,r).toString("utf-8"))}else globalThis.window?.prompt&&null!==(t=window.prompt("Input: "))&&(t+="\n");if(!t){t=null;break t}Ke=Qe(t)}t=Ke.shift()}return t},$b(t,e){null===e||10===e?(C(Ye(t.output)),t.output=[]):0!=e&&t.output.push(e)},fsync(t){0<t.output?.length&&(C(Ye(t.output)),t.output=[])},ld:()=>({Xc:25856,Zc:5,Wc:191,Yc:35387,Vc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),md:()=>0,nd:()=>[24,80]},nr={$b(t,e){null===e||10===e?(T(Ye(t.output)),t.output=[]):0!=e&&t.output.push(e)},fsync(t){0<t.output?.length&&(T(Ye(t.output)),t.output=[])}},ir={tb:null,Wa:()=>ir.createNode(null,"/",16895,0),createNode(t,e,r,n){if(24576==(61440&r)||Or.isFIFO(r))throw new Or.Ia(63);return ir.tb||(ir.tb={dir:{node:{qb:ir.La.qb,sb:ir.La.sb,lookup:ir.La.lookup,vb:ir.La.vb,rename:ir.La.rename,unlink:ir.La.unlink,rmdir:ir.La.rmdir,readdir:ir.La.readdir,symlink:ir.La.symlink},stream:{lb:ir.Ma.lb}},file:{node:{qb:ir.La.qb,sb:ir.La.sb},stream:{lb:ir.Ma.lb,read:ir.Ma.read,write:ir.Ma.write,Fb:ir.Ma.Fb,Kb:ir.Ma.Kb}},link:{node:{qb:ir.La.qb,sb:ir.La.sb,readlink:ir.La.readlink},stream:{}},ec:{node:{qb:ir.La.qb,sb:ir.La.sb},stream:Or.xc}}),pr((r=Or.createNode(t,e,r,n)).mode)?(r.La=ir.tb.dir.node,r.Ma=ir.tb.dir.stream,r.Na={}):Or.isFile(r.mode)?(r.La=ir.tb.file.node,r.Ma=ir.tb.file.stream,r.Ya=0,r.Na=null):40960==(61440&r.mode)?(r.La=ir.tb.link.node,r.Ma=ir.tb.link.stream):8192==(61440&r.mode)&&(r.La=ir.tb.ec.node,r.Ma=ir.tb.ec.stream),r.atime=r.mtime=r.ctime=Date.now(),t&&(t.Na[e]=r,t.atime=t.mtime=t.ctime=r.atime),r},kd:t=>t.Na?t.Na.subarray?t.Na.subarray(0,t.Ya):new Uint8Array(t.Na):new Uint8Array(0),La:{qb(t){var e={};return e.dev=8192==(61440&t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,e.size=pr(t.mode)?4096:Or.isFile(t.mode)?t.Ya:40960==(61440&t.mode)?t.link.length:0,e.atime=new Date(t.atime),e.mtime=new Date(t.mtime),e.ctime=new Date(t.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},sb(t,e){for(var r of["mode","atime","mtime","ctime"])null!=e[r]&&(t[r]=e[r]);void 0!==e.size&&t.Ya!=(e=e.size)&&(0==e?(t.Na=null,t.Ya=0):(r=t.Na,t.Na=new Uint8Array(e),r&&t.Na.set(r.subarray(0,Math.min(e,t.Ya))),t.Ya=e))},lookup(){throw ir.Tb||(ir.Tb=new Or.Ia(44),ir.Tb.stack="<generic error, no stack>"),ir.Tb},vb:(t,e,r,n)=>ir.createNode(t,e,r,n),rename(t,e,r){try{var n=mr(e,r)}catch(t){}if(n){if(pr(t.mode))for(var i in n.Na)throw new Or.Ia(55);br(n)}delete t.parent.Na[t.name],e.Na[r]=t,t.name=r,e.ctime=e.mtime=t.parent.ctime=t.parent.mtime=Date.now()},unlink(t,e){delete t.Na[e],t.ctime=t.mtime=Date.now()},rmdir(t,e){var r,n=mr(t,e);for(r in n.Na)throw new Or.Ia(55);delete t.Na[e],t.ctime=t.mtime=Date.now()},readdir:t=>[".","..",...Object.keys(t.Na)],symlink:(t,e,r)=>((t=ir.createNode(t,e,41471,0)).link=r,t),readlink(t){if(40960!=(61440&t.mode))throw new Or.Ia(28);return t.link}},Ma:{read(t,e,r,n,i){var a=t.node.Na;if(i>=t.node.Ya)return 0;if(8<(t=Math.min(t.node.Ya-i,n))&&a.subarray)e.set(a.subarray(i,i+t),r);else for(n=0;n<t;n++)e[r+n]=a[i+n];return t},write(t,e,r,n,i,a){if(e.buffer===w.buffer&&(a=!1),!n)return 0;if((t=t.node).mtime=t.ctime=Date.now(),e.subarray&&(!t.Na||t.Na.subarray)){if(a)return t.Na=e.subarray(r,r+n),t.Ya=n;if(0===t.Ya&&0===i)return t.Na=e.slice(r,r+n),t.Ya=n;if(i+n<=t.Ya)return t.Na.set(e.subarray(r,r+n),i),n}var o=t.Na?t.Na.length:0;if(o>=(a=i+n)||(a=Math.max(a,o*(1048576>o?2:1.125)>>>0),0!=o&&(a=Math.max(a,256)),o=t.Na,t.Na=new Uint8Array(a),0<t.Ya&&t.Na.set(o.subarray(0,t.Ya),0)),t.Na.subarray&&e.subarray)t.Na.set(e.subarray(r,r+n),i);else for(a=0;a<n;a++)t.Na[i+a]=e[r+a];return t.Ya=Math.max(t.Ya,i+n),n},lb(t,e,r){if(1===r?e+=t.position:2===r&&Or.isFile(t.node.mode)&&(e+=t.node.Ya),0>e)throw new Or.Ia(28);return e},Fb(t,e,r,n,i){if(!Or.isFile(t.node.mode))throw new Or.Ia(43);if(t=t.node.Na,2&i||!t||t.buffer!==w.buffer){if(n=!0,L(),!(i=void 0))throw new Or.Ia(48);t&&((0<r||r+e<t.length)&&(t=t.subarray?t.subarray(r,r+e):Array.prototype.slice.call(t,r,r+e)),w.set(t,i))}else n=!1,i=t.byteOffset;return{Va:i,Rc:n}},Kb:(t,e,r,n)=>(ir.Ma.write(t,e,0,n,r,!1),0)}},ar=(t,e)=>{var r=0;return t&&(r|=365),e&&(r|=146),r},or=0,sr=null,lr=()=>{if(or--,n.monitorRunDependencies?.(or),0==or&&sr){var t=sr;sr=null,t()}},cr=()=>{or++,n.monitorRunDependencies?.(or)},ur=[],hr=async(t,e,r,n,i,a,o,s)=>{var c=e?qe(Je(t+"/"+e)):t;cr();try{var u=r;"string"==typeof r&&(u=await(async t=>(t=await l(t),new Uint8Array(t)))(r)),u=await(async(t,e)=>{for(var r of("undefined"!=typeof Browser&&dr(),ur))if(r.canHandle(e))return r.handle(t,e);return t})(u,c),s?.(),a||vr(t,e,u,n,i,o)}finally{lr()}};function dr(){var t,e,r;Or.Vb=!0,t??=n.stdin,e??=n.stdout,r??=n.stderr,t?Or.yb("/dev","stdin",t):Or.symlink("/dev/tty","/dev/stdin"),e?Or.yb("/dev","stdout",null,e):Or.symlink("/dev/tty","/dev/stdout"),r?Or.yb("/dev","stderr",null,r):Or.symlink("/dev/tty1","/dev/stderr"),Or.open("/dev/stdin",0),Or.open("/dev/stdout",1),Or.open("/dev/stderr",1)}function fr(t,e){Or.ic[t]={Ma:e}}function pr(t){return 16384==(61440&t)}function mr(t,e){var r=pr(t.mode)?(r=Ar(t,"x"))?r:t.La.lookup?0:2:54;if(r)throw new Or.Ia(r);for(r=Or.wb[yr(t.id,e)];r;r=r.Db)if(r.parent.id===t.id&&r.name===e)return r;return Or.lookup(t,e)}function br(t){var e=yr(t.parent.id,t.name);if(Or.wb[e]===t)Or.wb[e]=t.Db;else for(e=Or.wb[e];e;){if(e.Db===t){e.Db=t.Db;break}e=e.Db}}function vr(t,e,r,n,i,a){var o=e;if(t&&(t="string"==typeof t?t:gr(t),o=e?Je(t+"/"+e):t),t=ar(n,i),o=Or.create(o,t),r){if("string"==typeof r){for(e=Array(r.length),n=0,i=r.length;n<i;++n)e[n]=r.charCodeAt(n);r=e}Or.chmod(o,146|t),e=Or.open(o,577),Or.write(e,r,0,r.length,0,a),Or.close(e),Or.chmod(o,t)}}function wr(t,e={}){if(!t)throw new Or.Ia(44);e.Nb??(e.Nb=!0),"/"===t.charAt(0)||(t=Or.cwd()+"/"+t);var r=0;t:for(;40>r;r++){t=t.split("/").filter(t=>!!t);for(var n=Or.root,i="/",a=0;a<t.length;a++){var o=a===t.length-1;if(o&&e.parent)break;if("."!==t[a])if(".."===t[a]){if(i=We(i),Or.Xb(n)){t=i+"/"+t.slice(a+1).join("/"),r--;continue t}n=n.parent}else{i=Je(i+"/"+t[a]);try{n=mr(n,t[a])}catch(t){if(44===t?.Bb&&o&&e.Jc)return{path:i};throw t}if(!n.rb||o&&!e.Nb||(n=n.rb.root),40960==(61440&n.mode)&&(!o||e.pb)){if(!n.La.readlink)throw new Or.Ia(52);"/"===(n=n.La.readlink(n)).charAt(0)||(n=We(i)+"/"+n),t=n+"/"+t.slice(a+1).join("/");continue t}}}return{path:i,node:n}}throw new Or.Ia(32)}function gr(t){for(var e;;){if(Or.Xb(t))return t=t.Wa.oc,e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t;e=e?`${t.name}/${e}`:t.name,t=t.parent}}function yr(t,e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n)|0;return(t+r>>>0)%Or.wb.length}function $r(t){var e=yr(t.parent.id,t.name);t.Db=Or.wb[e],Or.wb[e]=t}function _r(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e}function Ar(t,e){return Or.lc?0:!e.includes("r")||292&t.mode?e.includes("w")&&!(146&t.mode)||e.includes("x")&&!(73&t.mode)?2:0:2}function xr(t,e){if(!pr(t.mode))return 54;try{return mr(t,e),20}catch(t){}return Ar(t,"wx")}function Sr(t,e,r){try{var n=mr(t,e)}catch(t){return t.Bb}if(t=Ar(t,"wx"))return t;if(r){if(!pr(n.mode))return 54;if(Or.Xb(n)||gr(n)===Or.cwd())return 10}else if(pr(n.mode))return 31;return 0}function kr(t,e){if(!t)throw new Or.Ia(e);return t}function Er(t){if(!(t=Or.Fc(t)))throw new Or.Ia(8);return t}function Ir(t,e=-1){if(t=Object.assign(new Or.uc,t),-1==e)t:{for(e=0;e<=Or.vc;e++)if(!Or.streams[e])break t;throw new Or.Ia(33)}return t.fd=e,Or.streams[e]=t}function Cr(t,e,r){var n=t?.Ma.sb;t=n?t:e,n??=e.La.sb,kr(n,63),n(t,r)}function Tr(t){var e=[];for(t=[t];t.length;){var r=t.pop();e.push(r),t.push(...r.Jb)}return e}function Pr(t){var e={Uc:4096,gd:4096,blocks:1e6,Tc:5e5,Sc:5e5,files:Or.Zb,dd:Or.Zb-1,hd:42,flags:2,qd:255};return t.La.rc&&Object.assign(e,t.La.rc(t.Wa.Kc.root)),e}function Ur(t,e,r){return void 0===r&&(r=e,e=438),Or.vb(t,8192|e,r)}function Rr(t,e,r,n){Cr(t,e,{mode:4095&r|-4096&e.mode,ctime:Date.now(),jc:n})}function Mr(t,e,r){if(pr(e.mode))throw new Or.Ia(31);if(!Or.isFile(e.mode))throw new Or.Ia(28);var n=Ar(e,"w");if(n)throw new Or.Ia(n);Cr(t,e,{size:r,timestamp:Date.now()})}function Lr(t){if(!(t.Hc||t.Ic||t.link||t.Na))if(globalThis.XMLHttpRequest)L("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{t.Na=c(t.url)}catch(t){throw new Or.Ia(29)}}var Or={root:null,Jb:[],ic:{},streams:[],Zb:1,wb:null,fc:"/",Vb:!1,lc:!0,Bc:null,Qb:0,qc:{},Ia:class{name="ErrnoError";constructor(t){this.Bb=t}},uc:class{ub={};node=null;get object(){return this.node}set object(t){this.node=t}get flags(){return this.ub.flags}set flags(t){this.ub.flags=t}get position(){return this.ub.position}set position(t){this.ub.position=t}},tc:class{La={};Ma={};rb=null;constructor(t,e,r,n){t||=this,this.parent=t,this.Wa=t.Wa,this.id=Or.Zb++,this.name=e,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return!(365&~this.mode)}set read(t){t?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(t){t?this.mode|=146:this.mode&=-147}get Ic(){return pr(this.mode)}get Hc(){return 8192==(61440&this.mode)}},createNode:(t,e,r,n)=>($r(t=new Or.tc(t,e,r,n)),t),Xb:t=>t===t.parent,isFile:t=>32768==(61440&t),isFIFO:t=>4096==(61440&t),isSocket:t=>!(49152&~t),vc:4096,Fc:t=>Or.streams[t],cd:(t,e=-1)=>(t=Ir(t,e),t.Ma?.bd?.(t),t),xc:{open(t){t.Ma=Or.Dc(t.node.rdev).Ma,t.Ma.open?.(t)},lb(){throw new Or.Ia(70)}},Yb:t=>t>>8,od:t=>255&t,Cb:(t,e)=>t<<8|e,Dc:t=>Or.ic[t],sc(t,e){function r(t){return Or.Qb--,e(t)}function n(t){if(t){if(!n.Ac)return n.Ac=!0,r(t)}else++o>=a.length&&r(null)}"function"==typeof t&&(e=t,t=!1),Or.Qb++,1<Or.Qb&&T(`warning: ${Or.Qb} FS.syncfs operations in flight at once, probably just doing extra work`);var i,a=Tr(Or.root.Wa),o=0;for(i of a)i.type.sc?i.type.sc(i,t,n):n(null)},Wa(t,e,r){var n="/"===r;if(n&&Or.root)throw new Or.Ia(10);if(!n&&r){var i=wr(r,{Nb:!1});if(r=i.path,(i=i.node).rb)throw new Or.Ia(10);if(!pr(i.mode))throw new Or.Ia(54)}return(t=t.Wa(e={type:t,Kc:e,oc:r,Jb:[]})).Wa=e,e.root=t,n?Or.root=t:i&&(i.rb=e,i.Wa&&i.Wa.Jb.push(e)),t},xd(t){if(!(t=wr(t,{Nb:!1})).node.rb)throw new Or.Ia(28);var e=(t=t.node).rb,r=Tr(e);for([,i]of Object.entries(Or.wb))for(;i;){var n=i.Db;r.includes(i.Wa)&&br(i);var i=n}t.rb=null,t.Wa.Jb.splice(t.Wa.Jb.indexOf(e),1)},lookup:(t,e)=>t.La.lookup(t,e),vb(t,e,r){var n=wr(t,{parent:!0}).node;if(!(t=Ge(t)))throw new Or.Ia(28);if("."===t||".."===t)throw new Or.Ia(20);var i=xr(n,t);if(i)throw new Or.Ia(i);if(!n.La.vb)throw new Or.Ia(63);return n.La.vb(n,t,e,r)},rc:t=>Pr(wr(t,{pb:!0}).node),td:t=>Pr(t.node),create:(t,e=438)=>Or.vb(t,4095&e|32768,0),mkdir:(t,e=511)=>Or.vb(t,1023&e|16384,0),pd(t,e){var r,n=t.split("/"),i="";for(r of n)if(r){(i||"/"===t.charAt(0))&&(i+="/"),i+=r;try{Or.mkdir(i,e)}catch(t){if(20!=t.Bb)throw t}}},symlink(t,e){if(!qe(t))throw new Or.Ia(44);var r=wr(e,{parent:!0}).node;if(!r)throw new Or.Ia(44);var n=xr(r,e=Ge(e));if(n)throw new Or.Ia(n);if(!r.La.symlink)throw new Or.Ia(63);return r.La.symlink(r,e,t)},rename(t,e){var r=We(t),n=We(e),i=Ge(t),a=Ge(e),o=wr(t,{parent:!0}),s=o.node;if(o=(o=wr(e,{parent:!0})).node,!s||!o)throw new Or.Ia(44);if(s.Wa!==o.Wa)throw new Or.Ia(75);var l=mr(s,i);if("."!==(t=Xe(t,n)).charAt(0))throw new Or.Ia(28);if("."!==(t=Xe(e,r)).charAt(0))throw new Or.Ia(55);try{var c=mr(o,a)}catch(t){}if(l!==c){if(i=Sr(s,i,e=pr(l.mode)))throw new Or.Ia(i);if(i=c?Sr(o,a,e):xr(o,a))throw new Or.Ia(i);if(!s.La.rename)throw new Or.Ia(63);if(l.rb||c&&c.rb)throw new Or.Ia(10);if(o!==s&&(i=Ar(s,"w")))throw new Or.Ia(i);br(l);try{s.La.rename(l,o,a),l.parent=o}catch(t){throw t}finally{$r(l)}}},rmdir(t){var e=wr(t,{parent:!0}).node,r=mr(e,t=Ge(t)),n=Sr(e,t,!0);if(n)throw new Or.Ia(n);if(!e.La.rmdir)throw new Or.Ia(63);if(r.rb)throw new Or.Ia(10);e.La.rmdir(e,t),br(r)},readdir:t=>kr((t=wr(t,{pb:!0}).node).La.readdir,54)(t),unlink(t){var e=wr(t,{parent:!0}).node;if(!e)throw new Or.Ia(44);var r=mr(e,t=Ge(t)),n=Sr(e,t,!1);if(n)throw new Or.Ia(n);if(!e.La.unlink)throw new Or.Ia(63);if(r.rb)throw new Or.Ia(10);e.La.unlink(e,t),br(r)},readlink(t){if(!(t=wr(t).node))throw new Or.Ia(44);if(!t.La.readlink)throw new Or.Ia(28);return t.La.readlink(t)},stat:(t,e)=>kr((t=wr(t,{pb:!e}).node).La.qb,63)(t),fstat(t){var e=Er(t);t=e.node;var r=e.Ma.qb;return e=r?e:t,r??=t.La.qb,kr(r,63),r(e)},lstat:t=>Or.stat(t,!0),chmod(t,e,r){Rr(null,t="string"==typeof t?wr(t,{pb:!r}).node:t,e,r)},lchmod(t,e){Or.chmod(t,e,!0)},fchmod(t,e){Rr(t=Er(t),t.node,e,!1)},chown(t,e,r,n){Cr(null,t="string"==typeof t?wr(t,{pb:!n}).node:t,{timestamp:Date.now(),jc:n})},lchown(t,e,r){Or.chown(t,e,r,!0)},fchown(t){Cr(t=Er(t),t.node,{timestamp:Date.now(),jc:!1})},truncate(t,e){if(0>e)throw new Or.Ia(28);Mr(null,t="string"==typeof t?wr(t,{pb:!0}).node:t,e)},jd(t,e){if(t=Er(t),0>e||!(2097155&t.flags))throw new Or.Ia(28);Mr(t,t.node,e)},yd(t,e,r){kr((t=wr(t,{pb:!0}).node).La.sb,63)(t,{atime:e,mtime:r})},open(t,e,r=438){if(""===t)throw new Or.Ia(44);if("string"==typeof e){var i={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===i)throw Error(`Unknown file open mode: ${e}`);e=i}if(r=64&e?4095&r|32768:0,"object"==typeof t)i=t;else{var a=t.endsWith("/");i=(t=wr(t,{pb:!(131072&e),Jc:!0})).node,t=t.path}var o=!1;if(64&e)if(i){if(128&e)throw new Or.Ia(20)}else{if(a)throw new Or.Ia(31);i=Or.vb(t,511|r,0),o=!0}if(!i)throw new Or.Ia(44);if(8192==(61440&i.mode)&&(e&=-513),65536&e&&!pr(i.mode))throw new Or.Ia(54);if(!o&&(a=i?40960==(61440&i.mode)?32:pr(i.mode)&&("r"!==_r(e)||576&e)?31:Ar(i,_r(e)):44))throw new Or.Ia(a);return 512&e&&!o&&Or.truncate(i,0),e&=-131713,(a=Ir({node:i,path:gr(i),flags:e,seekable:!0,position:0,Ma:i.Ma,Qc:[],error:!1})).Ma.open&&a.Ma.open(a),o&&Or.chmod(i,511&r),!n.logReadFiles||1&e||t in Or.qc||(Or.qc[t]=1),a},close(t){if(null===t.fd)throw new Or.Ia(8);t.Ub&&(t.Ub=null);try{t.Ma.close&&t.Ma.close(t)}catch(t){throw t}finally{Or.streams[t.fd]=null}t.fd=null},lb(t,e,r){if(null===t.fd)throw new Or.Ia(8);if(!t.seekable||!t.Ma.lb)throw new Or.Ia(70);if(0!=r&&1!=r&&2!=r)throw new Or.Ia(28);return t.position=t.Ma.lb(t,e,r),t.Qc=[],t.position},read(t,e,r,n,i){if(0>n||0>i)throw new Or.Ia(28);if(null===t.fd)throw new Or.Ia(8);if(1==(2097155&t.flags))throw new Or.Ia(8);if(pr(t.node.mode))throw new Or.Ia(31);if(!t.Ma.read)throw new Or.Ia(28);var a=void 0!==i;if(a){if(!t.seekable)throw new Or.Ia(70)}else i=t.position;return e=t.Ma.read(t,e,r,n,i),a||(t.position+=e),e},write(t,e,r,n,i,a){if(0>n||0>i)throw new Or.Ia(28);if(null===t.fd)throw new Or.Ia(8);if(!(2097155&t.flags))throw new Or.Ia(8);if(pr(t.node.mode))throw new Or.Ia(31);if(!t.Ma.write)throw new Or.Ia(28);t.seekable&&1024&t.flags&&Or.lb(t,0,2);var o=void 0!==i;if(o){if(!t.seekable)throw new Or.Ia(70)}else i=t.position;return e=t.Ma.write(t,e,r,n,i,a),o||(t.position+=e),e},Fb(t,e,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&t.flags))throw new Or.Ia(2);if(1==(2097155&t.flags))throw new Or.Ia(2);if(!t.Ma.Fb)throw new Or.Ia(43);if(!e)throw new Or.Ia(28);return t.Ma.Fb(t,e,r,n,i)},Kb:(t,e,r,n,i)=>t.Ma.Kb?t.Ma.Kb(t,e,r,n,i):0,mc(t,e,r){if(!t.Ma.mc)throw new Or.Ia(59);return t.Ma.mc(t,e,r)},readFile(t,e={}){e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding&&L(`Invalid encoding type "${e.encoding}"`);var r=Or.open(t,e.flags);t=Or.stat(t).size;var n=new Uint8Array(t);return Or.read(r,n,0,t,0),"utf8"===e.encoding&&(n=Ye(n)),Or.close(r),n},writeFile(t,e,r={}){r.flags=r.flags||577,t=Or.open(t,r.flags,r.mode),"string"==typeof e&&(e=new Uint8Array(Qe(e))),ArrayBuffer.isView(e)?Or.write(t,e,0,e.byteLength,void 0,r.$c):L("Unsupported data type"),Or.close(t)},cwd:()=>Or.fc,chdir(t){if(null===(t=wr(t,{pb:!0})).node)throw new Or.Ia(44);if(!pr(t.node.mode))throw new Or.Ia(54);var e=Ar(t.node,"x");if(e)throw new Or.Ia(e);Or.fc=t.path},sd(){for(var t of(Or.Vb=!1,Or.streams))t&&Or.close(t)},ed(t,e){try{var r=wr(t,{pb:!e});t=r.path}catch(t){}var n=!1,i=null;try{r=wr(t,{parent:!0}),Ge(t),r=wr(t,{pb:!e}),n=!0,i=r.node}catch(t){}return n?i:null},yb(t,e,r,n){var i;return t=((t,e)=>Je(t+"/"+e))("string"==typeof t?t:gr(t),e),e=ar(!!r,!!n),(i=Or.yb).Yb??(i.Yb=64),fr(i=Or.Cb(Or.yb.Yb++,0),{open(t){t.seekable=!1},close(){n?.buffer?.length&&n(10)},read(t,e,n,i){for(var a=0,o=0;o<i;o++){try{var s=r()}catch(t){throw new Or.Ia(29)}if(void 0===s&&0===a)throw new Or.Ia(6);if(null==s)break;a++,e[n+o]=s}return a&&(t.node.atime=Date.now()),a},write(t,e,r,i){for(var a=0;a<i;a++)try{n(e[r+a])}catch(t){throw new Or.Ia(29)}return i&&(t.node.mtime=t.node.ctime=Date.now()),a}}),Ur(t,e,i)}},Nr=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0];if((()=>{let t=nt.prototype;Object.assign(t,{isAliasOf:function(t){if(!(this instanceof nt&&t instanceof nt))return!1;var e=this.Ja.Xa.Ua,r=this.Ja.Va;t.Ja=t.Ja;var n=t.Ja.Xa.Ua;for(t=t.Ja.Va;e.kb;)r=e.Mb(r),e=e.kb;for(;n.kb;)t=n.Mb(t),n=n.kb;return e===n&&r===t},clone:function(){if(this.Ja.Va||Z(this),this.Ja.Lb)return this.Ja.count.value+=1,this;var t=rt,e=Object,r=e.create,n=Object.getPrototypeOf(this),i=this.Ja;return(t=t(r.call(e,n,{Ja:{value:{count:i.count,Ib:i.Ib,Lb:i.Lb,Va:i.Va,Xa:i.Xa,ib:i.ib,mb:i.mb}}}))).Ja.count.value+=1,t.Ja.Ib=!1,t},delete(){if(this.Ja.Va||Z(this),this.Ja.Ib&&!this.Ja.Lb)throw new X("Object already scheduled for deletion");et(this);var t=this.Ja;--t.count.value,0===t.count.value&&(t.ib?t.mb.zb(t.ib):t.Xa.Ua.zb(t.Va)),this.Ja.Lb||(this.Ja.ib=void 0,this.Ja.Va=void 0)},isDeleted:function(){return!this.Ja.Va},deleteLater:function(){if(this.Ja.Va||Z(this),this.Ja.Ib&&!this.Ja.Lb)throw new X("Object already scheduled for deletion");return this.Ja.Ib=!0,this}});const e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(gt.prototype,{Ec(t){return this.pc&&(t=this.pc(t)),t},hc(t){this.zb?.(t)},xb:pt,jb:function(t){function e(){return wt(this.Ua.Eb,this.Pb?{Xa:this.Lc,Va:r,mb:this,ib:t}:{Xa:this,Va:t})}var r=this.Ec(t);if(!r)return this.hc(t),null;var n=((t,e)=>{if(void 0===e)throw new X("ptr should not be undefined");for(;t.kb;)e=t.Mb(e),t=t.kb;return bt[e]})(this.Ua,r);if(void 0!==n)return 0===n.Ja.count.value?(n.Ja.Va=r,n.Ja.ib=t,n.clone()):(n=n.clone(),this.hc(t),n);if(n=this.Ua.Cc(r),!(n=at[n]))return e.call(this);var i=mt(r,this.Ua,(n=this.Ob?n.yc:n.pointerType).Ua);return null===i?e.call(this):wt(n.Ua.Eb,this.Pb?{Xa:n,Va:i,mb:this,ib:t}:{Xa:n,Va:i})}}),Or.ad=(t,e,r,n,i,a,o,s,l,c)=>{hr(t,e,r,n,i,s,l,c).then(a).catch(o)},Or.rd=hr,Or.wb=Array(4096),Or.Wa(ir,{},"/"),Or.mkdir("/tmp"),Or.mkdir("/home"),Or.mkdir("/home/web_user"),function(){Or.mkdir("/dev"),fr(Or.Cb(1,3),{read:()=>0,write:(t,e,r,n)=>n,lb:()=>0}),Ur("/dev/null",Or.Cb(1,3)),tr(Or.Cb(5,0),rr),tr(Or.Cb(6,0),nr),Ur("/dev/tty",Or.Cb(5,0)),Ur("/dev/tty1",Or.Cb(6,0));var t=new Uint8Array(1024),e=0,r=()=>(0===e&&(He(t),e=t.byteLength),t[--e]);Or.yb("/dev","random",r),Or.yb("/dev","urandom",r),Or.mkdir("/dev/shm"),Or.mkdir("/dev/shm/tmp")}(),function(){Or.mkdir("/proc");var t=Or.mkdir("/proc/self");Or.mkdir("/proc/self/fd"),Or.Wa({Wa(){var e=Or.createNode(t,"fd",16895,73);return e.Ma={lb:ir.Ma.lb},e.La={lookup(t,e){var r=Er(t=+e);return(t={parent:null,Wa:{oc:"fake"},La:{readlink:()=>r.path},id:t+1}).parent=t},readdir:()=>Array.from(Or.streams.entries()).filter(([,t])=>t).map(([t])=>t.toString())},e}},{},"/proc/self/fd")}(),Or.Bc={MEMFS:ir},n.noExitRuntime&&(D=n.noExitRuntime),n.preloadPlugins&&(ur=n.preloadPlugins),n.print&&(C=n.print),n.printErr&&(T=n.printErr),n.wasmBinary&&(p=n.wasmBinary),n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.shift()();n.addRunDependency=cr,n.removeRunDependency=lr,n.FS_preloadFile=hr,n.FS_unlink=(...t)=>Or.unlink(...t),n.FS_createPath=(...t)=>function(t,e){for(t="string"==typeof t?t:gr(t),e=e.split("/").reverse();e.length;){var r=e.pop();if(r){var n=Je(t+"/"+r);try{Or.mkdir(n)}catch(t){if(20!=t.Bb)throw t}t=n}}return n}(...t),n.FS_createDevice=(...t)=>Or.yb(...t),n.FS=Or,n.FS_createDataFile=(...t)=>vr(...t),n.FS_createLazyFile=(...t)=>function(t,e,r,n,i){class o{Sb=!1;ub=[];Rb=void 0;bc=0;ac=0;get(t){if(!(t>this.length-1||0>t)){var e=t%this.chunkSize;return this.Rb(t/this.chunkSize|0)[e]}}wc(t){this.Rb=t}cc(){var t=new XMLHttpRequest;t.open("HEAD",r,!1),t.send(null),200<=t.status&&300>t.status||304===t.status||L("Couldn't load "+r+". Status: "+t.status);var e,n=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e;t=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e;var a=1048576;i||(a=n);var o=this;o.wc(t=>{var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,n-1),void 0===o.ub[t]){var s=o.ub;e>i&&L("invalid range ("+e+", "+i+") or no bytes requested!"),i>n-1&&L("only "+n+" bytes available! programmer error!");var l=new XMLHttpRequest;l.open("GET",r,!1),n!==a&&l.setRequestHeader("Range","bytes="+e+"-"+i),l.responseType="arraybuffer",l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined"),l.send(null),200<=l.status&&300>l.status||304===l.status||L("Couldn't load "+r+". Status: "+l.status),e=void 0!==l.response?new Uint8Array(l.response||[]):Qe(l.responseText||""),s[t]=e}return void 0===o.ub[t]&&L("doXHR failed!"),o.ub[t]}),!t&&n||(a=n=1,a=n=this.Rb(0).length,C("LazyFiles on gzip forces download of the whole file when length is accessed")),this.bc=n,this.ac=a,this.Sb=!0}get length(){return this.Sb||this.cc(),this.bc}get chunkSize(){return this.Sb||this.cc(),this.ac}}if(globalThis.XMLHttpRequest){a||L("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var s=new o,l=void 0}else l=r,s=void 0;var c=function(t,e,r,n){return t="string"==typeof t?t:gr(t),e=Je(t+"/"+e),Or.create(e,ar(r,n))}(t,e,n,i);s?c.Na=s:l&&(c.Na=null,c.url=l),Object.defineProperties(c,{Ya:{get:function(){return this.Na.length}}}),t={};for(const[e,r]of Object.entries(c.Ma))t[e]=(...t)=>(Lr(c),r(...t));return t.read=(t,e,r,n,i)=>{if(Lr(c),i>=(t=t.node.Na).length)e=0;else{if(n=Math.min(t.length-i,n),t.slice)for(var a=0;a<n;a++)e[r+a]=t[i+a];else for(a=0;a<n;a++)e[r+a]=t.get(i+a);e=n}return e},t.Fb=()=>{throw Lr(c),L(),new Or.Ia(48)},c.Ma=t,c}(...t);var Fr,Vr,jr,Dr,Br,zr,Jr,Wr,Gr,Hr,qr,Xr,Yr,Kr,Qr,Zr,tn,en,rn,nn,an,on,sn,ln,cn,un,hn={a:(t,e,r,n)=>L(`Assertion failed: ${J(t)}, at: `+[e?J(e):"unknown filename",r,n?J(n):"unknown function"]),Z:()=>L(""),O:(t,e,r,n,i)=>{e=W(e);let a=t=>t;if(n=0n===n){const t=8*r;a=e=>BigInt.asUintN(t,e),i=a(i)}K(t,{name:e,jb:a,nb:(t,e)=>("number"==typeof e&&(e=BigInt(e)),e),xb:Q(e,r,!n),ob:null})},va:(t,e,r,n)=>{K(t,{name:e=W(e),jb:function(t){return!!t},nb:function(t,e){return e?r:n},xb:function(t){return this.jb(g[t])},ob:null})},sa:(t,e,r,n,i,a,o,s,l,c,u,h,d)=>{u=W(u),a=_t(i,a),s&&=_t(o,s),c&&=_t(l,c),d=_t(h,d);var f=(t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t})(u);st(f,function(){St(`Cannot construct ${u} due to unbound types`,[n])}),kt([t,e,r],n?[n]:[],e=>{if(e=e[0],n)var r=e.Ua,i=r.Eb;else i=nt.prototype;e=it(u,function(...t){if(Object.getPrototypeOf(this)!==o)throw new X(`Use 'new' to construct ${u}`);if(void 0===h.Ab)throw new X(`${u} has no accessible constructor`);var e=h.Ab[t.length];if(void 0===e)throw new X(`Tried to invoke ctor of ${u} with invalid number of parameters (${t.length}) - expected (${Object.keys(h.Ab).toString()}) parameters instead!`);return e.apply(this,t)});var o=Object.create(i,{constructor:{value:e}});e.prototype=o;var l,h=new lt(u,e,o,d,r,a,s,c);return h.kb&&((l=h.kb).dc??(l.dc=[]),h.kb.dc.push(h)),r=new gt(u,h,!0,!1,!1),l=new gt(u+"*",h,!1,!1,!1),i=new gt(u+" const*",h,!1,!0,!1),at[t]={pointerType:l,yc:i},$t(f,e),[r,l,i]})},ja:(t,e,r,n,i,a)=>{var o=Et(e,r);i=_t(n,i),kt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.Ua.Ab&&(t.Ua.Ab=[]),void 0!==t.Ua.Ab[e-1])throw new X(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.Ua.Ab[e-1]=()=>{St(`Cannot construct ${t.name} due to unbound types`,o)},kt([],o,n=>(n.splice(1,0,null),t.Ua.Ab[e-1]=Tt(r,n,null,i,a),[])),[]})},n:(t,e,r,n,i,a,o,s,l)=>{var c=Et(r,n);e=W(e),e=Pt(e),a=_t(i,a),kt([],[t],t=>{function n(){St(`Cannot call ${i} due to unbound types`,c)}var i=`${(t=t[0]).name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.Ua.Mc.push(e);var u=t.Ua.Eb,h=u[e];return void 0===h||void 0===h.hb&&h.className!==t.name&&h.Hb===r-2?(n.Hb=r-2,n.className=t.name,u[e]=n):(ot(u,e,i),u[e].hb[r-2]=n),kt([],c,n=>(n=Tt(i,n,t,a,o,l),void 0===u[e].hb?(n.Hb=r-2,u[e]=n):u[e].hb[r-2]=n,[])),[]})},ta:t=>K(t,Nt),N:(t,e,r)=>{K(t,{name:e=W(e),jb:t=>t,nb:(t,e)=>e,xb:Ft(e,r),ob:null})},P:(t,e,r,n,i,a,o)=>{var s=Et(e,r);t=W(t),t=Pt(t),i=_t(n,i),st(t,function(){St(`Cannot call ${t} due to unbound types`,s)},e-1),kt([],s,r=>(r=[r[0],null].concat(r.slice(1)),$t(t,Tt(t,r,null,i,a,o),e-1),[]))},q:(t,e,r,n,i)=>{e=W(e);let a=t=>t;if(0===n){var o=32-8*r;a=t=>t<<o>>>o,i=a(i)}K(t,{name:e,jb:a,nb:(t,e)=>e,xb:Q(e,r,0!==n),ob:null})},m:(t,e,r)=>{function n(t){return new i(w.buffer,A[t+4>>2],A[t>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];K(t,{name:r=W(r),jb:n,xb:n},{Gc:!0})},ua:(t,e)=>{K(t,{name:e=W(e),jb(t){var e=J(t+4,A[t>>2],!0);return Fr(t),e},nb(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r="string"==typeof e;if(!(r||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT))throw new X("Cannot pass non-string to std::string");var n=r?jt(e):e.length,i=Vr(4+n+1),a=i+4;return A[i>>2]=n,r?Vt(e,g,a,n+1):g.set(e,a),null!==t&&t.push(Fr,i),i},xb:pt,ob(t){Fr(t)}})},D:(t,e,r)=>{if(r=W(r),2===e)var n=Bt,i=zt,a=Jt;else n=Wt,i=Gt,a=Ht;K(t,{name:r,jb:t=>{var r=n(t+4,A[t>>2]*e,!0);return Fr(t),r},nb:(t,n)=>{if("string"!=typeof n)throw new X(`Cannot pass non-string to C++ string type ${r}`);var o=a(n),s=Vr(4+o+e);return A[s>>2]=o/e,i(n,s+4,o+e),null!==t&&t.push(Fr,s),s},xb:pt,ob(t){Fr(t)}})},E:t=>{K(t,Nt)},wa:(t,e)=>{K(t,{nc:!0,name:e=W(e),jb:()=>{},nb:()=>{}})},T:()=>{D=!1,qt=0},R:()=>{throw 1/0},s:(t,e,r)=>{var[n,...i]=((t,e)=>{for(var r=Array(t),n=0;n<t;++n){var i=n,a=A[e+4*n>>2],o=H[a];if(void 0===o)throw t=`parameter ${n} has unknown type ${xt(a)}`,new X(t);r[i]=o}return r})(t,e);e=n.nb.bind(n);var a=i.map(t=>t.xb.bind(t));t--;var o={toValue:Lt};switch(t=a.map((t,e)=>{var r=`argFromPtr${e}`;return o[r]=t,`${r}(args${e?"+"+8*e:""})`}),r){case 0:var s="toValue(handle)";break;case 2:s="new (toValue(handle))";break;case 3:s="";break;case 1:o.getStringOrSymbol=Qt,s="toValue(handle)[getStringOrSymbol(methodName)]"}return s+=`(${t})`,n.nc||(o.toReturnWire=e,o.emval_returnValue=Yt,s=`return emval_returnValue(toReturnWire, destructorsRef, ${s})`),s=`return function (handle, methodName, destructorsRef, args) {\n ${s}\n }`,r=new Function(Object.keys(o),s)(...Object.values(o)),s=`methodCaller<(${i.map(t=>t.name)}) => ${n.name}>`,(t=>{var e=Xt.length;return Xt.push(t),e})(it(s,r))},qa:Mt,xa:t=>t?(t=Qt(t),Ot(globalThis[t])):Ot(globalThis),v:(t,e)=>(t=Lt(t),e=Lt(e),Ot(t[e])),F:t=>{9<t&&(Rt[t+1]+=1)},r:(t,e,r,n,i)=>Xt[t](e,r,n,i),ya:t=>Ot(Qt(t)),Q:t=>{var e=Lt(t);It(e),Mt(t)},U:(t,e)=>{if(Zt[t]&&(clearTimeout(Zt[t].id),delete Zt[t]),!e)return 0;var r=setTimeout(()=>{delete Zt[t],ee(()=>rn(t,performance.now()))},e);return Zt[t]={id:r,vd:e},0},V:t=>{var e=g.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);t:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(t,n)/65536))-ln.buffer.byteLength+65535)/65536|0;try{ln.grow(n),M();var i=1;break t}catch(t){}i=void 0}if(i)return!0}return!1},ba:function(t,e,r,n,i,a){e=Be(e),r=Be(r),t=ae(t);var o={};if(a){var s=A[a+12>>2];if(s){var l=A[a+16>>2];o.requiredFeatures=Array.from(A.subarray(l>>2,l+4*s>>2),t=>ye[t])}var c=A[a+20>>2];if(c){var u={};function h(t,e,r=!1){4294967295==(e=A[c+e>>2])||r&&0==e||(u[t]=e)}function d(t,e){4294967295==A[(e=c+e)>>2]&&4294967295==A[e+4>>2]||(u[t]=4294967296*A[e+4>>2]+A[e>>2])}h("maxTextureDimension1D",4),h("maxTextureDimension2D",8),h("maxTextureDimension3D",12),h("maxTextureArrayLayers",16),h("maxBindGroups",20),h("maxBindGroupsPlusVertexBuffers",24),h("maxDynamicUniformBuffersPerPipelineLayout",32),h("maxDynamicStorageBuffersPerPipelineLayout",36),h("maxSampledTexturesPerShaderStage",40),h("maxSamplersPerShaderStage",44),h("maxStorageBuffersPerShaderStage",48),h("maxStorageTexturesPerShaderStage",52),h("maxUniformBuffersPerShaderStage",56),h("minUniformBufferOffsetAlignment",80),h("minStorageBufferOffsetAlignment",84),d("maxUniformBufferBindingSize",64),d("maxStorageBufferBindingSize",72),h("maxVertexBuffers",88),d("maxBufferSize",96),h("maxVertexAttributes",104),h("maxVertexBufferArrayStride",108),h("maxInterStageShaderVariables",112),h("maxColorAttachments",116),h("maxColorAttachmentBytesPerSample",120),h("maxComputeWorkgroupStorageSize",124),h("maxComputeInvocationsPerWorkgroup",128),h("maxComputeWorkgroupSizeX",132),h("maxComputeWorkgroupSizeY",136),h("maxComputeWorkgroupSizeZ",140),h("maxComputeWorkgroupsPerDimension",144),h("maxImmediateSize",148,!0),o.requiredLimits=u}(s=A[a+24>>2])&&(s={label:se(s+4)},o.defaultQueue=s),o.label=se(a+4)}t.requestDevice(o).then(t=>{ee(()=>{ne[i>>>0]=t.queue,ne[n>>>0]=t,t.lost.then(e=>{ee(()=>{t.onuncapturederror=()=>{};var n=sn(),i=re(e.message);Qr(r,De[e.reason],i),an(n)})}),t.onuncapturederror=t=>{var e=5;t.error instanceof GPUValidationError?e=2:t.error instanceof GPUOutOfMemoryError?e=3:t.error instanceof GPUInternalError&&(e=4);var r=sn();t=re(t.error.message),en(n,e,t),an(r)},tn(e,1,n,0)})},t=>{ee(()=>{var i=sn(),a=re(t.message);tn(e,3,n,a),r&&Qr(r,4,a),an(i)})})},da:t=>{var e=ae(t),r=ie[t];if(r){for(var n=0;n<r.length;++n)r[n]();delete ie[t]}e.destroy()},g:t=>{delete ne[t]},aa:(t,e,r)=>{var n=!!A[e+32>>2];e={label:se(e+4),usage:A[e+16>>2],size:4294967296*A[e+4+24>>2]+A[e+24>>2],mappedAtCreation:n},t=ae(t);try{var i=t.createBuffer(e)}catch(t){return!1}return ne[r>>>0]=i,n&&(ie[r]=[]),!0},$:(t,e,r)=>{var n=A[e>>2],i=A[n+4>>2];e={label:se(e+4),code:""},2===i&&(e.code=oe(n+8)),t=ae(t).createShaderModule(e),ne[r>>>0]=t},ca:t=>{(t=ae(t)).onuncapturederror=null,t.destroy()},_:function(t,e,r,n){if(e=Be(e),r){var i={featureLevel:ge[A[r+4>>2]],powerPreference:ke[A[r+8>>2]],forceFallbackAdapter:!!A[r+12>>2]};0!==(t=A[r>>2])&&(i.zd=!!A[t+8>>2])}"gpu"in navigator?navigator.gpu.requestAdapter(i).then(t=>{ee(()=>{if(t)ne[n>>>0]=t,Zr(e,1,n,0);else{var r=sn(),i=re("WebGPU not available on this browser (requestAdapter returned null)");Zr(e,3,n,i),an(r)}})},t=>{ee(()=>{var r=sn(),i=re(t.message);Zr(e,4,n,i),an(r)})}):(i=sn(),t=re("WebGPU not available on this browser (navigator.gpu is not available)"),Zr(e,3,n,t),an(i))},X:function(t){try{var e=Er(t);return Or.close(e),0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},W:function(t,e,r,n){e=Be(e);try{if(isNaN(e))return 61;var i=Er(t);return Or.lb(i,e,r),k[n>>3]=BigInt(i.position),i.Ub&&0===e&&0===r&&(i.Ub=null),0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},Y:function(t,e,r,n){try{t:{var i=Er(t);t=e;for(var a,o=e=0;o<r;o++){var s=A[t>>2],l=A[t+4>>2];t+=8;var c=Or.write(i,w,s,l,a);if(0>c){var u=-1;break t}if(e+=c,c<l)break;void 0!==a&&(a+=c)}u=e}return A[n>>2]=u,0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},o:function(t,e){var r=sn();try{return cn.get(t)(e)}catch(t){if(an(r),t!==t+0)throw t;nn(1,0)}},i:function(t,e,r){var n=sn();try{return cn.get(t)(e,r)}catch(t){if(an(n),t!==t+0)throw t;nn(1,0)}},f:function(t,e,r,n){var i=sn();try{return cn.get(t)(e,r,n)}catch(t){if(an(i),t!==t+0)throw t;nn(1,0)}},H:function(t,e,r,n,i,a){var o=sn();try{return cn.get(t)(e,r,n,i,a)}catch(t){if(an(o),t!==t+0)throw t;nn(1,0)}},G:function(t){var e=sn();try{cn.get(t)()}catch(t){if(an(e),t!==t+0)throw t;nn(1,0)}},b:function(t,e){var r=sn();try{cn.get(t)(e)}catch(t){if(an(r),t!==t+0)throw t;nn(1,0)}},c:function(t,e,r){var n=sn();try{cn.get(t)(e,r)}catch(t){if(an(n),t!==t+0)throw t;nn(1,0)}},l:function(t,e,r,n){var i=sn();try{cn.get(t)(e,r,n)}catch(t){if(an(i),t!==t+0)throw t;nn(1,0)}},t:function(t,e,r,n,i){var a=sn();try{cn.get(t)(e,r,n,i)}catch(t){if(an(a),t!==t+0)throw t;nn(1,0)}},S:te,y:function(t){return BigInt(ae(t).size)},B:(t,e)=>{var r=A[e>>2],n=void 0;0!==r&&(n=4294967296*A[r+12>>2]+A[r+8>>2]),r=se(e+4);for(var i=A[e+12>>2],a=A[e+16>>2],o=[],s=0;s<i;++s){var l=o,c=l.push,u=a+56*s,h=A[u+4>>2];if(0!==h){var d=_[u+8>>2];-1==d&&(d=void 0);var f=u+24;u={view:ae(h),depthSlice:d,resolveTarget:ae(A[u+12>>2]),clearValue:{r:S[f>>3],g:S[f+8>>3],b:S[f+16>>3],a:S[f+24>>3]},loadOp:xe[A[u+16>>2]],storeOp:Ue[A[u+20>>2]]}}else u=void 0;c.call(l,u)}return i=0!==(i=A[e+20>>2])?{view:ae(A[i+4>>2]),depthClearValue:x[i+16>>2],depthLoadOp:xe[A[i+8>>2]],depthStoreOp:Ue[A[i+12>>2]],depthReadOnly:!!A[i+20>>2],stencilClearValue:A[i+32>>2],stencilLoadOp:xe[A[i+24>>2]],stencilStoreOp:Ue[A[i+28>>2]],stencilReadOnly:!!A[i+36>>2]}:void 0,a=0!==(a=A[e+28>>2])?{querySet:ae(A[a+4>>2]),beginningOfPassWriteIndex:A[a+8>>2],endOfPassWriteIndex:A[a+12>>2]}:void 0,e={label:r,colorAttachments:o,depthStencilAttachment:i,occlusionQuerySet:ae(A[e+24>>2]),timestampWrites:a,maxDrawCount:n},n=ae(t),t=Gr(0),e=n.beginRenderPass(e),ne[t>>>0]=e,t},ia:(t,e,r,n)=>{ae(t).copyTextureToTexture(ce(e),ce(r),le(n))},la:t=>{var e=ae(t);return t=zr(0),e=e.finish(),ne[t>>>0]=e,t},x:(t,e)=>{var r=se(e+4),n=ae(A[e+12>>2]),i=A[e+16>>2];e=A[e+20>>2];for(var a=[],o=0;o<i;++o){var s=a,l=s.push,c=e+40*o,u=A[c+8>>2],h=A[c+32>>2],d=A[c+36>>2],f=A[c+4>>2];u?(-1==(h=A[(h=c+24)>>2]+4294967296*_[h+4>>2])&&(h=void 0),c={binding:f,resource:{buffer:ae(u),offset:4294967296*A[c+4+16>>2]+A[c+16>>2],size:h}}):c=h?{binding:f,resource:ae(h)}:{binding:f,resource:ae(d)},l.call(s,c)}return r={label:r,layout:n,entries:a},n=ae(t),t=Dr(0),r=n.createBindGroup(r),ne[t>>>0]=r,t},p:(t,e)=>{var r=se(e+4),n=A[e+12>>2];e=A[e+16>>2];for(var i=[],a=0;a<n;++a){var o=e+88*a,s=A[o+4>>2],l=A[o+8>>2],c=o+24,u=A[c+4>>2];c=u?{type:me[u],hasDynamicOffset:!!A[c+8>>2],minBindingSize:4294967296*A[c+4+16>>2]+A[c+16>>2]}:void 0,u=(u=A[o+48+4>>2])?{type:Ce[u]}:void 0;var h=o+56,d=A[h+4>>2];h=d?{sampleType:Oe[d],viewDimension:Ne[A[h+8>>2]],multisampled:!!A[h+12>>2]}:void 0,o=(d=A[(o+=72)+4>>2])?{access:Pe[d],format:Le[A[o+8>>2]],viewDimension:Ne[A[o+12>>2]]}:void 0,i.push.call(i,{binding:s,visibility:l,buffer:c,sampler:u,texture:h,storageTexture:o})}return r={label:r,entries:i},n=ae(t),t=Br(0),r=n.createBindGroupLayout(r),ne[t>>>0]=r,t},ma:(t,e)=>{var r;return e&&(r={label:se(e+4)}),e=ae(t),t=Jr(0),r=e.createCommandEncoder(r),ne[t>>>0]=r,t},ka:(t,e)=>{for(var r=A[e+12>>2],n=A[e+16>>2],i=[],a=0;a<r;++a)i.push(ae(A[n+4*a>>2]));return e={label:se(e+4),bindGroupLayouts:i},r=ae(t),t=Wr(0),e=r.createPipelineLayout(e),ne[t>>>0]=e,t},j:(t,e)=>{e=(t=>{function e(t){if(t)return{operation:pe[A[t>>2]],srcFactor:fe[A[t+4>>2]],dstFactor:fe[A[t+8>>2]]}}function r(t){return{compare:be[A[t>>2]],failOp:Te[A[t+4>>2]],depthFailOp:Te[A[t+8>>2]],passOp:Te[A[t+12>>2]]}}return{label:se(t+4),layout:he(A[t+12>>2]),vertex:function(t){if(t){var e=ae(A[t+4>>2]),r=ue(A[t+16>>2],A[t+20>>2]),n=A[t+24>>2],i=A[t+28>>2];if(n){for(var a=[],o=0;o<n;++o){var s=a,l=s.push,c=i+24*o;if(c){var u=A[c+4>>2],h=A[c+16>>2];if(0===u&&0===h)var d=null;else{d=4294967296*A[c+4+8>>2]+A[c+8>>2],u=je[u],c=A[c+20>>2];for(var f=[],p=0;p<h;++p){var m=c+24*p;f.push.call(f,{format:Ve[A[m+4>>2]],offset:4294967296*A[m+4+8>>2]+A[m+8>>2],shaderLocation:A[m+16>>2]})}d={arrayStride:d,stepMode:u,attributes:f}}}else d=void 0;l.call(s,d)}n=a}else n=void 0;return{module:e,constants:r,buffers:n,entryPoint:se(t+8)}}}(t+16),primitive:function(t){if(t)return{topology:Ie[A[t+4>>2]],stripIndexFormat:Ae[A[t+8>>2]],frontFace:_e[A[t+12>>2]],cullMode:we[A[t+16>>2]],unclippedDepth:!!A[t+20>>2]}}(t+48),depthStencil:function(t){if(t)return{format:Le[A[t+4>>2]],depthWriteEnabled:!!A[t+8>>2],depthCompare:be[A[t+12>>2]],stencilFront:r(t+16),stencilBack:r(t+32),stencilReadMask:A[t+48>>2],stencilWriteMask:A[t+52>>2],depthBias:_[t+56>>2],depthBiasSlopeScale:x[t+60>>2],depthBiasClamp:x[t+64>>2]}}(A[t+72>>2]),multisample:function(t){if(t)return{count:A[t+4>>2],mask:A[t+8>>2],alphaToCoverageEnabled:!!A[t+12>>2]}}(t+76),fragment:function(t){if(t){for(var r=ae(A[t+4>>2]),n=ue(A[t+16>>2],A[t+20>>2]),i=A[t+24>>2],a=A[t+28>>2],o=[],s=0;s<i;++s){var l=o,c=l.push,u=a+24*s,h=A[u+4>>2];if(0===h)u=void 0;else{h=Le[h];var d=(d=A[u+8>>2])?{alpha:e(d+12),color:e(d+0)}:void 0;u={format:h,blend:d,writeMask:A[u+16>>2]}}c.call(l,u)}return{module:r,constants:n,targets:o,entryPoint:se(t+8)}}}(A[t+92>>2])}})(e);var r=ae(t);return t=Hr(0),e=r.createRenderPipeline(e),ne[t>>>0]=e,t},ra:(t,e)=>{var r;return e&&(r={label:se(e+4),addressModeU:de[A[e+12>>2]],addressModeV:de[A[e+16>>2]],addressModeW:de[A[e+20>>2]],magFilter:$e[A[e+24>>2]],minFilter:$e[A[e+28>>2]],mipmapFilter:Se[A[e+32>>2]],lodMinClamp:x[e+36>>2],lodMaxClamp:x[e+40>>2],compare:be[A[e+44>>2]],maxAnisotropy:$[e+48>>1]}),e=ae(t),t=qr(0),r=e.createSampler(r),ne[t>>>0]=r,t},C:(t,e)=>{var r={label:se(e+4),size:le(e+28),mipLevelCount:A[e+44>>2],sampleCount:A[e+48>>2],dimension:Me[A[e+24>>2]],format:Le[A[e+40>>2]],usage:A[e+16>>2]},n=A[e+52>>2];return n&&(e=A[e+56>>2],r.viewFormats=Array.from(_.subarray(e>>2,e+4*n>>2),t=>Le[t])),t=ae(t),((t,e)=>{ne[t>>>0]=e})(n=Yr(0),t.createTexture(r)),n},ha:(t,e)=>(t=2<(t=A[A[e>>2]+8>>2])?J(t):t,(t=(Nr[t]||("undefined"!=typeof document?document.querySelector(t):null)).getContext("webgpu"))?(t.ud=se(e+4),e=Xr(0),ne[e>>>0]=t,e):0),J:(t,e,r)=>{t=ae(t),e=Array.from(_.subarray(r>>2,r+4*e>>2),t=>ae(t)),t.submit(e)},u:function(t,e,r,n,i){r=Be(r),ae(t).writeBuffer(ae(e),r,g.subarray(n,n+i),0,i)},K:(t,e,r,n,i,a)=>{var o=A[i+8>>2],s=A[i+12>>2];ae(t).writeTexture(ce(e),g.subarray(r,r+n),{offset:4294967296*A[i+4>>2]+A[i>>2],bytesPerRow:4294967295===o?void 0:o,rowsPerImage:4294967295===s?void 0:s},le(a))},z:(t,e,r,n,i,a)=>{ae(t).drawIndexed(e,r,n>>>0,i,a>>>0)},I:t=>{ae(t).end()},d:(t,e,r,n,i)=>{t=ae(t),r=ae(r),0==n?t.setBindGroup(e,r):t.setBindGroup(e,r,A,i>>2,n)},A:function(t,e,r,n,i){n=Be(n),i=Be(i),t=ae(t),e=ae(e),-1==i&&(i=void 0),t.setIndexBuffer(e,Ae[r],n,i)},e:(t,e)=>{ae(t).setPipeline(ae(e))},k:(t,e,r,n,i)=>{ae(t).setScissorRect(e,r,n,i)},h:(t,e)=>{ae(t).setStencilReference(e>>>0)},w:function(t,e,r,n,i){n=Be(n),i=Be(i),t=ae(t),r=ae(r),-1==i&&(i=void 0),t.setVertexBuffer(e,r,n,i)},fa:(t,e)=>{var r=A[e+4>>2];t=ae(t);var n=[A[e+24>>2],A[e+28>>2]];if(0!==n[0]&&(t.canvas.width=n[0]),0!==n[1]&&(t.canvas.height=n[1]),r={device:ae(r),format:Le[A[e+8>>2]],usage:A[e+16>>2],alphaMode:ve[A[e+40>>2]]},n=A[e+32>>2]){var i=A[e+36>>2];r.viewFormats=Array.from(_.subarray(i>>2,i+4*n>>2),t=>Le[t])}0!==(e=A[e>>2])&&(r.colorSpace=Ee[A[e+8>>2]],r.wd={mode:Fe[A[e+12>>2]]}),t.configure(r)},ea:(t,e)=>{t=ae(t);try{var r=Yr(0),n=t.getCurrentTexture();ne[r>>>0]=n,A[e+4>>2]=r,_[e+8>>2]=1}catch(t){A[e+4>>2]=0,_[e+8>>2]=6}},ga:t=>{ae(t).unconfigure()},oa:(t,e)=>{if(e){var r=A[e+24>>2],n=A[e+32>>2];r={label:se(e+4),format:Le[A[e+12>>2]],dimension:Ne[A[e+16>>2]],baseMipLevel:A[e+20>>2],mipLevelCount:4294967295===r?void 0:r,baseArrayLayer:A[e+28>>2],arrayLayerCount:4294967295===n?void 0:n,aspect:Re[A[e+36>>2]]}}return e=ae(t),t=Kr(0),e=e.createView(r),ne[t>>>0]=e,t},na:t=>{ae(t).destroy()},pa:t=>Le.indexOf(ae(t).format),L:t=>ae(t).height,M:t=>ae(t).width};return un=await async function(){function t(t){return t=un=t.exports,Fr=t.Ba,Vr=t.Ca,jr=t.Da,Dr=t.Ea,Br=t.Fa,zr=t.Ga,Jr=t.Ha,Wr=t.Ka,Gr=t.Oa,Hr=t.Pa,qr=t.Qa,Xr=t.Ra,Yr=t.Sa,Kr=t.Ta,Qr=t.Za,Zr=t._a,tn=t.$a,en=t.ab,rn=t.cb,nn=t.db,an=t.eb,on=t.fb,sn=t.gb,ln=t.za,cn=t.bb,M(),un}var r={a:hn};return n.instantiateWasm?new Promise(e=>{n.instantiateWasm(r,(r,n)=>{e(t(r))})}):(I??=n.locateFile?n.locateFile?n.locateFile("thorvg.wasm",d):d+"thorvg.wasm":new URL("thorvg.wasm","undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href).href,t((await async function(t){var e=I;if(!p&&!U(e)&&!o)try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,t)}catch(t){T(`wasm streaming compile failed: ${t}`),T("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var r=await async function(t){if(!p)try{var e=await l(t);return new Uint8Array(e)}catch{}if(t==I&&p)t=new Uint8Array(p);else{if(!c)throw"both async and sync fetching of the wasm failed";t=c(t)}return t}(t);return await WebAssembly.instantiate(r,e)}catch(t){T(`failed to asynchronously prepare wasm: ${t}`),L(t)}}(e,t)}(r)).instance))}(),function t(){function e(){if(n.calledRun=!0,!P){if(R=!0,n.noFSInit||Or.Vb||dr(),un.Aa(),Or.lc=!1,b?.(n),n.onRuntimeInitialized?.(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var t=n.postRun.shift();F.push(t)}N(F)}}if(0<or)sr=t;else{if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j();N(V),0<or?sr=t:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e()}}(),r=R?n:new Promise((t,e)=>{b=t,v=e}),r}({locateFile:(t,e)=>t.endsWith(".wasm")?this.wasmUrl||"https://unpkg.com/@thorvg/lottie-player@latest/dist/thorvg.wasm":e+t})),!this._timer)return;clearInterval(this._timer),this._timer=void 0;const t=this.config?.renderer||"wg";if(await(async t=>{if("wg"===t){for(;"requested"===bt;)await mt(100);if("initialized"!==bt&&(bt="requested",dt))for(;;)switch(dt.init()){case 0:return void(bt="initialized");case 1:return void(bt="failed");case 2:await mt(100)}}})(t),"failed"===bt)return this.currentState="error",void this.dispatchEvent(new CustomEvent("error"));this.TVG=new dt.TvgLottieAnimation(t,`#${this.canvas.id}`),this.src&&this.load(this.src,this.fileType)}_viewport(){const{left:t,right:e,top:r,bottom:n}=this.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight;let o=0,s=0,l=this.canvas.width,c=this.canvas.height;t<0&&(o=Math.abs(t),l-=o),r<0&&(s=Math.abs(r),c-=s),e>i&&(l-=e-i),n>a&&(c-=n-a),this.TVG.viewport(o,s,l,c)}_observerCallback(t){const e=t[0],r=e.target;r._observable=e.isIntersecting,e.isIntersecting?"frozen"===r.currentState&&r.play():"playing"===r.currentState&&(r.freeze(),r.dispatchEvent(new CustomEvent("freeze")))}firstUpdated(t){this.canvas=this.querySelector(".thorvg"),this.canvas.id=`thorvg-${Date.now().toString(36)+Math.random().toString(36).substring(2)}`,this.canvas.width=this.canvas.offsetWidth,this.canvas.height=this.canvas.offsetHeight,this._observer=new IntersectionObserver(this._observerCallback),this._observer.observe(this),this.TVG?this.src&&this.load(this.src,this.fileType):this._timer=setInterval(this._init.bind(this),100)}createRenderRoot(){return this.style.display="block",this}async _animLoop(){this.TVG&&await this._update()&&(this._render(),window.requestAnimationFrame(this._animLoop.bind(this)))}_loadBytes(t){if(!this.TVG)throw new Error("TVG is not initialized");if(this._assetResolverCallback&&this.TVG.setAssetResolver(this._assetResolverCallback,this._assetResolverData),!this.TVG.load(t,this.fileType,this.canvas.width,this.canvas.height))throw new Error(`Unable to load an image. Error: ${this.TVG.error()}`);this._render(),this.dispatchEvent(new CustomEvent("load")),this.autoPlay&&this.play()}_flush(){this.canvas.getContext("2d").putImageData(this._imageData,0,0)}_render(){if(!this.TVG)return;if(!1!==this.config?.enableDevicePixelRatio){const t=1+.75*(window.devicePixelRatio-1),{width:e,height:r}=this.canvas.getBoundingClientRect();this.canvas.width=e*t,this.canvas.height=r*t}if(this.TVG.resize(this.canvas.width,this.canvas.height),this._viewport(),!this.TVG.update())return;if("wg"===this.config?.renderer||"gl"===this.config?.renderer)return void this.TVG.render();const t=this.TVG.render(),e=new Uint8ClampedArray(t,0,t.byteLength);e.length<1||(this._imageData=new ImageData(e,this.canvas.width,this.canvas.height),this._flush())}async _update(){if(!this.TVG)return!1;if("playing"!==this.currentState)return!1;const t=this.TVG.duration(),e=Date.now()/1e3;if(this.currentFrame=(e-this._beginTime)/t*this.totalFrame*this.speed,-1===this.direction&&(this.currentFrame=this.totalFrame-this.currentFrame),1===this.direction&&this.currentFrame>=this.totalFrame||-1===this.direction&&this.currentFrame<=0){const t=this.count?"bounce"===this.mode?2*this.count:this.count:0;if(this.loop||t&&this._counter<t)return"bounce"===this.mode&&(this.direction=1===this.direction?-1:1,this.currentFrame=1===this.direction?0:this.totalFrame),this.count&&(this._counter+=1),await mt(this.intermission),this.play(),!0;this.dispatchEvent(new CustomEvent("complete")),this.currentState="stopped"}return this.dispatchEvent(new CustomEvent("frame",{detail:{frame:this.currentFrame}})),this.TVG.frame(this.currentFrame)}_frame(t){this.TVG&&(this.pause(),this.currentFrame=t,this.TVG.frame(t))}async load(t,e="json"){try{await this._init();const r=await(async(t,e)=>{const r=new TextEncoder;let n=t;switch(typeof n){case"object":return n instanceof ArrayBuffer?new Uint8Array(n):(n=JSON.stringify(n),r.encode(n));case"string":if("json"===e||"lot"===e)return n=await(async t=>{try{t=JSON.parse(t)}catch(e){const r=await(async t=>{if("string"!=typeof t)throw new Error("The url value must be a string");try{const e=new URL(t),r=await fetch(e.toString());return await r.json()}catch(t){throw new Error("An error occurred while trying to load the Lottie file from URL")}})(t);t=JSON.stringify(r)}return t})(n),r.encode(n);const t=await(async t=>(await fetch(t)).arrayBuffer())(n);return new Uint8Array(t);default:throw new Error("Invalid src type")}})(t,e);this.dispatchEvent(new CustomEvent("ready")),this.fileType=e,await this._loadBytes(r)}catch(t){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if(this.TVG&&!("json"!==this.fileType&&"lot"!==this.fileType||(this.totalFrame=this.TVG.totalFrame(),this.totalFrame<1||(this._beginTime=Date.now()/1e3,"playing"===this.currentState))))return this._observable?(this.currentState="playing",void window.requestAnimationFrame(this._animLoop.bind(this))):void(this.currentState="frozen")}pause(){this.currentState="paused",this.dispatchEvent(new CustomEvent("pause"))}stop(){this.currentState="stopped",this.currentFrame=0,this._counter=1,this.seek(0),this.dispatchEvent(new CustomEvent("stop"))}freeze(){this.currentState="frozen",this.dispatchEvent(new CustomEvent("freeze"))}async seek(t){this._frame(t),await this._update(),this._render()}resize(t,e){this.canvas.width=t,this.canvas.height=e,"playing"!==this.currentState&&this._render()}destroy(){this.TVG&&(this.TVG.delete(),this.TVG=null,this.currentState="destroyed",this._observer&&(this._observer.disconnect(),this._observer=void 0),this.dispatchEvent(new CustomEvent("destroyed")),this.remove())}term(){dt&&(dt.term(),dt=null)}setLooping(t){this.TVG&&(this.loop=t)}setDirection(t){this.TVG&&(this.direction=t)}setSpeed(t){this.TVG&&(this.speed=t)}setBgColor(t){this.TVG&&(this.canvas.style.backgroundColor=t)}setQuality(t){this.TVG&&this.TVG.quality(t)&&"playing"!==this.currentState&&this._render()}setAssetResolver(t,e){this._assetResolverCallback=t,this._assetResolverData=e,this.TVG&&this.TVG.setAssetResolver(t,e)}getVersion(){return{THORVG_VERSION:"1.0.2"}}render(){return W`
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["lottie-player"]={})}(this,function(t){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const r=globalThis,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;let o=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(e,t))}return t}toString(){return this.cssText}};const s=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:u,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:f}=Object,p=globalThis,m=p.trustedTypes,b=m?m.emptyScript:"",v=p.reactiveElementPolyfillSupport,w=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},y=(t,e)=>!l(t,e),$={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&c(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){const a=n?.call(this);i?.call(this,e),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...h(t),...d(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),i=r.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=n.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:g).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=n;const a=i.fromAttribute(e,t.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){const n=this.constructor,i=this[t];if(r??=n.getPropertyOptions(t),!((r.hasChanged??y)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:i},a){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==i||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t){const{wrapped:t}=r,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,r,n)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[w("elementProperties")]=new Map,_[w("finalized")]=new Map,v?.({ReactiveElement:_}),(p.reactiveElementVersions??=[]).push("2.1.1");const A={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y},x=(t=A,e,r)=>{const{kind:n,metadata:i}=r;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t,e),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function S(t){return(e,r)=>"object"==typeof r?x(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}const k=globalThis,E=k.trustedTypes,I=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+T,U=`<${P}>`,R=document,M=()=>R.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,N="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,j=/>/g,D=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,z=/"/g,J=/^(?:script|style|textarea|title)$/i,W=(t,...e)=>({_$litType$:1,strings:t,values:e}),G=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),q=new WeakMap,X=R.createTreeWalker(R,129);function Y(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}const K=(t,e)=>{const r=t.length-1,n=[];let i,a=2===e?"<svg>":3===e?"<math>":"",o=F;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,u=0;for(;u<r.length&&(o.lastIndex=u,l=o.exec(r),null!==l);)u=o.lastIndex,o===F?"!--"===l[1]?o=V:void 0!==l[1]?o=j:void 0!==l[2]?(J.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=D):void 0!==l[3]&&(o=D):o===D?">"===l[0]?(o=i??F,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,s=l[1],o=void 0===l[3]?D:'"'===l[3]?z:B):o===z||o===B?o=D:o===V||o===j?o=F:(o=D,i=void 0);const h=o===D&&t[e+1].startsWith("/>")?" ":"";a+=o===F?r+U:c>=0?(n.push(s),r.slice(0,c)+C+r.slice(c)+T+h):r+T+(-2===c?e:h)}return[Y(t,a+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class Q{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,a=0;const o=t.length-1,s=this.parts,[l,c]=K(t,e);if(this.el=Q.createElement(l,r),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=X.nextNode())&&s.length<o;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(C)){const e=c[a++],r=n.getAttribute(t).split(T),o=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:o[2],strings:r,ctor:"."===o[1]?nt:"?"===o[1]?it:"@"===o[1]?at:rt}),n.removeAttribute(t)}else t.startsWith(T)&&(s.push({type:6,index:i}),n.removeAttribute(t));if(J.test(n.tagName)){const t=n.textContent.split(T),e=t.length-1;if(e>0){n.textContent=E?E.emptyScript:"";for(let r=0;r<e;r++)n.append(t[r],M()),X.nextNode(),s.push({type:2,index:++i});n.append(t[e],M())}}}else if(8===n.nodeType)if(n.data===P)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(T,t+1));)s.push({type:7,index:i}),t+=T.length-1}i++}}static createElement(t,e){const r=R.createElement("template");return r.innerHTML=t,r}}function Z(t,e,r=t,n){if(e===G)return e;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=L(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(e=Z(t,i._$AS(t,e.values),i,n)),e}class tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??R).importNode(e,!0);X.currentNode=n;let i=X.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new et(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ot(i,this,t)),this._$AV.push(e),s=r[++o]}a!==s?.index&&(i=X.nextNode(),a++)}return X.currentNode=R,n}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class et{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),L(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,n="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Q.createElement(Y(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{const t=new tt(n,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Q(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new et(this.O(M()),this.O(M()),this,this.options)):r=e[n],r._$AI(i),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=H}_$AI(t,e=this,r,n){const i=this.strings;let a=!1;if(void 0===i)t=Z(this,t,e,0),a=!L(t)||t!==this._$AH&&t!==G,a&&(this._$AH=t);else{const n=t;let o,s;for(t=i[0],o=0;o<i.length-1;o++)s=Z(this,n[r+o],e,o),s===G&&(s=this._$AH[o]),a||=!L(s)||s!==this._$AH[o],s===H?t=H:t!==H&&(t+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}class it extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class at extends rt{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??H)===G)return;const r=this._$AH,n=t===H&&r!==H||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==H&&(r===H||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const st=k.litHtmlPolyfillSupport;st?.(Q,et),(k.litHtmlVersions??=[]).push("3.3.1");const lt=globalThis;class ct extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new et(e.insertBefore(M(),t),t,void 0,r??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ct._$litElement$=!0,ct.finalized=!0,lt.litElementHydrateSupport?.({LitElement:ct});const ut=lt.litElementPolyfillSupport;function ht(t,e,r,n){var i,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,r,o):i(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}ut?.({LitElement:ct}),(lt.litElementVersions??=[]).push("4.2.1");let dt=null,ft=!1;var pt=function(t){return t.JSON="json",t.LOT="lot",t.JPG="jpg",t.PNG="png",t.SVG="svg",t}({});const mt=t=>new Promise(e=>setTimeout(e,t));let bt="idle";class vt extends ct{src;wasmUrl;fileType="json";speed=1;autoPlay=!1;count;loop=!1;direction=1;mode="normal";intermission=1;totalFrame=0;currentFrame=0;currentState="loading";get size(){return Float32Array.from(this.TVG?.size()||[0,0])}get dpr(){return!1===this.config?.enableDevicePixelRatio?1:1+.75*(window.devicePixelRatio-1)}TVG=null;canvas;config;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;_assetResolverCallback;_assetResolverData;async _init(){if(ft)for(;!dt;)await mt(100);if(dt||(ft=!0,dt=await async function(t={}){var r,n=t,i=!!globalThis.window,a=!!globalThis.WorkerGlobalScope,o=globalThis.process?.versions?.node&&"renderer"!=globalThis.process?.type;if(o){const{createRequire:t}=await Promise.resolve().then(function(){return yt});var s=t("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href)}var l,c,u=(t,e)=>{throw e},h="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href,d="";if(o){var f=s("fs");h.startsWith("file:")&&(d=s("path").dirname(s("url").fileURLToPath(h))+"/"),c=t=>(t=U(t)?new URL(t):t,f.readFileSync(t)),l=async t=>(t=U(t)?new URL(t):t,f.readFileSync(t,void 0)),process.argv.slice(2),u=(t,e)=>{throw process.exitCode=t,e}}else if(i||a){try{d=new URL(".",h).href}catch{}a&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{if(U(t))return new Promise((e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r(n.status)},n.onerror=r,n.send(null)});var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var p,m,b,v,w,g,y,$,_,A,x,S,k,E,I,C=function(){}.bind(),T=function(){}.bind(),P=!1,U=t=>t.startsWith("file://"),R=!1;function M(){var t=ln.buffer;w=new Int8Array(t),y=new Int16Array(t),g=new Uint8Array(t),$=new Uint16Array(t),_=new Int32Array(t),A=new Uint32Array(t),x=new Float32Array(t),S=new Float64Array(t),k=new BigInt64Array(t),E=new BigUint64Array(t)}function L(t){throw n.onAbort?.(t),T(t="Aborted("+t+")"),P=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),v?.(t),t}class O{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var N=t=>{for(;0<t.length;)t.shift()(n)},F=[],V=[],j=()=>{var t=n.preRun.shift();V.push(t)},D=!0,B=new TextDecoder,z=(t,e,r,n)=>{if(r=e+r,n)return r;for(;t[e]&&!(e>=r);)++e;return e},J=(t,e,r)=>t?B.decode(g.subarray(t,z(g,t,e,r))):"",W=t=>{for(var e="";;){var r=g[t++];if(!r)return e;e+=String.fromCharCode(r)}},G={},H={},q={},X=class extends Error{constructor(t){super(t),this.name="BindingError"}},Y=t=>{throw new X(t)};function K(t,e,r={}){return function(t,e,r={}){var n=e.name;if(!t)throw new X(`type "${n}" must have a positive integer typeid pointer`);if(H.hasOwnProperty(t)){if(r.Gc)return;throw new X(`Cannot register type '${n}' twice`)}H[t]=e,delete q[t],G.hasOwnProperty(t)&&(e=G[t],delete G[t],e.forEach(t=>t()))}(t,e,r)}var Q=(t,e,r)=>{switch(e){case 1:return r?t=>w[t]:t=>g[t];case 2:return r?t=>y[t>>1]:t=>$[t>>1];case 4:return r?t=>_[t>>2]:t=>A[t>>2];case 8:return r?t=>k[t>>3]:t=>E[t>>3];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Z=t=>{throw new X(t.Ja.Xa.Ua.name+" instance already deleted")},tt=!1,et=()=>{},rt=t=>globalThis.FinalizationRegistry?(tt=new FinalizationRegistry(t=>{--(t=t.Ja).count.value,0===t.count.value&&(t.ib?t.mb.zb(t.ib):t.Xa.Ua.zb(t.Va))}),rt=t=>{var e=t.Ja;return e.ib&&tt.register(t,{Ja:e},t),t},et=t=>{tt.unregister(t)},rt(t)):(rt=t=>t,t);function nt(){}var it=(t,e)=>Object.defineProperty(e,"name",{value:t}),at={},ot=(t,e,r)=>{if(void 0===t[e].hb){var n=t[e];t[e]=function(...n){if(!t[e].hb.hasOwnProperty(n.length))throw new X(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${t[e].hb})!`);return t[e].hb[n.length].apply(this,n)},t[e].hb=[],t[e].hb[n.Hb]=n}},st=(t,e,r)=>{if(n.hasOwnProperty(t)){if(void 0===r||void 0!==n[t].hb&&void 0!==n[t].hb[r])throw new X(`Cannot register public name '${t}' twice`);if(ot(n,t,t),n[t].hb.hasOwnProperty(r))throw new X(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);n[t].hb[r]=e}else n[t]=e,n[t].Hb=r};function lt(t,e,r,n,i,a,o,s){this.name=t,this.constructor=e,this.Eb=r,this.zb=n,this.kb=i,this.Cc=a,this.Mb=o,this.zc=s,this.Mc=[]}var ct=(t,e,r)=>{for(;e!==r;){if(!e.Mb)throw new X(`Expected null or instance of ${r.name}, got an instance of ${e.name}`);t=e.Mb(t),e=e.kb}return t},ut=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function ht(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);return 0}if(!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);return ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua)}function dt(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);if(this.Pb){var r=this.Nc();return null!==t&&t.push(this.zb,r),r}return 0}if(!e||!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Ob&&e.Ja.Xa.Ob)throw new X(`Cannot convert argument of type ${e.Ja.mb?e.Ja.mb.name:e.Ja.Xa.name} to parameter type ${this.name}`);if(r=ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua),this.Pb){if(void 0===e.Ja.ib)throw new X("Passing raw pointer to smart pointer is illegal");switch(this.Pc){case 0:if(e.Ja.mb!==this)throw new X(`Cannot convert argument of type ${e.Ja.mb?e.Ja.mb.name:e.Ja.Xa.name} to parameter type ${this.name}`);r=e.Ja.ib;break;case 1:r=e.Ja.ib;break;case 2:if(e.Ja.mb===this)r=e.Ja.ib;else{var n=e.clone();r=this.Oc(r,Ot(()=>n.delete())),null!==t&&t.push(this.zb,r)}break;default:throw new X("Unsupporting sharing policy")}}return r}function ft(t,e){if(null===e){if(this.Wb)throw new X(`null is not a valid ${this.name}`);return 0}if(!e.Ja)throw new X(`Cannot pass "${ut(e)}" as a ${this.name}`);if(!e.Ja.Va)throw new X(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.Ja.Xa.Ob)throw new X(`Cannot convert argument of type ${e.Ja.Xa.name} to parameter type ${this.name}`);return ct(e.Ja.Va,e.Ja.Xa.Ua,this.Ua)}function pt(t){return this.jb(A[t>>2])}var mt=(t,e,r)=>e===r?t:void 0===r.kb||null===(t=mt(t,e,r.kb))?null:r.zc(t),bt={},vt=class extends Error{constructor(t){super(t),this.name="InternalError"}},wt=(t,e)=>{if(!e.Xa||!e.Va)throw new vt("makeClassHandle requires ptr and ptrType");if(!!e.mb!=!!e.ib)throw new vt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},rt(Object.create(t,{Ja:{value:e,writable:!0}}))};function gt(t,e,r,n,i,a,o,s,l,c,u){this.name=t,this.Ua=e,this.Wb=r,this.Ob=n,this.Pb=i,this.Lc=a,this.Pc=o,this.pc=s,this.Nc=l,this.Oc=c,this.zb=u,i||void 0!==e.kb?this.nb=dt:(this.nb=n?ht:ft,this.ob=null)}var $t=(t,e,r)=>{if(!n.hasOwnProperty(t))throw new vt("Replacing nonexistent public symbol");void 0!==n[t].hb&&void 0!==r?n[t].hb[r]=e:(n[t]=e,n[t].Hb=r)},_t=(t,e)=>{t=W(t);var r=cn.get(e);if("function"!=typeof r)throw new X(`unknown function pointer with signature ${t}: ${e}`);return r};class At extends Error{}var xt=t=>{t=jr(t);var e=W(t);return Fr(t),e},St=(t,e)=>{var r=[],n={};throw e.forEach(function t(e){n[e]||H[e]||(q[e]?q[e].forEach(t):(r.push(e),n[e]=!0))}),new At(`${t}: `+r.map(xt).join([", "]))},kt=(t,e,r)=>{function n(e){if((e=r(e)).length!==t.length)throw new vt("Mismatched type converter count");for(var n=0;n<t.length;++n)K(t[n],e[n])}t.forEach(t=>q[t]=e);var i=Array(e.length),a=[],o=0;for(let[t,r]of e.entries())H.hasOwnProperty(r)?i[t]=H[r]:(a.push(r),G.hasOwnProperty(r)||(G[r]=[]),G[r].push(()=>{i[t]=H[r],++o===a.length&&n(i)}));0===a.length&&n(i)},Et=(t,e)=>{for(var r=[],n=0;n<t;n++)r.push(A[e+4*n>>2]);return r},It=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Ct(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].ob)return!0;return!1}function Tt(t,e,r,n,i,a){var o=e.length;if(2>o)throw new X("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=Ct(e);r=!e[0].nc;var c=e[0],u=e[1];for(n=[t,Y,n,i,It,c.jb.bind(c),u?.nb.bind(u)],i=2;i<o;++i)n.push((c=e[i]).nb.bind(c));if(!l)for(i=s?1:2;i<e.length;++i)null!==e[i].ob&&n.push(e[i].ob);for(l=Ct(e),i=e.length-2,u=[],c=["fn"],s&&c.push("thisWired"),o=0;o<i;++o)u.push(`arg${o}`),c.push(`arg${o}Wired`);u=u.join(","),c=c.join(","),u=`return function (${u}) {\n`,l&&(u+="var destructors = [];\n");var h=l?"destructors":"null",d="humanName throwBindingError invoker fn runDestructors fromRetWire toClassParamWire".split(" ");for(s&&(u+=`var thisWired = toClassParamWire(${h}, this);\n`),o=0;o<i;++o){var f=`toArg${o}Wire`;u+=`var arg${o}Wired = ${f}(${h}, arg${o});\n`,d.push(f)}if(u+=(r||a?"var rv = ":"")+`invoker(${c});\n`,l)u+="runDestructors(destructors);\n";else for(o=s?1:2;o<e.length;++o)a=1===o?"thisWired":"arg"+(o-2)+"Wired",null!==e[o].ob&&(u+=`${a}_dtor(${a});\n`,d.push(`${a}_dtor`));return r&&(u+="var ret = fromRetWire(rv);\nreturn ret;\n"),e=new Function(d,u+"}\n")(...n),it(t,e)}var Pt=t=>{const e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},Ut=[],Rt=[0,1,,1,null,1,!0,1,!1,1],Mt=t=>{9<t&&0===--Rt[t+1]&&(Rt[t]=void 0,Ut.push(t))},Lt=t=>{if(!t)throw new X(`Cannot use deleted val. handle = ${t}`);return Rt[t]},Ot=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const e=Ut.pop()||Rt.length;return Rt[e]=t,Rt[e+1]=1,e}},Nt={name:"emscripten::val",jb:t=>{var e=Lt(t);return Mt(t),e},nb:(t,e)=>Ot(e),xb:pt,ob:null},Ft=(t,e)=>{switch(e){case 4:return function(t){return this.jb(x[t>>2])};case 8:return function(t){return this.jb(S[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Vt=(t,e,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var a=0;a<t.length;++a){var o=t.codePointAt(a);if(127>=o){if(r>=n)break;e[r++]=o}else if(2047>=o){if(r+1>=n)break;e[r++]=192|o>>6,e[r++]=128|63&o}else if(65535>=o){if(r+2>=n)break;e[r++]=224|o>>12,e[r++]=128|o>>6&63,e[r++]=128|63&o}else{if(r+3>=n)break;e[r++]=240|o>>18,e[r++]=128|o>>12&63,e[r++]=128|o>>6&63,e[r++]=128|63&o,a++}}return e[r]=0,r-i},jt=t=>{for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);127>=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e},Dt=new TextDecoder("utf-16le"),Bt=(t,e,r)=>Dt.decode($.subarray(t>>=1,z($,t,e/2,r))),zt=(t,e,r)=>{if(r??=2147483647,2>r)return 0;var n=e;r=(r-=2)<2*t.length?r/2:t.length;for(var i=0;i<r;++i)y[e>>1]=t.charCodeAt(i),e+=2;return y[e>>1]=0,e-n},Jt=t=>2*t.length,Wt=(t,e,r)=>{var n="";t>>=2;for(var i=0;!(i>=e/4);i++){var a=A[t+i];if(!a&&!r)break;n+=String.fromCodePoint(a)}return n},Gt=(t,e,r)=>{if(r??=2147483647,4>r)return 0;var n=e;r=n+r-4;for(var i=0;i<t.length;++i){var a=t.codePointAt(i);if(65535<a&&i++,_[e>>2]=a,(e+=4)+4>r)break}return _[e>>2]=0,e-n},Ht=t=>{for(var e=0,r=0;r<t.length;++r)65535<t.codePointAt(r)&&r++,e+=4;return e},qt=0,Xt=[],Yt=(t,e,r)=>{var n=[];return t=t(n,r),n.length&&(A[e>>2]=Ot(n)),t},Kt={},Qt=t=>{var e=Kt[t];return void 0===e?W(t):e},Zt={},te=t=>{m=t,D||0<qt||(n.onExit?.(t),P=!0),u(t,new O(t))},ee=t=>{if(!P)try{if(t(),!(D||0<qt))try{m=t=m,te(t)}catch(t){t instanceof O||"unwind"==t||u(1,t)}}catch(t){t instanceof O||"unwind"==t||u(1,t)}},re=t=>{var e=jt(t)+1,r=on(e);return Vt(t,g,r,e),r},ne=[],ie=[],ae=t=>{if(t)return ne[t>>>0]},oe=t=>J(A[t>>2],A[t+4>>2]),se=t=>{var e=A[t>>2];return t=A[t+4>>2],e?J(e,t):0===t?"":void 0},le=t=>({width:A[t>>2],height:A[t+4>>2],depthOrArrayLayers:A[t+8>>2]}),ce=t=>{var e=t+8;return{texture:ae(A[t>>2]),mipLevel:A[t+4>>2],origin:{x:A[e>>2],y:A[e+4>>2],z:A[e+8>>2]},aspect:Re[A[t+20>>2]]}},ue=(t,e)=>{if(t){for(var r={},n=0;n<t;++n){var i=e+24*n;r[oe(i+4)]=S[i+16>>3]}return r}},he=t=>t?ae(t):"auto",de=[,"clamp-to-edge","repeat","mirror-repeat"],fe=[,"zero","one","src","one-minus-src","src-alpha","one-minus-src-alpha","dst","one-minus-dst","dst-alpha","one-minus-dst-alpha","src-alpha-saturated","constant","one-minus-constant","src1","one-minus-src1","src1alpha","one-minus-src1alpha"],pe=[,"add","subtract","reverse-subtract","min","max"],me=["binding-not-used",,"uniform","storage","read-only-storage"],be=[,"never","less","equal","less-equal","greater","not-equal","greater-equal","always"],ve=[,"opaque","premultiplied","unpremultiplied","inherit"],we=[,"none","front","back"],ge=[,"compatibility","core"],ye={1:"core-features-and-limits",2:"depth-clip-control",3:"depth32float-stencil8",4:"texture-compression-bc",5:"texture-compression-bc-sliced-3d",6:"texture-compression-etc2",7:"texture-compression-astc",8:"texture-compression-astc-sliced-3d",9:"timestamp-query",10:"indirect-first-instance",11:"shader-f16",12:"rg11b10ufloat-renderable",13:"bgra8unorm-storage",14:"float32-filterable",15:"float32-blendable",16:"clip-distances",17:"dual-source-blending",18:"subgroups",19:"texture-formats-tier1",20:"texture-formats-tier2",21:"primitive-index",327692:"chromium-experimental-unorm16-texture-formats",327693:"chromium-experimental-snorm16-texture-formats",327732:"chromium-experimental-multi-draw-indirect"},$e=[,"nearest","linear"],_e=[,"ccw","cw"],Ae=[,"uint16","uint32"],xe=[,"load","clear"],Se=[,"nearest","linear"],ke=[,"low-power","high-performance"],Ee=[,"srgb","display-p3"],Ie=[,"point-list","line-list","line-strip","triangle-list","triangle-strip"],Ce=["binding-not-used",,"filtering","non-filtering","comparison"],Te=[,"keep","zero","replace","invert","increment-clamp","decrement-clamp","increment-wrap","decrement-wrap"],Pe=["binding-not-used",,"write-only","read-only","read-write"],Ue=[,"store","discard"],Re=[,"all","stencil-only","depth-only"],Me=[,"1d","2d","3d"],Le=[,"r8unorm","r8snorm","r8uint","r8sint","r16unorm","r16snorm","r16uint","r16sint","r16float","rg8unorm","rg8snorm","rg8uint","rg8sint","r32float","r32uint","r32sint","rg16unorm","rg16snorm","rg16uint","rg16sint","rg16float","rgba8unorm","rgba8unorm-srgb","rgba8snorm","rgba8uint","rgba8sint","bgra8unorm","bgra8unorm-srgb","rgb10a2uint","rgb10a2unorm","rg11b10ufloat","rgb9e5ufloat","rg32float","rg32uint","rg32sint","rgba16unorm","rgba16snorm","rgba16uint","rgba16sint","rgba16float","rgba32float","rgba32uint","rgba32sint","stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8","bc1-rgba-unorm","bc1-rgba-unorm-srgb","bc2-rgba-unorm","bc2-rgba-unorm-srgb","bc3-rgba-unorm","bc3-rgba-unorm-srgb","bc4-r-unorm","bc4-r-snorm","bc5-rg-unorm","bc5-rg-snorm","bc6h-rgb-ufloat","bc6h-rgb-float","bc7-rgba-unorm","bc7-rgba-unorm-srgb","etc2-rgb8unorm","etc2-rgb8unorm-srgb","etc2-rgb8a1unorm","etc2-rgb8a1unorm-srgb","etc2-rgba8unorm","etc2-rgba8unorm-srgb","eac-r11unorm","eac-r11snorm","eac-rg11unorm","eac-rg11snorm","astc-4x4-unorm","astc-4x4-unorm-srgb","astc-5x4-unorm","astc-5x4-unorm-srgb","astc-5x5-unorm","astc-5x5-unorm-srgb","astc-6x5-unorm","astc-6x5-unorm-srgb","astc-6x6-unorm","astc-6x6-unorm-srgb","astc-8x5-unorm","astc-8x5-unorm-srgb","astc-8x6-unorm","astc-8x6-unorm-srgb","astc-8x8-unorm","astc-8x8-unorm-srgb","astc-10x5-unorm","astc-10x5-unorm-srgb","astc-10x6-unorm","astc-10x6-unorm-srgb","astc-10x8-unorm","astc-10x8-unorm-srgb","astc-10x10-unorm","astc-10x10-unorm-srgb","astc-12x10-unorm","astc-12x10-unorm-srgb","astc-12x12-unorm","astc-12x12-unorm-srgb"],Oe=["binding-not-used",,"float","unfilterable-float","depth","sint","uint"],Ne=[,"1d","2d","2d-array","cube","cube-array","3d"],Fe=[,"standard","extended"],Ve=[,"uint8","uint8x2","uint8x4","sint8","sint8x2","sint8x4","unorm8","unorm8x2","unorm8x4","snorm8","snorm8x2","snorm8x4","uint16","uint16x2","uint16x4","sint16","sint16x2","sint16x4","unorm16","unorm16x2","unorm16x4","snorm16","snorm16x2","snorm16x4","float16","float16x2","float16x4","float32","float32x2","float32x3","float32x4","uint32","uint32x2","uint32x3","uint32x4","sint32","sint32x2","sint32x3","sint32x4","unorm10-10-10-2","unorm8x4-bgra"],je=[,"vertex","instance"],De={undefined:1,unknown:1,destroyed:2},Be=t=>-9007199254740992>t||9007199254740992<t?NaN:Number(t),ze=(t,e)=>{for(var r=0,n=t.length-1;0<=n;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r;r--)t.unshift("..");return t},Je=t=>{var e="/"===t.charAt(0),r="/"===t.slice(-1);return(t=ze(t.split("/").filter(t=>!!t),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},We=t=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return t=e[0],e=e[1],t||e?(e&&=e.slice(0,-1),t+e):"."},Ge=t=>t&&t.match(/([^\/]+|\/)\/*$/)[1],He=t=>{(He=(()=>{if(o){var t=s("crypto");return e=>t.randomFillSync(e)}return t=>crypto.getRandomValues(t)})())(t)},qe=(...t)=>{for(var e="",r=!1,n=t.length-1;-1<=n&&!r;n--){if("string"!=typeof(r=0<=n?t[n]:Or.cwd()))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,r="/"===r.charAt(0)}return e=ze(e.split("/").filter(t=>!!t),!r).join("/"),(r?"/":"")+e||"."},Xe=(t,e)=>{function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;0<=r&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=qe(t).slice(1),e=qe(e).slice(1),t=r(t.split("/")),e=r(e.split("/"));for(var n=Math.min(t.length,e.length),i=n,a=0;a<n;a++)if(t[a]!==e[a]){i=a;break}for(n=[],a=i;a<t.length;a++)n.push("..");return(n=n.concat(e.slice(i))).join("/")},Ye=t=>{var e=z(t,0);return B.decode(t.buffer?t.subarray(0,e):new Uint8Array(t.slice(0,e)))},Ke=[],Qe=t=>{var e=Array(jt(t)+1);return t=Vt(t,e,0,e.length),e.length=t,e},Ze=[];function tr(t,e){Ze[t]={input:[],output:[],Gb:e},fr(t,er)}var er={open(t){var e=Ze[t.node.rdev];if(!e)throw new Or.Ia(43);t.tty=e,t.seekable=!1},close(t){t.tty.Gb.fsync(t.tty)},fsync(t){t.tty.Gb.fsync(t.tty)},read(t,e,r,n){if(!t.tty||!t.tty.Gb.kc)throw new Or.Ia(60);for(var i=0,a=0;a<n;a++){try{var o=t.tty.Gb.kc(t.tty)}catch(t){throw new Or.Ia(29)}if(void 0===o&&0===i)throw new Or.Ia(6);if(null==o)break;i++,e[r+a]=o}return i&&(t.node.atime=Date.now()),i},write(t,e,r,n){if(!t.tty||!t.tty.Gb.$b)throw new Or.Ia(60);try{for(var i=0;i<n;i++)t.tty.Gb.$b(t.tty,e[r+i])}catch(t){throw new Or.Ia(29)}return n&&(t.node.mtime=t.node.ctime=Date.now()),i}},rr={kc(){t:{if(!Ke.length){var t=null;if(o){var e=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=f.readSync(n,e,0,256)}catch(t){if(!t.toString().includes("EOF"))throw t;r=0}0<r&&(t=e.slice(0,r).toString("utf-8"))}else globalThis.window?.prompt&&null!==(t=window.prompt("Input: "))&&(t+="\n");if(!t){t=null;break t}Ke=Qe(t)}t=Ke.shift()}return t},$b(t,e){null===e||10===e?(C(Ye(t.output)),t.output=[]):0!=e&&t.output.push(e)},fsync(t){0<t.output?.length&&(C(Ye(t.output)),t.output=[])},ld:()=>({Xc:25856,Zc:5,Wc:191,Yc:35387,Vc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),md:()=>0,nd:()=>[24,80]},nr={$b(t,e){null===e||10===e?(T(Ye(t.output)),t.output=[]):0!=e&&t.output.push(e)},fsync(t){0<t.output?.length&&(T(Ye(t.output)),t.output=[])}},ir={tb:null,Wa:()=>ir.createNode(null,"/",16895,0),createNode(t,e,r,n){if(24576==(61440&r)||Or.isFIFO(r))throw new Or.Ia(63);return ir.tb||(ir.tb={dir:{node:{qb:ir.La.qb,sb:ir.La.sb,lookup:ir.La.lookup,vb:ir.La.vb,rename:ir.La.rename,unlink:ir.La.unlink,rmdir:ir.La.rmdir,readdir:ir.La.readdir,symlink:ir.La.symlink},stream:{lb:ir.Ma.lb}},file:{node:{qb:ir.La.qb,sb:ir.La.sb},stream:{lb:ir.Ma.lb,read:ir.Ma.read,write:ir.Ma.write,Fb:ir.Ma.Fb,Kb:ir.Ma.Kb}},link:{node:{qb:ir.La.qb,sb:ir.La.sb,readlink:ir.La.readlink},stream:{}},ec:{node:{qb:ir.La.qb,sb:ir.La.sb},stream:Or.xc}}),pr((r=Or.createNode(t,e,r,n)).mode)?(r.La=ir.tb.dir.node,r.Ma=ir.tb.dir.stream,r.Na={}):Or.isFile(r.mode)?(r.La=ir.tb.file.node,r.Ma=ir.tb.file.stream,r.Ya=0,r.Na=null):40960==(61440&r.mode)?(r.La=ir.tb.link.node,r.Ma=ir.tb.link.stream):8192==(61440&r.mode)&&(r.La=ir.tb.ec.node,r.Ma=ir.tb.ec.stream),r.atime=r.mtime=r.ctime=Date.now(),t&&(t.Na[e]=r,t.atime=t.mtime=t.ctime=r.atime),r},kd:t=>t.Na?t.Na.subarray?t.Na.subarray(0,t.Ya):new Uint8Array(t.Na):new Uint8Array(0),La:{qb(t){var e={};return e.dev=8192==(61440&t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,e.size=pr(t.mode)?4096:Or.isFile(t.mode)?t.Ya:40960==(61440&t.mode)?t.link.length:0,e.atime=new Date(t.atime),e.mtime=new Date(t.mtime),e.ctime=new Date(t.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},sb(t,e){for(var r of["mode","atime","mtime","ctime"])null!=e[r]&&(t[r]=e[r]);void 0!==e.size&&t.Ya!=(e=e.size)&&(0==e?(t.Na=null,t.Ya=0):(r=t.Na,t.Na=new Uint8Array(e),r&&t.Na.set(r.subarray(0,Math.min(e,t.Ya))),t.Ya=e))},lookup(){throw ir.Tb||(ir.Tb=new Or.Ia(44),ir.Tb.stack="<generic error, no stack>"),ir.Tb},vb:(t,e,r,n)=>ir.createNode(t,e,r,n),rename(t,e,r){try{var n=mr(e,r)}catch(t){}if(n){if(pr(t.mode))for(var i in n.Na)throw new Or.Ia(55);br(n)}delete t.parent.Na[t.name],e.Na[r]=t,t.name=r,e.ctime=e.mtime=t.parent.ctime=t.parent.mtime=Date.now()},unlink(t,e){delete t.Na[e],t.ctime=t.mtime=Date.now()},rmdir(t,e){var r,n=mr(t,e);for(r in n.Na)throw new Or.Ia(55);delete t.Na[e],t.ctime=t.mtime=Date.now()},readdir:t=>[".","..",...Object.keys(t.Na)],symlink:(t,e,r)=>((t=ir.createNode(t,e,41471,0)).link=r,t),readlink(t){if(40960!=(61440&t.mode))throw new Or.Ia(28);return t.link}},Ma:{read(t,e,r,n,i){var a=t.node.Na;if(i>=t.node.Ya)return 0;if(8<(t=Math.min(t.node.Ya-i,n))&&a.subarray)e.set(a.subarray(i,i+t),r);else for(n=0;n<t;n++)e[r+n]=a[i+n];return t},write(t,e,r,n,i,a){if(e.buffer===w.buffer&&(a=!1),!n)return 0;if((t=t.node).mtime=t.ctime=Date.now(),e.subarray&&(!t.Na||t.Na.subarray)){if(a)return t.Na=e.subarray(r,r+n),t.Ya=n;if(0===t.Ya&&0===i)return t.Na=e.slice(r,r+n),t.Ya=n;if(i+n<=t.Ya)return t.Na.set(e.subarray(r,r+n),i),n}var o=t.Na?t.Na.length:0;if(o>=(a=i+n)||(a=Math.max(a,o*(1048576>o?2:1.125)>>>0),0!=o&&(a=Math.max(a,256)),o=t.Na,t.Na=new Uint8Array(a),0<t.Ya&&t.Na.set(o.subarray(0,t.Ya),0)),t.Na.subarray&&e.subarray)t.Na.set(e.subarray(r,r+n),i);else for(a=0;a<n;a++)t.Na[i+a]=e[r+a];return t.Ya=Math.max(t.Ya,i+n),n},lb(t,e,r){if(1===r?e+=t.position:2===r&&Or.isFile(t.node.mode)&&(e+=t.node.Ya),0>e)throw new Or.Ia(28);return e},Fb(t,e,r,n,i){if(!Or.isFile(t.node.mode))throw new Or.Ia(43);if(t=t.node.Na,2&i||!t||t.buffer!==w.buffer){if(n=!0,L(),!(i=void 0))throw new Or.Ia(48);t&&((0<r||r+e<t.length)&&(t=t.subarray?t.subarray(r,r+e):Array.prototype.slice.call(t,r,r+e)),w.set(t,i))}else n=!1,i=t.byteOffset;return{Va:i,Rc:n}},Kb:(t,e,r,n)=>(ir.Ma.write(t,e,0,n,r,!1),0)}},ar=(t,e)=>{var r=0;return t&&(r|=365),e&&(r|=146),r},or=0,sr=null,lr=()=>{if(or--,n.monitorRunDependencies?.(or),0==or&&sr){var t=sr;sr=null,t()}},cr=()=>{or++,n.monitorRunDependencies?.(or)},ur=[],hr=async(t,e,r,n,i,a,o,s)=>{var c=e?qe(Je(t+"/"+e)):t;cr();try{var u=r;"string"==typeof r&&(u=await(async t=>(t=await l(t),new Uint8Array(t)))(r)),u=await(async(t,e)=>{for(var r of("undefined"!=typeof Browser&&dr(),ur))if(r.canHandle(e))return r.handle(t,e);return t})(u,c),s?.(),a||vr(t,e,u,n,i,o)}finally{lr()}};function dr(){var t,e,r;Or.Vb=!0,t??=n.stdin,e??=n.stdout,r??=n.stderr,t?Or.yb("/dev","stdin",t):Or.symlink("/dev/tty","/dev/stdin"),e?Or.yb("/dev","stdout",null,e):Or.symlink("/dev/tty","/dev/stdout"),r?Or.yb("/dev","stderr",null,r):Or.symlink("/dev/tty1","/dev/stderr"),Or.open("/dev/stdin",0),Or.open("/dev/stdout",1),Or.open("/dev/stderr",1)}function fr(t,e){Or.ic[t]={Ma:e}}function pr(t){return 16384==(61440&t)}function mr(t,e){var r=pr(t.mode)?(r=Ar(t,"x"))?r:t.La.lookup?0:2:54;if(r)throw new Or.Ia(r);for(r=Or.wb[yr(t.id,e)];r;r=r.Db)if(r.parent.id===t.id&&r.name===e)return r;return Or.lookup(t,e)}function br(t){var e=yr(t.parent.id,t.name);if(Or.wb[e]===t)Or.wb[e]=t.Db;else for(e=Or.wb[e];e;){if(e.Db===t){e.Db=t.Db;break}e=e.Db}}function vr(t,e,r,n,i,a){var o=e;if(t&&(t="string"==typeof t?t:gr(t),o=e?Je(t+"/"+e):t),t=ar(n,i),o=Or.create(o,t),r){if("string"==typeof r){for(e=Array(r.length),n=0,i=r.length;n<i;++n)e[n]=r.charCodeAt(n);r=e}Or.chmod(o,146|t),e=Or.open(o,577),Or.write(e,r,0,r.length,0,a),Or.close(e),Or.chmod(o,t)}}function wr(t,e={}){if(!t)throw new Or.Ia(44);e.Nb??(e.Nb=!0),"/"===t.charAt(0)||(t=Or.cwd()+"/"+t);var r=0;t:for(;40>r;r++){t=t.split("/").filter(t=>!!t);for(var n=Or.root,i="/",a=0;a<t.length;a++){var o=a===t.length-1;if(o&&e.parent)break;if("."!==t[a])if(".."===t[a]){if(i=We(i),Or.Xb(n)){t=i+"/"+t.slice(a+1).join("/"),r--;continue t}n=n.parent}else{i=Je(i+"/"+t[a]);try{n=mr(n,t[a])}catch(t){if(44===t?.Bb&&o&&e.Jc)return{path:i};throw t}if(!n.rb||o&&!e.Nb||(n=n.rb.root),40960==(61440&n.mode)&&(!o||e.pb)){if(!n.La.readlink)throw new Or.Ia(52);"/"===(n=n.La.readlink(n)).charAt(0)||(n=We(i)+"/"+n),t=n+"/"+t.slice(a+1).join("/");continue t}}}return{path:i,node:n}}throw new Or.Ia(32)}function gr(t){for(var e;;){if(Or.Xb(t))return t=t.Wa.oc,e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t;e=e?`${t.name}/${e}`:t.name,t=t.parent}}function yr(t,e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n)|0;return(t+r>>>0)%Or.wb.length}function $r(t){var e=yr(t.parent.id,t.name);t.Db=Or.wb[e],Or.wb[e]=t}function _r(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e}function Ar(t,e){return Or.lc?0:!e.includes("r")||292&t.mode?e.includes("w")&&!(146&t.mode)||e.includes("x")&&!(73&t.mode)?2:0:2}function xr(t,e){if(!pr(t.mode))return 54;try{return mr(t,e),20}catch(t){}return Ar(t,"wx")}function Sr(t,e,r){try{var n=mr(t,e)}catch(t){return t.Bb}if(t=Ar(t,"wx"))return t;if(r){if(!pr(n.mode))return 54;if(Or.Xb(n)||gr(n)===Or.cwd())return 10}else if(pr(n.mode))return 31;return 0}function kr(t,e){if(!t)throw new Or.Ia(e);return t}function Er(t){if(!(t=Or.Fc(t)))throw new Or.Ia(8);return t}function Ir(t,e=-1){if(t=Object.assign(new Or.uc,t),-1==e)t:{for(e=0;e<=Or.vc;e++)if(!Or.streams[e])break t;throw new Or.Ia(33)}return t.fd=e,Or.streams[e]=t}function Cr(t,e,r){var n=t?.Ma.sb;t=n?t:e,n??=e.La.sb,kr(n,63),n(t,r)}function Tr(t){var e=[];for(t=[t];t.length;){var r=t.pop();e.push(r),t.push(...r.Jb)}return e}function Pr(t){var e={Uc:4096,gd:4096,blocks:1e6,Tc:5e5,Sc:5e5,files:Or.Zb,dd:Or.Zb-1,hd:42,flags:2,qd:255};return t.La.rc&&Object.assign(e,t.La.rc(t.Wa.Kc.root)),e}function Ur(t,e,r){return void 0===r&&(r=e,e=438),Or.vb(t,8192|e,r)}function Rr(t,e,r,n){Cr(t,e,{mode:4095&r|-4096&e.mode,ctime:Date.now(),jc:n})}function Mr(t,e,r){if(pr(e.mode))throw new Or.Ia(31);if(!Or.isFile(e.mode))throw new Or.Ia(28);var n=Ar(e,"w");if(n)throw new Or.Ia(n);Cr(t,e,{size:r,timestamp:Date.now()})}function Lr(t){if(!(t.Hc||t.Ic||t.link||t.Na))if(globalThis.XMLHttpRequest)L("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{t.Na=c(t.url)}catch(t){throw new Or.Ia(29)}}var Or={root:null,Jb:[],ic:{},streams:[],Zb:1,wb:null,fc:"/",Vb:!1,lc:!0,Bc:null,Qb:0,qc:{},Ia:class{name="ErrnoError";constructor(t){this.Bb=t}},uc:class{ub={};node=null;get object(){return this.node}set object(t){this.node=t}get flags(){return this.ub.flags}set flags(t){this.ub.flags=t}get position(){return this.ub.position}set position(t){this.ub.position=t}},tc:class{La={};Ma={};rb=null;constructor(t,e,r,n){t||=this,this.parent=t,this.Wa=t.Wa,this.id=Or.Zb++,this.name=e,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return!(365&~this.mode)}set read(t){t?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(t){t?this.mode|=146:this.mode&=-147}get Ic(){return pr(this.mode)}get Hc(){return 8192==(61440&this.mode)}},createNode:(t,e,r,n)=>($r(t=new Or.tc(t,e,r,n)),t),Xb:t=>t===t.parent,isFile:t=>32768==(61440&t),isFIFO:t=>4096==(61440&t),isSocket:t=>!(49152&~t),vc:4096,Fc:t=>Or.streams[t],cd:(t,e=-1)=>(t=Ir(t,e),t.Ma?.bd?.(t),t),xc:{open(t){t.Ma=Or.Dc(t.node.rdev).Ma,t.Ma.open?.(t)},lb(){throw new Or.Ia(70)}},Yb:t=>t>>8,od:t=>255&t,Cb:(t,e)=>t<<8|e,Dc:t=>Or.ic[t],sc(t,e){function r(t){return Or.Qb--,e(t)}function n(t){if(t){if(!n.Ac)return n.Ac=!0,r(t)}else++o>=a.length&&r(null)}"function"==typeof t&&(e=t,t=!1),Or.Qb++,1<Or.Qb&&T(`warning: ${Or.Qb} FS.syncfs operations in flight at once, probably just doing extra work`);var i,a=Tr(Or.root.Wa),o=0;for(i of a)i.type.sc?i.type.sc(i,t,n):n(null)},Wa(t,e,r){var n="/"===r;if(n&&Or.root)throw new Or.Ia(10);if(!n&&r){var i=wr(r,{Nb:!1});if(r=i.path,(i=i.node).rb)throw new Or.Ia(10);if(!pr(i.mode))throw new Or.Ia(54)}return(t=t.Wa(e={type:t,Kc:e,oc:r,Jb:[]})).Wa=e,e.root=t,n?Or.root=t:i&&(i.rb=e,i.Wa&&i.Wa.Jb.push(e)),t},xd(t){if(!(t=wr(t,{Nb:!1})).node.rb)throw new Or.Ia(28);var e=(t=t.node).rb,r=Tr(e);for([,i]of Object.entries(Or.wb))for(;i;){var n=i.Db;r.includes(i.Wa)&&br(i);var i=n}t.rb=null,t.Wa.Jb.splice(t.Wa.Jb.indexOf(e),1)},lookup:(t,e)=>t.La.lookup(t,e),vb(t,e,r){var n=wr(t,{parent:!0}).node;if(!(t=Ge(t)))throw new Or.Ia(28);if("."===t||".."===t)throw new Or.Ia(20);var i=xr(n,t);if(i)throw new Or.Ia(i);if(!n.La.vb)throw new Or.Ia(63);return n.La.vb(n,t,e,r)},rc:t=>Pr(wr(t,{pb:!0}).node),td:t=>Pr(t.node),create:(t,e=438)=>Or.vb(t,4095&e|32768,0),mkdir:(t,e=511)=>Or.vb(t,1023&e|16384,0),pd(t,e){var r,n=t.split("/"),i="";for(r of n)if(r){(i||"/"===t.charAt(0))&&(i+="/"),i+=r;try{Or.mkdir(i,e)}catch(t){if(20!=t.Bb)throw t}}},symlink(t,e){if(!qe(t))throw new Or.Ia(44);var r=wr(e,{parent:!0}).node;if(!r)throw new Or.Ia(44);var n=xr(r,e=Ge(e));if(n)throw new Or.Ia(n);if(!r.La.symlink)throw new Or.Ia(63);return r.La.symlink(r,e,t)},rename(t,e){var r=We(t),n=We(e),i=Ge(t),a=Ge(e),o=wr(t,{parent:!0}),s=o.node;if(o=(o=wr(e,{parent:!0})).node,!s||!o)throw new Or.Ia(44);if(s.Wa!==o.Wa)throw new Or.Ia(75);var l=mr(s,i);if("."!==(t=Xe(t,n)).charAt(0))throw new Or.Ia(28);if("."!==(t=Xe(e,r)).charAt(0))throw new Or.Ia(55);try{var c=mr(o,a)}catch(t){}if(l!==c){if(i=Sr(s,i,e=pr(l.mode)))throw new Or.Ia(i);if(i=c?Sr(o,a,e):xr(o,a))throw new Or.Ia(i);if(!s.La.rename)throw new Or.Ia(63);if(l.rb||c&&c.rb)throw new Or.Ia(10);if(o!==s&&(i=Ar(s,"w")))throw new Or.Ia(i);br(l);try{s.La.rename(l,o,a),l.parent=o}catch(t){throw t}finally{$r(l)}}},rmdir(t){var e=wr(t,{parent:!0}).node,r=mr(e,t=Ge(t)),n=Sr(e,t,!0);if(n)throw new Or.Ia(n);if(!e.La.rmdir)throw new Or.Ia(63);if(r.rb)throw new Or.Ia(10);e.La.rmdir(e,t),br(r)},readdir:t=>kr((t=wr(t,{pb:!0}).node).La.readdir,54)(t),unlink(t){var e=wr(t,{parent:!0}).node;if(!e)throw new Or.Ia(44);var r=mr(e,t=Ge(t)),n=Sr(e,t,!1);if(n)throw new Or.Ia(n);if(!e.La.unlink)throw new Or.Ia(63);if(r.rb)throw new Or.Ia(10);e.La.unlink(e,t),br(r)},readlink(t){if(!(t=wr(t).node))throw new Or.Ia(44);if(!t.La.readlink)throw new Or.Ia(28);return t.La.readlink(t)},stat:(t,e)=>kr((t=wr(t,{pb:!e}).node).La.qb,63)(t),fstat(t){var e=Er(t);t=e.node;var r=e.Ma.qb;return e=r?e:t,r??=t.La.qb,kr(r,63),r(e)},lstat:t=>Or.stat(t,!0),chmod(t,e,r){Rr(null,t="string"==typeof t?wr(t,{pb:!r}).node:t,e,r)},lchmod(t,e){Or.chmod(t,e,!0)},fchmod(t,e){Rr(t=Er(t),t.node,e,!1)},chown(t,e,r,n){Cr(null,t="string"==typeof t?wr(t,{pb:!n}).node:t,{timestamp:Date.now(),jc:n})},lchown(t,e,r){Or.chown(t,e,r,!0)},fchown(t){Cr(t=Er(t),t.node,{timestamp:Date.now(),jc:!1})},truncate(t,e){if(0>e)throw new Or.Ia(28);Mr(null,t="string"==typeof t?wr(t,{pb:!0}).node:t,e)},jd(t,e){if(t=Er(t),0>e||!(2097155&t.flags))throw new Or.Ia(28);Mr(t,t.node,e)},yd(t,e,r){kr((t=wr(t,{pb:!0}).node).La.sb,63)(t,{atime:e,mtime:r})},open(t,e,r=438){if(""===t)throw new Or.Ia(44);if("string"==typeof e){var i={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===i)throw Error(`Unknown file open mode: ${e}`);e=i}if(r=64&e?4095&r|32768:0,"object"==typeof t)i=t;else{var a=t.endsWith("/");i=(t=wr(t,{pb:!(131072&e),Jc:!0})).node,t=t.path}var o=!1;if(64&e)if(i){if(128&e)throw new Or.Ia(20)}else{if(a)throw new Or.Ia(31);i=Or.vb(t,511|r,0),o=!0}if(!i)throw new Or.Ia(44);if(8192==(61440&i.mode)&&(e&=-513),65536&e&&!pr(i.mode))throw new Or.Ia(54);if(!o&&(a=i?40960==(61440&i.mode)?32:pr(i.mode)&&("r"!==_r(e)||576&e)?31:Ar(i,_r(e)):44))throw new Or.Ia(a);return 512&e&&!o&&Or.truncate(i,0),e&=-131713,(a=Ir({node:i,path:gr(i),flags:e,seekable:!0,position:0,Ma:i.Ma,Qc:[],error:!1})).Ma.open&&a.Ma.open(a),o&&Or.chmod(i,511&r),!n.logReadFiles||1&e||t in Or.qc||(Or.qc[t]=1),a},close(t){if(null===t.fd)throw new Or.Ia(8);t.Ub&&(t.Ub=null);try{t.Ma.close&&t.Ma.close(t)}catch(t){throw t}finally{Or.streams[t.fd]=null}t.fd=null},lb(t,e,r){if(null===t.fd)throw new Or.Ia(8);if(!t.seekable||!t.Ma.lb)throw new Or.Ia(70);if(0!=r&&1!=r&&2!=r)throw new Or.Ia(28);return t.position=t.Ma.lb(t,e,r),t.Qc=[],t.position},read(t,e,r,n,i){if(0>n||0>i)throw new Or.Ia(28);if(null===t.fd)throw new Or.Ia(8);if(1==(2097155&t.flags))throw new Or.Ia(8);if(pr(t.node.mode))throw new Or.Ia(31);if(!t.Ma.read)throw new Or.Ia(28);var a=void 0!==i;if(a){if(!t.seekable)throw new Or.Ia(70)}else i=t.position;return e=t.Ma.read(t,e,r,n,i),a||(t.position+=e),e},write(t,e,r,n,i,a){if(0>n||0>i)throw new Or.Ia(28);if(null===t.fd)throw new Or.Ia(8);if(!(2097155&t.flags))throw new Or.Ia(8);if(pr(t.node.mode))throw new Or.Ia(31);if(!t.Ma.write)throw new Or.Ia(28);t.seekable&&1024&t.flags&&Or.lb(t,0,2);var o=void 0!==i;if(o){if(!t.seekable)throw new Or.Ia(70)}else i=t.position;return e=t.Ma.write(t,e,r,n,i,a),o||(t.position+=e),e},Fb(t,e,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&t.flags))throw new Or.Ia(2);if(1==(2097155&t.flags))throw new Or.Ia(2);if(!t.Ma.Fb)throw new Or.Ia(43);if(!e)throw new Or.Ia(28);return t.Ma.Fb(t,e,r,n,i)},Kb:(t,e,r,n,i)=>t.Ma.Kb?t.Ma.Kb(t,e,r,n,i):0,mc(t,e,r){if(!t.Ma.mc)throw new Or.Ia(59);return t.Ma.mc(t,e,r)},readFile(t,e={}){e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding&&L(`Invalid encoding type "${e.encoding}"`);var r=Or.open(t,e.flags);t=Or.stat(t).size;var n=new Uint8Array(t);return Or.read(r,n,0,t,0),"utf8"===e.encoding&&(n=Ye(n)),Or.close(r),n},writeFile(t,e,r={}){r.flags=r.flags||577,t=Or.open(t,r.flags,r.mode),"string"==typeof e&&(e=new Uint8Array(Qe(e))),ArrayBuffer.isView(e)?Or.write(t,e,0,e.byteLength,void 0,r.$c):L("Unsupported data type"),Or.close(t)},cwd:()=>Or.fc,chdir(t){if(null===(t=wr(t,{pb:!0})).node)throw new Or.Ia(44);if(!pr(t.node.mode))throw new Or.Ia(54);var e=Ar(t.node,"x");if(e)throw new Or.Ia(e);Or.fc=t.path},sd(){for(var t of(Or.Vb=!1,Or.streams))t&&Or.close(t)},ed(t,e){try{var r=wr(t,{pb:!e});t=r.path}catch(t){}var n=!1,i=null;try{r=wr(t,{parent:!0}),Ge(t),r=wr(t,{pb:!e}),n=!0,i=r.node}catch(t){}return n?i:null},yb(t,e,r,n){var i;return t=((t,e)=>Je(t+"/"+e))("string"==typeof t?t:gr(t),e),e=ar(!!r,!!n),(i=Or.yb).Yb??(i.Yb=64),fr(i=Or.Cb(Or.yb.Yb++,0),{open(t){t.seekable=!1},close(){n?.buffer?.length&&n(10)},read(t,e,n,i){for(var a=0,o=0;o<i;o++){try{var s=r()}catch(t){throw new Or.Ia(29)}if(void 0===s&&0===a)throw new Or.Ia(6);if(null==s)break;a++,e[n+o]=s}return a&&(t.node.atime=Date.now()),a},write(t,e,r,i){for(var a=0;a<i;a++)try{n(e[r+a])}catch(t){throw new Or.Ia(29)}return i&&(t.node.mtime=t.node.ctime=Date.now()),a}}),Ur(t,e,i)}},Nr=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0];if((()=>{let t=nt.prototype;Object.assign(t,{isAliasOf:function(t){if(!(this instanceof nt&&t instanceof nt))return!1;var e=this.Ja.Xa.Ua,r=this.Ja.Va;t.Ja=t.Ja;var n=t.Ja.Xa.Ua;for(t=t.Ja.Va;e.kb;)r=e.Mb(r),e=e.kb;for(;n.kb;)t=n.Mb(t),n=n.kb;return e===n&&r===t},clone:function(){if(this.Ja.Va||Z(this),this.Ja.Lb)return this.Ja.count.value+=1,this;var t=rt,e=Object,r=e.create,n=Object.getPrototypeOf(this),i=this.Ja;return(t=t(r.call(e,n,{Ja:{value:{count:i.count,Ib:i.Ib,Lb:i.Lb,Va:i.Va,Xa:i.Xa,ib:i.ib,mb:i.mb}}}))).Ja.count.value+=1,t.Ja.Ib=!1,t},delete(){if(this.Ja.Va||Z(this),this.Ja.Ib&&!this.Ja.Lb)throw new X("Object already scheduled for deletion");et(this);var t=this.Ja;--t.count.value,0===t.count.value&&(t.ib?t.mb.zb(t.ib):t.Xa.Ua.zb(t.Va)),this.Ja.Lb||(this.Ja.ib=void 0,this.Ja.Va=void 0)},isDeleted:function(){return!this.Ja.Va},deleteLater:function(){if(this.Ja.Va||Z(this),this.Ja.Ib&&!this.Ja.Lb)throw new X("Object already scheduled for deletion");return this.Ja.Ib=!0,this}});const e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(gt.prototype,{Ec(t){return this.pc&&(t=this.pc(t)),t},hc(t){this.zb?.(t)},xb:pt,jb:function(t){function e(){return wt(this.Ua.Eb,this.Pb?{Xa:this.Lc,Va:r,mb:this,ib:t}:{Xa:this,Va:t})}var r=this.Ec(t);if(!r)return this.hc(t),null;var n=((t,e)=>{if(void 0===e)throw new X("ptr should not be undefined");for(;t.kb;)e=t.Mb(e),t=t.kb;return bt[e]})(this.Ua,r);if(void 0!==n)return 0===n.Ja.count.value?(n.Ja.Va=r,n.Ja.ib=t,n.clone()):(n=n.clone(),this.hc(t),n);if(n=this.Ua.Cc(r),!(n=at[n]))return e.call(this);var i=mt(r,this.Ua,(n=this.Ob?n.yc:n.pointerType).Ua);return null===i?e.call(this):wt(n.Ua.Eb,this.Pb?{Xa:n,Va:i,mb:this,ib:t}:{Xa:n,Va:i})}}),Or.ad=(t,e,r,n,i,a,o,s,l,c)=>{hr(t,e,r,n,i,s,l,c).then(a).catch(o)},Or.rd=hr,Or.wb=Array(4096),Or.Wa(ir,{},"/"),Or.mkdir("/tmp"),Or.mkdir("/home"),Or.mkdir("/home/web_user"),function(){Or.mkdir("/dev"),fr(Or.Cb(1,3),{read:()=>0,write:(t,e,r,n)=>n,lb:()=>0}),Ur("/dev/null",Or.Cb(1,3)),tr(Or.Cb(5,0),rr),tr(Or.Cb(6,0),nr),Ur("/dev/tty",Or.Cb(5,0)),Ur("/dev/tty1",Or.Cb(6,0));var t=new Uint8Array(1024),e=0,r=()=>(0===e&&(He(t),e=t.byteLength),t[--e]);Or.yb("/dev","random",r),Or.yb("/dev","urandom",r),Or.mkdir("/dev/shm"),Or.mkdir("/dev/shm/tmp")}(),function(){Or.mkdir("/proc");var t=Or.mkdir("/proc/self");Or.mkdir("/proc/self/fd"),Or.Wa({Wa(){var e=Or.createNode(t,"fd",16895,73);return e.Ma={lb:ir.Ma.lb},e.La={lookup(t,e){var r=Er(t=+e);return(t={parent:null,Wa:{oc:"fake"},La:{readlink:()=>r.path},id:t+1}).parent=t},readdir:()=>Array.from(Or.streams.entries()).filter(([,t])=>t).map(([t])=>t.toString())},e}},{},"/proc/self/fd")}(),Or.Bc={MEMFS:ir},n.noExitRuntime&&(D=n.noExitRuntime),n.preloadPlugins&&(ur=n.preloadPlugins),n.print&&(C=n.print),n.printErr&&(T=n.printErr),n.wasmBinary&&(p=n.wasmBinary),n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.shift()();n.addRunDependency=cr,n.removeRunDependency=lr,n.FS_preloadFile=hr,n.FS_unlink=(...t)=>Or.unlink(...t),n.FS_createPath=(...t)=>function(t,e){for(t="string"==typeof t?t:gr(t),e=e.split("/").reverse();e.length;){var r=e.pop();if(r){var n=Je(t+"/"+r);try{Or.mkdir(n)}catch(t){if(20!=t.Bb)throw t}t=n}}return n}(...t),n.FS_createDevice=(...t)=>Or.yb(...t),n.FS=Or,n.FS_createDataFile=(...t)=>vr(...t),n.FS_createLazyFile=(...t)=>function(t,e,r,n,i){class o{Sb=!1;ub=[];Rb=void 0;bc=0;ac=0;get(t){if(!(t>this.length-1||0>t)){var e=t%this.chunkSize;return this.Rb(t/this.chunkSize|0)[e]}}wc(t){this.Rb=t}cc(){var t=new XMLHttpRequest;t.open("HEAD",r,!1),t.send(null),200<=t.status&&300>t.status||304===t.status||L("Couldn't load "+r+". Status: "+t.status);var e,n=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e;t=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e;var a=1048576;i||(a=n);var o=this;o.wc(t=>{var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,n-1),void 0===o.ub[t]){var s=o.ub;e>i&&L("invalid range ("+e+", "+i+") or no bytes requested!"),i>n-1&&L("only "+n+" bytes available! programmer error!");var l=new XMLHttpRequest;l.open("GET",r,!1),n!==a&&l.setRequestHeader("Range","bytes="+e+"-"+i),l.responseType="arraybuffer",l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined"),l.send(null),200<=l.status&&300>l.status||304===l.status||L("Couldn't load "+r+". Status: "+l.status),e=void 0!==l.response?new Uint8Array(l.response||[]):Qe(l.responseText||""),s[t]=e}return void 0===o.ub[t]&&L("doXHR failed!"),o.ub[t]}),!t&&n||(a=n=1,a=n=this.Rb(0).length,C("LazyFiles on gzip forces download of the whole file when length is accessed")),this.bc=n,this.ac=a,this.Sb=!0}get length(){return this.Sb||this.cc(),this.bc}get chunkSize(){return this.Sb||this.cc(),this.ac}}if(globalThis.XMLHttpRequest){a||L("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var s=new o,l=void 0}else l=r,s=void 0;var c=function(t,e,r,n){return t="string"==typeof t?t:gr(t),e=Je(t+"/"+e),Or.create(e,ar(r,n))}(t,e,n,i);s?c.Na=s:l&&(c.Na=null,c.url=l),Object.defineProperties(c,{Ya:{get:function(){return this.Na.length}}}),t={};for(const[e,r]of Object.entries(c.Ma))t[e]=(...t)=>(Lr(c),r(...t));return t.read=(t,e,r,n,i)=>{if(Lr(c),i>=(t=t.node.Na).length)e=0;else{if(n=Math.min(t.length-i,n),t.slice)for(var a=0;a<n;a++)e[r+a]=t[i+a];else for(a=0;a<n;a++)e[r+a]=t.get(i+a);e=n}return e},t.Fb=()=>{throw Lr(c),L(),new Or.Ia(48)},c.Ma=t,c}(...t);var Fr,Vr,jr,Dr,Br,zr,Jr,Wr,Gr,Hr,qr,Xr,Yr,Kr,Qr,Zr,tn,en,rn,nn,an,on,sn,ln,cn,un,hn={a:(t,e,r,n)=>L(`Assertion failed: ${J(t)}, at: `+[e?J(e):"unknown filename",r,n?J(n):"unknown function"]),Z:()=>L(""),O:(t,e,r,n,i)=>{e=W(e);let a=t=>t;if(n=0n===n){const t=8*r;a=e=>BigInt.asUintN(t,e),i=a(i)}K(t,{name:e,jb:a,nb:(t,e)=>("number"==typeof e&&(e=BigInt(e)),e),xb:Q(e,r,!n),ob:null})},va:(t,e,r,n)=>{K(t,{name:e=W(e),jb:function(t){return!!t},nb:function(t,e){return e?r:n},xb:function(t){return this.jb(g[t])},ob:null})},sa:(t,e,r,n,i,a,o,s,l,c,u,h,d)=>{u=W(u),a=_t(i,a),s&&=_t(o,s),c&&=_t(l,c),d=_t(h,d);var f=(t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t})(u);st(f,function(){St(`Cannot construct ${u} due to unbound types`,[n])}),kt([t,e,r],n?[n]:[],e=>{if(e=e[0],n)var r=e.Ua,i=r.Eb;else i=nt.prototype;e=it(u,function(...t){if(Object.getPrototypeOf(this)!==o)throw new X(`Use 'new' to construct ${u}`);if(void 0===h.Ab)throw new X(`${u} has no accessible constructor`);var e=h.Ab[t.length];if(void 0===e)throw new X(`Tried to invoke ctor of ${u} with invalid number of parameters (${t.length}) - expected (${Object.keys(h.Ab).toString()}) parameters instead!`);return e.apply(this,t)});var o=Object.create(i,{constructor:{value:e}});e.prototype=o;var l,h=new lt(u,e,o,d,r,a,s,c);return h.kb&&((l=h.kb).dc??(l.dc=[]),h.kb.dc.push(h)),r=new gt(u,h,!0,!1,!1),l=new gt(u+"*",h,!1,!1,!1),i=new gt(u+" const*",h,!1,!0,!1),at[t]={pointerType:l,yc:i},$t(f,e),[r,l,i]})},ja:(t,e,r,n,i,a)=>{var o=Et(e,r);i=_t(n,i),kt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.Ua.Ab&&(t.Ua.Ab=[]),void 0!==t.Ua.Ab[e-1])throw new X(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.Ua.Ab[e-1]=()=>{St(`Cannot construct ${t.name} due to unbound types`,o)},kt([],o,n=>(n.splice(1,0,null),t.Ua.Ab[e-1]=Tt(r,n,null,i,a),[])),[]})},n:(t,e,r,n,i,a,o,s,l)=>{var c=Et(r,n);e=W(e),e=Pt(e),a=_t(i,a),kt([],[t],t=>{function n(){St(`Cannot call ${i} due to unbound types`,c)}var i=`${(t=t[0]).name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.Ua.Mc.push(e);var u=t.Ua.Eb,h=u[e];return void 0===h||void 0===h.hb&&h.className!==t.name&&h.Hb===r-2?(n.Hb=r-2,n.className=t.name,u[e]=n):(ot(u,e,i),u[e].hb[r-2]=n),kt([],c,n=>(n=Tt(i,n,t,a,o,l),void 0===u[e].hb?(n.Hb=r-2,u[e]=n):u[e].hb[r-2]=n,[])),[]})},ta:t=>K(t,Nt),N:(t,e,r)=>{K(t,{name:e=W(e),jb:t=>t,nb:(t,e)=>e,xb:Ft(e,r),ob:null})},P:(t,e,r,n,i,a,o)=>{var s=Et(e,r);t=W(t),t=Pt(t),i=_t(n,i),st(t,function(){St(`Cannot call ${t} due to unbound types`,s)},e-1),kt([],s,r=>(r=[r[0],null].concat(r.slice(1)),$t(t,Tt(t,r,null,i,a,o),e-1),[]))},q:(t,e,r,n,i)=>{e=W(e);let a=t=>t;if(0===n){var o=32-8*r;a=t=>t<<o>>>o,i=a(i)}K(t,{name:e,jb:a,nb:(t,e)=>e,xb:Q(e,r,0!==n),ob:null})},m:(t,e,r)=>{function n(t){return new i(w.buffer,A[t+4>>2],A[t>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];K(t,{name:r=W(r),jb:n,xb:n},{Gc:!0})},ua:(t,e)=>{K(t,{name:e=W(e),jb(t){var e=J(t+4,A[t>>2],!0);return Fr(t),e},nb(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r="string"==typeof e;if(!(r||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT))throw new X("Cannot pass non-string to std::string");var n=r?jt(e):e.length,i=Vr(4+n+1),a=i+4;return A[i>>2]=n,r?Vt(e,g,a,n+1):g.set(e,a),null!==t&&t.push(Fr,i),i},xb:pt,ob(t){Fr(t)}})},D:(t,e,r)=>{if(r=W(r),2===e)var n=Bt,i=zt,a=Jt;else n=Wt,i=Gt,a=Ht;K(t,{name:r,jb:t=>{var r=n(t+4,A[t>>2]*e,!0);return Fr(t),r},nb:(t,n)=>{if("string"!=typeof n)throw new X(`Cannot pass non-string to C++ string type ${r}`);var o=a(n),s=Vr(4+o+e);return A[s>>2]=o/e,i(n,s+4,o+e),null!==t&&t.push(Fr,s),s},xb:pt,ob(t){Fr(t)}})},E:t=>{K(t,Nt)},wa:(t,e)=>{K(t,{nc:!0,name:e=W(e),jb:()=>{},nb:()=>{}})},T:()=>{D=!1,qt=0},R:()=>{throw 1/0},s:(t,e,r)=>{var[n,...i]=((t,e)=>{for(var r=Array(t),n=0;n<t;++n){var i=n,a=A[e+4*n>>2],o=H[a];if(void 0===o)throw t=`parameter ${n} has unknown type ${xt(a)}`,new X(t);r[i]=o}return r})(t,e);e=n.nb.bind(n);var a=i.map(t=>t.xb.bind(t));t--;var o={toValue:Lt};switch(t=a.map((t,e)=>{var r=`argFromPtr${e}`;return o[r]=t,`${r}(args${e?"+"+8*e:""})`}),r){case 0:var s="toValue(handle)";break;case 2:s="new (toValue(handle))";break;case 3:s="";break;case 1:o.getStringOrSymbol=Qt,s="toValue(handle)[getStringOrSymbol(methodName)]"}return s+=`(${t})`,n.nc||(o.toReturnWire=e,o.emval_returnValue=Yt,s=`return emval_returnValue(toReturnWire, destructorsRef, ${s})`),s=`return function (handle, methodName, destructorsRef, args) {\n ${s}\n }`,r=new Function(Object.keys(o),s)(...Object.values(o)),s=`methodCaller<(${i.map(t=>t.name)}) => ${n.name}>`,(t=>{var e=Xt.length;return Xt.push(t),e})(it(s,r))},qa:Mt,xa:t=>t?(t=Qt(t),Ot(globalThis[t])):Ot(globalThis),v:(t,e)=>(t=Lt(t),e=Lt(e),Ot(t[e])),F:t=>{9<t&&(Rt[t+1]+=1)},r:(t,e,r,n,i)=>Xt[t](e,r,n,i),ya:t=>Ot(Qt(t)),Q:t=>{var e=Lt(t);It(e),Mt(t)},U:(t,e)=>{if(Zt[t]&&(clearTimeout(Zt[t].id),delete Zt[t]),!e)return 0;var r=setTimeout(()=>{delete Zt[t],ee(()=>rn(t,performance.now()))},e);return Zt[t]={id:r,vd:e},0},V:t=>{var e=g.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);t:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(t,n)/65536))-ln.buffer.byteLength+65535)/65536|0;try{ln.grow(n),M();var i=1;break t}catch(t){}i=void 0}if(i)return!0}return!1},ba:function(t,e,r,n,i,a){e=Be(e),r=Be(r),t=ae(t);var o={};if(a){var s=A[a+12>>2];if(s){var l=A[a+16>>2];o.requiredFeatures=Array.from(A.subarray(l>>2,l+4*s>>2),t=>ye[t])}var c=A[a+20>>2];if(c){var u={};function h(t,e,r=!1){4294967295==(e=A[c+e>>2])||r&&0==e||(u[t]=e)}function d(t,e){4294967295==A[(e=c+e)>>2]&&4294967295==A[e+4>>2]||(u[t]=4294967296*A[e+4>>2]+A[e>>2])}h("maxTextureDimension1D",4),h("maxTextureDimension2D",8),h("maxTextureDimension3D",12),h("maxTextureArrayLayers",16),h("maxBindGroups",20),h("maxBindGroupsPlusVertexBuffers",24),h("maxDynamicUniformBuffersPerPipelineLayout",32),h("maxDynamicStorageBuffersPerPipelineLayout",36),h("maxSampledTexturesPerShaderStage",40),h("maxSamplersPerShaderStage",44),h("maxStorageBuffersPerShaderStage",48),h("maxStorageTexturesPerShaderStage",52),h("maxUniformBuffersPerShaderStage",56),h("minUniformBufferOffsetAlignment",80),h("minStorageBufferOffsetAlignment",84),d("maxUniformBufferBindingSize",64),d("maxStorageBufferBindingSize",72),h("maxVertexBuffers",88),d("maxBufferSize",96),h("maxVertexAttributes",104),h("maxVertexBufferArrayStride",108),h("maxInterStageShaderVariables",112),h("maxColorAttachments",116),h("maxColorAttachmentBytesPerSample",120),h("maxComputeWorkgroupStorageSize",124),h("maxComputeInvocationsPerWorkgroup",128),h("maxComputeWorkgroupSizeX",132),h("maxComputeWorkgroupSizeY",136),h("maxComputeWorkgroupSizeZ",140),h("maxComputeWorkgroupsPerDimension",144),h("maxImmediateSize",148,!0),o.requiredLimits=u}(s=A[a+24>>2])&&(s={label:se(s+4)},o.defaultQueue=s),o.label=se(a+4)}t.requestDevice(o).then(t=>{ee(()=>{ne[i>>>0]=t.queue,ne[n>>>0]=t,t.lost.then(e=>{ee(()=>{t.onuncapturederror=()=>{};var n=sn(),i=re(e.message);Qr(r,De[e.reason],i),an(n)})}),t.onuncapturederror=t=>{var e=5;t.error instanceof GPUValidationError?e=2:t.error instanceof GPUOutOfMemoryError?e=3:t.error instanceof GPUInternalError&&(e=4);var r=sn();t=re(t.error.message),en(n,e,t),an(r)},tn(e,1,n,0)})},t=>{ee(()=>{var i=sn(),a=re(t.message);tn(e,3,n,a),r&&Qr(r,4,a),an(i)})})},da:t=>{var e=ae(t),r=ie[t];if(r){for(var n=0;n<r.length;++n)r[n]();delete ie[t]}e.destroy()},g:t=>{delete ne[t]},aa:(t,e,r)=>{var n=!!A[e+32>>2];e={label:se(e+4),usage:A[e+16>>2],size:4294967296*A[e+4+24>>2]+A[e+24>>2],mappedAtCreation:n},t=ae(t);try{var i=t.createBuffer(e)}catch(t){return!1}return ne[r>>>0]=i,n&&(ie[r]=[]),!0},$:(t,e,r)=>{var n=A[e>>2],i=A[n+4>>2];e={label:se(e+4),code:""},2===i&&(e.code=oe(n+8)),t=ae(t).createShaderModule(e),ne[r>>>0]=t},ca:t=>{(t=ae(t)).onuncapturederror=null,t.destroy()},_:function(t,e,r,n){if(e=Be(e),r){var i={featureLevel:ge[A[r+4>>2]],powerPreference:ke[A[r+8>>2]],forceFallbackAdapter:!!A[r+12>>2]};0!==(t=A[r>>2])&&(i.zd=!!A[t+8>>2])}"gpu"in navigator?navigator.gpu.requestAdapter(i).then(t=>{ee(()=>{if(t)ne[n>>>0]=t,Zr(e,1,n,0);else{var r=sn(),i=re("WebGPU not available on this browser (requestAdapter returned null)");Zr(e,3,n,i),an(r)}})},t=>{ee(()=>{var r=sn(),i=re(t.message);Zr(e,4,n,i),an(r)})}):(i=sn(),t=re("WebGPU not available on this browser (navigator.gpu is not available)"),Zr(e,3,n,t),an(i))},X:function(t){try{var e=Er(t);return Or.close(e),0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},W:function(t,e,r,n){e=Be(e);try{if(isNaN(e))return 61;var i=Er(t);return Or.lb(i,e,r),k[n>>3]=BigInt(i.position),i.Ub&&0===e&&0===r&&(i.Ub=null),0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},Y:function(t,e,r,n){try{t:{var i=Er(t);t=e;for(var a,o=e=0;o<r;o++){var s=A[t>>2],l=A[t+4>>2];t+=8;var c=Or.write(i,w,s,l,a);if(0>c){var u=-1;break t}if(e+=c,c<l)break;void 0!==a&&(a+=c)}u=e}return A[n>>2]=u,0}catch(t){if(void 0===Or||"ErrnoError"!==t.name)throw t;return t.Bb}},o:function(t,e){var r=sn();try{return cn.get(t)(e)}catch(t){if(an(r),t!==t+0)throw t;nn(1,0)}},i:function(t,e,r){var n=sn();try{return cn.get(t)(e,r)}catch(t){if(an(n),t!==t+0)throw t;nn(1,0)}},f:function(t,e,r,n){var i=sn();try{return cn.get(t)(e,r,n)}catch(t){if(an(i),t!==t+0)throw t;nn(1,0)}},H:function(t,e,r,n,i,a){var o=sn();try{return cn.get(t)(e,r,n,i,a)}catch(t){if(an(o),t!==t+0)throw t;nn(1,0)}},G:function(t){var e=sn();try{cn.get(t)()}catch(t){if(an(e),t!==t+0)throw t;nn(1,0)}},b:function(t,e){var r=sn();try{cn.get(t)(e)}catch(t){if(an(r),t!==t+0)throw t;nn(1,0)}},c:function(t,e,r){var n=sn();try{cn.get(t)(e,r)}catch(t){if(an(n),t!==t+0)throw t;nn(1,0)}},l:function(t,e,r,n){var i=sn();try{cn.get(t)(e,r,n)}catch(t){if(an(i),t!==t+0)throw t;nn(1,0)}},t:function(t,e,r,n,i){var a=sn();try{cn.get(t)(e,r,n,i)}catch(t){if(an(a),t!==t+0)throw t;nn(1,0)}},S:te,y:function(t){return BigInt(ae(t).size)},B:(t,e)=>{var r=A[e>>2],n=void 0;0!==r&&(n=4294967296*A[r+12>>2]+A[r+8>>2]),r=se(e+4);for(var i=A[e+12>>2],a=A[e+16>>2],o=[],s=0;s<i;++s){var l=o,c=l.push,u=a+56*s,h=A[u+4>>2];if(0!==h){var d=_[u+8>>2];-1==d&&(d=void 0);var f=u+24;u={view:ae(h),depthSlice:d,resolveTarget:ae(A[u+12>>2]),clearValue:{r:S[f>>3],g:S[f+8>>3],b:S[f+16>>3],a:S[f+24>>3]},loadOp:xe[A[u+16>>2]],storeOp:Ue[A[u+20>>2]]}}else u=void 0;c.call(l,u)}return i=0!==(i=A[e+20>>2])?{view:ae(A[i+4>>2]),depthClearValue:x[i+16>>2],depthLoadOp:xe[A[i+8>>2]],depthStoreOp:Ue[A[i+12>>2]],depthReadOnly:!!A[i+20>>2],stencilClearValue:A[i+32>>2],stencilLoadOp:xe[A[i+24>>2]],stencilStoreOp:Ue[A[i+28>>2]],stencilReadOnly:!!A[i+36>>2]}:void 0,a=0!==(a=A[e+28>>2])?{querySet:ae(A[a+4>>2]),beginningOfPassWriteIndex:A[a+8>>2],endOfPassWriteIndex:A[a+12>>2]}:void 0,e={label:r,colorAttachments:o,depthStencilAttachment:i,occlusionQuerySet:ae(A[e+24>>2]),timestampWrites:a,maxDrawCount:n},n=ae(t),t=Gr(0),e=n.beginRenderPass(e),ne[t>>>0]=e,t},ia:(t,e,r,n)=>{ae(t).copyTextureToTexture(ce(e),ce(r),le(n))},la:t=>{var e=ae(t);return t=zr(0),e=e.finish(),ne[t>>>0]=e,t},x:(t,e)=>{var r=se(e+4),n=ae(A[e+12>>2]),i=A[e+16>>2];e=A[e+20>>2];for(var a=[],o=0;o<i;++o){var s=a,l=s.push,c=e+40*o,u=A[c+8>>2],h=A[c+32>>2],d=A[c+36>>2],f=A[c+4>>2];u?(-1==(h=A[(h=c+24)>>2]+4294967296*_[h+4>>2])&&(h=void 0),c={binding:f,resource:{buffer:ae(u),offset:4294967296*A[c+4+16>>2]+A[c+16>>2],size:h}}):c=h?{binding:f,resource:ae(h)}:{binding:f,resource:ae(d)},l.call(s,c)}return r={label:r,layout:n,entries:a},n=ae(t),t=Dr(0),r=n.createBindGroup(r),ne[t>>>0]=r,t},p:(t,e)=>{var r=se(e+4),n=A[e+12>>2];e=A[e+16>>2];for(var i=[],a=0;a<n;++a){var o=e+88*a,s=A[o+4>>2],l=A[o+8>>2],c=o+24,u=A[c+4>>2];c=u?{type:me[u],hasDynamicOffset:!!A[c+8>>2],minBindingSize:4294967296*A[c+4+16>>2]+A[c+16>>2]}:void 0,u=(u=A[o+48+4>>2])?{type:Ce[u]}:void 0;var h=o+56,d=A[h+4>>2];h=d?{sampleType:Oe[d],viewDimension:Ne[A[h+8>>2]],multisampled:!!A[h+12>>2]}:void 0,o=(d=A[(o+=72)+4>>2])?{access:Pe[d],format:Le[A[o+8>>2]],viewDimension:Ne[A[o+12>>2]]}:void 0,i.push.call(i,{binding:s,visibility:l,buffer:c,sampler:u,texture:h,storageTexture:o})}return r={label:r,entries:i},n=ae(t),t=Br(0),r=n.createBindGroupLayout(r),ne[t>>>0]=r,t},ma:(t,e)=>{var r;return e&&(r={label:se(e+4)}),e=ae(t),t=Jr(0),r=e.createCommandEncoder(r),ne[t>>>0]=r,t},ka:(t,e)=>{for(var r=A[e+12>>2],n=A[e+16>>2],i=[],a=0;a<r;++a)i.push(ae(A[n+4*a>>2]));return e={label:se(e+4),bindGroupLayouts:i},r=ae(t),t=Wr(0),e=r.createPipelineLayout(e),ne[t>>>0]=e,t},j:(t,e)=>{e=(t=>{function e(t){if(t)return{operation:pe[A[t>>2]],srcFactor:fe[A[t+4>>2]],dstFactor:fe[A[t+8>>2]]}}function r(t){return{compare:be[A[t>>2]],failOp:Te[A[t+4>>2]],depthFailOp:Te[A[t+8>>2]],passOp:Te[A[t+12>>2]]}}return{label:se(t+4),layout:he(A[t+12>>2]),vertex:function(t){if(t){var e=ae(A[t+4>>2]),r=ue(A[t+16>>2],A[t+20>>2]),n=A[t+24>>2],i=A[t+28>>2];if(n){for(var a=[],o=0;o<n;++o){var s=a,l=s.push,c=i+24*o;if(c){var u=A[c+4>>2],h=A[c+16>>2];if(0===u&&0===h)var d=null;else{d=4294967296*A[c+4+8>>2]+A[c+8>>2],u=je[u],c=A[c+20>>2];for(var f=[],p=0;p<h;++p){var m=c+24*p;f.push.call(f,{format:Ve[A[m+4>>2]],offset:4294967296*A[m+4+8>>2]+A[m+8>>2],shaderLocation:A[m+16>>2]})}d={arrayStride:d,stepMode:u,attributes:f}}}else d=void 0;l.call(s,d)}n=a}else n=void 0;return{module:e,constants:r,buffers:n,entryPoint:se(t+8)}}}(t+16),primitive:function(t){if(t)return{topology:Ie[A[t+4>>2]],stripIndexFormat:Ae[A[t+8>>2]],frontFace:_e[A[t+12>>2]],cullMode:we[A[t+16>>2]],unclippedDepth:!!A[t+20>>2]}}(t+48),depthStencil:function(t){if(t)return{format:Le[A[t+4>>2]],depthWriteEnabled:!!A[t+8>>2],depthCompare:be[A[t+12>>2]],stencilFront:r(t+16),stencilBack:r(t+32),stencilReadMask:A[t+48>>2],stencilWriteMask:A[t+52>>2],depthBias:_[t+56>>2],depthBiasSlopeScale:x[t+60>>2],depthBiasClamp:x[t+64>>2]}}(A[t+72>>2]),multisample:function(t){if(t)return{count:A[t+4>>2],mask:A[t+8>>2],alphaToCoverageEnabled:!!A[t+12>>2]}}(t+76),fragment:function(t){if(t){for(var r=ae(A[t+4>>2]),n=ue(A[t+16>>2],A[t+20>>2]),i=A[t+24>>2],a=A[t+28>>2],o=[],s=0;s<i;++s){var l=o,c=l.push,u=a+24*s,h=A[u+4>>2];if(0===h)u=void 0;else{h=Le[h];var d=(d=A[u+8>>2])?{alpha:e(d+12),color:e(d+0)}:void 0;u={format:h,blend:d,writeMask:A[u+16>>2]}}c.call(l,u)}return{module:r,constants:n,targets:o,entryPoint:se(t+8)}}}(A[t+92>>2])}})(e);var r=ae(t);return t=Hr(0),e=r.createRenderPipeline(e),ne[t>>>0]=e,t},ra:(t,e)=>{var r;return e&&(r={label:se(e+4),addressModeU:de[A[e+12>>2]],addressModeV:de[A[e+16>>2]],addressModeW:de[A[e+20>>2]],magFilter:$e[A[e+24>>2]],minFilter:$e[A[e+28>>2]],mipmapFilter:Se[A[e+32>>2]],lodMinClamp:x[e+36>>2],lodMaxClamp:x[e+40>>2],compare:be[A[e+44>>2]],maxAnisotropy:$[e+48>>1]}),e=ae(t),t=qr(0),r=e.createSampler(r),ne[t>>>0]=r,t},C:(t,e)=>{var r={label:se(e+4),size:le(e+28),mipLevelCount:A[e+44>>2],sampleCount:A[e+48>>2],dimension:Me[A[e+24>>2]],format:Le[A[e+40>>2]],usage:A[e+16>>2]},n=A[e+52>>2];return n&&(e=A[e+56>>2],r.viewFormats=Array.from(_.subarray(e>>2,e+4*n>>2),t=>Le[t])),t=ae(t),((t,e)=>{ne[t>>>0]=e})(n=Yr(0),t.createTexture(r)),n},ha:(t,e)=>(t=2<(t=A[A[e>>2]+8>>2])?J(t):t,(t=(Nr[t]||("undefined"!=typeof document?document.querySelector(t):null)).getContext("webgpu"))?(t.ud=se(e+4),e=Xr(0),ne[e>>>0]=t,e):0),J:(t,e,r)=>{t=ae(t),e=Array.from(_.subarray(r>>2,r+4*e>>2),t=>ae(t)),t.submit(e)},u:function(t,e,r,n,i){r=Be(r),ae(t).writeBuffer(ae(e),r,g.subarray(n,n+i),0,i)},K:(t,e,r,n,i,a)=>{var o=A[i+8>>2],s=A[i+12>>2];ae(t).writeTexture(ce(e),g.subarray(r,r+n),{offset:4294967296*A[i+4>>2]+A[i>>2],bytesPerRow:4294967295===o?void 0:o,rowsPerImage:4294967295===s?void 0:s},le(a))},z:(t,e,r,n,i,a)=>{ae(t).drawIndexed(e,r,n>>>0,i,a>>>0)},I:t=>{ae(t).end()},d:(t,e,r,n,i)=>{t=ae(t),r=ae(r),0==n?t.setBindGroup(e,r):t.setBindGroup(e,r,A,i>>2,n)},A:function(t,e,r,n,i){n=Be(n),i=Be(i),t=ae(t),e=ae(e),-1==i&&(i=void 0),t.setIndexBuffer(e,Ae[r],n,i)},e:(t,e)=>{ae(t).setPipeline(ae(e))},k:(t,e,r,n,i)=>{ae(t).setScissorRect(e,r,n,i)},h:(t,e)=>{ae(t).setStencilReference(e>>>0)},w:function(t,e,r,n,i){n=Be(n),i=Be(i),t=ae(t),r=ae(r),-1==i&&(i=void 0),t.setVertexBuffer(e,r,n,i)},fa:(t,e)=>{var r=A[e+4>>2];t=ae(t);var n=[A[e+24>>2],A[e+28>>2]];if(0!==n[0]&&(t.canvas.width=n[0]),0!==n[1]&&(t.canvas.height=n[1]),r={device:ae(r),format:Le[A[e+8>>2]],usage:A[e+16>>2],alphaMode:ve[A[e+40>>2]]},n=A[e+32>>2]){var i=A[e+36>>2];r.viewFormats=Array.from(_.subarray(i>>2,i+4*n>>2),t=>Le[t])}0!==(e=A[e>>2])&&(r.colorSpace=Ee[A[e+8>>2]],r.wd={mode:Fe[A[e+12>>2]]}),t.configure(r)},ea:(t,e)=>{t=ae(t);try{var r=Yr(0),n=t.getCurrentTexture();ne[r>>>0]=n,A[e+4>>2]=r,_[e+8>>2]=1}catch(t){A[e+4>>2]=0,_[e+8>>2]=6}},ga:t=>{ae(t).unconfigure()},oa:(t,e)=>{if(e){var r=A[e+24>>2],n=A[e+32>>2];r={label:se(e+4),format:Le[A[e+12>>2]],dimension:Ne[A[e+16>>2]],baseMipLevel:A[e+20>>2],mipLevelCount:4294967295===r?void 0:r,baseArrayLayer:A[e+28>>2],arrayLayerCount:4294967295===n?void 0:n,aspect:Re[A[e+36>>2]]}}return e=ae(t),t=Kr(0),e=e.createView(r),ne[t>>>0]=e,t},na:t=>{ae(t).destroy()},pa:t=>Le.indexOf(ae(t).format),L:t=>ae(t).height,M:t=>ae(t).width};return un=await async function(){function t(t){return t=un=t.exports,Fr=t.Ba,Vr=t.Ca,jr=t.Da,Dr=t.Ea,Br=t.Fa,zr=t.Ga,Jr=t.Ha,Wr=t.Ka,Gr=t.Oa,Hr=t.Pa,qr=t.Qa,Xr=t.Ra,Yr=t.Sa,Kr=t.Ta,Qr=t.Za,Zr=t._a,tn=t.$a,en=t.ab,rn=t.cb,nn=t.db,an=t.eb,on=t.fb,sn=t.gb,ln=t.za,cn=t.bb,M(),un}var r={a:hn};return n.instantiateWasm?new Promise(e=>{n.instantiateWasm(r,(r,n)=>{e(t(r))})}):(I??=n.locateFile?n.locateFile?n.locateFile("thorvg.wasm",d):d+"thorvg.wasm":new URL("thorvg.wasm","undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("lottie-player.js",document.baseURI).href).href,t((await async function(t){var e=I;if(!p&&!U(e)&&!o)try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,t)}catch(t){T(`wasm streaming compile failed: ${t}`),T("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var r=await async function(t){if(!p)try{var e=await l(t);return new Uint8Array(e)}catch{}if(t==I&&p)t=new Uint8Array(p);else{if(!c)throw"both async and sync fetching of the wasm failed";t=c(t)}return t}(t);return await WebAssembly.instantiate(r,e)}catch(t){T(`failed to asynchronously prepare wasm: ${t}`),L(t)}}(e,t)}(r)).instance))}(),function t(){function e(){if(n.calledRun=!0,!P){if(R=!0,n.noFSInit||Or.Vb||dr(),un.Aa(),Or.lc=!1,b?.(n),n.onRuntimeInitialized?.(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var t=n.postRun.shift();F.push(t)}N(F)}}if(0<or)sr=t;else{if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j();N(V),0<or?sr=t:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e()}}(),r=R?n:new Promise((t,e)=>{b=t,v=e}),r}({locateFile:(t,e)=>t.endsWith(".wasm")?this.wasmUrl||"https://unpkg.com/@thorvg/lottie-player@latest/dist/thorvg.wasm":e+t})),!this._timer)return;clearInterval(this._timer),this._timer=void 0;const t=this.config?.renderer||"wg";if(await(async t=>{if("wg"===t){for(;"requested"===bt;)await mt(100);if("initialized"!==bt&&(bt="requested",dt))for(;;)switch(dt.init()){case 0:return void(bt="initialized");case 1:return void(bt="failed");case 2:await mt(100)}}})(t),"failed"===bt)return this.currentState="error",void this.dispatchEvent(new CustomEvent("error"));this.TVG=new dt.TvgLottieAnimation(t,`#${this.canvas.id}`),this.src&&this.load(this.src,this.fileType)}_viewport(){const{left:t,right:e,top:r,bottom:n}=this.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight;let o=0,s=0,l=this.canvas.width,c=this.canvas.height;t<0&&(o=Math.abs(t),l-=o),r<0&&(s=Math.abs(r),c-=s),e>i&&(l-=e-i),n>a&&(c-=n-a),this.TVG.viewport(o,s,l,c)}_observerCallback(t){const e=t[0],r=e.target;r._observable=e.isIntersecting,e.isIntersecting?"frozen"===r.currentState&&r.play():"playing"===r.currentState&&(r.freeze(),r.dispatchEvent(new CustomEvent("freeze")))}firstUpdated(t){this.canvas=this.querySelector(".thorvg"),this.canvas.id=`thorvg-${Date.now().toString(36)+Math.random().toString(36).substring(2)}`,this.canvas.width=this.canvas.offsetWidth,this.canvas.height=this.canvas.offsetHeight,this._observer=new IntersectionObserver(this._observerCallback),this._observer.observe(this),this.TVG?this.src&&this.load(this.src,this.fileType):this._timer=setInterval(this._init.bind(this),100)}createRenderRoot(){return this.style.display="block",this}async _animLoop(){this.TVG&&await this._update()&&(this._render(),window.requestAnimationFrame(this._animLoop.bind(this)))}_loadBytes(t){if(!this.TVG)throw new Error("TVG is not initialized");if(this._assetResolverCallback&&this.TVG.setAssetResolver(this._assetResolverCallback,this._assetResolverData),!this.TVG.load(t,this.fileType,this.canvas.width,this.canvas.height))throw new Error(`Unable to load an image. Error: ${this.TVG.error()}`);this._render(),this.dispatchEvent(new CustomEvent("load")),this.autoPlay&&this.play()}_flush(){this.canvas.getContext("2d").putImageData(this._imageData,0,0)}_render(){if(!this.TVG)return;if(!1!==this.config?.enableDevicePixelRatio){const t=1+.75*(window.devicePixelRatio-1),{width:e,height:r}=this.canvas.getBoundingClientRect();this.canvas.width=e*t,this.canvas.height=r*t}if(this.TVG.resize(this.canvas.width,this.canvas.height),this._viewport(),!this.TVG.update())return;if("wg"===this.config?.renderer||"gl"===this.config?.renderer)return void this.TVG.render();const t=this.TVG.render(),e=new Uint8ClampedArray(t,0,t.byteLength);e.length<1||(this._imageData=new ImageData(e,this.canvas.width,this.canvas.height),this._flush())}async _update(){if(!this.TVG)return!1;if("playing"!==this.currentState)return!1;const t=this.TVG.duration(),e=Date.now()/1e3;if(this.currentFrame=(e-this._beginTime)/t*this.totalFrame*this.speed,-1===this.direction&&(this.currentFrame=this.totalFrame-this.currentFrame),1===this.direction&&this.currentFrame>=this.totalFrame||-1===this.direction&&this.currentFrame<=0){const t=this.count?"bounce"===this.mode?2*this.count:this.count:0;if(this.loop||t&&this._counter<t)return"bounce"===this.mode&&(this.direction=1===this.direction?-1:1,this.currentFrame=1===this.direction?0:this.totalFrame),this.count&&(this._counter+=1),await mt(this.intermission),this.play(),!0;this.dispatchEvent(new CustomEvent("complete")),this.currentState="stopped"}return this.dispatchEvent(new CustomEvent("frame",{detail:{frame:this.currentFrame}})),this.TVG.frame(this.currentFrame)}_frame(t){this.TVG&&(this.pause(),this.currentFrame=t,this.TVG.frame(t))}async load(t,e="json"){try{this.currentState="loading",await this._init();const r=await(async(t,e)=>{const r=new TextEncoder;let n=t;switch(typeof n){case"object":return n instanceof ArrayBuffer?new Uint8Array(n):(n=JSON.stringify(n),r.encode(n));case"string":if("json"===e||"lot"===e)return n=await(async t=>{try{t=JSON.parse(t)}catch(e){const r=await(async t=>{if("string"!=typeof t)throw new Error("The url value must be a string");try{const e=new URL(t),r=await fetch(e.toString());return await r.json()}catch(t){throw new Error("An error occurred while trying to load the Lottie file from URL")}})(t);t=JSON.stringify(r)}return t})(n),r.encode(n);const t=await(async t=>(await fetch(t)).arrayBuffer())(n);return new Uint8Array(t);default:throw new Error("Invalid src type")}})(t,e);this.dispatchEvent(new CustomEvent("ready")),this.fileType=e,await this._loadBytes(r)}catch(t){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if(this.TVG&&!("json"!==this.fileType&&"lot"!==this.fileType||(this.totalFrame=this.TVG.totalFrame(),this.totalFrame<1||(this._beginTime=Date.now()/1e3,"playing"===this.currentState))))return this._observable?(this.currentState="playing",void window.requestAnimationFrame(this._animLoop.bind(this))):void(this.currentState="frozen")}pause(){this.currentState="paused",this.dispatchEvent(new CustomEvent("pause"))}stop(){this.currentState="stopped",this.currentFrame=0,this._counter=1,this.seek(0),this.dispatchEvent(new CustomEvent("stop"))}freeze(){this.currentState="frozen",this.dispatchEvent(new CustomEvent("freeze"))}async seek(t){this._frame(t),await this._update(),this._render()}resize(t,e){this.canvas.width=t,this.canvas.height=e,"playing"!==this.currentState&&this._render()}destroy(){this.TVG&&(this.TVG.delete(),this.TVG=null,this.currentState="destroyed",this._observer&&(this._observer.disconnect(),this._observer=void 0),this.dispatchEvent(new CustomEvent("destroyed")),this.remove())}term(){dt&&(dt.term(),dt=null)}setLooping(t){this.TVG&&(this.loop=t)}setDirection(t){this.TVG&&(this.direction=t)}setSpeed(t){this.TVG&&(this.speed=t)}setBgColor(t){this.TVG&&(this.canvas.style.backgroundColor=t)}setQuality(t){this.TVG&&this.TVG.quality(t)&&"playing"!==this.currentState&&this._render()}setAssetResolver(t,e){this._assetResolverCallback=t,this._assetResolverData=e,this.TVG&&this.TVG.setAssetResolver(t,e)}getVersion(){return{THORVG_VERSION:"1.0.3"}}render(){return W`
|
|
2
2
|
<canvas class="thorvg" style="width: 100%; height: 100%;" />
|
|
3
|
-
`}}function wt(t,e,r,n){var i,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,r,o):i(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}ht([S({type:String})],vt.prototype,"src",void 0),ht([S({type:String})],vt.prototype,"wasmUrl",void 0),ht([S({type:pt})],vt.prototype,"fileType",void 0),ht([S({type:Number})],vt.prototype,"speed",void 0),ht([S({type:Boolean})],vt.prototype,"autoPlay",void 0),ht([S({type:Number})],vt.prototype,"count",void 0),ht([S({type:Boolean})],vt.prototype,"loop",void 0),ht([S({type:Number})],vt.prototype,"direction",void 0),ht([S()],vt.prototype,"mode",void 0),ht([S()],vt.prototype,"intermission",void 0),ht([S({type:Number})],vt.prototype,"totalFrame",void 0),ht([S({type:Number})],vt.prototype,"currentFrame",void 0),ht([S({type:Number})],vt.prototype,"currentState",void 0),ht([S({type:Float32Array})],vt.prototype,"size",null);class gt extends vt{set renderConfig(t){this.config={renderer:"wg",enableDevicePixelRatio:t.enableDevicePixelRatio}}get renderConfig(){return this.config||{}}}wt([S({type:Object})],gt.prototype,"renderConfig",null),gt=wt([(t=>(e,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("lottie-player")],gt);var yt=Object.freeze({__proto__:null});t.LottiePresetPlayer=gt});
|
|
3
|
+
`}}function wt(t,e,r,n){var i,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,r,o):i(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}ht([S({type:String})],vt.prototype,"src",void 0),ht([S({type:String})],vt.prototype,"wasmUrl",void 0),ht([S({type:pt})],vt.prototype,"fileType",void 0),ht([S({type:Number})],vt.prototype,"speed",void 0),ht([S({type:Boolean})],vt.prototype,"autoPlay",void 0),ht([S({type:Number})],vt.prototype,"count",void 0),ht([S({type:Boolean})],vt.prototype,"loop",void 0),ht([S({type:Number})],vt.prototype,"direction",void 0),ht([S()],vt.prototype,"mode",void 0),ht([S()],vt.prototype,"intermission",void 0),ht([S({type:Number})],vt.prototype,"totalFrame",void 0),ht([S({type:Number})],vt.prototype,"currentFrame",void 0),ht([S({type:Number})],vt.prototype,"currentState",void 0),ht([S({type:Float32Array})],vt.prototype,"size",null),ht([S({type:Number})],vt.prototype,"dpr",null);class gt extends vt{set renderConfig(t){this.config={renderer:"wg",enableDevicePixelRatio:t.enableDevicePixelRatio}}get renderConfig(){return this.config||{}}}wt([S({type:Object})],gt.prototype,"renderConfig",null),gt=wt([(t=>(e,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("lottie-player")],gt);var yt=Object.freeze({__proto__:null});t.LottiePresetPlayer=gt});
|
|
4
4
|
//# sourceMappingURL=lottie-player.js.map
|