PageSourceSearch

https://www.woodint.com/_nuxt/Bc9xq1aI.js

js woodint.com collected 2026-10-07 19:11:08 UTC 107,282 bytes, 18 lines download raw bytes

1import{bA as ni,r as bn,aj as ri,at as ii,t as oi,x as ai,k as si,o as ui,b as ci,h as li,n as fi,f as _n,O as hi}from"./BZTDOI2_.js";import di from"./D8dMHsEl.js";var Ar={exports:{}};(function(en,Rn){(function($e,he){en.exports=he()})(ni,()=>(()=>{var Tt=[,(ne,B,W)=>{W.r(B),W.d(B,{default:()=>re});var ve=(()=>{var H=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(O={}){var c=O,Z,ee;c.ready=new Promise((e,t)=>{Z=e,ee=t});function pe(){function e(l){const d=i;n=t=0,i=new Map,d.forEach(m=>{try{m(l)}catch{}}),this.ob(),o&&o.Tb()}let t=0,n=0,i=new Map,o=null,s=null;this.requestAnimationFrame=function(l){t||(t=requestAnimationFrame(e.bind(this)));const d=++n;return i.set(d,l),d},this.cancelAnimationFrame=function(l){i.delete(l),t&&i.size==0&&(cancelAnimationFrame(t),t=0)},this.Rb=function(l){s&&(document.body.remove(s),s=null),l||(s=document.createElement("div"),s.style.backgroundColor="black",s.style.position="fixed",s.style.right=0,s.style.top=0,s.style.color="white",s.style.padding="4px",s.innerHTML="RIVE FPS",l=function(d){s.innerHTML="RIVE FPS "+d.toFixed(1)},document.body.appendChild(s)),o=new function(){let d=0,m=0;this.Tb=function(){var h=performance.now();m?(++d,h-=m,1e3<h&&(l(1e3*d/h),d=m=0)):(m=h,d=0)}}},this.Ob=function(){s&&(document.body.remove(s),s=null),o=null},this.ob=function(){}}function ae(e){const t=new Map;let n=-1/0;this.push=function(i){return i=i+((1<<e)-1)>>e,t.has(i)&&clearTimeout(t.get(i)),t.set(i,setTimeout(function(){t.delete(i),t.length==0?n=-1/0:i==n&&(n=Math.max(...t.keys()))},1e3)),n=Math.max(i,n),n<<e}}const we=c.onRuntimeInitialized;c.onRuntimeInitialized=function(){we&&we();let e=c.decodeAudio;c.decodeAudio=function(i,o){i=e(i),o(i)};let t=c.decodeFont;c.decodeFont=function(i,o){i=t(i),o(i)};const n=c.FileAssetLoader;c.ptrToAsset=i=>{let o=c.ptrToFileAsset(i);return o.isImage?c.ptrToImageAsset(i):o.isFont?c.ptrToFontAsset(i):o.isAudio?c.ptrToAudioAsset(i):o},c.CustomFileAssetLoader=n.extend("CustomFileAssetLoader",{__construct:function({loadContents:i}){this.__parent.__construct.call(this),this.Gb=i},loadContents:function(i,o){return i=c.ptrToAsset(i),this.Gb(i,o)}}),c.CDNFileAssetLoader=n.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(i){let o=c.ptrToAsset(i);return i=o.cdnUuid,i===""?!1:(function(s,l){var d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=function(){d.readyState==4&&d.status==200&&l(d)},d.open("GET",s,!0),d.send(null)}(o.cdnBaseUrl+"/"+i,s=>{o.decode(new Uint8Array(s.response))}),!0)}}),c.FallbackFileAssetLoader=n.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.kb=[]},addLoader:function(i){this.kb.push(i)},loadContents:function(i,o){for(let s of this.kb)if(s.loadContents(i,o))return!0;return!1}})};const be="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),se=new function(){function e(){if(!t){let D=function(U,C,te){if(C=w.createShader(C),w.shaderSource(C,te),w.compileShader(C),te=w.getShaderInfoLog(C),0<(te||"").length)throw te;w.attachShader(U,C)};var f=document.createElement("canvas"),b={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let w;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(w=f.getContext("webgl",b),n=1,!w)return!1}else if(w=f.getContext("webgl2",b))n=2;else if(w=f.getContext("webgl",b))n=1;else return!1;if(w=new Proxy(w,{get(U,C){if(U.isContextLost()){if(m||(m=!0),typeof U[C]=="function")return function(){}}else return typeof U[C]=="function"?function(...te){return U[C].apply(U,te)}:U[C]},set(U,C,te){if(U.isContextLost())m||(m=!0);else return U[C]=te,!0}}),i=Math.min(w.getParameter(w.MAX_RENDERBUFFER_SIZE),w.getParameter(w.MAX_TEXTURE_SIZE)),f=w.createProgram(),D(f,w.VERTEX_SHADER,`attribute vec2 vertex;
2                attribute vec2 uv;
3                uniform vec4 mat;
4                uniform vec2 translate;
5                varying vec2 st;
6                void main() {
7                    st = uv;
8                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
9                }`),D(f,w.FRAGMENT_SHADER,`precision highp float;
10                uniform sampler2D image;
11                varying vec2 st;
12                void main() {
13                    gl_FragColor = texture2D(image, st);
14                }`),w.bindAttribLocation(f,0,"vertex"),w.bindAttribLocation(f,1,"uv"),w.linkProgram(f),b=w.getProgramInfoLog(f),
140<(b||"").trim().length)throw b;o=w.getUniformLocation(f,"mat"),s=w.getUniformLocation(f,"translate"),w.useProgram(f),w.bindBuffer(w.ARRAY_BUFFER,w.createBuffer()),w.enableVertexAttribArray(0),w.enableVertexAttribArray(1),w.bindBuffer(w.ELEMENT_ARRAY_BUFFER,w.createBuffer()),w.uniform1i(w.getUniformLocation(f,"image"),0),w.pixelStorei(w.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t=w}return!0}let t=null,n=0,i=0,o=null,s=null,l=0,d=0,m=!1;e(),this.hc=function(){return e(),i},this.Mb=function(f){t.deleteTexture&&t.deleteTexture(f)},this.Lb=function(f){if(!e())return null;const b=t.createTexture();return b?(t.bindTexture(t.TEXTURE_2D,b),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),n==2?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),b):null};const h=new ae(8),_=new ae(8),R=new ae(10),E=new ae(10);this.Qb=function(f,b,w,D,U){if(e()){var C=h.push(f),te=_.push(b);if(t.canvas){(t.canvas.width!=C||t.canvas.height!=te)&&(t.canvas.width=C,t.canvas.height=te),t.viewport(0,te-b,f,b),t.disable(t.SCISSOR_TEST),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.SCISSOR_TEST),w.sort(($,We)=>We.wb-$.wb),C=R.push(D),l!=C&&(t.bufferData(t.ARRAY_BUFFER,8*C,t.DYNAMIC_DRAW),l=C),C=0;for(var _e of w)t.bufferSubData(t.ARRAY_BUFFER,C,_e.Ta),C+=4*_e.Ta.length;for(var Ne of w)t.bufferSubData(t.ARRAY_BUFFER,C,Ne.Db),C+=4*Ne.Db.length;C=E.push(U),d!=C&&(t.bufferData(t.ELEMENT_ARRAY_BUFFER,2*C,t.DYNAMIC_DRAW),d=C),_e=0;for(var ut of w)t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,_e,ut.indices),_e+=2*ut.indices.length;ut=0,Ne=!0,C=_e=0;for(const $ of w){$.image.Ka!=ut&&(t.bindTexture(t.TEXTURE_2D,$.image.Ja||null),ut=$.image.Ka),$.mc?(t.scissor($.Ya,te-$.Za-$.jb,$.Ac,$.jb),Ne=!0):Ne&&(t.scissor(0,te-b,f,b),Ne=!1),w=2/f;const We=-2/b;t.uniform4f(o,$.ha[0]*w*$.Ba,$.ha[1]*We*$.Ca,$.ha[2]*w*$.Ba,$.ha[3]*We*$.Ca),t.uniform2f(s,$.ha[4]*w*$.Ba+w*($.Ya-$.ic*$.Ba)-1,$.ha[5]*We*$.Ca+We*($.Za-$.jc*$.Ca)+1),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,C),t.vertexAttribPointer(1,2,t.FLOAT,!1,0,C+4*D),t.drawElements(t.TRIANGLES,$.indices.length,t.UNSIGNED_SHORT,_e),C+=4*$.Ta.length,_e+=2*$.indices.length}}}},this.canvas=function(){return e()&&t.canvas}},Fe=c.onRuntimeInitialized;c.onRuntimeInitialized=function(){function e(y){switch(y){case h.srcOver:return"source-over";case h.screen:return"screen";case h.overlay:return"overlay";case h.darken:return"darken";case h.lighten:return"lighten";case h.colorDodge:return"color-dodge";case h.colorBurn:return"color-burn";case h.hardLight:return"hard-light";case h.softLight:return"soft-light";case h.difference:return"difference";case h.exclusion:return"exclusion";case h.multiply:return"multiply";case h.hue:return"hue";case h.saturation:return"saturation";case h.color:return"color";case h.luminosity:return"luminosity"}}function t(y){return"rgba("+((16711680&y)>>>16)+","+((65280&y)>>>8)+","+((255&y)>>>0)+","+((4278190080&y)>>>24)/255+")"}function n(){0<te.length&&(se.Qb(C.drawWidth(),C.drawHeight(),te,_e,Ne),te=[],Ne=_e=0,C.reset(512,512));for(const y of U){for(const T of y.H)T();y.H=[]}U.clear()}Fe&&Fe();var i=c.RenderPaintStyle;const o=c.RenderPath,s=c.RenderPaint,l=c.Renderer,d=c.StrokeCap,m=c.StrokeJoin,h=c.BlendMode,_=i.fill,R=i.stroke,E=c.FillRule.evenOdd;let f=1;var b=c.RenderImage.extend("CanvasRenderImage",{__construct:function({la:y,xa:T}={}){this.__parent.__construct.call(this),this.Ka=f,f=f+1&2147483647||1,this.la=y,this.xa=T},__destruct:function(){this.Ja&&(se.Mb(this.Ja),URL.revokeObjectURL(this.Wa)),this.__parent.__destruct.call(this)},decode:function(y){var T=this;T.xa&&T.xa(T);var Y=new Image;T.Wa=URL.createObjectURL(new Blob([y],{type:"image/png"})),Y.onload=function(){T.Fb=Y,T.Ja=se.Lb(Y),T.size(Y.width,Y.height),T.la&&T.la(T)},Y.src=T.Wa}}),w=o.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D},addPath:function(y,T,Y,k,S,X,z){var K=this.T,Me=K.addPath;y=y.T;const ue=new DOMMatrix;ue.a=T,ue.b=Y,ue.c=k,ue.d=S,ue.e=X,ue.f=z,Me.call(K,y,ue)},fillRule:function(y){this.Va=y},moveTo:function(y,T){this.T.moveTo(y,T)},lineTo:function(y,T){this.T.lineTo(y,T)},cubicTo:function(y,T,Y,k,S,X){this.T.bezierCurveTo(y,T,Y,k,S,X)},close:function(){this.T.closePath()}}),D=s.extend("CanvasRenderPaint",{color:function(y){this.Xa=t(y)},thickness:function(y){this.Ib=y},join:function(y){switch(y){case m.miter:this.Ia="miter";break;case m.round:this.Ia="round";break;case m.bevel:this.Ia="bevel"}},cap:function(y){switch(y){case d.butt:this.Ha="butt";break;case d.round:this.Ha="round";break;case d.square:this.Ha="square"}},style:function(y){this.Hb=y},blendMode:function(y){this.Eb=e(y)},clearGradient:function(){this.ja=null},linearGradient:function(y,T,Y,k){this.ja={yb:y,zb:T,bb:Y,cb:k,Ra:[]}},radialGradient:function(y,T,Y,k){this.ja={yb:y,zb:T,bb:Y,cb:k,Ra:[],ec:!0}},addStop:function(y,T){this.ja.Ra.push({color:y,stop:T})},completeGradient:function(){},draw:function(y,T,Y){let k=this.Hb;var S=this.Xa,X=this.ja;if(y.globalCompositeOperation=this.Eb,X!=null){S=X.yb;var z=X.zb;const Me=X.bb;var K=X.cb;const ue=X.Ra;X.ec?(X=Me-S,K-=z,S=y.createRadialGradient(S,z,0,S,z,Math.sqrt(X*X+K*K))):S=y.createLinearGradient(S,z,Me,
14K);for(let Je=0,ye=ue.length;Je<ye;Je++)z=ue[Je],S.addColorStop(z.stop,t(z.color));this.Xa=S,this.ja=null}switch(k){case R:y.strokeStyle=S,y.lineWidth=this.Ib,y.lineCap=this.Ha,y.lineJoin=this.Ia,y.stroke(T);break;case _:y.fillStyle=S,y.fill(T,Y)}}});const U=new Set;let C=null,te=[],_e=0,Ne=0;var ut=c.CanvasRenderer=l.extend("Renderer",{__construct:function(y){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=y.getContext("2d"),this.Ua=y,this.H=[]},save:function(){this.S.push(...this.S.slice(this.S.length-6)),this.H.push(this.C.save.bind(this.C))},restore:function(){const y=this.S.length-6;if(6>y)throw"restore() called without matching save().";this.S.splice(y),this.H.push(this.C.restore.bind(this.C))},transform:function(y,T,Y,k,S,X){const z=this.S,K=z.length-6;z.splice(K,6,z[K]*y+z[K+2]*T,z[K+1]*y+z[K+3]*T,z[K]*Y+z[K+2]*k,z[K+1]*Y+z[K+3]*k,z[K]*S+z[K+2]*X+z[K+4],z[K+1]*S+z[K+3]*X+z[K+5]),this.H.push(this.C.transform.bind(this.C,y,T,Y,k,S,X))},rotate:function(y){const T=Math.sin(y);y=Math.cos(y),this.transform(y,T,-T,y,0,0)},_drawPath:function(y,T){this.H.push(T.draw.bind(T,this.C,y.T,y.Va===E?"evenodd":"nonzero"))},_drawRiveImage:function(y,T,Y){var k=y.Fb;if(k){var S=this.C,X=e(T);this.H.push(function(){S.globalCompositeOperation=X,S.globalAlpha=Y,S.drawImage(k,0,0),S.globalAlpha=1})}},_getMatrix:function(y){const T=this.S,Y=T.length-6;for(let k=0;6>k;++k)y[k]=T[Y+k]},_drawImageMesh:function(y,T,Y,k,S,X,z,K,Me,ue){var Je=this.C.canvas.width,ye=this.C.canvas.height;const qr=Me-z,ei=ue-K;z=Math.max(z,0),K=Math.max(K,0),Me=Math.min(Me,Je),ue=Math.min(ue,ye);const Qt=Me-z,qt=ue-K;if(!(0>=Qt||0>=qt)){Me=Qt<qr||qt<ei,Je=ue=1;var ct=Math.ceil(Qt*ue),lt=Math.ceil(qt*Je);ye=se.hc(),ct>ye&&(ue*=ye/ct,ct=ye),lt>ye&&(Je*=ye/lt,lt=ye),C||(C=new c.DynamicRectanizer(ye),C.reset(512,512)),ye=C.addRect(ct,lt),0>ye&&(n(),U.add(this),ye=C.addRect(ct,lt));var wr=ye&65535,br=ye>>16;te.push({ha:this.S.slice(this.S.length-6),image:y,Ya:wr,Za:br,ic:z,jc:K,Ac:ct,jb:lt,Ba:ue,Ca:Je,Ta:new Float32Array(k),Db:new Float32Array(S),indices:new Uint16Array(X),mc:Me,wb:y.Ka<<1|(Me?1:0)}),_e+=k.length,Ne+=X.length;var mt=this.C,ti=e(T);this.H.push(function(){mt.save(),mt.resetTransform(),mt.globalCompositeOperation=ti,mt.globalAlpha=Y;const _r=se.canvas();_r&&mt.drawImage(_r,wr,br,ct,lt,z,K,Qt,qt),mt.restore()})}},_clipPath:function(y){this.H.push(this.C.clip.bind(this.C,y.T,y.Va===E?"evenodd":"nonzero"))},clear:function(){U.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Ua.width,this.Ua.height))},flush:function(){},translate:function(y,T){this.transform(1,0,0,1,y,T)}});c.makeRenderer=function(y){const T=new ut(y),Y=T.C;return new Proxy(T,{get(k,S){if(typeof k[S]=="function")return function(...X){return k[S].apply(k,X)};if(typeof Y[S]=="function"){if(-1<be.indexOf(S))throw Error("RiveException: Method call to '"+S+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...X){T.H.push(Y[S].bind(Y,...X))}}return k[S]},set(k,S,X){if(S in Y)return T.H.push(()=>{Y[S]=X}),!0}})},c.decodeImage=function(y,T){new b({la:T}).decode(y)},c.renderFactory={makeRenderPaint:function(){return new D},makeRenderPath:function(){return new w},makeRenderImage:function(){let y=We;return new b({xa:()=>{y.total++},la:()=>{if(y.loaded++,y.loaded===y.total){const T=y.ready;T&&(T(),y.ready=null)}}})}};let $=c.load,We=null;c.load=function(y,T,Y=!0){const k=new c.FallbackFileAssetLoader;return T!==void 0&&k.addLoader(T),Y&&(T=new c.CDNFileAssetLoader,k.addLoader(T)),new Promise(function(S){let X=null;We={total:0,loaded:0,ready:function(){S(X)}},X=$(y,k),We.total==0&&S(X)})},i=new pe,c.requestAnimationFrame=i.requestAnimationFrame.bind(i),c.cancelAnimationFrame=i.cancelAnimationFrame.bind(i),c.enableFPSCounter=i.Rb.bind(i),c.disableFPSCounter=i.Ob,i.ob=n,c.resolveAnimationFrame=n,c.cleanup=function(){C&&C.delete()}};var L=Object.assign({},c),Oe="./this.program",xe=typeof window=="object",Ye=typeof importScripts=="function",N="",Ce,Ae;(xe||Ye)&&(Ye?N=self.location.href:typeof document<"u"&&document.currentScript&&(N=document.currentScript.src),H&&(N=H),N.indexOf("blob:")!==0?N=N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):N="",Ye&&(Ae=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),Ce=(e,t,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{i.status==200||i.status==0&&i.response?t(i.response):n()},i.onerror=n,i.send(null)});var nt=c.print||void 0,Pe=c.printErr||void 0;Object.assign(c,L),L=null,c.thisProgram&&(Oe=c.thisProgram);var Ie;c.wasmBinary&&(Ie=c.wasmBinary),c.noExitRuntime,typeof WebAssembly!="object"&&G("no native wasm support detected");var ke,J,rt=!1,oe,V,me,Re,j,Q,u,r;function a(){var e=ke.buffer;
14c.HEAP8=oe=new Int8Array(e),c.HEAP16=me=new Int16Array(e),c.HEAP32=j=new Int32Array(e),c.HEAPU8=V=new Uint8Array(e),c.HEAPU16=Re=new Uint16Array(e),c.HEAPU32=Q=new Uint32Array(e),c.HEAPF32=u=new Float32Array(e),c.HEAPF64=r=new Float64Array(e)}var p,v=[],g=[],A=[];function M(){var e=c.preRun.shift();v.unshift(e)}var q=0,F=null;function G(e){throw c.onAbort&&c.onAbort(e),e="Aborted("+e+")",Pe(e),rt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),ee(e),e}function ce(e){return e.startsWith("data:application/octet-stream;base64,")}var le;if(le="canvas_advanced.wasm",!ce(le)){var fe=le;le=c.locateFile?c.locateFile(fe,N):N+fe}function Qe(e){if(e==le&&Ie)return new Uint8Array(Ie);if(Ae)return Ae(e);throw"both async and sync fetching of the wasm failed"}function De(e){if(!Ie&&(xe||Ye)){if(typeof fetch=="function"&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>Qe(e));if(Ce)return new Promise((t,n)=>{Ce(e,i=>t(new Uint8Array(i)),n)})}return Promise.resolve().then(()=>Qe(e))}function it(e,t,n){return De(e).then(i=>WebAssembly.instantiate(i,t)).then(i=>i).then(n,i=>{Pe("failed to asynchronously prepare wasm: "+i),G(i)})}function Lt(e,t){var n=le;return Ie||typeof WebAssembly.instantiateStreaming!="function"||ce(n)||n.startsWith("file://")||typeof fetch!="function"?it(n,e,t):fetch(n,{credentials:"same-origin"}).then(i=>WebAssembly.instantiateStreaming(i,e).then(t,function(o){return Pe("wasm streaming compile failed: "+o),Pe("falling back to ArrayBuffer instantiation"),it(n,e,t)}))}var Xe,ft,gt={437756:(e,t,n,i,o)=>{if(typeof window>"u"||(window.AudioContext||window.webkitAudioContext)===void 0)return 0;if(typeof window.h>"u"){window.h={Aa:0},window.h.I={},window.h.I.ya=e,window.h.I.capture=t,window.h.I.La=n,window.h.ga={},window.h.ga.stopped=i,window.h.ga.xb=o;let s=window.h;s.D=[],s.yc=function(l){for(var d=0;d<s.D.length;++d)if(s.D[d]==null)return s.D[d]=l,d;return s.D.push(l),s.D.length-1},s.Cb=function(l){for(s.D[l]=null;0<s.D.length&&s.D[s.D.length-1]==null;)s.D.pop()},s.Sc=function(l){for(var d=0;d<s.D.length;++d)if(s.D[d]==l)return s.Cb(d)},s.ra=function(l){return s.D[l]},s.Bb=["touchend","click"],s.unlock=function(){for(var l=0;l<s.D.length;++l){var d=s.D[l];d!=null&&d.J!=null&&d.state===s.ga.xb&&d.J.resume().then(()=>{dr(d.pb)},m=>{})}s.Bb.map(function(m){document.removeEventListener(m,s.unlock,!0)})},s.Bb.map(function(l){document.addEventListener(l,s.unlock,!0)})}return window.h.Aa+=1,1},439934:()=>{typeof window.h<"u"&&(--window.h.Aa,window.h.Aa===0&&delete window.h)},440098:()=>navigator.mediaDevices!==void 0&&navigator.mediaDevices.getUserMedia!==void 0,440202:()=>{try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.sampleRate;return e.close(),t}catch{return 0}},440373:(e,t,n,i,o,s)=>{if(typeof window.h>"u")return-1;var l={},d={};return e==window.h.I.ya&&n!=0&&(d.sampleRate=n),l.J=new(window.AudioContext||window.webkitAudioContext)(d),l.J.suspend(),l.state=window.h.ga.stopped,n=0,e!=window.h.I.ya&&(n=t),l.Z=l.J.createScriptProcessor(i,n,t),l.Z.onaudioprocess=function(m){if((l.sa==null||l.sa.length==0)&&(l.sa=new Float32Array(u.buffer,o,i*t)),e==window.h.I.capture||e==window.h.I.La){for(var h=0;h<t;h+=1)for(var _=m.inputBuffer.getChannelData(h),R=l.sa,E=0;E<i;E+=1)R[E*t+h]=_[E];pr(s,i,o)}if(e==window.h.I.ya||e==window.h.I.La)for(vr(s,i,o),h=0;h<m.outputBuffer.numberOfChannels;++h)for(_=m.outputBuffer.getChannelData(h),R=l.sa,E=0;E<i;E+=1)_[E]=R[E*t+h];else for(h=0;h<m.outputBuffer.numberOfChannels;++h)m.outputBuffer.getChannelData(h).fill(0)},e!=window.h.I.capture&&e!=window.h.I.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(m){l.Da=l.J.createMediaStreamSource(m),l.Da.connect(l.Z),l.Z.connect(l.J.destination)}).catch(function(m){}),e==window.h.I.ya&&l.Z.connect(l.J.destination),l.pb=s,window.h.yc(l)},443250:e=>window.h.ra(e).J.sampleRate,443323:e=>{e=window.h.ra(e),e.Z!==void 0&&(e.Z.onaudioprocess=function(){},e.Z.disconnect(),e.Z=void 0),e.Da!==void 0&&(e.Da.disconnect(),e.Da=void 0),e.J.close(),e.J=void 0,e.pb=void 0},443723:e=>{window.h.Cb(e)},443773:e=>{e=window.h.ra(e),e.J.resume(),e.state=window.h.ga.xb},443912:e=>{e=window.h.ra(e),e.J.suspend(),e.state=window.h.ga.stopped}},ze=e=>{for(;0<e.length;)e.shift()(c)},ht=(e,t)=>
14{for(var n=0,i=e.length-1;0<=i;i--){var o=e[i];o==="."?e.splice(i,1):o===".."?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},Te=e=>{var t=e.charAt(0)==="/",n=e.substr(-1)==="/";return(e=ht(e.split("/").filter(i=>!!i),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},Rr=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?".":(t&&(t=t.substr(0,t.length-1)),e+t)},Cn=e=>{if(e==="/")return"/";e=Te(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)},Cr=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);G("initRandomDevice")},En=e=>(En=Cr())(e);function Mt(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){if(t=0<=n?arguments[n]:"/",typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t=t.charAt(0)==="/"}return e=ht(e.split("/").filter(i=>!!i),!t).join("/"),(t?"/":"")+e||"."}var Pn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,qe=(e,t,n)=>{var i=t+n;for(n=t;e[n]&&!(n>=i);)++n;if(16<n-t&&e.buffer&&Pn)return Pn.decode(e.subarray(t,n));for(i="";t<n;){var o=e[t++];if(o&128){var s=e[t++]&63;if((o&224)==192)i+=String.fromCharCode((o&31)<<6|s);else{var l=e[t++]&63;o=(o&240)==224?(o&15)<<12|s<<6|l:(o&7)<<18|s<<12|l<<6|e[t++]&63,65536>o?i+=String.fromCharCode(o):(o-=65536,i+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else i+=String.fromCharCode(o)}return i},tn=[],Tn=e=>{for(var t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}return t},Ln=(e,t,n,i)=>{if(!(0<i))return 0;var o=n;i=n+i-1;for(var s=0;s<e.length;++s){var l=e.charCodeAt(s);if(55296<=l&&57343>=l){var d=e.charCodeAt(++s);l=65536+((l&1023)<<10)|d&1023}if(127>=l){if(n>=i)break;t[n++]=l}else{if(2047>=l){if(n+1>=i)break;t[n++]=192|l>>6}else{if(65535>=l){if(n+2>=i)break;t[n++]=224|l>>12}else{if(n+3>=i)break;t[n++]=240|l>>18,t[n++]=128|l>>12&63}t[n++]=128|l>>6&63}t[n++]=128|l&63}}return t[n]=0,n-o};function Mn(e,t){var n=Array(Tn(e)+1);return e=Ln(e,n,0,n.length),t&&(n.length=e),n}var Fn=[];function On(e,t){Fn[e]={input:[],F:[],V:t},on(e,Er)}var Er={open:function(e){var t=Fn[e.node.za];if(!t)throw new P(43);e.s=t,e.seekable=!1},close:function(e){e.s.V.qa(e.s)},qa:function(e){e.s.V.qa(e.s)},read:function(e,t,n,i){if(!e.s||!e.s.V.ib)throw new P(60);for(var o=0,s=0;s<i;s++){try{var l=e.s.V.ib(e.s)}catch{throw new P(29)}if(l===void 0&&o===0)throw new P(6);if(l==null)break;o++,t[n+s]=l}return o&&(e.node.timestamp=Date.now()),o},write:function(e,t,n,i){if(!e.s||!e.s.V.Oa)throw new P(60);try{for(var o=0;o<i;o++)e.s.V.Oa(e.s,t[n+o])}catch{throw new P(29)}return i&&(e.node.timestamp=Date.now()),o}},Pr={ib:function(){e:{if(!tn.length){var e=null;if(typeof window<"u"&&typeof window.prompt=="function"?(e=window.prompt("Input: "),e!==null&&(e+=`
15`)):typeof readline=="function"&&(e=readline(),e!==null&&(e+=`
16`)),!e){e=null;break e}tn=Mn(e,!0)}e=tn.shift()}return e},Oa:function(e,t){t===null||t===10?(nt(qe(e.F,0)),e.F=[]):t!=0&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(nt(qe(e.F,0)),e.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[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]}},cc:function(){return 0},dc:function(){return[24,80]}},Tr={Oa:function(e,t){t===null||t===10?(Pe(qe(e.F,0)),e.F=[]):t!=0&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(Pe(qe(e.F,0)),e.F=[])}};function xn(e,t){var n=e.j?e.j.length:0;n>=t||(t=Math.max(t,n*(1048576>n?2:1.125)>>>0),n!=0&&(t=Math.max(t,256)),n=e.j,e.j=new Uint8Array(t),0<e.v&&e.j.set(n.subarray(0,e.v),0))}var I={O:null,U(){return I.createNode(null,"/",16895,0)},createNode(e,t,n,i){if((n&61440)===24576||(n&61440)===4096)throw new P(63);return I.O||(I.O={dir:{node:{Y:I.l.Y,P:I.l.P,ka:I.l.ka,va:I.l.va,ub:I.l.ub,Ab:I.l.Ab,vb:I.l.vb,sb:I.l.sb,Ea:I.l.Ea},stream:{ba:I.m.ba}},file:{node:{Y:I.l.Y,P:I.l.P},stream:{ba:I.m.ba,read:I.m.read,write:I.m.write,pa:I.m.pa,lb:I.m.lb,nb:I.m.nb}},link:{node:{Y:I.l.Y,P:I.l.P,ma:I.l.ma},stream:{}},$a:{node:{Y:I.l.Y,P:I.l.P},stream:Or}}),n=Un(e,t,n,i),(n.mode&61440)===16384?(n.l=I.O.dir.node,n.m=I.O.dir.stream,n.j={}
16):(n.mode&61440)===32768?(n.l=I.O.file.node,n.m=I.O.file.stream,n.v=0,n.j=null):(n.mode&61440)===40960?(n.l=I.O.link.node,n.m=I.O.link.stream):(n.mode&61440)===8192&&(n.l=I.O.$a.node,n.m=I.O.$a.stream),n.timestamp=Date.now(),e&&(e.j[t]=n,e.timestamp=n.timestamp),n},Kc(e){return e.j?e.j.subarray?e.j.subarray(0,e.v):new Uint8Array(e.j):new Uint8Array(0)},l:{Y(e){var t={};return t.Jc=(e.mode&61440)===8192?e.id:1,t.Mc=e.id,t.mode=e.mode,t.Oc=1,t.uid=0,t.Lc=0,t.za=e.za,(e.mode&61440)===16384?t.size=4096:(e.mode&61440)===32768?t.size=e.v:(e.mode&61440)===40960?t.size=e.link.length:t.size=0,t.Bc=new Date(e.timestamp),t.Nc=new Date(e.timestamp),t.Ic=new Date(e.timestamp),t.Jb=4096,t.Cc=Math.ceil(t.size/t.Jb),t},P(e,t){if(t.mode!==void 0&&(e.mode=t.mode),t.timestamp!==void 0&&(e.timestamp=t.timestamp),t.size!==void 0&&(t=t.size,e.v!=t))if(t==0)e.j=null,e.v=0;else{var n=e.j;e.j=new Uint8Array(t),n&&e.j.set(n.subarray(0,Math.min(t,e.v))),e.v=t}},ka(){throw rn[44]},va(e,t,n,i){return I.createNode(e,t,n,i)},ub(e,t,n){if((e.mode&61440)===16384){try{var i=Ot(t,n)}catch{}if(i)for(var o in i.j)throw new P(55)}delete e.parent.j[e.name],e.parent.timestamp=Date.now(),e.name=n,t.j[n]=e,t.timestamp=e.parent.timestamp,e.parent=t},Ab(e,t){delete e.j[t],e.timestamp=Date.now()},vb(e,t){var n=Ot(e,t),i;for(i in n.j)throw new P(55);delete e.j[t],e.timestamp=Date.now()},sb(e){var t=[".",".."],n;for(n in e.j)e.j.hasOwnProperty(n)&&t.push(n);return t},Ea(e,t,n){return e=I.createNode(e,t,41471,0),e.link=n,e},ma(e){if((e.mode&61440)!==40960)throw new P(28);return e.link}},m:{read(e,t,n,i,o){var s=e.node.j;if(o>=e.node.v)return 0;if(e=Math.min(e.node.v-o,i),8<e&&s.subarray)t.set(s.subarray(o,o+e),n);else for(i=0;i<e;i++)t[n+i]=s[o+i];return e},write(e,t,n,i,o,s){if(t.buffer===oe.buffer&&(s=!1),!i)return 0;if(e=e.node,e.timestamp=Date.now(),t.subarray&&(!e.j||e.j.subarray)){if(s)return e.j=t.subarray(n,n+i),e.v=i;if(e.v===0&&o===0)return e.j=t.slice(n,n+i),e.v=i;if(o+i<=e.v)return e.j.set(t.subarray(n,n+i),o),i}if(xn(e,o+i),e.j.subarray&&t.subarray)e.j.set(t.subarray(n,n+i),o);else for(s=0;s<i;s++)e.j[o+s]=t[n+s];return e.v=Math.max(e.v,o+i),i},ba(e,t,n){if(n===1?t+=e.position:n===2&&(e.node.mode&61440)===32768&&(t+=e.node.v),0>t)throw new P(28);return t}
16,pa(e,t,n){xn(e.node,t+n),e.node.v=Math.max(e.node.v,t+n)},lb(e,t,n,i,o){if((e.node.mode&61440)!==32768)throw new P(43);if(e=e.node.j,o&2||e.buffer!==oe.buffer){if((0<n||n+t<e.length)&&(e.subarray?e=e.subarray(n,n+t):e=Array.prototype.slice.call(e,n,n+t)),n=!0,G(),t=void 0,!t)throw new P(48);oe.set(e,t)}else n=!1,t=e.byteOffset;return{o:t,M:n}},nb(e,t,n,i){return I.m.write(e,t,0,i,n,!1),0}}};function Lr(e,t){var n=0;return e&&(n|=365),t&&(n|=146),n}var nn=null,Sn={},Ft=[],Mr=1,yt=null,jn=!0,P=null,rn={},ot=(e,t={})=>{if(e=Mt(e),!e)return{path:"",node:null};if(t=Object.assign({gb:!0,Qa:0},t),8<t.Qa)throw new P(32);e=e.split("/").filter(l=>!!l);for(var n=nn,i="/",o=0;o<e.length;o++){var s=o===e.length-1;if(s&&t.parent)break;if(n=Ot(n,e[o]),i=Te(i+"/"+e[o]),n.wa&&(!s||s&&t.gb)&&(n=n.wa.root),!s||t.fb){for(s=0;(n.mode&61440)===40960;)if(n=xr(i),i=Mt(Rr(i),n),n=ot(i,{Qa:t.Qa+1}).node,40<s++)throw new P(32)}}return{path:i,node:n}},In=e=>{for(var t;;){if(e===e.parent)return e=e.U.mb,t?e[e.length-1]!=="/"?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}},Dn=(e,t)=>{for(var n=0,i=0;i<t.length;i++)n=(n<<5)-n+t.charCodeAt(i)|0;return(e+n>>>0)%yt.length},Ot=(e,t)=>{var n;if(n=(n=xt(e,"x"))?n:e.l.ka?0:2)throw new P(n,e);for(n=yt[Dn(e.id,t)];n;n=n.lc){var i=n.name;if(n.parent.id===e.id&&i===t)return n}return e.l.ka(e,t)},Un=(e,t,n,i)=>(e=new lr(e,t,n,i),t=Dn(e.parent.id,e.name),e.lc=yt[t],yt[t]=e),Bn=e=>{var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t},xt=(e,t)=>{if(jn)return 0;if(!t.includes("r")||e.mode&292){if(t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73))return 2}else return 2;return 0},Nn=(e,t)=>{try{return Ot(e,t),20}catch{}return xt(e,"wx")},Fr=()=>{for(var e=0;4096>=e;e++)if(!Ft[e])return e;throw new P(33)},et=e=>{if(e=Ft[e],!e)throw new P(8);return e},Wn=(e,t=-1)=>(bt||(bt=function(){this.h={}},bt.prototype={},Object.defineProperties(bt.prototype,{object:{get(){return this.node},set(n){this.node=n}},flags:{get(){return this.h.flags},set(n){this.h.flags=n}},position:{get(){return this.h.position},set(n){this.h.position=n}}})),e=Object.assign(new bt,e),t==-1&&(t=Fr()),e.X=t,Ft[t]=e),Or={open:e=>{e.m=Sn[e.node.za].m,e.m.open&&e.m.open(e)},ba:()=>{throw new P(70)}},on=(e,t)=>{Sn[e]={m:t}},$n=(e,t)=>{var n=t==="/",i=!t;if(n&&nn)throw new P(10);if(!n&&!i){var o=ot(t,{gb:!1});if(t=o.path,o=o.node,o.wa)throw new P(10);if((o.mode&61440)!==16384)throw new P(54)}t={type:e,Qc:{},mb:t,kc:[]},e=e.U(t),e.U=t,t.root=e,n?nn=e:o&&(o.wa=t,o.U&&o.U.kc.push(t))},Se=(e,t,n)=>{var i=ot(e,{parent:!0}).node;if(e=Cn(e),!e||e==="."||e==="..")throw new P(28);var o=Nn(i,e);if(o)throw new P(o);if(!i.l.va)throw new P(63);return i.l.va(i,e,t,n)}
16,St=(e,t,n)=>{typeof n>"u"&&(n=t,t=438),Se(e,t|8192,n)},an=(e,t)=>{if(!Mt(e))throw new P(44);var n=ot(t,{parent:!0}).node;if(!n)throw new P(44);t=Cn(t);var i=Nn(n,t);if(i)throw new P(i);if(!n.l.Ea)throw new P(63);n.l.Ea(n,t,e)},xr=e=>{if(e=ot(e).node,!e)throw new P(44);if(!e.l.ma)throw new P(28);return Mt(In(e.parent),e.l.ma(e))},jt=(e,t,n)=>{if(e==="")throw new P(44);if(typeof t=="string"){var i={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(typeof i>"u")throw Error(`Unknown file open mode: ${t}`);t=i}if(n=t&64?(typeof n>"u"?438:n)&4095|32768:0,typeof e=="object")var o=e;else{e=Te(e);try{o=ot(e,{fb:!(t&131072)}).node}catch{}}if(i=!1,t&64)if(o){if(t&128)throw new P(20)}else o=Se(e,n,0),i=!0;if(!o)throw new P(44);if((o.mode&61440)===8192&&(t&=-513),t&65536&&(o.mode&61440)!==16384)throw new P(54);if(!i&&(n=o?(o.mode&61440)===40960?32:(o.mode&61440)===16384&&(Bn(t)!=="r"||t&512)?31:xt(o,Bn(t)):44))throw new P(n);if(t&512&&!i){if(n=o,n=typeof n=="string"?ot(n,{fb:!0}).node:n,!n.l.P)throw new P(63);if((n.mode&61440)===16384)throw new P(31);if((n.mode&61440)!==32768)throw new P(28);if(i=xt(n,"w"))throw new P(i);n.l.P(n,{size:0,timestamp:Date.now()})}return t&=-131713,o=Wn({node:o,path:In(o),flags:t,seekable:!0,position:0,m:o.m,zc:[],error:!1}),o.m.open&&o.m.open(o),!c.logReadFiles||t&1||(It||(It={}),e in It||(It[e]=1)),o},Yn=(e,t,n)=>{if(e.X===null)throw new P(8);if(!e.seekable||!e.m.ba)throw new P(70);if(n!=0&&n!=1&&n!=2)throw new P(28);e.position=e.m.ba(e,t,n),e.zc=[]},kn=()=>{P||(P=function(e,t){this.name="ErrnoError",this.node=t,this.pc=function(n){this.aa=n},this.pc(e),this.message="FS error"},P.prototype=Error(),P.prototype.constructor=P,[44].forEach(e=>{rn[e]=new P(e),rn[e].stack="<generic error, no stack>"}))}
16,Xn,wt=(e,t,n)=>{e=Te("/dev/"+e);var i=Lr(!!t,!!n);sn||(sn=64);var o=sn++<<8|0;on(o,{open:s=>{s.seekable=!1},close:()=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(s,l,d,m)=>{for(var h=0,_=0;_<m;_++){try{var R=t()}catch{throw new P(29)}if(R===void 0&&h===0)throw new P(6);if(R==null)break;h++,l[d+_]=R}return h&&(s.node.timestamp=Date.now()),h},write:(s,l,d,m)=>{for(var h=0;h<m;h++)try{n(l[d+h])}catch{throw new P(29)}return m&&(s.node.timestamp=Date.now()),h}}),St(e,i,o)},sn,at={},bt,It,_t=void 0;function Ve(){return _t+=4,j[_t-4>>2]}function zn(e){if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e}function Dt(e,t){return e=zn(e),{[e]:function(){return t.apply(this,arguments)}}[e]}function Vn(){this.M=[void 0],this.hb=[]}var Le=new Vn,dt=void 0;function x(e){throw new dt(e)}var je=e=>(e||x("Cannot use deleted val. handle = "+e),Le.get(e).value),Ue=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Le.pa({tb:1,value:e})}};function Hn(e){var t=Error,n=Dt(e,function(i){this.name=e,this.message=i,i=Error(i).stack,i!==void 0&&(this.stack=this.toString()+`
17`+i.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},n}var Gn=void 0,Kn=void 0;function ie(e){for(var t="";V[e];)t+=Kn[V[e++]];return t}var At=[];function un(){for(;At.length;){var e=At.pop();e.g.fa=!1,e.delete()}}var Rt=void 0,He={};function cn(e,t){for(t===void 0&&x("ptr should not be undefined");e.A;)t=e.na(t),e=e.A;return t}var st={};function Zn(e){e=gr(e);var t=ie(e);return Ze(e),t}function Ct(e,t){var n=st[e];return n===void 0&&x(t+" has unknown type "+Zn(e)),n}function Ut(){}var ln=!1;function Jn(e){--e.count.value,e.count.value===0&&(e.G?e.L.W(e.G):e.u.i.W(e.o))}function Qn(e,t,n){return t===n?e:n.A===void 0?null:(e=Qn(e,t,n.A),e===null?null:n.Pb(e))}var qn={};function Sr(e,t){return t=cn(e,t),He[t]}var er=void 0;function Bt(e){throw new er(e)}function Nt(e,t){return t.u&&t.o||Bt("makeClassHandle requires ptr and ptrType"),!!t.L!=!!t.G&&Bt("Both smartPtrType and smartPtr must be specified"),t.count={value:1},pt(Object.create(e,{g:{value:t}}))}function pt(e){return typeof FinalizationRegistry>"u"?(pt=t=>t,e):(ln=new FinalizationRegistry(t=>{Jn(t.g)}),pt=t=>{var n=t.g;return n.G&&ln.register(t,{g:n},t),t},Ut=t=>{ln.unregister(t)},pt(e))}var Wt={};function Et(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Pt(e){return this.fromWireType(j[e>>2])}var vt={},$t={};function Ee(e,t,n){function i(d){d=n(d),d.length!==e.length&&Bt("Mismatched type converter count");for(var m=0;m<e.length;++m)Be(e[m],d[m])}e.forEach(function(d){$t[d]=t});var o=Array(t.length),s=[],l=0;t.forEach((d,m)=>{st.hasOwnProperty(d)?o[m]=st[d]:(s.push(d),vt.hasOwnProperty(d)||(vt[d]=[]),vt[d].push(()=>{o[m]=st[d],++l,l===s.length&&i(o)}))}),s.length===0&&i(o)}function Yt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${e}`)}}function jr(e,t,n={}){var i=t.name;if(e||x(`type "${i}" must have a positive integer typeid pointer`),st.hasOwnProperty(e)){if(n.$b)return;x(`Cannot register type '${i}' twice`)}st[e]=t,delete $t[e],vt.hasOwnProperty(e)&&(t=vt[e],delete vt[e],t.forEach(o=>o()))}function Be(e,t,n={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");jr(e,t,n)}function fn(e){x(e.g.u.i.name+" instance already deleted")}function tt(){}function hn(e,t,n){if(e[t].B===void 0){var i=e[t];e[t]=function(){return e[t].B.hasOwnProperty(arguments.length)||x(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].B})!`),e[t].B[arguments.length].apply(this,arguments)},e[t].B=[],e[t].B[i.ea]=i}}function dn(e,t,n){c.hasOwnProperty(e)?((n===void 0||c[e].B!==void 0&&c[e].B[n]!==void 0)&&x(`Cannot register public name '${e}' twice`),hn(c,e,e),c.hasOwnProperty(n)&&x(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),c[e].B[n]=t):(c[e]=t,n!==void 0&&(c[e].Pc=n))}function Ir(e,t,n,i,o,s,l,d){this.name=e,this.constructor=t,this.N=n,this.W=i,this.A=o,this.Ub=s,this.na=l,this.Pb=d,this.qb=[]}function kt(e,t,n){for(;t!==n;)t.na||x(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.na(e),t=t.A;return e}function Dr(e,t){return t===null?(this.Na&&x(`null is not a valid ${this.name}`),0):(t.g||x(`Cannot pass "${vn(t)}" as a ${this.name}`),t.g.o||x(`Cannot pass deleted object as a pointer of type ${this.name}`),kt(t.g.o,t.g.u.i,this.i))}function Ur(e,t){if(t===null){if(this.Na&&x(`null is not a valid ${this.name}`),this.ua){var n=this.Pa();return e!==null&&e.push(this.W,n),n}return 0}if(t.g||x(`Cannot pass "${vn(t)}" as a ${this.name}`),t.g.o||x(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&t.g.u.ta&&x(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}
17`),n=kt(t.g.o,t.g.u.i,this.i),this.ua)switch(t.g.G===void 0&&x("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:t.g.L===this?n=t.g.G:x(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`);break;case 1:n=t.g.G;break;case 2:if(t.g.L===this)n=t.g.G;else{var i=t.clone();n=this.oc(n,Ue(function(){i.delete()})),e!==null&&e.push(this.W,n)}break;default:x("Unsupporting sharing policy")}return n}function Br(e,t){return t===null?(this.Na&&x(`null is not a valid ${this.name}`),0):(t.g||x(`Cannot pass "${vn(t)}" as a ${this.name}`),t.g.o||x(`Cannot pass deleted object as a pointer of type ${this.name}`),t.g.u.ta&&x(`Cannot convert argument of type ${t.g.u.name} to parameter type ${this.name}`),kt(t.g.o,t.g.u.i,this.i))}function Ge(e,t,n,i){this.name=e,this.i=t,this.Na=n,this.ta=i,this.ua=!1,this.W=this.oc=this.Pa=this.rb=this.tc=this.nc=void 0,t.A!==void 0?this.toWireType=Ur:(this.toWireType=i?Dr:Br,this.K=null)}function tr(e,t,n){c.hasOwnProperty(e)||Bt("Replacing nonexistant public symbol"),c[e].B!==void 0&&n!==void 0?c[e].B[n]=t:(c[e]=t,c[e].ea=n)}var Xt=[],nr=e=>{var t=Xt[e];return t||(e>=Xt.length&&(Xt.length=e+1),Xt[e]=t=p.get(e)),t},Nr=(e,t)=>
vendor: 3,176 bytes, line 17
17{var n=[];return function(){if(n.length=0,Object.assign(n,arguments),e.includes("j")){var i=c["dynCall_"+e];i=n&&n.length?i.apply(null,[t].concat(n)):i.call(null,t)}else i=nr(t).apply(null,n);return i}};function ge(e,t){e=ie(e);var n=e.includes("j")?Nr(e,t):nr(t);return typeof n!="function"&&x(`unknown function pointer with signature ${e}: ${t}`),n}var rr=void 0;function Ke(e,t){function n(s){o[s]||st[s]||($t[s]?$t[s].forEach(n):(i.push(s),o[s]=!0))}var i=[],o={};throw t.forEach(n),new rr(`${e}: `+i.map(Zn).join([", "]))}function zt(e,t,n,i,o){var s=t.length;2>s&&x("argTypes array size mismatch! Must at least get return value and 'this' types!");var l=t[1]!==null&&n!==null,d=!1;for(n=1;n<t.length;++n)if(t[n]!==null&&t[n].K===void 0){d=!0;break}var m=t[0].name!=="void",h=s-2,_=Array(h),R=[],E=[];return function(){if(arguments.length!==h&&x(`function ${e} called with ${arguments.length} arguments, expected ${h} args!`),E.length=0,R.length=l?2:1,R[0]=o,l){var f=t[1].toWireType(E,this);R[1]=f}for(var b=0;b<h;++b)_[b]=t[b+2].toWireType(E,arguments[b]),R.push(_[b]);if(b=i.apply(null,R),d)Et(E);else for(var w=l?1:2;w<t.length;w++){var D=w===1?f:_[w-2];t[w].K!==null&&t[w].K(D)}return f=m?t[0].fromWireType(b):void 0,f}}function Vt(e,t){for(var n=[],i=0;i<e;i++)n.push(Q[t+4*i>>2]);return n}function ir(e,t,n){return e instanceof Object||x(`${n} with invalid "this": ${e}`),e instanceof t.i.constructor||x(`${n} incompatible with "this" of type ${e.constructor.name}`),e.g.o||x(`cannot call emscripten binding method ${n} on deleted object`),kt(e.g.o,e.g.u.i,t.i)}function pn(e){e>=Le.h&&--Le.get(e).tb===0&&Le.Zb(e)}function Wr(e,t,n){switch(t){case 0:return function(i){return this.fromWireType((n?oe:V)[i])};case 1:return function(i){return this.fromWireType((n?me:Re)[i>>1])};case 2:return function(i){return this.fromWireType((n?j:Q)[i>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function vn(e){if(e===null)return"null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e}function $r(e,t){switch(t){case 2:return function(n){return this.fromWireType(u[n>>2])};case 3:return function(n){return this.fromWireType(r[n>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Yr(e,t,n){switch(t){case 0:return n?function(i){return oe[i]}:function(i){return V[i]};case 1:return n?function(i){return me[i>>1]}:function(i){return Re[i>>1]};case 2:return n?function(i){return j[i>>2]}:function(i){return Q[i>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var or=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,kr=(e,t)=>{for(var n=e>>1,i=n+t/2;!(n>=i)&&Re[n];)++n;if(n<<=1,32<n-e&&or)return or.decode(V.subarray(e,n));for(n="",i=0;!(i>=t/2);++i){var o=me[e+2*i>>1];if(o==0)break;n+=String.fromCharCode(o)}return n},Xr=(e,t,n)=>{if(n===void 0&&(n=2147483647),2>n)return 0;n-=2;var i=t;n=n<2*e.length?n/2:e.length;for(var o=0;o<n;++o)me[t>>1]=e.charCodeAt(o),t+=2;return me[t>>1]=0,t-i},zr=e=>2*e.length,Vr=(e,t)=>{for(var n=0,i="";!(n>=t/4);){var o=j[e+4*n>>2];if(o==0)break;++n,65536<=o?(o-=65536,i+=String.fromCharCode(55296|o>>10,56320|o&1023)):i+=String.fromCharCode(o)}return i}
17,Hr=(e,t,n)=>{if(n===void 0&&(n=2147483647),4>n)return 0;var i=t;n=i+n-4;for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);if(55296<=s&&57343>=s){var l=e.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(j[t>>2]=s,t+=4,t+4>n)break}return j[t>>2]=0,t-i},Gr=e=>{for(var t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);55296<=i&&57343>=i&&++n,t+=4}return t},Kr={};function Ht(e){var t=Kr[e];return t===void 0?ie(e):t}var Gt=[];function Zr(e){var t=Gt.length;return Gt.push(e),t}function Jr(e,t){for(var n=Array(e),i=0;i<e;++i)n[i]=Ct(Q[t+4*i>>2],"parameter "+i);return n}var ar=[],mn=[],gn={},sr=()=>{if(!yn){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Oe||"./this.program"},t;for(t in gn)gn[t]===void 0?delete e[t]:e[t]=gn[t];var n=[];for(t in e)n.push(`${t}=${e[t]}`);yn=n}return yn},yn,Kt=e=>e%4===0&&(e%100!==0||e%400===0),ur=[31,29,31,30,31,30,31,31,30,31,30,31],cr=[31,28,31,30,31,30,31,31,30,31,30,31],Qr=(e,t,n,i)=>{function o(f,b,w){for(f=typeof f=="number"?f.toString():f||"";f.length<b;)f=w[0]+f;return f}function s(f,b){return o(f,b,"0")}function l(f,b){function w(U){return 0>U?-1:0<U?1:0}var D;return(D=w(f.getFullYear()-b.getFullYear()))===0&&(D=w(f.getMonth()-b.getMonth()))===0&&(D=w(f.getDate()-b.getDate())),D}function d(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function m(f){var b=f.ca;for(f=new Date(new Date(f.da+1900,0,1).getTime());0<b;){var w=f.getMonth(),D=(Kt(f.getFullYear())?ur:cr)[w];if(b>D-f.getDate())b-=D-f.getDate()+1,f.setDate(1),11>w?f.setMonth(w+1):(f.setMonth(0),f.setFullYear(f.getFullYear()+1));else{f.setDate(f.getDate()+b);break}}return w=new Date(f.getFullYear()+1,0,4),b=d(new Date(f.getFullYear(),0,4)),w=d(w),0>=l(b,f)?0>=l(w,f)?f.getFullYear()+1:f.getFullYear():f.getFullYear()-1}var h=j[i+40>>2];i={wc:j[i>>2],vc:j[i+4>>2],Fa:j[i+8>>2],Sa:j[i+12>>2],Ga:j[i+16>>2],da:j[i+20>>2],R:j[i+24>>2],ca:j[i+28>>2],Rc:j[i+32>>2],uc:j[i+36>>2],xc:h&&h?qe(V,h):""},n=n?qe(V,n):"",h={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in h)n=n.replace(new RegExp(_,"g"),h[_]);var R="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),E="January February March April May June July August September October November December".split(" ");h={"%a":f=>R[f.R].substring(0,3),"%A":f=>R[f.R],"%b":f=>E[f.Ga].substring(0,3),"%B":f=>E[f.Ga],"%C":f=>s((f.da+1900)/100|0,2),"%d":f=>s(f.Sa,2),"%e":f=>o(f.Sa,2," "),"%g":f=>m(f).toString().substring(2),"%G":f=>m(f),"%H":f=>s(f.Fa,2),"%I":f=>(f=f.Fa,f==0?f=12:12<f&&(f-=12),s(f,2)),"%j":f=>{for(var b=0,w=0;w<=f.Ga-1;b+=(Kt(f.da+1900)?ur:cr)[w++]);return s(f.Sa+b,3)},"%m":f=>s(f.Ga+1,2),"%M":f=>s(f.vc,2),"%n":()=>`
18`,"%p":f=>0<=f.Fa&&12>f.Fa?"AM":"PM","%S":f=>s(f.wc,2),"%t":()=>"	","%u":f=>f.R||7,"%U":f=>s(Math.floor((f.ca+7-f.R)/7),2),"%V":f=>{var b=Math.floor((f.ca+7-(f.R+6)%7)/7);if(2>=(f.R+371-f.ca-2)%7&&b++,b)b==53&&(w=(f.R+371-f.ca)%7,w==4||w==3&&Kt(f.da)||(b=1));else{b=52;var w=(f.R+7-f.ca-1)%7;(w==4||w==5&&Kt(f.da%400-1))&&b++}return s(b,2)},"%w":f=>f.R,"%W":f=>s(Math.floor((f.ca+7-(f.R+6)%7)/7),2),"%y":f=>(f.da+1900).toString().substring(2),"%Y":f=>f.da+1900,"%z":f=>{f=f.uc;var b=0<=f;return f=Math.abs(f)/60,(b?"+":"-")+("0000"+(f/60*100+f%60)).slice(-4)},"%Z":f=>f.xc,"%%":()=>"%"},n=n.replace(/%%/g,"\0\0");for(_ in h)n.includes(_)&&(n=n.replace(new RegExp(_,"g"),h[_](i)));return n=n.replace(/\0\0/g,"%"),_=Mn(n,!1),_.length>t?0:(oe.set(_,e),_.length-1)};function lr(e,t,n,i){e||(e=this),this.parent=e,this.U=e.U,this.wa=null,this.id=Mr++,this.name=t,this.mode=n,this.l={},this.m={},this.za=i}Object.defineProperties(lr.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(e){e?this.mode|=146:this.mode&=-147}}}),kn(),yt=Array(4096),$n(I,"/"),Se("/tmp",16895,0),Se("/home",16895,0),Se("/home/web_user",16895,0),(()=>{Se("/dev",16895,0),on(259,{read:()=>0,write:(i,o,s,l)=>l}),St("/dev/null",259),On(1280,Pr),On(1536,Tr),St("/dev/tty",1280),St("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,n=()=>(t===0&&(t=En(e).byteLength),e[--t]);wt("random",n),wt("urandom",n),Se("/dev/shm",16895,0),Se("/dev/shm/tmp",16895,0)})(),(()=>{Se("/proc",16895,0);var e=Se("/proc/self",16895,0);Se("/proc/self/fd",16895,0),$n({U:()=>{var t=Un(e,"fd",16895,73);return t.l={ka:(n,i)=>{var o=et(+i);return n={parent:null,U:{mb:"fake"},l:{ma:()=>o.path}},n.parent=n}},t}},"/proc/self/fd")}
18)(),Object.assign(Vn.prototype,{get(e){return this.M[e]},has(e){return this.M[e]!==void 0},pa(e){var t=this.hb.pop()||this.M.length;return this.M[t]=e,t},Zb(e){this.M[e]=void 0,this.hb.push(e)}}),dt=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Le.M.push({value:void 0},{value:null},{value:!0},{value:!1}),Le.h=Le.M.length,c.count_emval_handles=function(){for(var e=0,t=Le.h;t<Le.M.length;++t)Le.M[t]!==void 0&&++e;return e},Gn=c.PureVirtualError=Hn("PureVirtualError");for(var fr=Array(256),Zt=0;256>Zt;++Zt)fr[Zt]=String.fromCharCode(Zt);Kn=fr,c.getInheritedInstanceCount=function(){return Object.keys(He).length},c.getLiveInheritedInstances=function(){var e=[],t;for(t in He)He.hasOwnProperty(t)&&e.push(He[t]);return e},c.flushPendingDeletes=un,c.setDelayFunction=function(e){Rt=e,At.length&&Rt&&Rt(un)},er=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},tt.prototype.isAliasOf=function(e){if(!(this instanceof tt&&e instanceof tt))return!1;var t=this.g.u.i,n=this.g.o,i=e.g.u.i;for(e=e.g.o;t.A;)n=t.na(n),t=t.A;for(;i.A;)e=i.na(e),i=i.A;return t===i&&n===e},tt.prototype.clone=function(){if(this.g.o||fn(this),this.g.ia)return this.g.count.value+=1,this;var e=pt,t=Object,n=t.create,i=Object.getPrototypeOf(this),o=this.g;return e=e(n.call(t,i,{g:{value:{count:o.count,fa:o.fa,ia:o.ia,o:o.o,u:o.u,G:o.G,L:o.L}}})),e.g.count.value+=1,e.g.fa=!1,e},tt.prototype.delete=function(){this.g.o||fn(this),this.g.fa&&!this.g.ia&&x("Object already scheduled for deletion"),Ut(this),Jn(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},tt.prototype.isDeleted=function(){return!this.g.o},tt.prototype.deleteLater=function(){return this.g.o||fn(this),this.g.fa&&!this.g.ia&&x("Object already scheduled for deletion"),At.push(this),At.length===1&&Rt&&Rt(un),this.g.fa=!0,this},Ge.prototype.Vb=function(e){return this.rb&&(e=this.rb(e)),e},Ge.prototype.ab=function(e){this.W&&this.W(e)},Ge.prototype.argPackAdvance=8,Ge.prototype.readValueFromPointer=Pt,Ge.prototype.deleteObject=function(e){e!==null&&e.delete()},Ge.prototype.fromWireType=function(e){function t(){return this.ua?Nt(this.i.N,{u:this.nc,o:n,L:this,G:e}):Nt(this.i.N,{u:this,o:e})}var n=this.Vb(e);if(!n)return this.ab(e),null;var i=Sr(this.i,n);if(i!==void 0)return i.g.count.value===0?(i.g.o=n,i.g.G=e,i.clone()):(i=i.clone(),this.ab(e),i);if(i=this.i.Ub(n),i=qn[i],!i)return t.call(this);i=this.ta?i.Kb:i.pointerType;var o=Qn(n,this.i,i.i);return o===null?t.call(this):this.ua?Nt(i.i.N,{u:i,o,L:this,G:e}):Nt(i.i.N,{u:i,o})},rr=c.UnboundTypeError=Hn("UnboundTypeError");var hr={__syscall_fcntl64:function(e,t,n){_t=n;try{var i=et(e);switch(t){case 0:var o=Ve();return 0>o?-28:Wn(i,o).X;case 1:case 2:return 0;case 3:return i.flags;case 4:return o=Ve(),i.flags|=o,0;case 5:return o=Ve(),me[o+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return j[mr()>>2]=28,-1;default:return-28}}catch(s){if(typeof at>"u"||s.name!=="ErrnoError")throw s;return-s.aa}},__syscall_ioctl:function(e,t,n){_t=n;try{var i=et(e);switch(t){case 21509:return i.s?0:-59;case 21505:if(!i.s)return-59;if(i.s.V.bc){t=[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];var o=Ve();j[o>>2]=25856,j[o+4>>2]=5,j[o+8>>2]=191,j[o+12>>2]=35387;for(var s=0;32>s;s++)oe[o+s+17>>0]=t[s]||0}return 0;case 21510:case 21511:case 21512:return i.s?0:-59;case 21506:case 21507:case 21508:if(!i.s)return-59;if(i.s.V.cc)for(o=Ve(),t=[],s=0;32>s;s++)t.push(oe[o+s+17>>0]);return 0;case 21519:return i.s?(o=Ve(),j[o>>2]=0):-59;case 21520:return i.s?-28:-59;case 21531:if(o=Ve(),!i.m.ac)throw new P(59);return i.m.ac(i,t,o);case 21523:return i.s?(i.s.V.dc&&(s=[24,80],o=Ve(),me[o>>1]=s[0],me[o+2>>1]=s[1]),0):-59;case 21524:return i.s?0:-59;case 21515:return i.s?0:-59;default:return-28}}catch(l){if(typeof at>"u"||l.name!=="ErrnoError")throw l;return-l.aa}}
18,__syscall_openat:function(e,t,n,i){_t=i;try{t=t?qe(V,t):"";var o=t;if(o.charAt(0)==="/")t=o;else{var s=e===-100?"/":et(e).path;if(o.length==0)throw new P(44);t=Te(s+"/"+o)}var l=i?Ve():0;return jt(t,n,l).X}catch(d){if(typeof at>"u"||d.name!=="ErrnoError")throw d;return-d.aa}},_embind_create_inheriting_constructor:function(e,t,n){e=ie(e),t=Ct(t,"wrapper"),n=je(n);var i=[].slice,o=t.i,s=o.N,l=o.A.N,d=o.A.constructor;e=Dt(e,function(){o.A.qb.forEach((function(h){if(this[h]===l[h])throw new Gn(`Pure virtual function ${h} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:s}),this.__construct.apply(this,i.call(arguments))}),s.__construct=function(){this===s&&x("Pass correct 'this' to __construct");var h=d.implement.apply(void 0,[this].concat(i.call(arguments)));Ut(h);var _=h.g;h.notifyOnDestruction(),_.ia=!0,Object.defineProperties(this,{g:{value:_}}),pt(this),h=_.o,h=cn(o,h),He.hasOwnProperty(h)?x(`Tried to register registered instance: ${h}`):He[h]=this},s.__destruct=function(){this===s&&x("Pass correct 'this' to __destruct"),Ut(this);var h=this.g.o;h=cn(o,h),He.hasOwnProperty(h)?delete He[h]:x(`Tried to unregister unregistered instance: ${h}`)},e.prototype=Object.create(s);for(var m in n)e.prototype[m]=n[m];return Ue(e)},_embind_finalize_value_object:function(e){var t=Wt[e];delete Wt[e];var n=t.Pa,i=t.W,o=t.eb,s=o.map(l=>l.Yb).concat(o.map(l=>l.rc));Ee([e],s,l=>{var d={};return o.forEach((m,h)=>{var _=l[h],R=m.Wb,E=m.Xb,f=l[h+o.length],b=m.qc,w=m.sc;d[m.Sb]={read:D=>_.fromWireType(R(E,D)),write:(D,U)=>{var C=[];b(w,D,f.toWireType(C,U)),Et(C)}}}),[{name:t.name,fromWireType:function(m){var h={},_;for(_ in d)h[_]=d[_].read(m);return i(m),h},toWireType:function(m,h){for(var _ in d)if(!(_ in h))throw new TypeError(`Missing field: "${_}"`);var R=n();for(_ in d)d[_].write(R,h[_]);return m!==null&&m.push(i,R),R},argPackAdvance:8,readValueFromPointer:Pt,K:i}]})},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,n,i,o){var s=Yt(n);t=ie(t),Be(e,{name:t,fromWireType:function(l){return!!l},toWireType:function(l,d){return d?i:o},argPackAdvance:8,readValueFromPointer:function(l){if(n===1)var d=oe;else if(n===2)d=me;else if(n===4)d=j;else throw new TypeError("Unknown boolean type size: "+t);return this.fromWireType(d[l>>s])},K:null})},_embind_register_class:function(e,t,n,i,o,s,l,d,m,h,_,R,E){_=ie(_),s=ge(o,s),d&&(d=ge(l,d)),h&&(h=ge(m,h)),E=ge(R,E);var f=zn(_);dn(f,function(){Ke(`Cannot construct ${_} due to unbound types`,[i])}),Ee([e,t,n],i?[i]:[],function(b){if(b=b[0],i)var w=b.i,D=w.N;else D=tt.prototype;b=Dt(f,function(){if(Object.getPrototypeOf(this)!==U)throw new dt("Use 'new' to construct "+_);if(C.$===void 0)throw new dt(_+" has no accessible constructor");var _e=C.$[arguments.length];if(_e===void 0)throw new dt(`Tried to invoke ctor of ${_} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.$).toString()}) parameters instead!`);return _e.apply(this,arguments)});var U=Object.create(D,{constructor:{value:b}});b.prototype=U;var C=new Ir(_,b,U,E,w,s,d,h);C.A&&(C.A.oa===void 0&&(C.A.oa=[]),C.A.oa.push(C)),w=new Ge(_,C,!0,!1),D=new Ge(_+"*",C,!1,!1);var te=new Ge(_+" const*",C,!1,!0);return qn[e]={pointerType:D,Kb:te},tr(f,b),[w,D,te]})},_embind_register_class_class_function:function(e,t,n,i,o,s,l){var d=Vt(n,i);t=ie(t),s=ge(o,s),Ee([],[e],function(m){function h(){Ke(`Cannot call ${_} due to unbound types`,d)}m=m[0];var _=`${m.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var R=m.i.constructor;return R[t]===void 0?(h.ea=n-1,R[t]=h):(hn(R,t,_),R[t].B[n-1]=h),Ee([],d,function(E){if(E=zt(_,[E[0],null].concat(E.slice(1)),null,s,l),R[t].B===void 0?(E.ea=n-1,R[t]=E):R[t].B[n-1]=E,m.i.oa)for(const f of m.i.oa)f.constructor.hasOwnProperty(t)||(f.constructor[t]=E);return[]}),[]})},_embind_register_class_class_property:function(e,t,n,i,o,s,l,d){t=ie(t),s=ge(o,s),Ee([],[e],function(m){m=m[0];var h=`${m.name}.${t}`,_={get(){Ke(`Cannot access ${h} due to unbound types`,[n])},enumerable:!0,configurable:!0};return _.set=d?()=>{Ke(`Cannot access ${h} due to unbound types`,[n])}:()=>{x(`${h} is a read-only property`)},Object.defineProperty(m.i.constructor,t,_),Ee([],[n],function(R){R=R[0];var E={get(){return R.fromWireType(s(i))},enumerable:!0};return d&&(d=ge(l,d),E.set=f=>{var b=[];d(i,R.toWireType(b,f)),Et(b)}),Object.defineProperty(m.i.constructor,t,E),[]}),[]})},_embind_register_class_constructor:function(e,t,n,i,o,s){var l=Vt(t,n);o=ge(i,o),Ee([],[e],function(d){d=d[0];var m=`constructor ${d.name}`;if(d.i.$===void 0&&(d.i.$=[]),d.i.$[t-1]!==void 0)throw new dt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.i.$[t-1]=()=>{Ke(`Cannot construct ${d.name} due to unbound types`,l)},Ee([],l,function(h){return h.splice(1,0,null),d.i.$[t-1]=zt(m,h,null,o,s),[]}),[]})},_embind_register_class_function:function(e,t,n,i,o,s,l,d){var m=Vt(n,i);t=ie(t),s=ge(o,s),Ee([],[e],function(h){function _(){Ke(`Cannot call ${R} due to unbound types`,m)}h=h[0];var R=`${h.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),d&&h.i.qb.push(t);var E=h.i.N,f=E[t];return f===void 0||f.B===void 0&&f.className!==h.name&&f.ea===n-2?(_.ea=n-2,_.className=h.name,E[t]=_):(hn(E,t,R),E[t].B[n-2]=_),Ee([],m,function(b){return b=zt(R,b,h,s,l),E[t].B===void 0?(b.ea=n-2,E[t]=b):E[t].B[n-2]=b,[]}),[]})},_embind_register_class_property:function(e,t,n,i,o,s,l,d,m,h){t=ie(t),o=ge(i,o),Ee([],[e],function(_){_=_[0];var R=`${_.name}.${t}`,E={get(){Ke(`Cannot access ${R} due to unbound types`,[n,l])},enumerable:!0,configurable:!0};return E.set=m?()=>{Ke(`Cannot access ${R} due to unbound types`,[n,l])}:()=>{x(R+" is a read-only property")}
vendor: 5,185 bytes, line 18
18,Object.defineProperty(_.i.N,t,E),Ee([],m?[n,l]:[n],function(f){var b=f[0],w={get(){var U=ir(this,_,R+" getter");return b.fromWireType(o(s,U))},enumerable:!0};if(m){m=ge(d,m);var D=f[1];w.set=function(U){var C=ir(this,_,R+" setter"),te=[];m(h,C,D.toWireType(te,U)),Et(te)}}return Object.defineProperty(_.i.N,t,w),[]}),[]})},_embind_register_emval:function(e,t){t=ie(t),Be(e,{name:t,fromWireType:function(n){var i=je(n);return pn(n),i},toWireType:function(n,i){return Ue(i)},argPackAdvance:8,readValueFromPointer:Pt,K:null})},_embind_register_enum:function(e,t,n,i){function o(){}n=Yt(n),t=ie(t),o.values={},Be(e,{name:t,constructor:o,fromWireType:function(s){return this.constructor.values[s]},toWireType:function(s,l){return l.value},argPackAdvance:8,readValueFromPointer:Wr(t,n,i),K:null}),dn(t,o)},_embind_register_enum_value:function(e,t,n){var i=Ct(e,"enum");t=ie(t),e=i.constructor,i=Object.create(i.constructor.prototype,{value:{value:n},constructor:{value:Dt(`${i.name}_${t}`,function(){})}}),e.values[n]=i,e[t]=i},_embind_register_float:function(e,t,n){n=Yt(n),t=ie(t),Be(e,{name:t,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:$r(t,n),K:null})},_embind_register_function:function(e,t,n,i,o,s){var l=Vt(t,n);e=ie(e),o=ge(i,o),dn(e,function(){Ke(`Cannot call ${e} due to unbound types`,l)},t-1),Ee([],l,function(d){return tr(e,zt(e,[d[0],null].concat(d.slice(1)),null,o,s),t-1),[]})},_embind_register_integer:function(e,t,n,i,o){t=ie(t),o===-1&&(o=4294967295),o=Yt(n);var s=d=>d;if(i===0){var l=32-8*n;s=d=>d<<l>>>l}n=t.includes("unsigned")?function(d,m){return m>>>0}:function(d,m){return m},Be(e,{name:t,fromWireType:s,toWireType:n,argPackAdvance:8,readValueFromPointer:Yr(t,o,i!==0),K:null})},_embind_register_memory_view:function(e,t,n){function i(s){s>>=2;var l=Q;return new o(l.buffer,l[s+1],l[s])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];n=ie(n),Be(e,{name:n,fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{$b:!0})},_embind_register_std_string:function(e,t){t=ie(t);var n=t==="std::string";Be(e,{name:t,fromWireType:function(i){var o=Q[i>>2],s=i+4;if(n)for(var l=s,d=0;d<=o;++d){var m=s+d;if(d==o||V[m]==0){if(l=l?qe(V,l,m-l):"",h===void 0)var h=l;else h+="\0",h+=l;l=m+1}}else{for(h=Array(o),d=0;d<o;++d)h[d]=String.fromCharCode(V[s+d]);h=h.join("")}return Ze(i),h},toWireType:function(i,o){o instanceof ArrayBuffer&&(o=new Uint8Array(o));var s=typeof o=="string";s||o instanceof Uint8Array||o instanceof Uint8ClampedArray||o instanceof Int8Array||x("Cannot pass non-string to std::string");var l=n&&s?Tn(o):o.length,d=wn(4+l+1),m=d+4;if(Q[d>>2]=l,n&&s)Ln(o,V,m,l+1);else if(s)for(s=0;s<l;++s){var h=o.charCodeAt(s);255<h&&(Ze(m),x("String has UTF-16 code units that do not fit in 8 bits")),V[m+s]=h}else for(s=0;s<l;++s)V[m+s]=o[s];return i!==null&&i.push(Ze,d),d},argPackAdvance:8,readValueFromPointer:Pt,K:function(i){Ze(i)}})},_embind_register_std_wstring:function(e,t,n){if(n=ie(n),t===2)var i=kr,o=Xr,s=zr,l=()=>Re,d=1;else t===4&&(i=Vr,o=Hr,s=Gr,l=()=>Q,d=2);Be(e,{name:n,fromWireType:function(m){for(var h=Q[m>>2],_=l(),R,E=m+4,f=0;f<=h;++f){var b=m+4+f*t;(f==h||_[b>>d]==0)&&(E=i(E,b-E),R===void 0?R=E:(R+="\0",R+=E),E=b+t)}return Ze(m),R},toWireType:function(m,h){typeof h!="string"&&x(`Cannot pass non-string to C++ string type ${n}`);var _=s(h),R=wn(4+_+t);return Q[R>>2]=_>>d,o(h,R+4,_+t),m!==null&&m.push(Ze,R),R},argPackAdvance:8,readValueFromPointer:Pt,K:function(m){Ze(m)}})},_embind_register_value_object:function(e,t,n,i,o,s){Wt[e]={name:ie(t),Pa:ge(n,i),W:ge(o,s),eb:[]}},_embind_register_value_object_field:function(e,t,n,i,o,s,l,d,m,h){Wt[e].eb.push({Sb:ie(t),Yb:n,Wb:ge(i,o),Xb:s,rc:l,qc:ge(d,m),sc:h})},_embind_register_void:function(e,t){t=ie(t),Be(e,{fc:!0,name:t,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(e,t,n){e=je(e),t=Ct(t,"emval::as");var i=[],o=Ue(i);return Q[n>>2]=o,t.toWireType(i,e)},_emval_call_method:function(e,t,n,i,o){e=Gt[e],t=je(t),n=Ht(n);var s=[];return Q[i>>2]=Ue(s),e(t,n,s,o)},_emval_call_void_method:function(e,t,n,i){e=Gt[e],t=je(t),n=Ht(n),e(t,n,null,i)},_emval_decref:pn,_emval_get_method_caller:function(e,t){var n=Jr(e,t),i=n[0];t=i.name+"_$"+n.slice(1).map(function(l){return l.name}).join("_")+"$";var o=ar[t];if(o!==void 0)return o;var s=Array(e-1);return o=Zr((l,d,m,h)=>{for(var _=0,R=0;R<e-1;++R)s[R]=n[R+1].readValueFromPointer(h+_),_+=n[R+1].argPackAdvance;for(l=l[d].apply(l,s),R=0;R<e-1;++R)n[R+1].Nb&&n[R+1].Nb(s[R]);if(!i.fc)return i.toWireType(m,l)}),ar[t]=o},_emval_get_module_property:function(e){return e=Ht(e),Ue(c[e])},_emval_get_property:function(e,t){return e=je(e),t=je(t),Ue(e[t])},_emval_incref:function(e){4<e&&(Le.get(e).tb+=1)},_emval_new_cstring:function(e){return Ue(Ht(e))},_emval_new_object:function(){return Ue({})},_emval_run_destructors:function(e){var t=je(e);Et(t),pn(e)},_emval_set_property:function(e,t,n){e=je(e),t=je(t),n=je(n),e[t]=n},_emval_take_value:function(e,t){return e=Ct(e,"_emval_take_value"),e=e.readValueFromPointer(t),Ue(e)},abort:()=>{G("")}
18,emscripten_asm_const_int:(e,t,n)=>{mn.length=0;var i;for(n>>=2;i=V[t++];)n+=i!=105&n,mn.push(i==105?j[n]:r[n++>>1]),++n;return gt[e].apply(null,mn)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(e,t,n)=>V.copyWithin(e,t,t+n),emscripten_resize_heap:e=>{var t=V.length;if(e>>>=0,2147483648<e)return!1;for(var n=1;4>=n;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296);var o=Math;i=Math.max(e,i);e:{o=o.min.call(o,2147483648,i+(65536-i%65536)%65536)-ke.buffer.byteLength+65535>>>16;try{ke.grow(o),a();var s=1;break e}catch{}s=void 0}if(s)return!0}return!1},environ_get:(e,t)=>{var n=0;return sr().forEach(function(i,o){var s=t+n;for(o=Q[e+4*o>>2]=s,s=0;s<i.length;++s)oe[o++>>0]=i.charCodeAt(s);oe[o>>0]=0,n+=i.length+1}),0},environ_sizes_get:(e,t)=>{var n=sr();Q[e>>2]=n.length;var i=0;return n.forEach(function(o){i+=o.length+1}),Q[t>>2]=i,0},fd_close:function(e){try{var t=et(e);if(t.X===null)throw new P(8);t.Ma&&(t.Ma=null);try{t.m.close&&t.m.close(t)}catch(n){throw n}finally{Ft[t.X]=null}return t.X=null,0}catch(n){if(typeof at>"u"||n.name!=="ErrnoError")throw n;return n.aa}},fd_read:function(e,t,n,i){try{e:{var o=et(e);e=t;for(var s,l=t=0;l<n;l++){var d=Q[e>>2],m=Q[e+4>>2];e+=8;var h=o,_=d,R=m,E=s,f=oe;if(0>R||0>E)throw new P(28);if(h.X===null)throw new P(8);if((h.flags&2097155)===1)throw new P(8);if((h.node.mode&61440)===16384)throw new P(31);if(!h.m.read)throw new P(28);var b=typeof E<"u";if(!b)E=h.position;else if(!h.seekable)throw new P(70);var w=h.m.read(h,f,_,R,E);b||(h.position+=w);var D=w;if(0>D){var U=-1;break e}if(t+=D,D<m)break;typeof s<"u"&&(s+=D)}U=t}return Q[i>>2]=U,0}catch(C){if(typeof at>"u"||C.name!=="ErrnoError")throw C;return C.aa}},fd_seek:function(e,t,n,i,o){t=n+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*n:NaN;try{if(isNaN(t))return 61;var s=et(e);return Yn(s,t,i),ft=[s.position>>>0,(Xe=s.position,1<=+Math.abs(Xe)?0<Xe?+Math.floor(Xe/4294967296)>>>0:~~+Math.ceil((Xe-+(~~Xe>>>0))/4294967296)>>>0:0)],j[o>>2]=ft[0],j[o+4>>2]=ft[1],s.Ma&&t===0&&i===0&&(s.Ma=null),0}catch(l){if(typeof at>"u"||l.name!=="ErrnoError")throw l;return l.aa}},fd_write:function(e,t,n,i){try{e:{var o=et(e);e=t;for(var s,l=t=0;l<n;l++){var d=Q[e>>2],m=Q[e+4>>2];e+=8;var h=o,_=d,R=m,E=s,f=oe;if(0>R||0>E)throw new P(28);if(h.X===null)throw new P(8);if(!(h.flags&2097155))throw new P(8);if((h.node.mode&61440)===16384)throw new P(31);if(!h.m.write)throw new P(28);h.seekable&&h.flags&1024&&Yn(h,0,2);var b=typeof E<"u";if(!b)E=h.position;else if(!h.seekable)throw new P(70);var w=h.m.write(h,f,_,R,E,void 0);b||(h.position+=w);var D=w;if(0>D){var U=-1;break e}t+=D,typeof s<"u"&&(s+=D)}U=t}return Q[i>>2]=U,0}catch(C){if(typeof at>"u"||C.name!=="ErrnoError")throw C;return C.aa}},strftime_l:(e,t,n,i)=>Qr(e,t,n,i)};(function(){function e(n){if(J=n=n.exports,ke=J.memory,a(),p=J.__indirect_function_table,g.unshift(J.__wasm_call_ctors),q--,c.monitorRunDependencies&&c.monitorRunDependencies(q),q==0&&F){var i=F;F=null,i()}return n}var t={env:hr,wasi_snapshot_preview1:hr};if(q++,c.monitorRunDependencies&&c.monitorRunDependencies(q),c.instantiateWasm)try{return c.instantiateWasm(t,e)}catch(n){Pe("Module.instantiateWasm callback failed with error: "+n),ee(n)}return Lt(t,function(n){e(n.instance)}).catch(ee),{}})();var Ze=e=>(Ze=J.free)(e),wn=e=>(wn=J.malloc)(e),dr=c._ma_device__on_notification_unlocked=e=>(dr=c._ma_device__on_notification_unlocked=J.ma_device__on_notification_unlocked)(e);c._ma_malloc_emscripten=(e,t)=>(c._ma_malloc_emscripten=J.ma_malloc_emscripten)(e,t),c._ma_free_emscripten=(e,t)=>(c._ma_free_emscripten=J.ma_free_emscripten)(e,t);var pr=c._ma_device_process_pcm_frames_capture__webaudio=(e,t,n)=>(pr=c._ma_device_process_pcm_frames_capture__webaudio=J.ma_device_process_pcm_frames_capture__webaudio)(e,t,n),vr=c._ma_device_process_pcm_frames_playback__webaudio=(e,t,n)=>(vr=c._ma_device_process_pcm_frames_playback__webaudio=J.ma_device_process_pcm_frames_playback__webaudio)(e,t,n),mr=()=>(mr=J.__errno_location)(),gr=e=>(gr=J.__getTypeName)(e);c.__embind_initialize_bindings=()=>(c.__embind_initialize_bindings=J._embind_initialize_bindings)(),c.dynCall_iiji=(e,t,n,i,o)=>(c.dynCall_iiji=J.dynCall_iiji)(e,t,n,i,o),c.dynCall_jiji=(e,t,n,i,o)=>(c.dynCall_jiji=J.dynCall_jiji)(e,t,n,i,o),c.dynCall_iiiji=(e,t,n,i,o,s)=>(c.dynCall_iiiji=J.dynCall_iiiji)(e,t,n,i,o,s),c.dynCall_iij=(e,t,n,i)=>(c.dynCall_iij=J.dynCall_iij)(e,t,n,i),c.dynCall_jii=(e,t,n)=>
18(c.dynCall_jii=J.dynCall_jii)(e,t,n),c.dynCall_viijii=(e,t,n,i,o,s,l)=>(c.dynCall_viijii=J.dynCall_viijii)(e,t,n,i,o,s,l),c.dynCall_iiiiij=(e,t,n,i,o,s,l)=>(c.dynCall_iiiiij=J.dynCall_iiiiij)(e,t,n,i,o,s,l),c.dynCall_iiiiijj=(e,t,n,i,o,s,l,d,m)=>(c.dynCall_iiiiijj=J.dynCall_iiiiijj)(e,t,n,i,o,s,l,d,m),c.dynCall_iiiiiijj=(e,t,n,i,o,s,l,d,m,h)=>(c.dynCall_iiiiiijj=J.dynCall_iiiiiijj)(e,t,n,i,o,s,l,d,m,h);var Jt;F=function e(){Jt||yr(),Jt||(F=e)};function yr(){function e(){if(!Jt&&(Jt=!0,c.calledRun=!0,!rt)){if(c.noFSInit||Xn||(Xn=!0,kn(),c.stdin=c.stdin,c.stdout=c.stdout,c.stderr=c.stderr,c.stdin?wt("stdin",c.stdin):an("/dev/tty","/dev/stdin"),c.stdout?wt("stdout",null,c.stdout):an("/dev/tty","/dev/stdout"),c.stderr?wt("stderr",null,c.stderr):an("/dev/tty1","/dev/stderr"),jt("/dev/stdin",0),jt("/dev/stdout",1),jt("/dev/stderr",1)),jn=!1,ze(g),Z(c),c.onRuntimeInitialized&&c.onRuntimeInitialized(),c.postRun)for(typeof c.postRun=="function"&&(c.postRun=[c.postRun]);c.postRun.length;){var t=c.postRun.shift();A.unshift(t)}ze(A)}}if(!(0<q)){if(c.preRun)for(typeof c.preRun=="function"&&(c.preRun=[c.preRun]);c.preRun.length;)M();ze(v),0<q||(c.setStatus?(c.setStatus("Running..."),setTimeout(function(){setTimeout(function(){c.setStatus("")},1),e()},1)):e())}}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();return yr(),O.ready}})();const re=ve},ne=>{ne.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"2.21.5","description":"Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(ne,B,W)=>{W.r(B),W.d(B,{Animation:()=>ve.Animation});var ve=W(4)},(ne,B,W)=>{W.r(B),W.d(B,{Animation:()=>ve});var ve=function(){function re(H,O,c,Z){this.animation=H,this.artboard=O,this.playing=Z,this.loopCount=0,this.scrubTo=null,this.instance=new c.LinearAnimationInstance(H,O)}return Object.defineProperty(re.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"time",{get:function(){return this.instance.time},set:function(H){this.instance.time=H},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),re.prototype.advance=function(H){this.scrubTo===null?this.instance.advance(H):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},re.prototype.apply=function(H){this.instance.apply(H)},re.prototype.cleanup=function(){this.instance.delete()},re}()},(ne,B,W)=>{W.r(B),W.d(B,{BLANK_URL:()=>re.BLANK_URL,registerTouchInteractions:()=>ve.registerTouchInteractions,sanitizeUrl:()=>re.sanitizeUrl});var ve=W(6),re=W(7)},(ne,B,W)=>{W.r(B),W.d(B,{registerTouchInteractions:()=>H});var ve=void 0,re=function(O,c){var Z,ee;return["touchstart","touchmove"].indexOf(O.type)>-1&&(!((Z=O.touches)===null||Z===void 0)&&Z.length)?(c||O.preventDefault(),{clientX:O.touches[0].clientX,clientY:O.touches[0].clientY}):O.type==="touchend"&&(!((ee=O.changedTouches)===null||ee===void 0)&&ee.length)?{clientX:O.changedTouches[0].clientX,clientY:O.changedTouches[0].clientY}:{clientX:O.clientX,clientY:O.clientY}},H=function(O){var c=O.canvas,Z=O.artboard,ee=O.stateMachines,pe=ee===void 0?[]:ee,ae=O.renderer,we=O.rive,be=O.fit,se=O.alignment,Fe=O.isTouchScrollEnabled,L=Fe===void 0?!1:Fe;if(!c||!pe.length||!ae||!we||!Z||typeof window>"u")return null;var Oe=null,xe=!1,Ye=function(Ce){if(xe&&Ce instanceof MouseEvent){Ce.type=="mouseup"&&(xe=!1);return}xe=L&&Ce.type==="touchend"&&Oe==="touchstart",Oe=Ce.type;var Ae=Ce.currentTarget.getBoundingClientRect(),nt=re(Ce,L),Pe=nt.clientX,Ie=nt.clientY;if(!(!Pe&&!Ie)){var ke=Pe-Ae.left,J=Ie-Ae.top,rt=we.computeAlignment(be,se,{minX:0,minY:0,maxX:Ae.width,maxY:Ae.height},Z.bounds),oe=new we.Mat2D;rt.invert(oe);var V=new we.Vec2D(ke,J),me=we.mapXY(oe,V),Re=me.x(),j=me.y();switch(me.delete(),oe.delete(),V.delete(),rt.delete(),Ce.type){case"mouseout":for(var Q=0,u=pe;Q<u.length;Q++){var r=u[Q];r.pointerMove(Re<0?Re-1e4:Re+1e4,j<0?j-1e4:j+1e4)}break;case"touchmove":case"mouseover":case"mousemove":{for(var a=0,p=pe;a<p.length;a++){var r=p[a];r.pointerMove(Re,j)}break}case"touchstart":case"mousedown":{for(var v=0,g=pe;v<g.length;v++){var r=g[v];r.pointerDown(Re,j)}break}case"touchend":case"mouseup":{for(var A=0,M=pe;A<M.length;A++){var r=M[A];r.pointerUp(Re,j)}break}}}},N=Ye.bind(ve);return c.addEventListener("mouseover",N),c.addEventListener("mouseout",N),c.addEventListener("mousemove",N),c.addEventListener("mousedown",N),c.addEventListener("mouseup",N),c.addEventListener("touchmove",N,{passive:L}),c.addEventListener("touchstart",N,{passive:L}),c.addEventListener("touchend",N),function(){c.removeEventListener("mouseover",N),c.removeEventListener("mouseout",N),c.removeEventListener("mousemove",N),c.removeEventListener("mousedown",N),c.removeEventListener("mouseup",N),c.removeEventListener("touchmove",N),c.removeEventListener("touchstart",N),c.removeEventListener("touchend",N)}}},(ne,B,W)=>{W.r(B),W.d(B,{BLANK_URL:()=>ee,sanitizeUrl:()=>we});var ve=/^([^\w]*)(javascript|data|vbscript)/im,re=/&#(\w+)(^\w|;)?/g,H=/&(newline|tab);/gi,O=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,c=/^.+(:|&colon;)/gim,Z=[".","/"],ee="about:blank";function pe(be){return Z.indexOf(be[0])>-1}function ae(be){var se=be.replace(O,"");return se.replace(re,function(Fe,L){return String.fromCharCode(L)})}function we(be){if(!be)return ee;var se=ae(be).replace(H,"").replace(O,"").trim();if(!se)return ee;if(pe(se))return se;var Fe=se.match(c);if(!Fe)return se;var L=Fe[0];return ve.test(L)?ee:se}}],$e={};function he(ne){var B=$e[ne];if(B!==void 0)return B.exports;var W=$e[ne]={exports:{}};return Tt[ne](W,W.exports,he),W.exports}he.d=(ne,B)=>{for(var W in B)he.o(B,W)&&!he.o(ne,W)&&Object.defineProperty(ne,W,{enumerable:!0,get:B[W]})},he.o=(ne,B)=>Object.prototype.hasOwnProperty.call(ne,B),he.r=ne=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"}
18),Object.defineProperty(ne,"__esModule",{value:!0})};var de={};return(()=>{he.r(de),he.d(de,{Alignment:()=>Z,EventType:()=>L,Fit:()=>c,Layout:()=>ee,LoopType:()=>Oe,Rive:()=>rt,RiveEventType:()=>be,RiveFile:()=>J,RuntimeLoader:()=>pe,StateMachineInput:()=>we,StateMachineInputType:()=>ae,Testing:()=>me,decodeAudio:()=>Re,decodeFont:()=>Q,decodeImage:()=>j});var ne=he(1),B=he(2),W=he(3),ve=he(5),re=function(){var u=function(r,a){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(p[g]=v[g])},u(r,a)};return function(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");u(r,a);function p(){this.constructor=r}r.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}(),H=function(u,r,a,p){function v(g){return g instanceof a?g:new a(function(A){A(g)})}return new(a||(a=Promise))(function(g,A){function M(G){try{F(p.next(G))}catch(ce){A(ce)}}function q(G){try{F(p.throw(G))}catch(ce){A(ce)}}function F(G){G.done?g(G.value):v(G.value).then(M,q)}F((p=p.apply(u,r||[])).next())})},O=function(u,r){var a={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},p,v,g,A;return A={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function M(F){return function(G){return q([F,G])}}function q(F){if(p)throw new TypeError("Generator is already executing.");for(;A&&(A=0,F[0]&&(a=0)),a;)try{if(p=1,v&&(g=F[0]&2?v.return:F[0]?v.throw||((g=v.return)&&g.call(v),0):v.next)&&!(g=g.call(v,F[1])).done)return g;switch(v=0,g&&(F=[F[0]&2,g.value]),F[0]){case 0:case 1:g=F;break;case 4:return a.label++,{value:F[1],done:!1};case 5:a.label++,v=F[1],F=[0];continue;case 7:F=a.ops.pop(),a.trys.pop();continue;default:if(g=a.trys,!(g=g.length>0&&g[g.length-1])&&(F[0]===6||F[0]===2)){a=0;continue}if(F[0]===3&&(!g||F[1]>g[0]&&F[1]<g[3])){a.label=F[1];break}if(F[0]===6&&a.label<g[1]){a.label=g[1],g=F;break}if(g&&a.label<g[2]){a.label=g[2],a.ops.push(F);break}g[2]&&a.ops.pop(),a.trys.pop();continue}F=r.call(u,a)}catch(G){F=[6,G],v=0}finally{p=g=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},c;(function(u){u.Cover="cover",u.Contain="contain",u.Fill="fill",u.FitWidth="fitWidth",u.FitHeight="fitHeight",u.None="none",u.ScaleDown="scaleDown"})(c||(c={}));var Z;(function(u){u.Center="center",u.TopLeft="topLeft",u.TopCenter="topCenter",u.TopRight="topRight",u.CenterLeft="centerLeft",u.CenterRight="centerRight",u.BottomLeft="bottomLeft",u.BottomCenter="bottomCenter",u.BottomRight="bottomRight"})(Z||(Z={}));var ee=function(){function u(r){var a,p,v,g,A,M;this.fit=(a=r==null?void 0:r.fit)!==null&&a!==void 0?a:c.Contain,this.alignment=(p=r==null?void 0:r.alignment)!==null&&p!==void 0?p:Z.Center,this.minX=(v=r==null?void 0:r.minX)!==null&&v!==void 0?v:0,this.minY=(g=r==null?void 0:r.minY)!==null&&g!==void 0?g:0,this.maxX=(A=r==null?void 0:r.maxX)!==null&&A!==void 0?A:0,this.maxY=(M=r==null?void 0:r.maxY)!==null&&M!==void 0?M:0}return u.new=function(r){var a=r.fit,p=r.alignment,v=r.minX,g=r.minY,A=r.maxX,M=r.maxY;return new u({fit:a,alignment:p,minX:v,minY:g,maxX:A,maxY:M})},u.prototype.copyWith=function(r){var a=r.fit,p=r.alignment,v=r.minX,g=r.minY,A=r.maxX,M=r.maxY;return new u({fit:a??this.fit,alignment:p??this.alignment,minX:v??this.minX,minY:g??this.minY,maxX:A??this.maxX,maxY:M??this.maxY})},u.prototype.runtimeFit=function(r){if(this.cachedRuntimeFit)return this.cachedRuntimeFit;var a;return this.fit===c.Cover?a=r.Fit.cover:this.fit===c.Contain?a=r.Fit.contain:this.fit===c.Fill?a=r.Fit.fill:this.fit===c.FitWidth?a=r.Fit.fitWidth:this.fit===c.FitHeight?a=r.Fit.fitHeight:this.fit===c.ScaleDown?a=r.Fit.scaleDown:a=r.Fit.none,this.cachedRuntimeFit=a,a},u.prototype.runtimeAlignment=function(r){if(this.cachedRuntimeAlignment)return this.cachedRuntimeAlignment;var a;return this.alignment===Z.TopLeft?a=r.Alignment.topLeft:this.alignment===Z.TopCenter?a=r.Alignment.topCenter:this.alignment===Z.TopRight?a=r.Alignment.topRight:this.alignment===Z.CenterLeft?a=r.Alignment.centerLeft:this.alignment===Z.CenterRight?a=r.Alignment.centerRight:this.alignment===Z.BottomLeft?a=r.Alignment.bottomLeft:this.alignment===Z.BottomCenter?a=r.Alignment.bottomCenter:this.alignment===Z.BottomRight?a=r.Alignment.bottomRight:a=r.Alignment.center,this.cachedRuntimeAlignment=a,a},u}
18(),pe=function(){function u(){}return u.loadRuntime=function(){ne.default({locateFile:function(){return u.wasmURL}}).then(function(r){var a;for(u.runtime=r;u.callBackQueue.length>0;)(a=u.callBackQueue.shift())===null||a===void 0||a(u.runtime)}).catch(function(){var r="https://cdn.jsdelivr.net/npm/".concat(B.name,"@").concat(B.version,"/rive_fallback.wasm");u.wasmURL.toLowerCase()!==r&&(u.setWasmUrl(r),u.loadRuntime())})},u.getInstance=function(r){u.isLoading||(u.isLoading=!0,u.loadRuntime()),u.runtime?r(u.runtime):u.callBackQueue.push(r)},u.awaitInstance=function(){return new Promise(function(r){return u.getInstance(function(a){return r(a)})})},u.setWasmUrl=function(r){u.wasmURL=r},u.isLoading=!1,u.callBackQueue=[],u.wasmURL="https://unpkg.com/".concat(B.name,"@").concat(B.version,"/rive.wasm"),u}(),ae;(function(u){u[u.Number=56]="Number",u[u.Trigger=58]="Trigger",u[u.Boolean=59]="Boolean"})(ae||(ae={}));var we=function(){function u(r,a){this.type=r,this.runtimeInput=a}return Object.defineProperty(u.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(r){this.runtimeInput.value=r},enumerable:!1,configurable:!0}),u.prototype.fire=function(){this.type===ae.Trigger&&this.runtimeInput.fire()},u}(),be;(function(u){u[u.General=128]="General",u[u.OpenUrl=131]="OpenUrl"})(be||(be={}));var se=function(){function u(r,a,p,v){this.stateMachine=r,this.playing=p,this.artboard=v,this.inputs=[],this.instance=new a.StateMachineInstance(r,v),this.initInputs(a)}return Object.defineProperty(u.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"statesChanged",{get:function(){for(var r=[],a=0;a<this.instance.stateChangedCount();a++)r.push(this.instance.stateChangedNameByIndex(a));return r},enumerable:!1,configurable:!0}),u.prototype.advance=function(r){this.instance.advance(r)},u.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},u.prototype.reportedEventAt=function(r){return this.instance.reportedEventAt(r)},u.prototype.initInputs=function(r){for(var a=0;a<this.instance.inputCount();a++){var p=this.instance.input(a);this.inputs.push(this.mapRuntimeInput(p,r))}},u.prototype.mapRuntimeInput=function(r,a){if(r.type===a.SMIInput.bool)return new we(ae.Boolean,r.asBool());if(r.type===a.SMIInput.number)return new we(ae.Number,r.asNumber());if(r.type===a.SMIInput.trigger)return new we(ae.Trigger,r.asTrigger())},u.prototype.cleanup=function(){this.instance.delete()},u}(),Fe=function(){function u(r,a,p,v,g){v===void 0&&(v=[]),g===void 0&&(g=[]),this.runtime=r,this.artboard=a,this.eventManager=p,this.animations=v,this.stateMachines=g}return u.prototype.add=function(r,a,p){if(p===void 0&&(p=!0),r=V(r),r.length===0)this.animations.forEach(function(fe){return fe.playing=a}),this.stateMachines.forEach(function(fe){return fe.playing=a});else for(var v=this.animations.map(function(fe){return fe.name}),g=this.stateMachines.map(function(fe){return fe.name}),A=0;A<r.length;A++){var M=v.indexOf(r[A]),q=g.indexOf(r[A]);if(M>=0||q>=0)M>=0?this.animations[M].playing=a:this.stateMachines[q].playing=a;else{var F=this.artboard.animationByName(r[A]);if(F){var G=new W.Animation(F,this.artboard,this.runtime,a);G.advance(0),G.apply(1),this.animations.push(G)}else{var ce=this.artboard.stateMachineByName(r[A]);if(ce){var le=new se(ce,this.runtime,a,this.artboard);this.stateMachines.push(le)}}}}return p&&(a?this.eventManager.fire({type:L.Play,data:this.playing}):this.eventManager.fire({type:L.Pause,data:this.paused})),a?this.playing:this.paused},u.prototype.initLinearAnimations=function(r,a){for(var p=this.animations.map(function(q){return q.name}),v=0;v<r.length;v++){var g=p.indexOf(r[v]);if(g>=0)this.animations[g].playing=a;else{var A=this.artboard.animationByName(r[v]);if(A){var M=new W.Animation(A,this.artboard,this.runtime,a);M.advance(0),M.apply(1),this.animations.push(M)}}}},u.prototype.initStateMachines=function(r,a){for(var p=this.stateMachines.map(function(q){return q.name}),v=0;v<r.length;v++){var g=p.indexOf(r[v]);if(g>=0)this.stateMachines[g].playing=a;else{var A=this.artboard.stateMachineByName(r[v]);if(A){var M=new se(A,this.runtime,a,this.artboard);this.stateMachines.push(M)}else this.initLinearAnimations([r[v]],a)}}},u.prototype.play=function(r){return this.add(r,!0)},u.prototype.pause=function(r){return this.add(r,!1)},u.prototype.scrub=function(r,a){var p=this.animations.filter(function(v){return r.includes(v.name)});return p.forEach(function(v){return v.scrubTo=a}),p.map(function(v){return v.name})},Object.defineProperty(u.prototype,"playing",{get:function(){return this.animations.filter(function(r){return r.playing}).map(function(r){return r.name}).concat(this.stateMachines.filter(function(r){return r.playing}).map(function(r){return r.name}))}
18,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"paused",{get:function(){return this.animations.filter(function(r){return!r.playing}).map(function(r){return r.name}).concat(this.stateMachines.filter(function(r){return!r.playing}).map(function(r){return r.name}))},enumerable:!1,configurable:!0}),u.prototype.stop=function(r){var a=this;r=V(r);var p=[];if(r.length===0)p=this.animations.map(function(A){return A.name}).concat(this.stateMachines.map(function(A){return A.name})),this.animations.forEach(function(A){return A.cleanup()}),this.stateMachines.forEach(function(A){return A.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var v=this.animations.filter(function(A){return r.includes(A.name)});v.forEach(function(A){A.cleanup(),a.animations.splice(a.animations.indexOf(A),1)});var g=this.stateMachines.filter(function(A){return r.includes(A.name)});g.forEach(function(A){A.cleanup(),a.stateMachines.splice(a.stateMachines.indexOf(A),1)}),p=v.map(function(A){return A.name}).concat(g.map(function(A){return A.name}))}return this.eventManager.fire({type:L.Stop,data:p}),p},Object.defineProperty(u.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(r,a){return r||a.playing},!1)||this.stateMachines.reduce(function(r,a){return r||a.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),u.prototype.atLeastOne=function(r,a){a===void 0&&(a=!0);var p;return this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([p=this.artboard.animationByIndex(0).name],r,a):this.artboard.stateMachineCount()>0&&this.add([p=this.artboard.stateMachineByIndex(0).name],r,a)),p},u.prototype.handleLooping=function(){for(var r=0,a=this.animations.filter(function(v){return v.playing});r<a.length;r++){var p=a[r];p.loopValue===0&&p.loopCount?(p.loopCount=0,this.stop(p.name)):p.loopValue===1&&p.loopCount?(this.eventManager.fire({type:L.Loop,data:{animation:p.name,type:Oe.Loop}}),p.loopCount=0):p.loopValue===2&&p.loopCount>1&&(this.eventManager.fire({type:L.Loop,data:{animation:p.name,type:Oe.PingPong}}),p.loopCount=0)}},u.prototype.handleStateChanges=function(){for(var r=[],a=0,p=this.stateMachines.filter(function(g){return g.playing});a<p.length;a++){var v=p[a];r.push.apply(r,v.statesChanged)}r.length>0&&this.eventManager.fire({type:L.StateChange,data:r})},u.prototype.handleAdvancing=function(r){this.eventManager.fire({type:L.Advance,data:r})},u}(),L;(function(u){u.Load="load",u.LoadError="loaderror",u.Play="play",u.Pause="pause",u.Stop="stop",u.Loop="loop",u.Draw="draw",u.Advance="advance",u.StateChange="statechange",u.RiveEvent="riveevent",u.AudioStatusChange="audiostatuschange"})(L||(L={}));var Oe;(function(u){u.OneShot="oneshot",u.Loop="loop",u.PingPong="pingpong"})(Oe||(Oe={}));var xe=function(){function u(r){r===void 0&&(r=[]),this.listeners=r}return u.prototype.getListeners=function(r){return this.listeners.filter(function(a){return a.type===r})},u.prototype.add=function(r){this.listeners.includes(r)||this.listeners.push(r)},u.prototype.remove=function(r){for(var a=0;a<this.listeners.length;a++){var p=this.listeners[a];if(p.type===r.type&&p.callback===r.callback){this.listeners.splice(a,1);break}}},u.prototype.removeAll=function(r){var a=this;r?this.listeners.filter(function(p){return p.type===r}).forEach(function(p){return a.remove(p)}):this.listeners.splice(0,this.listeners.length)},u.prototype.fire=function(r){var a=this.getListeners(r.type);a.forEach(function(p){return p.callback(r)})},u}(),Ye=function(){function u(r){this.eventManager=r,this.queue=[]}return u.prototype.add=function(r){this.queue.push(r)},u.prototype.process=function(){for(;this.queue.length>0;){var r=this.queue.shift();r!=null&&r.action&&r.action(),r!=null&&r.event&&this.eventManager.fire(r.event)}},u}(),N;(function(u){u[u.AVAILABLE=0]="AVAILABLE",u[u.UNAVAILABLE=1]="UNAVAILABLE"})(N||(N={}));var Ce=function(u){re(r,u);function r(){var a=u!==null&&u.apply(this,arguments)||this;return a._started=!1,a._enabled=!1,a._status=N.UNAVAILABLE,a}return r.prototype.delay=function(a){return H(this,void 0,void 0,function(){return O(this,function(p){return[2,new Promise(function(v){return setTimeout(v,a)})]})})},r.prototype.timeout=function(){return H(this,void 0,void 0,function(){return O(this,function(a){return[2,new Promise(function(p,v){return setTimeout(v,50)})]})})},r.prototype.reportToListeners=function(){this.fire({type:L.AudioStatusChange}),this.removeAll()},r.prototype.enableAudio=function(){return H(this,void 0,void 0,function(){return O(this,function(a){return this._enabled||(this._enabled=!0,this._status=N.AVAILABLE,this.reportToListeners()),[2]})})},r.prototype.testAudio=function(){return H(this,void 0,void 0,function(){return O(this,function(a){switch(a.label){case 0:if(!(this._status===N.UNAVAILABLE&&this._audioContext!==null))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return a.sent(),this.enableAudio(),[3,4];case 3:return a.sent(),[3,4];case 4:return[2]}})})},r.prototype._establishAudio=function(){return H(this,void 0,void 0,function(){return O(this,function(a){switch(a.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window>"u"?(this.enableAudio(),[3,5]):[3,1]);case 1:this._audioContext=new AudioContext,this.listenForUserAction(),a.label=2;case 2:return this._status!==N.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return a.sent(),[4,this.delay(1e3)];case 4:return a.sent(),[3,2];case 5:return[2]}})})},r.prototype.listenForUserAction=function(){var a=this,p=function(){return H(a,void 0,void 0,function(){return O(this,function(v){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",p,{once:!0})},r.prototype.establishAudio=function(){return H(this,void 0,void 0,function(){return O(this,function(a){return this._establishAudio(),[2]})})},Object.defineProperty(r.prototype,"systemVolume",{get:function(){return this._status===N.UNAVAILABLE?(this.testAudio(),0):1}
18,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),r}(xe),Ae=new Ce,nt=function(){function u(){}return u.prototype.observe=function(){},u.prototype.unobserve=function(){},u.prototype.disconnect=function(){},u}(),Pe=globalThis.ResizeObserver||nt,Ie=function(){function u(){var r=this;this._elementsMap=new Map,this._onObservedEntry=function(a){var p=r._elementsMap.get(a.target);p!==null?p.onResize(a.target.clientWidth==0||a.target.clientHeight==0):r._resizeObserver.unobserve(a.target)},this._onObserved=function(a){a.forEach(r._onObservedEntry)},this._resizeObserver=new Pe(this._onObserved)}return u.prototype.add=function(r,a){var p={onResize:a,element:r};return this._elementsMap.set(r,p),this._resizeObserver.observe(r),p},u.prototype.remove=function(r){this._resizeObserver.unobserve(r.element),this._elementsMap.delete(r.element)},u}(),ke=new Ie,J=function(){function u(r){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=r.src,this.buffer=r.buffer,r.assetLoader&&(this.assetLoader=r.assetLoader),this.enableRiveAssetCDN=typeof r.enableRiveAssetCDN=="boolean"?r.enableRiveAssetCDN:!0,this.eventManager=new xe,r.onLoad&&this.on(L.Load,r.onLoad),r.onLoadError&&this.on(L.LoadError,r.onLoadError)}return u.prototype.initData=function(){return H(this,void 0,void 0,function(){var r,a,p;return O(this,function(v){switch(v.label){case 0:return this.src?(r=this,[4,oe(this.src)]):[3,2];case 1:r.buffer=v.sent(),v.label=2;case 2:return this.assetLoader&&(a=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),p=this,[4,this.runtime.load(new Uint8Array(this.buffer),a,this.enableRiveAssetCDN)];case 3:if(p.file=v.sent(),this.file!==null)this.eventManager.fire({type:L.Load,data:this});else throw this.eventManager.fire({type:L.LoadError,data:null}),new Error(u.fileLoadErrorMessage);return[2]}})})},u.prototype.init=function(){return H(this,void 0,void 0,function(){var r;return O(this,function(a){switch(a.label){case 0:if(!this.src&&!this.buffer)throw new Error(u.missingErrorMessage);return r=this,[4,pe.awaitInstance()];case 1:return r.runtime=a.sent(),[4,this.initData()];case 2:return a.sent(),[2]}})})},u.prototype.on=function(r,a){this.eventManager.add({type:r,callback:a})},u.prototype.off=function(r,a){this.eventManager.remove({type:r,callback:a})},u.prototype.cleanup=function(){var r;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),(r=this.file)===null||r===void 0||r.delete())},u.prototype.removeAllRiveEventListeners=function(r){this.eventManager.removeAll(r)},u.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},u.missingErrorMessage="Rive source file or data buffer required",u.fileLoadErrorMessage="The file failed to load",u}(),rt=function(){function u(r){var a=this,p;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._hasZeroSize=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(v){a._hasZeroSize=v,(!a._layout.maxX||!a._layout.maxY)&&a.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=r.canvas,r.canvas.constructor===HTMLCanvasElement&&(this._observed=ke.add(this.canvas,this.onCanvasResize)),this.src=r.src,this.buffer=r.buffer,this.riveFile=r.riveFile,this.layout=(p=r.layout)!==null&&p!==void 0?p:new ee,this.shouldDisableRiveListeners=!!r.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!r.isTouchScrollEnabled,this.automaticallyHandleEvents=!!r.automaticallyHandleEvents,this.enableRiveAssetCDN=r.enableRiveAssetCDN===void 0?!0:r.enableRiveAssetCDN,this.eventManager=new xe,r.onLoad&&this.on(L.Load,r.onLoad),r.onLoadError&&this.on(L.LoadError,r.onLoadError),r.onPlay&&this.on(L.Play,r.onPlay),r.onPause&&this.on(L.Pause,r.onPause),r.onStop&&this.on(L.Stop,r.onStop),r.onLoop&&this.on(L.Loop,r.onLoop),r.onStateChange&&this.on(L.StateChange,r.onStateChange),r.onAdvance&&this.on(L.Advance,r.onAdvance),r.onload&&!r.onLoad&&this.on(L.Load,r.onload),r.onloaderror&&!r.onLoadError&&this.on(L.LoadError,r.onloaderror),r.onplay&&!r.onPlay&&this.on(L.Play,r.onplay),r.onpause&&!r.onPause&&this.on(L.Pause,r.onpause),r.onstop&&!r.onStop&&this.on(L.Stop,r.onstop),r.onloop&&!r.onLoop&&this.on(L.Loop,r.onloop),r.onstatechange&&!r.onStateChange&&this.on(L.StateChange,r.onstatechange),r.assetLoader&&(this.assetLoader=r.assetLoader),this.taskQueue=new Ye(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:r.autoplay,animations:r.animations,stateMachines:r.stateMachines,artboard:r.artboard,useOffscreenRenderer:r.useOffscreenRenderer})}return u.new=function(r){return new u(r)},u.prototype.onSystemAudioChanged=function(){this.volume=this._volume},u.prototype.init=function(r){var a=this,p=r.src,v=r.buffer,g=r.riveFile,A=r.animations,M=r.stateMachines,q=r.artboard,F=r.autoplay,G=F===void 0?!1:F,ce=r.useOffscreenRenderer,le=ce===void 0?!1:ce;if(this.src=p,this.buffer=v,this.riveFile=g,!this.src&&!this.buffer&&!this.riveFile)throw new Error(u.missingErrorMessage);var fe=V(A),Qe=V(M);this.loaded=!1,this.readyForPlaying=!1,pe.awaitInstance().then(function(De){a.runtime=De,a.renderer=a.runtime.makeRenderer(a.canvas,le),a.canvas.width||a.canvas.height||a.resizeDrawingSurfaceToCanvas(),a.initData(q,fe,Qe,G).then(function(){return a.setupRiveListeners()}).catch(function(it){})}).catch(function(De){})},u.prototype.setupRiveListeners=function(r){var a=this;if(!this.shouldDisableRiveListeners){var p=(this.animator.stateMachines||[]).filter(function(g){return g.playing&&a.runtime.hasListeners(g.instance)}).map(function(g){return g.instance}),v=this.isTouchScrollEnabled;r&&"isTouchScrollEnabled"in r&&(v=r.isTouchScrollEnabled),this.eventCleanup=(0,ve.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:p,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:v})}},u.prototype.removeRiveListeners=function(){this.eventCleanup&&this.eventCleanup()},u.prototype.initializeAudio=function(){var r=this,a;Ae.status==N.UNAVAILABLE&&!((a=this.artboard)===null||a===void 0)&&a.hasAudio&&(Ae.add({type:L.AudioStatusChange,callback:function(){return r.onSystemAudioChanged()}}),Ae.establishAudio())},u.prototype.initData=function(r,a,p,v){var g;return H(this,void 0,void 0,function(){var A;return O(this,function(M){switch(M.label){case 0:return M.trys.push([0,3,,4]),this.riveFile!=null?[3,2]:(this.riveFile=new J({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:M.sent(),M.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(r,a,p,v),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:L.Load,data:(g=this.src)!==null&&g!==void 0?g:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return M.sent(),A="Problem loading file; may be corrupt!",this.eventManager.fire({type:L.LoadError,data:A}),[2,Promise.reject(A)];case 4:return[2]}})})},u.prototype.initArtboard=function(r,a,p,v){if(this.file){var g=r?this.file.artboardByName(r):this.file.defaultArtboard();if(!g){var A="Invalid artboard name or no default artboard";this.eventManager.fire({type:L.LoadError,data:A});return}if(this.artboard=g,g.volume=this._volume*Ae.systemVolume,this.artboard.animationCount()<1){var A="Artboard has no animations";throw this.eventManager.fire({type:L.LoadError,data:A}),A}this.animator=new Fe(this.runtime,this.artboard,this.eventManager);var M;a.length>0||p.length>0?(M=a.concat(p),this.animator.initLinearAnimations(a,v),this.animator.initStateMachines(
18p,v)):M=[this.animator.atLeastOne(v,!1)],this.taskQueue.add({event:{type:v?L.Play:L.Pause,data:M}})}},u.prototype.drawFrame=function(){this.startRendering()},u.prototype.draw=function(r,a){this.frameRequestId=null;var p=performance.now();this.lastRenderTime||(this.lastRenderTime=r),this.renderSecondTimer+=r-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,a==null||a());var v=(r-this.lastRenderTime)/1e3;this.lastRenderTime=r;for(var g=this.animator.animations.filter(function(Te){return Te.playing||Te.needsScrub}).sort(function(Te){return Te.needsScrub?-1:1}),A=0,M=g;A<M.length;A++){var q=M[A];q.advance(v),q.instance.didLoop&&(q.loopCount+=1),q.apply(1)}for(var F=this.animator.stateMachines.filter(function(Te){return Te.playing}),G=0,ce=F;G<ce.length;G++){var le=ce[G],fe=le.reportedEventCount();if(fe)for(var Qe=0;Qe<fe;Qe++){var De=le.reportedEventAt(Qe);if(De)if(De.type===be.OpenUrl){if(this.eventManager.fire({type:L.RiveEvent,data:De}),this.automaticallyHandleEvents){var it=document.createElement("a"),Lt=De,Xe=Lt.url,ft=Lt.target,gt=(0,ve.sanitizeUrl)(Xe);Xe&&it.setAttribute("href",gt),ft&&it.setAttribute("target",ft),gt&&gt!==ve.BLANK_URL&&it.click()}}else this.eventManager.fire({type:L.RiveEvent,data:De})}le.advance(v)}this.artboard.advance(v);var ze=this.renderer;ze.clear(),ze.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(ze),ze.restore(),ze.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(v),this.frameCount++;var ht=performance.now();for(this.frameTimes.push(ht),this.durations.push(ht-p);this.frameTimes[0]<=ht-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},u.prototype.alignRenderer=function(){var r=this,a=r.renderer,p=r.runtime,v=r._layout,g=r.artboard;a.align(v.runtimeFit(p),v.runtimeAlignment(p),{minX:v.minX,minY:v.minY,maxX:v.maxX,maxY:v.maxY},g.bounds)},Object.defineProperty(u.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce(function(r,a){return r+a},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),u.prototype.cleanup=function(){var r;this.stopRendering(),this.cleanupInstances(),this._observed!==null&&ke.remove(this._observed),(r=this.riveFile)===null||r===void 0||r.cleanup(),this.riveFile=null,this.file=null},u.prototype.deleteRiveRenderer=function(){var r;(r=this.renderer)===null||r===void 0||r.delete(),this.renderer=null},u.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},u.prototype.retrieveTextRun=function(r){var a;if(r&&this.artboard){var p=this.artboard.textRun(r);if(p)return p}},u.prototype.getTextRunValue=function(r){var a=this.retrieveTextRun(r);return a?a.text:void 0},u.prototype.setTextRunValue=function(r,a){var p=this.retrieveTextRun(r);p&&(p.text=a)},u.prototype.play=function(r,a){var p=this;if(r=V(r),!this.readyForPlaying){this.taskQueue.add({action:function(){return p.play(r,a)}});return}this.animator.play(r),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()},u.prototype.pause=function(r){var a=this;if(r=V(r),!this.readyForPlaying){this.taskQueue.add({action:function(){return a.pause(r)}});return}this.eventCleanup&&this.eventCleanup(),this.animator.pause(r)},u.prototype.scrub=function(r,a){var p=this;if(r=V(r),!this.readyForPlaying){this.taskQueue.add({action:function(){return p.scrub(r,a)}});return}this.animator.scrub(r,a||0),this.drawFrame()},u.prototype.stop=function(r){var a=this;if(r=V(r),!this.readyForPlaying){this.taskQueue.add({action:function(){return a.stop(r)}});return}this.animator.stop(r),this.eventCleanup&&this.eventCleanup()},u.prototype.reset=function(r){var a,p=r==null?void 0:r.artboard,v=V(r==null?void 0:r.animations),g=V(r==null?void 0:r.stateMachines),A=(a=r==null?void 0:r.auto
18play)!==null&&a!==void 0?a:!1;this.cleanupInstances(),this.initArtboard(p,v,g,A),this.taskQueue.process()},u.prototype.load=function(r){this.file=null,this.stop(),this.init(r)},Object.defineProperty(u.prototype,"layout",{get:function(){return this._layout},set:function(r){this._layout=r,(!r.maxX||!r.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),u.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},u.prototype.resizeDrawingSurfaceToCanvas=function(r){if(this.canvas instanceof HTMLCanvasElement&&window){var a=this.canvas.getBoundingClientRect(),p=a.width,v=a.height,g=r||window.devicePixelRatio||1;this.canvas.width=g*p,this.canvas.height=g*v,this.startRendering(),this.resizeToCanvas()}},Object.defineProperty(u.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var r=[],a=0;a<this.artboard.animationCount();a++)r.push(this.artboard.animationByIndex(a).name);return r},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var r=[],a=0;a<this.artboard.stateMachineCount();a++)r.push(this.artboard.stateMachineByIndex(a).name);return r},enumerable:!1,configurable:!0}),u.prototype.stateMachineInputs=function(r){if(this.loaded){var a=this.animator.stateMachines.find(function(p){return p.name===r});return a==null?void 0:a.inputs}},u.prototype.retrieveInputAtPath=function(r,a){if(r&&this.artboard){var p=this.artboard.inputByPath(r,a);if(p)return p}},u.prototype.setBooleanStateAtPath=function(r,a,p){var v=this.retrieveInputAtPath(r,p);v&&v.type===ae.Boolean&&(v.asBool().value=a)},u.prototype.setNumberStateAtPath=function(r,a,p){var v=this.retrieveInputAtPath(r,p);v&&v.type===ae.Number&&(v.asNumber().value=a)},u.prototype.fireStateAtPath=function(r,a){var p=this.retrieveInputAtPath(r,a);p&&p.type===ae.Trigger&&p.asTrigger().fire()},u.prototype.retrieveTextAtPath=function(r,a){if(r&&a&&this.artboard){var p=this.artboard.textByPath(r,a);if(p)return p}},u.prototype.getTextRunValueAtPath=function(r,a){var p=this.retrieveTextAtPath(r,a);if(p)return p.text},u.prototype.setTextRunValueAtPath=function(r,a,p){var v=this.retrieveTextAtPath(r,p);v&&(v.text=a)},Object.defineProperty(u.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(r){return r.playing}).map(function(r){return r.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(r){return r.playing}).map(function(r){return r.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(r){return!r.playing}).map(function(r){return r.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(r){return!r.playing}).map(function(r){return r.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),u.prototype.on=function(r,a){this.eventManager.add({type:r,callback:a})},u.prototype.off=function(r,a){this.eventManager.remove({type:r,callback:a})},u.prototype.unsubscribe=function(r,a){this.off(r,a)},u.prototype.removeAllRiveEventListeners=function(r){this.eventManager.removeAll(r)},u.prototype.unsubscribeAll=function(r){this.removeAllRiveEventListeners(r)},u.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},u.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this.draw.bind(this)):this.frameRequestId=requestAnimationFrame(this.draw.bind(this)))},u.prototype.enableFPSCounter=function(r){this.runtime.enableFPSCounter(r)},u.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(u.prototype,"contents",{get:function(){if(this.loaded){for(var r={artboards:[]},a=0;a<this.file.artboardCount();a++){for(var p=this.file.artboardByIndex(a),v={name:p.name,animations:[],stateMachines:[]},g=0;g<p.animationCount();g++){var A=p.animationByIndex(g);v.animations.push(A.name)}for(var M=0;M<p.stateMachineCount();M++){for(var q=p.stateMachineByIndex(M),F=q.name,G=new this.runtime.StateMachineInstance(q,p),ce=[],le=0;le<G.inputCount();le++){var fe=G.input(le);ce.push({name:fe.name,type:fe.type})}v.stateMachines.push({name:F,inputs:ce})}r.artboards.push(v)}return r}}
18,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(r){this._volume=r,this.artboard&&(this.artboard.volume=r*Ae.systemVolume)},enumerable:!1,configurable:!0}),u.missingErrorMessage="Rive source file or data buffer required",u}(),oe=function(u){return H(void 0,void 0,void 0,function(){var r,a,p;return O(this,function(v){switch(v.label){case 0:return r=new Request(u),[4,fetch(r)];case 1:return a=v.sent(),[4,a.arrayBuffer()];case 2:return p=v.sent(),[2,p]}})})},V=function(u){return typeof u=="string"?[u]:u instanceof Array?u:[]},me={EventManager:xe,TaskQueueManager:Ye},Re=function(u){return new Promise(function(r){return pe.getInstance(function(a){a.decodeAudio(u,r)})})},j=function(u){return new Promise(function(r){return pe.getInstance(function(a){a.decodeImage(u,r)})})},Q=function(u){return new Promise(function(r){return pe.getInstance(function(a){a.decodeFont(u,r)})})}})(),de})())})(Ar);var An=Ar.exports;const pi=1,vi={moneyGraph:pi},yi={__name:"index",props:di,emits:["ready"],setup(en,{expose:Rn,emit:Tt}){const $e=en,he=bn(!1),de=ri({}),ne=Tt,B=bn(null),{visible:W,isNotBellow:ve}=ii({element:B,options:oi(()=>{var ee;return{rootMargin:"0px 0px 800px 0px",root:((ee=B.value)==null?void 0:ee.closest)instanceof Function?B.value.closest(".lenis"):null}})}),re=()=>{Z.value=!0,de.value=new An.Rive({canvas:he.value,src:$e.src,autoplay:!1,loop:!1,useOffscreenRenderer:!0,layout:new An.Layout({fit:An.Fit[$e.fit]}),onLoad:()=>{de.value.resizeDrawingSurfaceToCanvas(),setTimeout(()=>{ne("ready")},200)},onLoop:()=>{$e.loop||de.value.pause()}})},H=$e.src.split("/").pop().replace(".riv",""),O=()=>{if(de!=null&&de.value)try{de.value.readyForPlaying&&de.value.reset(),de.value.play()}catch{}},c=()=>{de&&de.value&&de.value.pause()};Rn({riveAnimation:de,stopAnim:c,playAnim:O});const Z=bn(!1);return ai(W,ee=>{ee?Z.value||re():c()}),si(()=>{$e.initOnLoad&&re()}),(ee,pe)=>(ui(),ci("div",{ref_key:"element",ref:B,class:"relative",style:hi({"aspect-ratio":_n(vi)[_n(H)]||1})},[li("canvas",{class:fi([`rive--${_n(H)}`,"w-full h-full absolute top-0 left-0"]),ref_key:"riveCanvas",ref:he},null,2)],4))}};export{yi as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.