@rive-app/webgl-advanced 2.10.4 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,176 +5,4014 @@ var Rive = (() => {
5
5
  return (
6
6
  function(moduleArg = {}) {
7
7
 
8
- var l=moduleArg,aa,ba;l.ready=new Promise((a,b)=>{aa=a;ba=b});
9
- function ca(){function a(g){const h=d;c=b=0;d=new Map;h.forEach(p=>{try{p(g)}catch(m){console.error(m)}});this.rf();e&&e.Yf()}let b=0,c=0,d=new Map,e=null,f=null;this.requestAnimationFrame=function(g){b||(b=requestAnimationFrame(a.bind(this)));const h=++c;d.set(h,g);return h};this.cancelAnimationFrame=function(g){d.delete(g);b&&0==d.size&&(cancelAnimationFrame(b),b=0)};this.Wf=function(g){f&&(document.body.remove(f),f=null);g||(f=document.createElement("div"),f.style.backgroundColor="black",f.style.position=
10
- "fixed",f.style.right=0,f.style.top=0,f.style.color="white",f.style.padding="4px",f.innerHTML="RIVE FPS",g=function(h){f.innerHTML="RIVE FPS "+h.toFixed(1)},document.body.appendChild(f));e=new function(){let h=0,p=0;this.Yf=function(){var m=performance.now();p?(++h,m-=p,1E3<m&&(g(1E3*h/m),h=p=0)):(p=m,h=0)}}};this.rf=function(){}}
11
- function da(){console.assert(!0);const a=new Map;let b=-Infinity;this.push=function(c){c=c+255>>8;a.has(c)&&clearTimeout(a.get(c));a.set(c,setTimeout(function(){a.delete(c);0==a.length?b=-Infinity:c==b&&(b=Math.max(...a.keys()),console.assert(b<c))},1E3));b=Math.max(c,b);return b<<8}}const ea=l.onRuntimeInitialized;
12
- l.onRuntimeInitialized=function(){function a(k){this.Ld=k;this.Ff=k.getContext("2d");this.Kf=e;this.Xd=[];this.oe=0;this.clear=function(){console.assert(0==this.oe);this.Xd=[];f.delete(this)};this.save=function(){++this.oe;this.Xd.push(e.save.bind(e))};this.restore=function(){0<this.oe&&(this.Xd.push(e.restore.bind(e)),--this.oe)};this.transform=function(q){this.Xd.push(e.transform.bind(e,q))};this.align=function(q,w,y,F){this.Xd.push(e.align.bind(e,q,w,y,F))};this.flush=function(){console.assert(0==
13
- this.oe);f.add(this);d&&c()}}function b(k){var q={alpha:1,depth:0,stencil:8,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0},w=k.getContext("webgl2",q);w||(w=k.getContext("webgl",q));var y=w,F=fa(ha),B={handle:F,attributes:q,version:q.Kg,Oe:y};y.canvas&&(y.canvas.Dg=B);ha[F]=B;("undefined"==typeof q.Vf||q.Vf)&&ja(B);n=ha[F];l.Qf=r=n&&n.Oe;q=g(k.width,
14
- k.height);q.Hf=F;q.Ld=k;q.af=k.width;q.$e=k.height;q.Gf=w;return q}function c(){if(e){var k=e.Jf,q=0,w=0,y=0,F=Array(f.size),B=0;for(var K of f)K.ie=Math.min(K.Ld.width,k),K.he=Math.min(K.Ld.height,k),K.Pe=K.he*K.ie,q=Math.max(q,K.ie),w=Math.max(w,K.he),y+=K.Pe,F[B++]=K;f.clear();if(!(0>=y)){q=1<<(0>=q?0:32-Math.clz32(q-1));for(w=1<<(0>=w?0:32-Math.clz32(w-1));w*q<y;)q<=w?q*=2:w*=2;q=Math.min(q,k);q=Math.min(w,k);F.sort((ia,Db)=>Db.Pe-ia.Pe);y=new l.DynamicRectanizer(k);for(K=0;K<F.length;){y.reset(q,
15
- w);for(B=K;B<F.length;++B){var N=F[B],L=y.addRect(N.ie,N.he);if(0>L){console.assert(B>K);break}N.ve=L&65535;N.we=L>>16}N=p.push(y.drawWidth());L=m.push(y.drawHeight());console.assert(N>=y.drawWidth());console.assert(L>=y.drawHeight());console.assert(N<=k);console.assert(L<=k);e.Ld.width!=N&&(e.Ld.width=N);e.Ld.height!=L&&(e.Ld.height=L);e.clear();for(N=K;N<B;++N){L=F[N];e.saveClipRect(L.ve,L.we,L.ve+L.ie,L.we+L.he);let ia=new l.Mat2D;ia.xx=L.ie/L.Ld.width;ia.yy=L.he/L.Ld.height;ia.xy=ia.yx=0;ia.tx=
16
- L.ve;ia.ty=L.we;e.transform(ia);for(const Db of L.Xd)Db();e.restoreClipRect();L.Xd=[]}for(e.flush();K<B;++K)N=F[K],L=N.Ff,L.globalCompositeOperation="copy",L.drawImage(e.Ld,N.ve,N.we,N.ie,N.he,0,0,N.Ld.width,N.Ld.height);K=B}}}}ea&&ea();const d=navigator.userAgent.match(/firefox|fxios/i);let e=null;const f=new Set,g=l.makeRenderer;l.makeRenderer=function(k,q){return q?(e||(e=b(document.createElement("canvas")),q=e.Gf,e.Jf=Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE),q.getParameter(q.MAX_TEXTURE_SIZE))),
17
- new a(k)):b(k)};const h=l.Artboard.prototype.draw;l.Artboard.prototype.draw=function(k){k.Xd?k.Xd.push(h.bind(this,k.Kf)):h.call(this,k)};const p=new da,m=new da,t=new ca;l.requestAnimationFrame=t.requestAnimationFrame.bind(t);l.cancelAnimationFrame=t.cancelAnimationFrame.bind(t);l.enableFPSCounter=t.Wf.bind(t);t.rf=c;l.resolveAnimationFrame=c;let u=l.load;l.load=function(k,q,w=!0){const y=new l.FallbackFileAssetLoader;void 0!==q&&y.addLoader(q);w&&(q=new l.CDNFileAssetLoader,y.addLoader(q));return Promise.resolve(u(k,
18
- y))};const x=l.WebGLRenderer.prototype.clear;l.WebGLRenderer.prototype.clear=function(){n=ha[this.Hf];l.Qf=r=n&&n.Oe;const k=this.Ld;if(this.af!=k.width||this.$e!=k.height)this.resize(k.width,k.height),this.af=k.width,this.$e=k.height;x.call(this)};l.decodeImage=function(k,q){k=l.decodeImageSkia(k);q(k)}};const ka=l.onRuntimeInitialized;
19
- l.onRuntimeInitialized=function(){ka&&ka();let a=l.decodeFont;l.decodeFont=function(c,d){c=a(c);d(c)};const b=l.FileAssetLoader;l.ptrToAsset=c=>{let d=l.ptrToFileAsset(c);return d.isImage?l.ptrToImageAsset(c):d.isFont?l.ptrToFontAsset(c):d};l.CustomFileAssetLoader=b.extend("CustomFileAssetLoader",{__construct:function({loadContents:c}){this.__parent.__construct.call(this);this.If=c},loadContents:function(c,d){c=l.ptrToAsset(c);return this.If(c,d)}});l.CDNFileAssetLoader=b.extend("CDNFileAssetLoader",
20
- {__construct:function(){this.__parent.__construct.call(this)},loadContents:function(c){let d=l.ptrToAsset(c);c=d.cdnUuid;if(""===c)return!1;(function(e,f){var g=new XMLHttpRequest;g.responseType="arraybuffer";g.onreadystatechange=function(){4==g.readyState&&200==g.status&&f(g)};g.open("GET",e,!0);g.send(null)})(d.cdnBaseUrl+"/"+c,e=>{d.decode(new Uint8Array(e.response))});return!0}});l.FallbackFileAssetLoader=b.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this);
21
- this.lf=[]},addLoader:function(c){this.lf.push(c)},loadContents:function(c,d){for(let e of this.lf)if(e.loadContents(c,d))return!0;return!1}})};var la=Object.assign({},l),ma="./this.program",na="object"==typeof window,oa="function"==typeof importScripts,pa="",qa,ra;
22
- if(na||oa)oa?pa=self.location.href:"undefined"!=typeof document&&document.currentScript&&(pa=document.currentScript.src),_scriptDir&&(pa=_scriptDir),0!==pa.indexOf("blob:")?pa=pa.substr(0,pa.replace(/[?#].*/,"").lastIndexOf("/")+1):pa="",oa&&(ra=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),qa=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?
23
- b(d.response):c()};d.onerror=c;d.send(null)};var sa=l.print||console.log.bind(console),ta=l.printErr||console.error.bind(console);Object.assign(l,la);la=null;l.thisProgram&&(ma=l.thisProgram);var ua;l.wasmBinary&&(ua=l.wasmBinary);var noExitRuntime=l.noExitRuntime||!0;"object"!=typeof WebAssembly&&va("no native wasm support detected");var wa,v,xa=!1,z,A,C,ya,D,E,G,za;
24
- function Aa(){var a=wa.buffer;l.HEAP8=z=new Int8Array(a);l.HEAP16=C=new Int16Array(a);l.HEAP32=D=new Int32Array(a);l.HEAPU8=A=new Uint8Array(a);l.HEAPU16=ya=new Uint16Array(a);l.HEAPU32=E=new Uint32Array(a);l.HEAPF32=G=new Float32Array(a);l.HEAPF64=za=new Float64Array(a)}var H,Ba=[],Ca=[],Da=[];function Ea(){var a=l.preRun.shift();Ba.unshift(a)}var Fa=0,Ga=null,Ha=null;
25
- function va(a){if(l.onAbort)l.onAbort(a);a="Aborted("+a+")";ta(a);xa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Ia(a){return a.startsWith("data:application/octet-stream;base64,")}var Ja;Ja="webgl_advanced.wasm";if(!Ia(Ja)){var Ka=Ja;Ja=l.locateFile?l.locateFile(Ka,pa):pa+Ka}function La(a){if(a==Ja&&ua)return new Uint8Array(ua);if(ra)return ra(a);throw"both async and sync fetching of the wasm failed";}
26
- function Ma(a){if(!ua&&(na||oa)){if("function"==typeof fetch&&!a.startsWith("file://"))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>La(a));if(qa)return new Promise((b,c)=>{qa(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>La(a))}function Na(a,b,c){return Ma(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{ta("failed to asynchronously prepare wasm: "+d);va(d)})}
27
- function Oa(a,b){var c=Ja;return ua||"function"!=typeof WebAssembly.instantiateStreaming||Ia(c)||c.startsWith("file://")||"function"!=typeof fetch?Na(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){ta("wasm streaming compile failed: "+e);ta("falling back to ArrayBuffer instantiation");return Na(c,a,b)}))}
28
- var I,J,Sa={416396:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.yd){window.yd={Je:0};window.yd.Nd={};window.yd.Nd.Ie=a;window.yd.Nd.capture=b;window.yd.Nd.Re=c;window.yd.me={};window.yd.me.stopped=d;window.yd.me.zf=e;let f=window.yd;f.Jd=[];f.Ag=function(g){for(var h=0;h<f.Jd.length;++h)if(null==f.Jd[h])return f.Jd[h]=g,h;f.Jd.push(g);return f.Jd.length-1};f.Ef=function(g){for(f.Jd[g]=null;0<f.Jd.length;)if(null==
29
- f.Jd[f.Jd.length-1])f.Jd.pop();else break};f.Pg=function(g){for(var h=0;h<f.Jd.length;++h)if(f.Jd[h]==g)return f.Ef(h)};f.ze=function(g){return f.Jd[g]};f.Df=["touchend","click"];f.unlock=function(){for(var g=0;g<f.Jd.length;++g){var h=f.Jd[g];null!=h&&null!=h.Od&&h.state===f.me.zf&&h.Od.resume().then(()=>{Pa(h.sf)},p=>{console.error("Failed to resume audiocontext",p)})}f.Df.map(function(p){document.removeEventListener(p,f.unlock,!0)})};f.Df.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.yd.Je+=
30
- 1;return 1},418574:()=>{"undefined"!==typeof window.yd&&(--window.yd.Je,0===window.yd.Je&&delete window.yd)},418738:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,418842:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},419013:(a,b,c,d,e,f)=>{if("undefined"===typeof window.yd)return-1;var g={},h={};a==window.yd.Nd.Ie&&0!=c&&(h.sampleRate=c);g.Od=new (window.AudioContext||window.webkitAudioContext)(h);
31
- g.Od.suspend();g.state=window.yd.me.stopped;c=0;a!=window.yd.Nd.Ie&&(c=b);g.ce=g.Od.createScriptProcessor(d,c,b);g.ce.onaudioprocess=function(p){if(null==g.Ae||0==g.Ae.length)g.Ae=new Float32Array(G.buffer,e,d*b);if(a==window.yd.Nd.capture||a==window.yd.Nd.Re){for(var m=0;m<b;m+=1)for(var t=p.inputBuffer.getChannelData(m),u=g.Ae,x=0;x<d;x+=1)u[x*b+m]=t[x];Qa(f,d,e)}if(a==window.yd.Nd.Ie||a==window.yd.Nd.Re)for(Ra(f,d,e),m=0;m<p.outputBuffer.numberOfChannels;++m)for(t=p.outputBuffer.getChannelData(m),
32
- u=g.Ae,x=0;x<d;x+=1)t[x]=u[x*b+m];else for(m=0;m<p.outputBuffer.numberOfChannels;++m)p.outputBuffer.getChannelData(m).fill(0)};a!=window.yd.Nd.capture&&a!=window.yd.Nd.Re||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(p){g.Ke=g.Od.createMediaStreamSource(p);g.Ke.connect(g.ce);g.ce.connect(g.Od.destination)}).catch(function(p){console.log("Failed to get user media: "+p)});a==window.yd.Nd.Ie&&g.ce.connect(g.Od.destination);g.sf=f;return window.yd.Ag(g)},421890:a=>window.yd.ze(a).Od.sampleRate,
33
- 421963:a=>{a=window.yd.ze(a);void 0!==a.ce&&(a.ce.onaudioprocess=function(){},a.ce.disconnect(),a.ce=void 0);void 0!==a.Ke&&(a.Ke.disconnect(),a.Ke=void 0);a.Od.close();a.Od=void 0;a.sf=void 0},422363:a=>{window.yd.Ef(a)},422413:a=>{a=window.yd.ze(a);a.Od.resume();a.state=window.yd.me.zf},422552:a=>{a=window.yd.ze(a);a.Od.suspend();a.state=window.yd.me.stopped}},Ta=a=>{for(;0<a.length;)a.shift()(l)},Ua=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,
34
- 1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},Va=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ua(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Wa=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},Xa=a=>{if("/"===a)return"/";a=Va(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},
35
- Ya=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);va("initRandomDevice")},Za=a=>(Za=Ya())(a);function $a(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Ua(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}
36
- var ab="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,bb=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&ab)return ab.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d},
37
- cb=[],db=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},eb=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var h=a.charCodeAt(++f);g=65536+((g&1023)<<10)|h&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&
38
- 63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e};function fb(a,b){var c=Array(db(a)+1);a=eb(a,c,0,c.length);b&&(c.length=a);return c}var gb=[];function hb(a,b){gb[a]={input:[],Kd:[],Zd:b};ib(a,jb)}
39
- var jb={open:function(a){var b=gb[a.node.qe];if(!b)throw new M(43);a.Ed=b;a.seekable=!1},close:function(a){a.Ed.Zd.ye(a.Ed)},ye:function(a){a.Ed.Zd.ye(a.Ed)},read:function(a,b,c,d){if(!a.Ed||!a.Ed.Zd.jf)throw new M(60);for(var e=0,f=0;f<d;f++){try{var g=a.Ed.Zd.jf(a.Ed)}catch(h){throw new M(29);}if(void 0===g&&0===e)throw new M(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write:function(a,b,c,d){if(!a.Ed||!a.Ed.Zd.Ve)throw new M(60);try{for(var e=0;e<d;e++)a.Ed.Zd.Ve(a.Ed,
40
- b[c+e])}catch(f){throw new M(29);}d&&(a.node.timestamp=Date.now());return e}},kb={jf:function(){a:{if(!cb.length){var a=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}cb=fb(a,!0)}a=cb.shift()}return a},Ve:function(a,b){null===b||10===b?(sa(bb(a.Kd,0)),a.Kd=[]):0!=b&&a.Kd.push(b)},ye:function(a){a.Kd&&0<a.Kd.length&&(sa(bb(a.Kd,0)),a.Kd=[])},hg:function(){return{Gg:25856,
41
- Ig:5,Fg:191,Hg:35387,Eg:[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]}},ig:function(){return 0},jg:function(){return[24,80]}},lb={Ve:function(a,b){null===b||10===b?(ta(bb(a.Kd,0)),a.Kd=[]):0!=b&&a.Kd.push(b)},ye:function(a){a.Kd&&0<a.Kd.length&&(ta(bb(a.Kd,0)),a.Kd=[])}};function mb(a,b){var c=a.Bd?a.Bd.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Bd,a.Bd=new Uint8Array(b),0<a.Gd&&a.Bd.set(c.subarray(0,a.Gd),0))}
42
- var O={Ud:null,Yd(){return O.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new M(63);O.Ud||(O.Ud={dir:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd,pe:O.Ad.pe,Ge:O.Ad.Ge,xf:O.Ad.xf,Cf:O.Ad.Cf,yf:O.Ad.yf,vf:O.Ad.vf,Le:O.Ad.Le},stream:{ee:O.Cd.ee}},file:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd},stream:{ee:O.Cd.ee,read:O.Cd.read,write:O.Cd.write,xe:O.Cd.xe,nf:O.Cd.nf,qf:O.Cd.qf}},link:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd,re:O.Ad.re},stream:{}},bf:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd},stream:nb}});
43
- c=ob(a,b,c,d);16384===(c.mode&61440)?(c.Ad=O.Ud.dir.node,c.Cd=O.Ud.dir.stream,c.Bd={}):32768===(c.mode&61440)?(c.Ad=O.Ud.file.node,c.Cd=O.Ud.file.stream,c.Gd=0,c.Bd=null):40960===(c.mode&61440)?(c.Ad=O.Ud.link.node,c.Cd=O.Ud.link.stream):8192===(c.mode&61440)&&(c.Ad=O.Ud.bf.node,c.Cd=O.Ud.bf.stream);c.timestamp=Date.now();a&&(a.Bd[b]=c,a.timestamp=c.timestamp);return c},Jg(a){return a.Bd?a.Bd.subarray?a.Bd.subarray(0,a.Gd):new Uint8Array(a.Bd):new Uint8Array(0)},Ad:{Sd(a){var b={};b.Tf=8192===(a.mode&
44
- 61440)?a.id:1;b.kf=a.id;b.mode=a.mode;b.og=1;b.uid=0;b.dg=0;b.qe=a.qe;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.Gd:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.Lf=new Date(a.timestamp);b.mg=new Date(a.timestamp);b.Pf=new Date(a.timestamp);b.Mf=4096;b.Nf=Math.ceil(b.size/b.Mf);return b},Vd(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size,a.Gd!=b))if(0==b)a.Bd=null,a.Gd=0;else{var c=a.Bd;a.Bd=new Uint8Array(b);
45
- c&&a.Bd.set(c.subarray(0,Math.min(b,a.Gd)));a.Gd=b}},pe(){throw pb[44];},Ge(a,b,c,d){return O.createNode(a,b,c,d)},xf(a,b,c){if(16384===(a.mode&61440)){try{var d=qb(b,c)}catch(f){}if(d)for(var e in d.Bd)throw new M(55);}delete a.parent.Bd[a.name];a.parent.timestamp=Date.now();a.name=c;b.Bd[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},Cf(a,b){delete a.Bd[b];a.timestamp=Date.now()},yf(a,b){var c=qb(a,b),d;for(d in c.Bd)throw new M(55);delete a.Bd[b];a.timestamp=Date.now()},vf(a){var b=[".",".."],
46
- c;for(c in a.Bd)a.Bd.hasOwnProperty(c)&&b.push(c);return b},Le(a,b,c){a=O.createNode(a,b,41471,0);a.link=c;return a},re(a){if(40960!==(a.mode&61440))throw new M(28);return a.link}},Cd:{read(a,b,c,d,e){var f=a.node.Bd;if(e>=a.node.Gd)return 0;a=Math.min(a.node.Gd-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===z.buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Bd||a.Bd.subarray)){if(f)return a.Bd=
47
- b.subarray(c,c+d),a.Gd=d;if(0===a.Gd&&0===e)return a.Bd=b.slice(c,c+d),a.Gd=d;if(e+d<=a.Gd)return a.Bd.set(b.subarray(c,c+d),e),d}mb(a,e+d);if(a.Bd.subarray&&b.subarray)a.Bd.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.Bd[e+f]=b[c+f];a.Gd=Math.max(a.Gd,e+d);return d},ee(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Gd);if(0>b)throw new M(28);return b},xe(a,b,c){mb(a.node,b+c);a.node.Gd=Math.max(a.node.Gd,b+c)},nf(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new M(43);
48
- a=a.node.Bd;if(e&2||a.buffer!==z.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;b=65536*Math.ceil(b/65536);(e=rb(65536,b))?(A.fill(0,e,e+b),b=e):b=0;if(!b)throw new M(48);z.set(a,b)}else c=!1,b=a.byteOffset;return{Dd:b,Rd:c}},qf(a,b,c,d){O.Cd.write(a,b,0,d,c,!1);return 0}}};function sb(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}
49
- var tb=null,ub={},vb=[],wb=1,xb=null,yb=!0,M=null,pb={},Ab=(a,b={})=>{a=$a(a);if(!a)return{path:"",node:null};b=Object.assign({gf:!0,Xe:0},b);if(8<b.Xe)throw new M(32);a=a.split("/").filter(g=>!!g);for(var c=tb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=qb(c,a[e]);d=Va(d+"/"+a[e]);c.He&&(!f||f&&b.gf)&&(c=c.He.root);if(!f||b.Se)for(f=0;40960===(c.mode&61440);)if(c=zb(d),d=$a(Wa(d),c),c=Ab(d,{Xe:b.Xe+1}).node,40<f++)throw new M(32);}return{path:d,node:c}},Bb=a=>{for(var b;;){if(a===
50
- a.parent)return a=a.Yd.pf,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}},Cb=(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%xb.length},qb=(a,b)=>{var c;if(c=(c=Eb(a,"x"))?c:a.Ad.pe?0:2)throw new M(c,a);for(c=xb[Cb(a.id,b)];c;c=c.ng){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Ad.pe(a,b)},ob=(a,b,c,d)=>{a=new Fb(a,b,c,d);b=Cb(a.parent.id,a.name);a.ng=xb[b];return xb[b]=a},Gb=a=>{var b=["r","w","rw"][a&3];a&512&&(b+=
51
- "w");return b},Eb=(a,b)=>{if(yb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},Hb=(a,b)=>{try{return qb(a,b),20}catch(c){}return Eb(a,"wx")},Ib=()=>{for(var a=0;4096>=a;a++)if(!vb[a])return a;throw new M(33);},Jb=a=>{a=vb[a];if(!a)throw new M(8);return a},Lb=(a,b=-1)=>{Kb||(Kb=function(){this.yd={}},Kb.prototype={},Object.defineProperties(Kb.prototype,{object:{get(){return this.node},set(c){this.node=c}},
52
- flags:{get(){return this.yd.flags},set(c){this.yd.flags=c}},position:{get(){return this.yd.position},set(c){this.yd.position=c}}}));a=Object.assign(new Kb,a);-1==b&&(b=Ib());a.be=b;return vb[b]=a},nb={open:a=>{a.Cd=ub[a.node.qe].Cd;a.Cd.open&&a.Cd.open(a)},ee:()=>{throw new M(70);}},ib=(a,b)=>{ub[a]={Cd:b}},Mb=(a,b)=>{var c="/"===b,d=!b;if(c&&tb)throw new M(10);if(!c&&!d){var e=Ab(b,{gf:!1});b=e.path;e=e.node;if(e.He)throw new M(10);if(16384!==(e.mode&61440))throw new M(54);}b={type:a,Ng:{},pf:b,
53
- lg:[]};a=a.Yd(b);a.Yd=b;b.root=a;c?tb=a:e&&(e.He=b,e.Yd&&e.Yd.lg.push(b))},Nb=(a,b,c)=>{var d=Ab(a,{parent:!0}).node;a=Xa(a);if(!a||"."===a||".."===a)throw new M(28);var e=Hb(d,a);if(e)throw new M(e);if(!d.Ad.Ge)throw new M(63);return d.Ad.Ge(d,a,b,c)},Ob=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);Nb(a,b|8192,c)},Pb=(a,b)=>{if(!$a(a))throw new M(44);var c=Ab(b,{parent:!0}).node;if(!c)throw new M(44);b=Xa(b);var d=Hb(c,b);if(d)throw new M(d);if(!c.Ad.Le)throw new M(63);c.Ad.Le(c,b,a)},zb=a=>{a=Ab(a).node;
54
- if(!a)throw new M(44);if(!a.Ad.re)throw new M(28);return $a(Bb(a.parent),a.Ad.re(a))},Rb=(a,b,c)=>{if(""===a)throw new M(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=Va(a);try{e=Ab(a,{Se:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new M(20);}else e=Nb(a,c,0),d=!0;if(!e)throw new M(44);
55
- 8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new M(54);if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==Gb(b)||b&512)?31:Eb(e,Gb(b)):44))throw new M(c);if(b&512&&!d){c=e;c="string"==typeof c?Ab(c,{Se:!0}).node:c;if(!c.Ad.Vd)throw new M(63);if(16384===(c.mode&61440))throw new M(31);if(32768!==(c.mode&61440))throw new M(28);if(d=Eb(c,"w"))throw new M(d);c.Ad.Vd(c,{size:0,timestamp:Date.now()})}b&=-131713;e=Lb({node:e,path:Bb(e),flags:b,seekable:!0,position:0,
56
- Cd:e.Cd,Bg:[],error:!1});e.Cd.open&&e.Cd.open(e);!l.logReadFiles||b&1||(Qb||(Qb={}),a in Qb||(Qb[a]=1));return e},Sb=(a,b,c)=>{if(null===a.be)throw new M(8);if(!a.seekable||!a.Cd.ee)throw new M(70);if(0!=c&&1!=c&&2!=c)throw new M(28);a.position=a.Cd.ee(a,b,c);a.Bg=[]},Tb=()=>{M||(M=function(a,b){this.name="ErrnoError";this.node=b;this.rg=function(c){this.ae=c};this.rg(a);this.message="FS error"},M.prototype=Error(),M.prototype.constructor=M,[44].forEach(a=>{pb[a]=new M(a);pb[a].stack="<generic error, no stack>"}))},
57
- Ub,Wb=(a,b,c)=>{a=Va("/dev/"+a);var d=sb(!!b,!!c);Vb||(Vb=64);var e=Vb++<<8|0;ib(e,{open:f=>{f.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(f,g,h,p)=>{for(var m=0,t=0;t<p;t++){try{var u=b()}catch(x){throw new M(29);}if(void 0===u&&0===m)throw new M(6);if(null===u||void 0===u)break;m++;g[h+t]=u}m&&(f.node.timestamp=Date.now());return m},write:(f,g,h,p)=>{for(var m=0;m<p;m++)try{c(g[h+m])}catch(t){throw new M(29);}p&&(f.node.timestamp=Date.now());return m}});Ob(a,d,e)},Vb,Xb={},
58
- Kb,Qb,Yb=void 0;function Zb(){Yb+=4;return D[Yb-4>>2]}function $b(a){if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?`_${a}`:a}function ac(a,b){a=$b(a);return{[a]:function(){return b.apply(this,arguments)}}[a]}function bc(){this.Rd=[void 0];this.hf=[]}var P=new bc,cc=void 0;function Q(a){throw new cc(a);}
59
- var dc=a=>{a||Q("Cannot use deleted val. handle = "+a);return P.get(a).value},ec=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return P.xe({wf:1,value:a})}};
60
- function fc(a){var b=Error,c=ac(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c}var gc=void 0,hc=void 0;function R(a){for(var b="";A[a];)b+=hc[A[a++]];return b}var ic=[];
61
- function jc(){for(;ic.length;){var a=ic.pop();a.xd.le=!1;a["delete"]()}}var kc=void 0,lc={};function mc(a,b){for(void 0===b&&Q("ptr should not be undefined");a.Hd;)b=a.te(b),a=a.Hd;return b}var nc={};function oc(a){a=pc(a);var b=R(a);qc(a);return b}function rc(a,b){var c=nc[a];void 0===c&&Q(b+" has unknown type "+oc(a));return c}function sc(){}var tc=!1;function uc(a){--a.count.value;0===a.count.value&&(a.Md?a.Qd.$d(a.Md):a.Fd.zd.$d(a.Dd))}
62
- function vc(a,b,c){if(b===c)return a;if(void 0===c.Hd)return null;a=vc(a,b,c.Hd);return null===a?null:c.Uf(a)}var wc={};function xc(a,b){b=mc(a,b);return lc[b]}var yc=void 0;function zc(a){throw new yc(a);}function Ac(a,b){b.Fd&&b.Dd||zc("makeClassHandle requires ptr and ptrType");!!b.Qd!==!!b.Md&&zc("Both smartPtrType and smartPtr must be specified");b.count={value:1};return Bc(Object.create(a,{xd:{value:b}}))}
63
- function Bc(a){if("undefined"===typeof FinalizationRegistry)return Bc=b=>b,a;tc=new FinalizationRegistry(b=>{uc(b.xd)});Bc=b=>{var c=b.xd;c.Md&&tc.register(b,{xd:c},b);return b};sc=b=>{tc.unregister(b)};return Bc(a)}var Cc={};function Dc(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Ec(a){return this.fromWireType(D[a>>2])}var Fc={},Gc={};
64
- function S(a,b,c){function d(h){h=c(h);h.length!==a.length&&zc("Mismatched type converter count");for(var p=0;p<a.length;++p)Hc(a[p],h[p])}a.forEach(function(h){Gc[h]=b});var e=Array(b.length),f=[],g=0;b.forEach((h,p)=>{nc.hasOwnProperty(h)?e[p]=nc[h]:(f.push(h),Fc.hasOwnProperty(h)||(Fc[h]=[]),Fc[h].push(()=>{e[p]=nc[h];++g;g===f.length&&d(e)}))});0===f.length&&d(e)}
65
- function Ic(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${a}`);}}function Jc(a,b,c={}){var d=b.name;a||Q(`type "${d}" must have a positive integer typeid pointer`);if(nc.hasOwnProperty(a)){if(c.eg)return;Q(`Cannot register type '${d}' twice`)}nc[a]=b;delete Gc[a];Fc.hasOwnProperty(a)&&(b=Fc[a],delete Fc[a],b.forEach(e=>e()))}
66
- function Hc(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Jc(a,b,c)}function Kc(a){Q(a.xd.Fd.zd.name+" instance already deleted")}function Lc(){}
67
- function Mc(a,b,c){if(void 0===a[b].Id){var d=a[b];a[b]=function(){a[b].Id.hasOwnProperty(arguments.length)||Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].Id})!`);return a[b].Id[arguments.length].apply(this,arguments)};a[b].Id=[];a[b].Id[d.je]=d}}
68
- function Nc(a,b,c){l.hasOwnProperty(a)?((void 0===c||void 0!==l[a].Id&&void 0!==l[a].Id[c])&&Q(`Cannot register public name '${a}' twice`),Mc(l,a,a),l.hasOwnProperty(c)&&Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`),l[a].Id[c]=b):(l[a]=b,void 0!==c&&(l[a].Mg=c))}function Oc(a,b,c,d,e,f,g,h){this.name=a;this.constructor=b;this.Td=c;this.$d=d;this.Hd=e;this.Zf=f;this.te=g;this.Uf=h;this.tf=[]}
69
- function Pc(a,b,c){for(;b!==c;)b.te||Q(`Expected null or instance of ${c.name}, got an instance of ${b.name}`),a=b.te(a),b=b.Hd;return a}function Qc(a,b){if(null===b)return this.Ue&&Q(`null is not a valid ${this.name}`),0;b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);return Pc(b.xd.Dd,b.xd.Fd.zd,this.zd)}
70
- function Sc(a,b){if(null===b){this.Ue&&Q(`null is not a valid ${this.name}`);if(this.Ce){var c=this.We();null!==a&&a.push(this.$d,c);return c}return 0}b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);!this.Be&&b.xd.Fd.Be&&Q(`Cannot convert argument of type ${b.xd.Qd?b.xd.Qd.name:b.xd.Fd.name} to parameter type ${this.name}`);c=Pc(b.xd.Dd,b.xd.Fd.zd,this.zd);if(this.Ce)switch(void 0===b.xd.Md&&Q("Passing raw pointer to smart pointer is illegal"),
71
- this.vg){case 0:b.xd.Qd===this?c=b.xd.Md:Q(`Cannot convert argument of type ${b.xd.Qd?b.xd.Qd.name:b.xd.Fd.name} to parameter type ${this.name}`);break;case 1:c=b.xd.Md;break;case 2:if(b.xd.Qd===this)c=b.xd.Md;else{var d=b.clone();c=this.qg(c,ec(function(){d["delete"]()}));null!==a&&a.push(this.$d,c)}break;default:Q("Unsupporting sharing policy")}return c}
72
- function Tc(a,b){if(null===b)return this.Ue&&Q(`null is not a valid ${this.name}`),0;b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);b.xd.Fd.Be&&Q(`Cannot convert argument of type ${b.xd.Fd.name} to parameter type ${this.name}`);return Pc(b.xd.Dd,b.xd.Fd.zd,this.zd)}
73
- function Uc(a,b,c,d){this.name=a;this.zd=b;this.Ue=c;this.Be=d;this.Ce=!1;this.$d=this.qg=this.We=this.uf=this.vg=this.pg=void 0;void 0!==b.Hd?this.toWireType=Sc:(this.toWireType=d?Qc:Tc,this.Pd=null)}function Vc(a,b,c){l.hasOwnProperty(a)||zc("Replacing nonexistant public symbol");void 0!==l[a].Id&&void 0!==c?l[a].Id[c]=b:(l[a]=b,l[a].je=c)}
74
- var Wc=(a,b)=>{var c=[];return function(){c.length=0;Object.assign(c,arguments);if(a.includes("j")){var d=l["dynCall_"+a];d=c&&c.length?d.apply(null,[b].concat(c)):d.call(null,b)}else d=H.get(b).apply(null,c);return d}};function T(a,b){a=R(a);var c=a.includes("j")?Wc(a,b):H.get(b);"function"!=typeof c&&Q(`unknown function pointer with signature ${a}: ${b}`);return c}var Xc=void 0;
75
- function Yc(a,b){function c(f){e[f]||nc[f]||(Gc[f]?Gc[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new Xc(`${a}: `+d.map(oc).join([", "]));}
76
- function Zc(a,b,c,d,e){var f=b.length;2>f&&Q("argTypes array size mismatch! Must at least get return value and 'this' types!");var g=null!==b[1]&&null!==c,h=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].Pd){h=!0;break}var p="void"!==b[0].name,m=f-2,t=Array(m),u=[],x=[];return function(){arguments.length!==m&&Q(`function ${a} called with ${arguments.length} arguments, expected ${m} args!`);x.length=0;u.length=g?2:1;u[0]=e;if(g){var k=b[1].toWireType(x,this);u[1]=k}for(var q=0;q<m;++q)t[q]=
77
- b[q+2].toWireType(x,arguments[q]),u.push(t[q]);q=d.apply(null,u);if(h)Dc(x);else for(var w=g?1:2;w<b.length;w++){var y=1===w?k:t[w-2];null!==b[w].Pd&&b[w].Pd(y)}k=p?b[0].fromWireType(q):void 0;return k}}function $c(a,b){for(var c=[],d=0;d<a;d++)c.push(E[b+4*d>>2]);return c}
78
- function ad(a,b,c){a instanceof Object||Q(`${c} with invalid "this": ${a}`);a instanceof b.zd.constructor||Q(`${c} incompatible with "this" of type ${a.constructor.name}`);a.xd.Dd||Q(`cannot call emscripten binding method ${c} on deleted object`);return Pc(a.xd.Dd,a.xd.Fd.zd,b.zd)}function bd(a){a>=P.yd&&0===--P.get(a).wf&&P.Cg(a)}
79
- function cd(a,b,c){switch(b){case 0:return function(d){return this.fromWireType((c?z:A)[d])};case 1:return function(d){return this.fromWireType((c?C:ya)[d>>1])};case 2:return function(d){return this.fromWireType((c?D:E)[d>>2])};default:throw new TypeError("Unknown integer type: "+a);}}function Rc(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}
80
- function dd(a,b){switch(b){case 2:return function(c){return this.fromWireType(G[c>>2])};case 3:return function(c){return this.fromWireType(za[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
81
- function ed(a,b,c){switch(b){case 0:return c?function(d){return z[d]}:function(d){return A[d]};case 1:return c?function(d){return C[d>>1]}:function(d){return ya[d>>1]};case 2:return c?function(d){return D[d>>2]}:function(d){return E[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}
82
- var fd="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,gd=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&ya[c];)++c;c<<=1;if(32<c-a&&fd)return fd.decode(A.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=C[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},hd=(a,b,c)=>{void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)C[b>>1]=a.charCodeAt(e),b+=2;C[b>>1]=0;return b-d},jd=a=>2*a.length,kd=(a,b)=>{for(var c=0,d="";!(c>=b/
83
- 4);){var e=D[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},ld=(a,b,c)=>{void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}D[b>>2]=f;b+=4;if(b+4>c)break}D[b>>2]=0;return b-d},md=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},nd={};
84
- function od(a){var b=nd[a];return void 0===b?R(a):b}var pd=[];function qd(a){var b=pd.length;pd.push(a);return b}function rd(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=rc(E[b+4*d>>2],"parameter "+d);return c}var sd=[],td=[];
85
- function ud(a){var b=a.getExtension("ANGLE_instanced_arrays");b&&(a.vertexAttribDivisor=function(c,d){b.vertexAttribDivisorANGLE(c,d)},a.drawArraysInstanced=function(c,d,e,f){b.drawArraysInstancedANGLE(c,d,e,f)},a.drawElementsInstanced=function(c,d,e,f,g){b.drawElementsInstancedANGLE(c,d,e,f,g)})}
86
- function vd(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function wd(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,d){b.drawBuffersWEBGL(c,d)})}
87
- var xd=1,zd=[],Ad=[],Bd=[],Cd=[],Dd=[],Ed=[],Fd=[],ha=[],Gd=[],Hd=[],Id={},Jd={},Kd=4;function U(a){Ld||(Ld=a)}function fa(a){for(var b=xd++,c=a.length;c<b;c++)a[c]=null;return b}
88
- function ja(a){a||(a=n);if(!a.fg){a.fg=!0;var b=a.Oe;ud(b);vd(b);wd(b);b.df=b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");b.mf=b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");2<=a.version&&(b.ef=b.getExtension("EXT_disjoint_timer_query_webgl2"));if(2>a.version||!b.ef)b.ef=b.getExtension("EXT_disjoint_timer_query");b.Lg=b.getExtension("WEBGL_multi_draw");(b.getSupportedExtensions()||[]).forEach(function(c){c.includes("lose_context")||c.includes("debug")||b.getExtension(c)})}}
89
- var Ld,n;function Md(a,b){r.bindFramebuffer(a,Bd[b])}function Nd(a){r.bindVertexArray(Fd[a])}function Od(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2];r.deleteVertexArray(Fd[d]);Fd[d]=null}}var Pd=[];function Qd(a,b,c,d){r.drawElements(a,b,c,d)}function Rd(a,b,c,d){for(var e=0;e<a;e++){var f=r[c](),g=f&&fa(d);f?(f.name=g,d[g]=f):U(1282);D[b+4*e>>2]=g}}function Sd(a,b){Rd(a,b,"createVertexArray",Fd)}
90
- function Td(a,b){if(b){var c=void 0;switch(a){case 36346:c=1;break;case 36344:return;case 34814:case 36345:c=0;break;case 34466:var d=r.getParameter(34467);c=d?d.length:0;break;case 33309:if(2>n.version){U(1282);return}c=2*(r.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>n.version){U(1280);return}c=33307==a?3:0}if(void 0===c)switch(d=r.getParameter(a),typeof d){case "number":c=d;break;case "boolean":c=d?1:0;break;case "string":U(1280);return;case "object":if(null===d)switch(a){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:c=
91
- 0;break;default:U(1280);return}else{if(d instanceof Float32Array||d instanceof Uint32Array||d instanceof Int32Array||d instanceof Array){for(a=0;a<d.length;++a)D[b+4*a>>2]=d[a];return}try{c=d.name|0}catch(e){U(1280);ta("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter("+a+")! (error: "+e+")");return}}break;default:U(1280);ta("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v("+a+") and it returns "+d+" of type "+typeof d+"!");return}D[b>>2]=c}else U(1281)}
92
- function Ud(a,b){Td(a,b)}var Wd=a=>{var b=db(a)+1,c=Vd(b);c&&eb(a,A,c,b);return c};function Xd(a){return"]"==a.slice(-1)&&a.lastIndexOf("[")}function Yd(a){a-=5120;return 0==a?z:1==a?A:2==a?C:4==a?D:6==a?G:5==a||28922==a||28520==a||30779==a||30782==a?E:ya}function Zd(a,b,c,d,e){a=Yd(a);var f=31-Math.clz32(a.BYTES_PER_ELEMENT),g=Kd;return a.subarray(e>>f,e+d*(c*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[b-6402]||1)*(1<<f)+g-1&-g)>>f)}
93
- function V(a){var b=r.Rf;if(b){var c=b.se[a];"number"==typeof c&&(b.se[a]=c=r.getUniformLocation(b,b.Af[a]+(0<c?"["+c+"]":"")));return c}U(1282)}
94
- var $d=[],ae=[],be={},de=()=>{if(!ce){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ma||"./this.program"},b;for(b in be)void 0===be[b]?delete a[b]:a[b]=be[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);ce=c}return ce},ce,ee=a=>0===a%4&&(0!==a%100||0===a%400),fe=[31,29,31,30,31,30,31,31,30,31,30,31],ge=[31,28,31,30,31,30,31,31,30,31,30,31],he=(a,b,c,d)=>
95
- {function e(k,q,w){for(k="number"==typeof k?k.toString():k||"";k.length<q;)k=w[0]+k;return k}function f(k,q){return e(k,q,"0")}function g(k,q){function w(F){return 0>F?-1:0<F?1:0}var y;0===(y=w(k.getFullYear()-q.getFullYear()))&&0===(y=w(k.getMonth()-q.getMonth()))&&(y=w(k.getDate()-q.getDate()));return y}function h(k){switch(k.getDay()){case 0:return new Date(k.getFullYear()-1,11,29);case 1:return k;case 2:return new Date(k.getFullYear(),0,3);case 3:return new Date(k.getFullYear(),0,2);case 4:return new Date(k.getFullYear(),
96
- 0,1);case 5:return new Date(k.getFullYear()-1,11,31);case 6:return new Date(k.getFullYear()-1,11,30)}}function p(k){var q=k.fe;for(k=new Date((new Date(k.ge+1900,0,1)).getTime());0<q;){var w=k.getMonth(),y=(ee(k.getFullYear())?fe:ge)[w];if(q>y-k.getDate())q-=y-k.getDate()+1,k.setDate(1),11>w?k.setMonth(w+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+q);break}}w=new Date(k.getFullYear()+1,0,4);q=h(new Date(k.getFullYear(),0,4));w=h(w);return 0>=g(q,k)?0>=g(w,k)?k.getFullYear()+
97
- 1:k.getFullYear():k.getFullYear()-1}var m=D[d+40>>2];d={yg:D[d>>2],xg:D[d+4>>2],Me:D[d+8>>2],Ye:D[d+12>>2],Ne:D[d+16>>2],ge:D[d+20>>2],Wd:D[d+24>>2],fe:D[d+28>>2],Og:D[d+32>>2],wg:D[d+36>>2],zg:m?m?bb(A,m):"":""};c=c?bb(A,c):"";m={"%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",
98
- "%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var t in m)c=c.replace(new RegExp(t,"g"),m[t]);var u="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),x="January February March April May June July August September October November December".split(" ");m={"%a":k=>u[k.Wd].substring(0,3),"%A":k=>u[k.Wd],"%b":k=>x[k.Ne].substring(0,3),"%B":k=>x[k.Ne],"%C":k=>f((k.ge+1900)/100|0,2),"%d":k=>f(k.Ye,2),"%e":k=>e(k.Ye,2," "),"%g":k=>
99
- p(k).toString().substring(2),"%G":k=>p(k),"%H":k=>f(k.Me,2),"%I":k=>{k=k.Me;0==k?k=12:12<k&&(k-=12);return f(k,2)},"%j":k=>{for(var q=0,w=0;w<=k.Ne-1;q+=(ee(k.ge+1900)?fe:ge)[w++]);return f(k.Ye+q,3)},"%m":k=>f(k.Ne+1,2),"%M":k=>f(k.xg,2),"%n":()=>"\n","%p":k=>0<=k.Me&&12>k.Me?"AM":"PM","%S":k=>f(k.yg,2),"%t":()=>"\t","%u":k=>k.Wd||7,"%U":k=>f(Math.floor((k.fe+7-k.Wd)/7),2),"%V":k=>{var q=Math.floor((k.fe+7-(k.Wd+6)%7)/7);2>=(k.Wd+371-k.fe-2)%7&&q++;if(q)53==q&&(w=(k.Wd+371-k.fe)%7,4==w||3==w&&ee(k.ge)||
100
- (q=1));else{q=52;var w=(k.Wd+7-k.fe-1)%7;(4==w||5==w&&ee(k.ge%400-1))&&q++}return f(q,2)},"%w":k=>k.Wd,"%W":k=>f(Math.floor((k.fe+7-(k.Wd+6)%7)/7),2),"%y":k=>(k.ge+1900).toString().substring(2),"%Y":k=>k.ge+1900,"%z":k=>{k=k.wg;var q=0<=k;k=Math.abs(k)/60;return(q?"+":"-")+String("0000"+(k/60*100+k%60)).slice(-4)},"%Z":k=>k.zg,"%%":()=>"%"};c=c.replace(/%%/g,"\x00\x00");for(t in m)c.includes(t)&&(c=c.replace(new RegExp(t,"g"),m[t](d)));c=c.replace(/\0\0/g,"%");t=fb(c,!1);if(t.length>b)return 0;z.set(t,
101
- a);return t.length-1};function Fb(a,b,c,d){a||(a=this);this.parent=a;this.Yd=a.Yd;this.He=null;this.id=wb++;this.name=b;this.mode=c;this.Ad={};this.Cd={};this.qe=d}Object.defineProperties(Fb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Tb();xb=Array(4096);Mb(O,"/");Nb("/tmp",16895,0);Nb("/home",16895,0);
102
- Nb("/home/web_user",16895,0);(()=>{Nb("/dev",16895,0);ib(259,{read:()=>0,write:(d,e,f,g)=>g});Ob("/dev/null",259);hb(1280,kb);hb(1536,lb);Ob("/dev/tty",1280);Ob("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Za(a).byteLength);return a[--b]};Wb("random",c);Wb("urandom",c);Nb("/dev/shm",16895,0);Nb("/dev/shm/tmp",16895,0)})();
103
- (()=>{Nb("/proc",16895,0);var a=Nb("/proc/self",16895,0);Nb("/proc/self/fd",16895,0);Mb({Yd:()=>{var b=ob(a,"fd",16895,73);b.Ad={pe:(c,d)=>{var e=Jb(+d);c={parent:null,Yd:{pf:"fake"},Ad:{re:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Object.assign(bc.prototype,{get(a){return this.Rd[a]},has(a){return void 0!==this.Rd[a]},xe(a){var b=this.hf.pop()||this.Rd.length;this.Rd[b]=a;return b},Cg(a){this.Rd[a]=void 0;this.hf.push(a)}});
104
- cc=l.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}};P.Rd.push({value:void 0},{value:null},{value:!0},{value:!1});P.yd=P.Rd.length;l.count_emval_handles=function(){for(var a=0,b=P.yd;b<P.Rd.length;++b)void 0!==P.Rd[b]&&++a;return a};gc=l.PureVirtualError=fc("PureVirtualError");for(var ie=Array(256),je=0;256>je;++je)ie[je]=String.fromCharCode(je);hc=ie;l.getInheritedInstanceCount=function(){return Object.keys(lc).length};
105
- l.getLiveInheritedInstances=function(){var a=[],b;for(b in lc)lc.hasOwnProperty(b)&&a.push(lc[b]);return a};l.flushPendingDeletes=jc;l.setDelayFunction=function(a){kc=a;ic.length&&kc&&kc(jc)};yc=l.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};Lc.prototype.isAliasOf=function(a){if(!(this instanceof Lc&&a instanceof Lc))return!1;var b=this.xd.Fd.zd,c=this.xd.Dd,d=a.xd.Fd.zd;for(a=a.xd.Dd;b.Hd;)c=b.te(c),b=b.Hd;for(;d.Hd;)a=d.te(a),d=d.Hd;return b===d&&c===a};
106
- Lc.prototype.clone=function(){this.xd.Dd||Kc(this);if(this.xd.ne)return this.xd.count.value+=1,this;var a=Bc,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.xd;a=a(c.call(b,d,{xd:{value:{count:e.count,le:e.le,ne:e.ne,Dd:e.Dd,Fd:e.Fd,Md:e.Md,Qd:e.Qd}}}));a.xd.count.value+=1;a.xd.le=!1;return a};Lc.prototype["delete"]=function(){this.xd.Dd||Kc(this);this.xd.le&&!this.xd.ne&&Q("Object already scheduled for deletion");sc(this);uc(this.xd);this.xd.ne||(this.xd.Md=void 0,this.xd.Dd=void 0)};
107
- Lc.prototype.isDeleted=function(){return!this.xd.Dd};Lc.prototype.deleteLater=function(){this.xd.Dd||Kc(this);this.xd.le&&!this.xd.ne&&Q("Object already scheduled for deletion");ic.push(this);1===ic.length&&kc&&kc(jc);this.xd.le=!0;return this};Uc.prototype.$f=function(a){this.uf&&(a=this.uf(a));return a};Uc.prototype.cf=function(a){this.$d&&this.$d(a)};Uc.prototype.argPackAdvance=8;Uc.prototype.readValueFromPointer=Ec;Uc.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};
108
- Uc.prototype.fromWireType=function(a){function b(){return this.Ce?Ac(this.zd.Td,{Fd:this.pg,Dd:c,Qd:this,Md:a}):Ac(this.zd.Td,{Fd:this,Dd:a})}var c=this.$f(a);if(!c)return this.cf(a),null;var d=xc(this.zd,c);if(void 0!==d){if(0===d.xd.count.value)return d.xd.Dd=c,d.xd.Md=a,d.clone();d=d.clone();this.cf(a);return d}d=this.zd.Zf(c);d=wc[d];if(!d)return b.call(this);d=this.Be?d.Of:d.pointerType;var e=vc(c,this.zd,d.zd);return null===e?b.call(this):this.Ce?Ac(d.zd.Td,{Fd:d,Dd:e,Qd:this,Md:a}):Ac(d.zd.Td,
109
- {Fd:d,Dd:e})};Xc=l.UnboundTypeError=fc("UnboundTypeError");for(var r,W=0;32>W;++W)Pd.push(Array(W));var ke=new Float32Array(288);for(W=0;288>W;++W)$d[W]=ke.subarray(0,W+1);var le=new Int32Array(288);for(W=0;288>W;++W)ae[W]=le.subarray(0,W+1);
110
- var Be={J:function(a,b,c){Yb=c;try{var d=Jb(a);switch(b){case 0:var e=Zb();return 0>e?-28:Lb(d,e).be;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=Zb(),d.flags|=e,0;case 5:return e=Zb(),C[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return D[me()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof Xb||"ErrnoError"!==f.name)throw f;return-f.ae}},tb:function(a,b){try{a:{var c=Jb(a).path;try{var d=Ab(c,{Se:!0}).node;if(!d)throw new M(44);if(!d.Ad.Sd)throw new M(63);
111
- var e=d.Ad.Sd(d)}catch(m){if(m&&m.node&&Va(c)!==Va(Bb(m.node))){var f=-54;break a}throw m;}D[b>>2]=e.Tf;D[b+4>>2]=e.mode;E[b+8>>2]=e.og;D[b+12>>2]=e.uid;D[b+16>>2]=e.dg;D[b+20>>2]=e.qe;J=[e.size>>>0,(I=e.size,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+24>>2]=J[0];D[b+28>>2]=J[1];D[b+32>>2]=4096;D[b+36>>2]=e.Nf;var g=e.Lf.getTime(),h=e.mg.getTime(),p=e.Pf.getTime();J=[Math.floor(g/1E3)>>>0,(I=Math.floor(g/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/
112
- 4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+40>>2]=J[0];D[b+44>>2]=J[1];E[b+48>>2]=g%1E3*1E3;J=[Math.floor(h/1E3)>>>0,(I=Math.floor(h/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+56>>2]=J[0];D[b+60>>2]=J[1];E[b+64>>2]=h%1E3*1E3;J=[Math.floor(p/1E3)>>>0,(I=Math.floor(p/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+72>>2]=J[0];D[b+76>>2]=J[1];E[b+80>>2]=
113
- p%1E3*1E3;J=[e.kf>>>0,(I=e.kf,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+88>>2]=J[0];D[b+92>>2]=J[1];f=0}return f}catch(m){if("undefined"==typeof Xb||"ErrnoError"!==m.name)throw m;return-m.ae}},wb:function(a,b,c){Yb=c;try{var d=Jb(a);switch(b){case 21509:return d.Ed?0:-59;case 21505:if(!d.Ed)return-59;if(d.Ed.Zd.hg){b=[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 e=Zb();D[e>>2]=25856;D[e+4>>2]=5;D[e+8>>2]=
114
- 191;D[e+12>>2]=35387;for(var f=0;32>f;f++)z[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.Ed?0:-59;case 21506:case 21507:case 21508:if(!d.Ed)return-59;if(d.Ed.Zd.ig)for(e=Zb(),b=[],f=0;32>f;f++)b.push(z[e+f+17>>0]);return 0;case 21519:if(!d.Ed)return-59;e=Zb();return D[e>>2]=0;case 21520:return d.Ed?-28:-59;case 21531:e=Zb();if(!d.Cd.gg)throw new M(59);return d.Cd.gg(d,b,e);case 21523:if(!d.Ed)return-59;d.Ed.Zd.jg&&(f=[24,80],e=Zb(),C[e>>1]=f[0],C[e+2>>1]=f[1]);return 0;case 21524:return d.Ed?
115
- 0:-59;case 21515:return d.Ed?0:-59;default:return-28}}catch(g){if("undefined"==typeof Xb||"ErrnoError"!==g.name)throw g;return-g.ae}},xb:function(a,b,c,d){Yb=d;try{b=b?bb(A,b):"";var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":Jb(a).path;if(0==e.length)throw new M(44);b=Va(f+"/"+e)}var g=d?Zb():0;return Rb(b,c,g).be}catch(h){if("undefined"==typeof Xb||"ErrnoError"!==h.name)throw h;return-h.ae}},E:function(a,b,c){a=R(a);b=rc(b,"wrapper");c=dc(c);var d=[].slice,e=b.zd,f=e.Td,g=e.Hd.Td,h=e.Hd.constructor;
116
- a=ac(a,function(){e.Hd.tf.forEach(function(m){if(this[m]===g[m])throw new gc(`Pure virtual function ${m} must be implemented in JavaScript`);}.bind(this));Object.defineProperty(this,"__parent",{value:f});this.__construct.apply(this,d.call(arguments))});f.__construct=function(){this===f&&Q("Pass correct 'this' to __construct");var m=h.implement.apply(void 0,[this].concat(d.call(arguments)));sc(m);var t=m.xd;m.notifyOnDestruction();t.ne=!0;Object.defineProperties(this,{xd:{value:t}});Bc(this);m=t.Dd;
117
- m=mc(e,m);lc.hasOwnProperty(m)?Q(`Tried to register registered instance: ${m}`):lc[m]=this};f.__destruct=function(){this===f&&Q("Pass correct 'this' to __destruct");sc(this);var m=this.xd.Dd;m=mc(e,m);lc.hasOwnProperty(m)?delete lc[m]:Q(`Tried to unregister unregistered instance: ${m}`)};a.prototype=Object.create(f);for(var p in c)a.prototype[p]=c[p];return ec(a)},zb:function(a){var b=Cc[a];delete Cc[a];var c=b.We,d=b.$d,e=b.ff,f=e.map(g=>g.cg).concat(e.map(g=>g.tg));S([a],f,g=>{var h={};e.forEach((p,
118
- m)=>{var t=g[m],u=p.ag,x=p.bg,k=g[m+e.length],q=p.sg,w=p.ug;h[p.Xf]={read:y=>t.fromWireType(u(x,y)),write:(y,F)=>{var B=[];q(w,y,k.toWireType(B,F));Dc(B)}}});return[{name:b.name,fromWireType:function(p){var m={},t;for(t in h)m[t]=h[t].read(p);d(p);return m},toWireType:function(p,m){for(var t in h)if(!(t in m))throw new TypeError(`Missing field: "${t}"`);var u=c();for(t in h)h[t].write(u,m[t]);null!==p&&p.push(d,u);return u},argPackAdvance:8,readValueFromPointer:Ec,Pd:d}]})},ib:function(){},Ab:function(a,
119
- b,c,d,e){var f=Ic(c);b=R(b);Hc(a,{name:b,fromWireType:function(g){return!!g},toWireType:function(g,h){return h?d:e},argPackAdvance:8,readValueFromPointer:function(g){if(1===c)var h=z;else if(2===c)h=C;else if(4===c)h=D;else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(h[g>>f])},Pd:null})},i:function(a,b,c,d,e,f,g,h,p,m,t,u,x){t=R(t);f=T(e,f);h&&(h=T(g,h));m&&(m=T(p,m));x=T(u,x);var k=$b(t);Nc(k,function(){Yc(`Cannot construct ${t} due to unbound types`,[d])});S([a,
120
- b,c],d?[d]:[],function(q){q=q[0];if(d){var w=q.zd;var y=w.Td}else y=Lc.prototype;q=ac(k,function(){if(Object.getPrototypeOf(this)!==F)throw new cc("Use 'new' to construct "+t);if(void 0===B.de)throw new cc(t+" has no accessible constructor");var N=B.de[arguments.length];if(void 0===N)throw new cc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(B.de).toString()}) parameters instead!`);return N.apply(this,arguments)});var F=Object.create(y,
121
- {constructor:{value:q}});q.prototype=F;var B=new Oc(t,q,F,x,w,f,h,m);B.Hd&&(void 0===B.Hd.ue&&(B.Hd.ue=[]),B.Hd.ue.push(B));w=new Uc(t,B,!0,!1);y=new Uc(t+"*",B,!1,!1);var K=new Uc(t+" const*",B,!1,!0);wc[a]={pointerType:y,Of:K};Vc(k,q);return[w,y,K]})},y:function(a,b,c,d,e,f,g){var h=$c(c,d);b=R(b);f=T(e,f);S([],[a],function(p){function m(){Yc(`Cannot call ${t} due to unbound types`,h)}p=p[0];var t=`${p.name}.${b}`;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);var u=p.zd.constructor;void 0===u[b]?
122
- (m.je=c-1,u[b]=m):(Mc(u,b,t),u[b].Id[c-1]=m);S([],h,function(x){x=Zc(t,[x[0],null].concat(x.slice(1)),null,f,g);void 0===u[b].Id?(x.je=c-1,u[b]=x):u[b].Id[c-1]=x;if(p.zd.ue)for(const k of p.zd.ue)k.constructor.hasOwnProperty(b)||(k.constructor[b]=x);return[]});return[]})},C:function(a,b,c,d,e,f,g,h){b=R(b);f=T(e,f);S([],[a],function(p){p=p[0];var m=`${p.name}.${b}`,t={get(){Yc(`Cannot access ${m} due to unbound types`,[c])},enumerable:!0,configurable:!0};t.set=h?()=>{Yc(`Cannot access ${m} due to unbound types`,
123
- [c])}:()=>{Q(`${m} is a read-only property`)};Object.defineProperty(p.zd.constructor,b,t);S([],[c],function(u){u=u[0];var x={get(){return u.fromWireType(f(d))},enumerable:!0};h&&(h=T(g,h),x.set=k=>{var q=[];h(d,u.toWireType(q,k));Dc(q)});Object.defineProperty(p.zd.constructor,b,x);return[]});return[]})},u:function(a,b,c,d,e,f){var g=$c(b,c);e=T(d,e);S([],[a],function(h){h=h[0];var p=`constructor ${h.name}`;void 0===h.zd.de&&(h.zd.de=[]);if(void 0!==h.zd.de[b-1])throw new cc(`Cannot register multiple constructors with identical number of parameters (${b-
124
- 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);h.zd.de[b-1]=()=>{Yc(`Cannot construct ${h.name} due to unbound types`,g)};S([],g,function(m){m.splice(1,0,null);h.zd.de[b-1]=Zc(p,m,null,e,f);return[]});return[]})},c:function(a,b,c,d,e,f,g,h){var p=$c(c,d);b=R(b);f=T(e,f);S([],[a],function(m){function t(){Yc(`Cannot call ${u} due to unbound types`,p)}m=m[0];var u=`${m.name}.${b}`;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);
125
- h&&m.zd.tf.push(b);var x=m.zd.Td,k=x[b];void 0===k||void 0===k.Id&&k.className!==m.name&&k.je===c-2?(t.je=c-2,t.className=m.name,x[b]=t):(Mc(x,b,u),x[b].Id[c-2]=t);S([],p,function(q){q=Zc(u,q,m,f,g);void 0===x[b].Id?(q.je=c-2,x[b]=q):x[b].Id[c-2]=q;return[]});return[]})},d:function(a,b,c,d,e,f,g,h,p,m){b=R(b);e=T(d,e);S([],[a],function(t){t=t[0];var u=`${t.name}.${b}`,x={get(){Yc(`Cannot access ${u} due to unbound types`,[c,g])},enumerable:!0,configurable:!0};x.set=p?()=>{Yc(`Cannot access ${u} due to unbound types`,
126
- [c,g])}:()=>{Q(u+" is a read-only property")};Object.defineProperty(t.zd.Td,b,x);S([],p?[c,g]:[c],function(k){var q=k[0],w={get(){var F=ad(this,t,u+" getter");return q.fromWireType(e(f,F))},enumerable:!0};if(p){p=T(h,p);var y=k[1];w.set=function(F){var B=ad(this,t,u+" setter"),K=[];p(m,B,y.toWireType(K,F));Dc(K)}}Object.defineProperty(t.zd.Td,b,w);return[]});return[]})},yb:function(a,b){b=R(b);Hc(a,{name:b,fromWireType:function(c){var d=dc(c);bd(c);return d},toWireType:function(c,d){return ec(d)},
127
- argPackAdvance:8,readValueFromPointer:Ec,Pd:null})},N:function(a,b,c,d){function e(){}c=Ic(c);b=R(b);e.values={};Hc(a,{name:b,constructor:e,fromWireType:function(f){return this.constructor.values[f]},toWireType:function(f,g){return g.value},argPackAdvance:8,readValueFromPointer:cd(b,c,d),Pd:null});Nc(b,e)},m:function(a,b,c){var d=rc(a,"enum");b=R(b);a=d.constructor;d=Object.create(d.constructor.prototype,{value:{value:c},constructor:{value:ac(`${d.name}_${b}`,function(){})}});a.values[c]=d;a[b]=d},
128
- L:function(a,b,c){c=Ic(c);b=R(b);Hc(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,e){return e},argPackAdvance:8,readValueFromPointer:dd(b,c),Pd:null})},o:function(a,b,c,d,e,f){var g=$c(b,c);a=R(a);e=T(d,e);Nc(a,function(){Yc(`Cannot call ${a} due to unbound types`,g)},b-1);S([],g,function(h){Vc(a,Zc(a,[h[0],null].concat(h.slice(1)),null,e,f),b-1);return[]})},r:function(a,b,c,d,e){b=R(b);-1===e&&(e=4294967295);e=Ic(c);var f=h=>h;if(0===d){var g=32-8*c;f=h=>h<<g>>>g}c=b.includes("unsigned")?
129
- function(h,p){return p>>>0}:function(h,p){return p};Hc(a,{name:b,fromWireType:f,toWireType:c,argPackAdvance:8,readValueFromPointer:ed(b,e,0!==d),Pd:null})},l:function(a,b,c){function d(f){f>>=2;var g=E;return new e(g.buffer,g[f+1],g[f])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=R(c);Hc(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{eg:!0})},M:function(a,b){b=R(b);var c="std::string"===b;Hc(a,{name:b,fromWireType:function(d){var e=
130
- E[d>>2],f=d+4;if(c)for(var g=f,h=0;h<=e;++h){var p=f+h;if(h==e||0==A[p]){g=g?bb(A,g,p-g):"";if(void 0===m)var m=g;else m+=String.fromCharCode(0),m+=g;g=p+1}}else{m=Array(e);for(h=0;h<e;++h)m[h]=String.fromCharCode(A[f+h]);m=m.join("")}qc(d);return m},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Q("Cannot pass non-string to std::string");var g=c&&f?db(e):e.length;
131
- var h=Vd(4+g+1),p=h+4;E[h>>2]=g;if(c&&f)eb(e,A,p,g+1);else if(f)for(f=0;f<g;++f){var m=e.charCodeAt(f);255<m&&(qc(p),Q("String has UTF-16 code units that do not fit in 8 bits"));A[p+f]=m}else for(f=0;f<g;++f)A[p+f]=e[f];null!==d&&d.push(qc,h);return h},argPackAdvance:8,readValueFromPointer:Ec,Pd:function(d){qc(d)}})},B:function(a,b,c){c=R(c);if(2===b){var d=gd;var e=hd;var f=jd;var g=()=>ya;var h=1}else 4===b&&(d=kd,e=ld,f=md,g=()=>E,h=2);Hc(a,{name:c,fromWireType:function(p){for(var m=E[p>>2],t=
132
- g(),u,x=p+4,k=0;k<=m;++k){var q=p+4+k*b;if(k==m||0==t[q>>h])x=d(x,q-x),void 0===u?u=x:(u+=String.fromCharCode(0),u+=x),x=q+b}qc(p);return u},toWireType:function(p,m){"string"!=typeof m&&Q(`Cannot pass non-string to C++ string type ${c}`);var t=f(m),u=Vd(4+t+b);E[u>>2]=t>>h;e(m,u+4,t+b);null!==p&&p.push(qc,u);return u},argPackAdvance:8,readValueFromPointer:Ec,Pd:function(p){qc(p)}})},Ub:function(a,b,c,d,e,f){Cc[a]={name:R(b),We:T(c,d),$d:T(e,f),ff:[]}},Jb:function(a,b,c,d,e,f,g,h,p,m){Cc[a].ff.push({Xf:R(b),
133
- cg:c,ag:T(d,e),bg:f,tg:g,sg:T(h,p),ug:m})},Bb:function(a,b){b=R(b);Hc(a,{kg:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},pb:()=>!0,mb:()=>{throw Infinity;},eb:function(a,b,c){a=dc(a);b=rc(b,"emval::as");var d=[],e=ec(d);E[c>>2]=e;return b.toWireType(d,a)},gb:function(a,b,c,d,e){a=pd[a];b=dc(b);c=od(c);var f=[];E[d>>2]=ec(f);return a(b,c,f,e)},I:function(a,b,c,d){a=pd[a];b=dc(b);c=od(c);a(b,c,null,d)},g:bd,A:function(a,b){var c=rd(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(g){return g.name}).join("_")+
134
- "$";var e=sd[b];if(void 0!==e)return e;var f=Array(a-1);e=qd((g,h,p,m)=>{for(var t=0,u=0;u<a-1;++u)f[u]=c[u+1].readValueFromPointer(m+t),t+=c[u+1].argPackAdvance;g=g[h].apply(g,f);for(u=0;u<a-1;++u)c[u+1].Sf&&c[u+1].Sf(f[u]);if(!d.kg)return d.toWireType(p,g)});return sd[b]=e},fb:function(a,b){a=dc(a);b=dc(b);return ec(a[b])},x:function(a){4<a&&(P.get(a).wf+=1)},s:function(a){return ec(od(a))},O:function(){return ec({})},F:function(a){var b=dc(a);Dc(b);bd(a)},q:function(a,b,c){a=dc(a);b=dc(b);c=dc(c);
135
- a[b]=c},w:function(a,b){a=rc(a,"_emval_take_value");a=a.readValueFromPointer(b);return ec(a)},a:()=>{va("")},p:(a,b,c)=>{td.length=0;var d;for(c>>=2;d=A[b++];)c+=105!=d&c,td.push(105==d?D[c]:za[c++>>1]),++c;return Sa[a].apply(null,td)},qb:()=>performance.now(),_a:function(a){r.activeTexture(a)},Za:function(a,b){r.attachShader(Ad[a],Ed[b])},Ya:function(a,b,c){r.bindAttribLocation(Ad[a],b,c?bb(A,c):"")},Xa:function(a,b){35051==a?r.Qe=b:35052==a&&(r.ke=b);r.bindBuffer(a,zd[b])},bc:Md,ac:function(a,b){r.bindRenderbuffer(a,
136
- Cd[b])},Kb:function(a,b){r.bindSampler(a,Gd[b])},Wa:function(a,b){r.bindTexture(a,Dd[b])},tc:Nd,qc:Nd,Va:function(a,b,c,d){r.blendColor(a,b,c,d)},Ua:function(a){r.blendEquation(a)},Ta:function(a,b){r.blendFunc(a,b)},Pb:function(a,b,c,d,e,f,g,h,p,m){r.blitFramebuffer(a,b,c,d,e,f,g,h,p,m)},Sa:function(a,b,c,d){2<=n.version?c&&b?r.bufferData(a,A,d,c,b):r.bufferData(a,b,d):r.bufferData(a,c?A.subarray(c,c+b):b,d)},Ra:function(a,b,c,d){2<=n.version?c&&r.bufferSubData(a,b,A,d,c):r.bufferSubData(a,b,A.subarray(d,
137
- d+c))},$b:function(a){return r.checkFramebufferStatus(a)},Qa:function(a){r.clear(a)},Pa:function(a,b,c,d){r.clearColor(a,b,c,d)},Oa:function(a){r.clearStencil(a)},bb:function(a,b,c,d){return r.clientWaitSync(Hd[a],b,(c>>>0)+4294967296*d)},Na:function(a,b,c,d){r.colorMask(!!a,!!b,!!c,!!d)},Ma:function(a){r.compileShader(Ed[a])},La:function(a,b,c,d,e,f,g,h){2<=n.version?r.ke||!g?r.compressedTexImage2D(a,b,c,d,e,f,g,h):r.compressedTexImage2D(a,b,c,d,e,f,A,h,g):r.compressedTexImage2D(a,b,c,d,e,f,h?A.subarray(h,
138
- h+g):null)},Ka:function(a,b,c,d,e,f,g,h,p){2<=n.version?r.ke||!h?r.compressedTexSubImage2D(a,b,c,d,e,f,g,h,p):r.compressedTexSubImage2D(a,b,c,d,e,f,g,A,p,h):r.compressedTexSubImage2D(a,b,c,d,e,f,g,p?A.subarray(p,p+h):null)},Ja:function(a,b,c,d,e,f,g,h){r.copyTexSubImage2D(a,b,c,d,e,f,g,h)},Ia:function(){var a=fa(Ad),b=r.createProgram();b.name=a;b.Fe=b.De=b.Ee=0;b.Ze=1;Ad[a]=b;return a},Ha:function(a){var b=fa(Ed);Ed[b]=r.createShader(a);return b},Ga:function(a){r.cullFace(a)},Fa:function(a,b){for(var c=
139
- 0;c<a;c++){var d=D[b+4*c>>2],e=zd[d];e&&(r.deleteBuffer(e),e.name=0,zd[d]=null,d==r.Qe&&(r.Qe=0),d==r.ke&&(r.ke=0))}},_b:function(a,b){for(var c=0;c<a;++c){var d=D[b+4*c>>2],e=Bd[d];e&&(r.deleteFramebuffer(e),e.name=0,Bd[d]=null)}},Ea:function(a){if(a){var b=Ad[a];b?(r.deleteProgram(b),b.name=0,Ad[a]=null):U(1281)}},Zb:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Cd[d];e&&(r.deleteRenderbuffer(e),e.name=0,Cd[d]=null)}},Ib:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Gd[d];e&&(r.deleteSampler(e),
140
- e.name=0,Gd[d]=null)}},Da:function(a){if(a){var b=Ed[a];b?(r.deleteShader(b),Ed[a]=null):U(1281)}},Nb:function(a){if(a){var b=Hd[a];b?(r.deleteSync(b),b.name=0,Hd[a]=null):U(1281)}},Ca:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Dd[d];e&&(r.deleteTexture(e),e.name=0,Dd[d]=null)}},sc:Od,pc:Od,Ba:function(a){r.depthMask(!!a)},Aa:function(a){r.disable(a)},za:function(a){r.disableVertexAttribArray(a)},ya:function(a,b,c){r.drawArrays(a,b,c)},nc:function(a,b,c,d){r.drawArraysInstanced(a,b,c,
141
- d)},lc:function(a,b,c,d,e){r.df.drawArraysInstancedBaseInstanceWEBGL(a,b,c,d,e)},jc:function(a,b){for(var c=Pd[a],d=0;d<a;d++)c[d]=D[b+4*d>>2];r.drawBuffers(c)},xa:Qd,mc:function(a,b,c,d,e){r.drawElementsInstanced(a,b,c,d,e)},kc:function(a,b,c,d,e,f,g){r.df.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a,b,c,d,e,f,g)},fc:function(a,b,c,d,e,f){Qd(a,d,e,f)},wa:function(a){r.enable(a)},va:function(a){r.enableVertexAttribArray(a)},Mb:function(a,b){return(a=r.fenceSync(a,b))?(b=fa(Hd),a.name=b,Hd[b]=
142
- a,b):0},ua:function(){r.finish()},ta:function(){r.flush()},Yb:function(a,b,c,d){r.framebufferRenderbuffer(a,b,c,Cd[d])},Xb:function(a,b,c,d,e){r.framebufferTexture2D(a,b,c,Dd[d],e)},sa:function(a){r.frontFace(a)},ra:function(a,b){Rd(a,b,"createBuffer",zd)},Wb:function(a,b){Rd(a,b,"createFramebuffer",Bd)},Vb:function(a,b){Rd(a,b,"createRenderbuffer",Cd)},Hb:function(a,b){Rd(a,b,"createSampler",Gd)},qa:function(a,b){Rd(a,b,"createTexture",Dd)},rc:Sd,oc:Sd,Tb:function(a){r.generateMipmap(a)},pa:function(a,
143
- b,c){c?D[c>>2]=r.getBufferParameter(a,b):U(1281)},oa:function(){var a=r.getError()||Ld;Ld=0;return a},Sb:function(a,b,c,d){a=r.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;D[d>>2]=a},$a:Ud,na:function(a,b,c,d){a=r.getProgramInfoLog(Ad[a]);null===a&&(a="(unknown error)");b=0<b&&d?eb(a,A,d,b):0;c&&(D[c>>2]=b)},ma:function(a,b,c){if(c)if(a>=xd)U(1281);else if(a=Ad[a],35716==b)a=r.getProgramInfoLog(a),null===a&&(a="(unknown error)"),
144
- D[c>>2]=a.length+1;else if(35719==b){if(!a.Fe)for(b=0;b<r.getProgramParameter(a,35718);++b)a.Fe=Math.max(a.Fe,r.getActiveUniform(a,b).name.length+1);D[c>>2]=a.Fe}else if(35722==b){if(!a.De)for(b=0;b<r.getProgramParameter(a,35721);++b)a.De=Math.max(a.De,r.getActiveAttrib(a,b).name.length+1);D[c>>2]=a.De}else if(35381==b){if(!a.Ee)for(b=0;b<r.getProgramParameter(a,35382);++b)a.Ee=Math.max(a.Ee,r.getActiveUniformBlockName(a,b).length+1);D[c>>2]=a.Ee}else D[c>>2]=r.getProgramParameter(a,b);else U(1281)},
145
- Rb:function(a,b,c){c?D[c>>2]=r.getRenderbufferParameter(a,b):U(1281)},la:function(a,b,c,d){a=r.getShaderInfoLog(Ed[a]);null===a&&(a="(unknown error)");b=0<b&&d?eb(a,A,d,b):0;c&&(D[c>>2]=b)},Cb:function(a,b,c,d){a=r.getShaderPrecisionFormat(a,b);D[c>>2]=a.rangeMin;D[c+4>>2]=a.rangeMax;D[d>>2]=a.precision},ka:function(a,b,c){c?35716==b?(a=r.getShaderInfoLog(Ed[a]),null===a&&(a="(unknown error)"),D[c>>2]=a?a.length+1:0):35720==b?(a=r.getShaderSource(Ed[a]),D[c>>2]=a?a.length+1:0):D[c>>2]=r.getShaderParameter(Ed[a],
146
- b):U(1281)},z:function(a){var b=Id[a];if(!b){switch(a){case 7939:b=r.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));b=Wd(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=r.getParameter(a))||U(1280);b=b&&Wd(b);break;case 7938:b=r.getParameter(7938);b=2<=n.version?"OpenGL ES 3.0 ("+b+")":"OpenGL ES 2.0 ("+b+")";b=Wd(b);break;case 35724:b=r.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),
147
- b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=Wd(b);break;default:U(1280)}Id[a]=b}return b},ab:function(a,b){if(2>n.version)return U(1282),0;var c=Jd[a];if(c)return 0>b||b>=c.length?(U(1281),0):c[b];switch(a){case 7939:return c=r.getSupportedExtensions()||[],c=c.concat(c.map(function(d){return"GL_"+d})),c=c.map(function(d){return Wd(d)}),c=Jd[a]=c,0>b||b>=c.length?(U(1281),0):c[b];default:return U(1280),0}},ja:function(a,b){b=b?bb(A,b):"";if(a=Ad[a]){var c=a,d=c.se,e=c.Bf,f;if(!d)for(c.se=d={},c.Af={},
148
- f=0;f<r.getProgramParameter(c,35718);++f){var g=r.getActiveUniform(c,f);var h=g.name;g=g.size;var p=Xd(h);p=0<p?h.slice(0,p):h;var m=c.Ze;c.Ze+=g;e[p]=[g,m];for(h=0;h<g;++h)d[m]=h,c.Af[m++]=p}c=a.se;d=0;e=b;f=Xd(b);0<f&&(d=parseInt(b.slice(f+1))>>>0,e=b.slice(0,f));if((e=a.Bf[e])&&d<e[0]&&(d+=e[1],c[d]=c[d]||r.getUniformLocation(a,b)))return d}else U(1281);return-1},Eb:function(a,b,c){for(var d=Pd[b],e=0;e<b;e++)d[e]=D[c+4*e>>2];r.invalidateFramebuffer(a,d)},Db:function(a,b,c,d,e,f,g){for(var h=Pd[b],
149
- p=0;p<b;p++)h[p]=D[c+4*p>>2];r.invalidateSubFramebuffer(a,h,d,e,f,g)},Lb:function(a){return r.isSync(Hd[a])},ia:function(a){return(a=Dd[a])?r.isTexture(a):0},ha:function(a){r.lineWidth(a)},ga:function(a){a=Ad[a];r.linkProgram(a);a.se=0;a.Bf={}},hc:function(a,b,c,d,e,f){r.mf.multiDrawArraysInstancedBaseInstanceWEBGL(a,D,b>>2,D,c>>2,D,d>>2,E,e>>2,f)},gc:function(a,b,c,d,e,f,g,h){r.mf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a,D,b>>2,c,D,d>>2,D,e>>2,D,f>>2,E,g>>2,h)},fa:function(a,b){3317==
150
- a&&(Kd=b);r.pixelStorei(a,b)},ic:function(a){r.readBuffer(a)},ea:function(a,b,c,d,e,f,g){if(2<=n.version)if(r.Qe)r.readPixels(a,b,c,d,e,f,g);else{var h=Yd(f);r.readPixels(a,b,c,d,e,f,h,g>>31-Math.clz32(h.BYTES_PER_ELEMENT))}else(g=Zd(f,e,c,d,g))?r.readPixels(a,b,c,d,e,f,g):U(1280)},Qb:function(a,b,c,d){r.renderbufferStorage(a,b,c,d)},Ob:function(a,b,c,d,e){r.renderbufferStorageMultisample(a,b,c,d,e)},Gb:function(a,b,c){r.samplerParameteri(Gd[a],b,c)},Fb:function(a,b,c){r.samplerParameteri(Gd[a],b,
151
- D[c>>2])},da:function(a,b,c,d){r.scissor(a,b,c,d)},ca:function(a,b,c,d){for(var e="",f=0;f<b;++f){var g=d?D[d+4*f>>2]:-1,h=D[c+4*f>>2];g=h?bb(A,h,0>g?void 0:g):"";e+=g}r.shaderSource(Ed[a],e)},ba:function(a,b,c){r.stencilFunc(a,b,c)},aa:function(a,b,c,d){r.stencilFuncSeparate(a,b,c,d)},$:function(a){r.stencilMask(a)},_:function(a,b){r.stencilMaskSeparate(a,b)},Z:function(a,b,c){r.stencilOp(a,b,c)},Y:function(a,b,c,d){r.stencilOpSeparate(a,b,c,d)},X:function(a,b,c,d,e,f,g,h,p){if(2<=n.version)if(r.ke)r.texImage2D(a,
152
- b,c,d,e,f,g,h,p);else if(p){var m=Yd(h);r.texImage2D(a,b,c,d,e,f,g,h,m,p>>31-Math.clz32(m.BYTES_PER_ELEMENT))}else r.texImage2D(a,b,c,d,e,f,g,h,null);else r.texImage2D(a,b,c,d,e,f,g,h,p?Zd(h,g,d,e,p):null)},W:function(a,b,c){r.texParameterf(a,b,c)},V:function(a,b,c){r.texParameterf(a,b,G[c>>2])},U:function(a,b,c){r.texParameteri(a,b,c)},T:function(a,b,c){r.texParameteri(a,b,D[c>>2])},ec:function(a,b,c,d,e){r.texStorage2D(a,b,c,d,e)},S:function(a,b,c,d,e,f,g,h,p){if(2<=n.version)if(r.ke)r.texSubImage2D(a,
153
- b,c,d,e,f,g,h,p);else if(p){var m=Yd(h);r.texSubImage2D(a,b,c,d,e,f,g,h,m,p>>31-Math.clz32(m.BYTES_PER_ELEMENT))}else r.texSubImage2D(a,b,c,d,e,f,g,h,null);else m=null,p&&(m=Zd(h,g,e,f,p)),r.texSubImage2D(a,b,c,d,e,f,g,h,m)},R:function(a,b){r.uniform1f(V(a),b)},Q:function(a,b,c){if(2<=n.version)b&&r.uniform1fv(V(a),G,c>>2,b);else{if(288>=b)for(var d=$d[b-1],e=0;e<b;++e)d[e]=G[c+4*e>>2];else d=G.subarray(c>>2,c+4*b>>2);r.uniform1fv(V(a),d)}},P:function(a,b){r.uniform1i(V(a),b)},Qc:function(a,b,c){if(2<=
154
- n.version)b&&r.uniform1iv(V(a),D,c>>2,b);else{if(288>=b)for(var d=ae[b-1],e=0;e<b;++e)d[e]=D[c+4*e>>2];else d=D.subarray(c>>2,c+4*b>>2);r.uniform1iv(V(a),d)}},Pc:function(a,b,c){r.uniform2f(V(a),b,c)},Oc:function(a,b,c){if(2<=n.version)b&&r.uniform2fv(V(a),G,c>>2,2*b);else{if(144>=b)for(var d=$d[2*b-1],e=0;e<2*b;e+=2)d[e]=G[c+4*e>>2],d[e+1]=G[c+(4*e+4)>>2];else d=G.subarray(c>>2,c+8*b>>2);r.uniform2fv(V(a),d)}},Nc:function(a,b,c){r.uniform2i(V(a),b,c)},Mc:function(a,b,c){if(2<=n.version)b&&r.uniform2iv(V(a),
155
- D,c>>2,2*b);else{if(144>=b)for(var d=ae[2*b-1],e=0;e<2*b;e+=2)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2];else d=D.subarray(c>>2,c+8*b>>2);r.uniform2iv(V(a),d)}},Lc:function(a,b,c,d){r.uniform3f(V(a),b,c,d)},Kc:function(a,b,c){if(2<=n.version)b&&r.uniform3fv(V(a),G,c>>2,3*b);else{if(96>=b)for(var d=$d[3*b-1],e=0;e<3*b;e+=3)d[e]=G[c+4*e>>2],d[e+1]=G[c+(4*e+4)>>2],d[e+2]=G[c+(4*e+8)>>2];else d=G.subarray(c>>2,c+12*b>>2);r.uniform3fv(V(a),d)}},Jc:function(a,b,c,d){r.uniform3i(V(a),b,c,d)},Ic:function(a,
156
- b,c){if(2<=n.version)b&&r.uniform3iv(V(a),D,c>>2,3*b);else{if(96>=b)for(var d=ae[3*b-1],e=0;e<3*b;e+=3)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2],d[e+2]=D[c+(4*e+8)>>2];else d=D.subarray(c>>2,c+12*b>>2);r.uniform3iv(V(a),d)}},Hc:function(a,b,c,d,e){r.uniform4f(V(a),b,c,d,e)},Gc:function(a,b,c){if(2<=n.version)b&&r.uniform4fv(V(a),G,c>>2,4*b);else{if(72>=b){var d=$d[4*b-1],e=G;c>>=2;for(var f=0;f<4*b;f+=4){var g=c+f;d[f]=e[g];d[f+1]=e[g+1];d[f+2]=e[g+2];d[f+3]=e[g+3]}}else d=G.subarray(c>>2,c+16*b>>2);
157
- r.uniform4fv(V(a),d)}},Fc:function(a,b,c,d,e){r.uniform4i(V(a),b,c,d,e)},Ec:function(a,b,c){if(2<=n.version)b&&r.uniform4iv(V(a),D,c>>2,4*b);else{if(72>=b)for(var d=ae[4*b-1],e=0;e<4*b;e+=4)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2],d[e+2]=D[c+(4*e+8)>>2],d[e+3]=D[c+(4*e+12)>>2];else d=D.subarray(c>>2,c+16*b>>2);r.uniform4iv(V(a),d)}},Dc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix2fv(V(a),!!c,G,d>>2,4*b);else{if(72>=b)for(var e=$d[4*b-1],f=0;f<4*b;f+=4)e[f]=G[d+4*f>>2],e[f+1]=G[d+(4*f+4)>>2],
158
- e[f+2]=G[d+(4*f+8)>>2],e[f+3]=G[d+(4*f+12)>>2];else e=G.subarray(d>>2,d+16*b>>2);r.uniformMatrix2fv(V(a),!!c,e)}},Cc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix3fv(V(a),!!c,G,d>>2,9*b);else{if(32>=b)for(var e=$d[9*b-1],f=0;f<9*b;f+=9)e[f]=G[d+4*f>>2],e[f+1]=G[d+(4*f+4)>>2],e[f+2]=G[d+(4*f+8)>>2],e[f+3]=G[d+(4*f+12)>>2],e[f+4]=G[d+(4*f+16)>>2],e[f+5]=G[d+(4*f+20)>>2],e[f+6]=G[d+(4*f+24)>>2],e[f+7]=G[d+(4*f+28)>>2],e[f+8]=G[d+(4*f+32)>>2];else e=G.subarray(d>>2,d+36*b>>2);r.uniformMatrix3fv(V(a),
159
- !!c,e)}},Bc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix4fv(V(a),!!c,G,d>>2,16*b);else{if(18>=b){var e=$d[16*b-1],f=G;d>>=2;for(var g=0;g<16*b;g+=16){var h=d+g;e[g]=f[h];e[g+1]=f[h+1];e[g+2]=f[h+2];e[g+3]=f[h+3];e[g+4]=f[h+4];e[g+5]=f[h+5];e[g+6]=f[h+6];e[g+7]=f[h+7];e[g+8]=f[h+8];e[g+9]=f[h+9];e[g+10]=f[h+10];e[g+11]=f[h+11];e[g+12]=f[h+12];e[g+13]=f[h+13];e[g+14]=f[h+14];e[g+15]=f[h+15]}}else e=G.subarray(d>>2,d+64*b>>2);r.uniformMatrix4fv(V(a),!!c,e)}},Ac:function(a){a=Ad[a];r.useProgram(a);
160
- r.Rf=a},zc:function(a,b){r.vertexAttrib1f(a,b)},yc:function(a,b){r.vertexAttrib2f(a,G[b>>2],G[b+4>>2])},xc:function(a,b){r.vertexAttrib3f(a,G[b>>2],G[b+4>>2],G[b+8>>2])},wc:function(a,b){r.vertexAttrib4f(a,G[b>>2],G[b+4>>2],G[b+8>>2],G[b+12>>2])},dc:function(a,b){r.vertexAttribDivisor(a,b)},cc:function(a,b,c,d,e){r.vertexAttribIPointer(a,b,c,d,e)},vc:function(a,b,c,d,e,f){r.vertexAttribPointer(a,b,c,!!d,e,f)},uc:function(a,b,c,d){r.viewport(a,b,c,d)},cb:function(a,b,c,d){r.waitSync(Hd[a],b,(c>>>0)+
161
- 4294967296*d)},ob:a=>{var b=A.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=e.min.call(e,2147483648,d+(65536-d%65536)%65536)-wa.buffer.byteLength+65535>>>16;try{wa.grow(e);Aa();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},rb:(a,b)=>{var c=0;de().forEach(function(d,e){var f=b+c;e=E[a+4*e>>2]=f;for(f=0;f<d.length;++f)z[e++>>0]=d.charCodeAt(f);z[e>>0]=0;c+=d.length+1});return 0},sb:(a,b)=>{var c=
162
- de();E[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});E[b>>2]=d;return 0},K:function(a){try{var b=Jb(a);if(null===b.be)throw new M(8);b.Te&&(b.Te=null);try{b.Cd.close&&b.Cd.close(b)}catch(c){throw c;}finally{vb[b.be]=null}b.be=null;return 0}catch(c){if("undefined"==typeof Xb||"ErrnoError"!==c.name)throw c;return c.ae}},vb:function(a,b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var h=E[a>>2],p=E[a+4>>2];a+=8;var m=e,t=h,u=p,x=f,k=z;if(0>u||0>x)throw new M(28);if(null===m.be)throw new M(8);
163
- if(1===(m.flags&2097155))throw new M(8);if(16384===(m.node.mode&61440))throw new M(31);if(!m.Cd.read)throw new M(28);var q="undefined"!=typeof x;if(!q)x=m.position;else if(!m.seekable)throw new M(70);var w=m.Cd.read(m,k,t,u,x);q||(m.position+=w);var y=w;if(0>y){var F=-1;break a}b+=y;if(y<p)break;"undefined"!==typeof f&&(f+=y)}F=b}E[d>>2]=F;return 0}catch(B){if("undefined"==typeof Xb||"ErrnoError"!==B.name)throw B;return B.ae}},hb:function(a,b,c,d,e){b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*
164
- c:NaN;try{if(isNaN(b))return 61;var f=Jb(a);Sb(f,b,d);J=[f.position>>>0,(I=f.position,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[e>>2]=J[0];D[e+4>>2]=J[1];f.Te&&0===b&&0===d&&(f.Te=null);return 0}catch(g){if("undefined"==typeof Xb||"ErrnoError"!==g.name)throw g;return g.ae}},ub:function(a,b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var h=E[a>>2],p=E[a+4>>2];a+=8;var m=e,t=h,u=p,x=f,k=z;if(0>u||0>x)throw new M(28);if(null===m.be)throw new M(8);
165
- if(0===(m.flags&2097155))throw new M(8);if(16384===(m.node.mode&61440))throw new M(31);if(!m.Cd.write)throw new M(28);m.seekable&&m.flags&1024&&Sb(m,0,2);var q="undefined"!=typeof x;if(!q)x=m.position;else if(!m.seekable)throw new M(70);var w=m.Cd.write(m,k,t,u,x,void 0);q||(m.position+=w);var y=w;if(0>y){var F=-1;break a}b+=y;"undefined"!==typeof f&&(f+=y)}F=b}E[d>>2]=F;return 0}catch(B){if("undefined"==typeof Xb||"ErrnoError"!==B.name)throw B;return B.ae}},db:Md,D:Ud,k:ne,j:oe,n:pe,v:qe,jb:re,H:se,
166
- t:te,f:ue,b:ve,h:we,e:xe,G:ye,lb:ze,kb:Ae,nb:(a,b,c,d)=>he(a,b,c,d)};
167
- (function(){function a(c){v=c=c.exports;wa=v.Rc;Aa();H=v.bd;Ca.unshift(v.Sc);Fa--;l.monitorRunDependencies&&l.monitorRunDependencies(Fa);if(0==Fa&&(null!==Ga&&(clearInterval(Ga),Ga=null),Ha)){var d=Ha;Ha=null;d()}return c}var b={a:Be};Fa++;l.monitorRunDependencies&&l.monitorRunDependencies(Fa);if(l.instantiateWasm)try{return l.instantiateWasm(b,a)}catch(c){ta("Module.instantiateWasm callback failed with error: "+c),ba(c)}Oa(b,function(c){a(c.instance)}).catch(ba);return{}})();
168
- var Vd=a=>(Vd=v.Tc)(a),qc=a=>(qc=v.Uc)(a),Pa=l._ma_device__on_notification_unlocked=a=>(Pa=l._ma_device__on_notification_unlocked=v.Vc)(a);l._ma_malloc_emscripten=(a,b)=>(l._ma_malloc_emscripten=v.Wc)(a,b);l._ma_free_emscripten=(a,b)=>(l._ma_free_emscripten=v.Xc)(a,b);
169
- var Qa=l._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Qa=l._ma_device_process_pcm_frames_capture__webaudio=v.Yc)(a,b,c),Ra=l._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Ra=l._ma_device_process_pcm_frames_playback__webaudio=v.Zc)(a,b,c),me=()=>(me=v._c)(),pc=a=>(pc=v.$c)(a);l.__embind_initialize_bindings=()=>(l.__embind_initialize_bindings=v.ad)();var rb=(a,b)=>(rb=v.cd)(a,b),X=(a,b)=>(X=v.dd)(a,b),Y=()=>(Y=v.ed)(),Z=a=>(Z=v.fd)(a);
170
- l.dynCall_iiiij=(a,b,c,d,e,f)=>(l.dynCall_iiiij=v.gd)(a,b,c,d,e,f);l.dynCall_viiij=(a,b,c,d,e,f)=>(l.dynCall_viiij=v.hd)(a,b,c,d,e,f);l.dynCall_iiij=(a,b,c,d,e)=>(l.dynCall_iiij=v.id)(a,b,c,d,e);l.dynCall_viij=(a,b,c,d,e)=>(l.dynCall_viij=v.jd)(a,b,c,d,e);l.dynCall_iiji=(a,b,c,d,e)=>(l.dynCall_iiji=v.kd)(a,b,c,d,e);l.dynCall_iiiji=(a,b,c,d,e,f)=>(l.dynCall_iiiji=v.ld)(a,b,c,d,e,f);l.dynCall_jiji=(a,b,c,d,e)=>(l.dynCall_jiji=v.md)(a,b,c,d,e);l.dynCall_iij=(a,b,c,d)=>(l.dynCall_iij=v.nd)(a,b,c,d);
171
- l.dynCall_jii=(a,b,c)=>(l.dynCall_jii=v.od)(a,b,c);l.dynCall_viiiiij=(a,b,c,d,e,f,g,h)=>(l.dynCall_viiiiij=v.pd)(a,b,c,d,e,f,g,h);l.dynCall_viji=(a,b,c,d,e)=>(l.dynCall_viji=v.qd)(a,b,c,d,e);l.dynCall_ji=(a,b)=>(l.dynCall_ji=v.rd)(a,b);l.dynCall_vij=(a,b,c,d)=>(l.dynCall_vij=v.sd)(a,b,c,d);l.dynCall_viijii=(a,b,c,d,e,f,g)=>(l.dynCall_viijii=v.td)(a,b,c,d,e,f,g);l.dynCall_iiiiij=(a,b,c,d,e,f,g)=>(l.dynCall_iiiiij=v.ud)(a,b,c,d,e,f,g);
172
- l.dynCall_iiiiijj=(a,b,c,d,e,f,g,h,p)=>(l.dynCall_iiiiijj=v.vd)(a,b,c,d,e,f,g,h,p);l.dynCall_iiiiiijj=(a,b,c,d,e,f,g,h,p,m)=>(l.dynCall_iiiiiijj=v.wd)(a,b,c,d,e,f,g,h,p,m);function ne(a,b){var c=Y();try{return H.get(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ve(a,b,c){var d=Y();try{H.get(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ue(a,b){var c=Y();try{H.get(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}
173
- function pe(a,b,c,d){var e=Y();try{return H.get(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function we(a,b,c,d){var e=Y();try{H.get(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function xe(a,b,c,d,e){var f=Y();try{H.get(a)(b,c,d,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function te(a){var b=Y();try{H.get(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function se(a,b,c,d,e,f,g){var h=Y();try{return H.get(a)(b,c,d,e,f,g)}catch(p){Z(h);if(p!==p+0)throw p;X(1,0)}}
174
- function oe(a,b,c){var d=Y();try{return H.get(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ze(a,b,c,d,e,f,g,h){var p=Y();try{H.get(a)(b,c,d,e,f,g,h)}catch(m){Z(p);if(m!==m+0)throw m;X(1,0)}}function qe(a,b,c,d,e){var f=Y();try{return H.get(a)(b,c,d,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function Ae(a,b,c,d,e,f,g,h,p){var m=Y();try{H.get(a)(b,c,d,e,f,g,h,p)}catch(t){Z(m);if(t!==t+0)throw t;X(1,0)}}
175
- function re(a,b,c,d,e,f){var g=Y();try{return H.get(a)(b,c,d,e,f)}catch(h){Z(g);if(h!==h+0)throw h;X(1,0)}}function ye(a,b,c,d,e,f,g){var h=Y();try{H.get(a)(b,c,d,e,f,g)}catch(p){Z(h);if(p!==p+0)throw p;X(1,0)}}var Ce;Ha=function De(){Ce||Ee();Ce||(Ha=De)};
176
- function Ee(){function a(){if(!Ce&&(Ce=!0,l.calledRun=!0,!xa)){l.noFSInit||Ub||(Ub=!0,Tb(),l.stdin=l.stdin,l.stdout=l.stdout,l.stderr=l.stderr,l.stdin?Wb("stdin",l.stdin):Pb("/dev/tty","/dev/stdin"),l.stdout?Wb("stdout",null,l.stdout):Pb("/dev/tty","/dev/stdout"),l.stderr?Wb("stderr",null,l.stderr):Pb("/dev/tty1","/dev/stderr"),Rb("/dev/stdin",0),Rb("/dev/stdout",1),Rb("/dev/stderr",1));yb=!1;Ta(Ca);aa(l);if(l.onRuntimeInitialized)l.onRuntimeInitialized();if(l.postRun)for("function"==typeof l.postRun&&
177
- (l.postRun=[l.postRun]);l.postRun.length;){var b=l.postRun.shift();Da.unshift(b)}Ta(Da)}}if(!(0<Fa)){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)Ea();Ta(Ba);0<Fa||(l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1);a()},1)):a())}}if(l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);0<l.preInit.length;)l.preInit.pop()();Ee();
8
+ var m = moduleArg, aa, ba;
9
+ m.ready = new Promise((a, b) => {
10
+ aa = a;
11
+ ba = b;
12
+ });
13
+ function ca() {
14
+ function a(g) {
15
+ const k = d;
16
+ c = b = 0;
17
+ d = new Map();
18
+ k.forEach(p => {
19
+ try {
20
+ p(g);
21
+ } catch (n) {
22
+ console.error(n);
23
+ }
24
+ });
25
+ this.lb();
26
+ e && e.Rb();
27
+ }
28
+ let b = 0, c = 0, d = new Map(), e = null, f = null;
29
+ this.requestAnimationFrame = function(g) {
30
+ b || (b = requestAnimationFrame(a.bind(this)));
31
+ const k = ++c;
32
+ d.set(k, g);
33
+ return k;
34
+ };
35
+ this.cancelAnimationFrame = function(g) {
36
+ d.delete(g);
37
+ b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
38
+ };
39
+ this.Pb = function(g) {
40
+ f && (document.body.remove(f), f = null);
41
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
42
+ f.innerHTML = "RIVE FPS " + k.toFixed(1);
43
+ }, document.body.appendChild(f));
44
+ e = new function() {
45
+ let k = 0, p = 0;
46
+ this.Rb = function() {
47
+ var n = performance.now();
48
+ p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
49
+ };
50
+ }();
51
+ };
52
+ this.lb = function() {
53
+ };
54
+ }
55
+ function da() {
56
+ console.assert(!0);
57
+ const a = new Map();
58
+ let b = -Infinity;
59
+ this.push = function(c) {
60
+ c = c + 255 >> 8;
61
+ a.has(c) && clearTimeout(a.get(c));
62
+ a.set(c, setTimeout(function() {
63
+ a.delete(c);
64
+ 0 == a.length ? b = -Infinity : c == b && (b = Math.max(...a.keys()), console.assert(b < c));
65
+ }, 1000));
66
+ b = Math.max(c, b);
67
+ return b << 8;
68
+ };
69
+ }
70
+ const ea = m.onRuntimeInitialized;
71
+ m.onRuntimeInitialized = function() {
72
+ ea && ea();
73
+ let a = m.decodeFont;
74
+ m.decodeFont = function(c, d) {
75
+ c = a(c);
76
+ d(c);
77
+ };
78
+ const b = m.FileAssetLoader;
79
+ m.ptrToAsset = c => {
80
+ let d = m.ptrToFileAsset(c);
81
+ return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
82
+ };
83
+ m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
84
+ this.__parent.__construct.call(this);
85
+ this.Cb = c;
86
+ }, loadContents:function(c, d) {
87
+ c = m.ptrToAsset(c);
88
+ return this.Cb(c, d);
89
+ },});
90
+ m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
91
+ this.__parent.__construct.call(this);
92
+ }, loadContents:function(c) {
93
+ let d = m.ptrToAsset(c);
94
+ c = d.cdnUuid;
95
+ if ("" === c) {
96
+ return !1;
97
+ }
98
+ (function(e, f) {
99
+ var g = new XMLHttpRequest();
100
+ g.responseType = "arraybuffer";
101
+ g.onreadystatechange = function() {
102
+ 4 == g.readyState && 200 == g.status && f(g);
103
+ };
104
+ g.open("GET", e, !0);
105
+ g.send(null);
106
+ })(d.cdnBaseUrl + "/" + c, e => {
107
+ d.decode(new Uint8Array(e.response));
108
+ });
109
+ return !0;
110
+ },});
111
+ m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
112
+ this.__parent.__construct.call(this);
113
+ this.gb = [];
114
+ }, addLoader:function(c) {
115
+ this.gb.push(c);
116
+ }, loadContents:function(c, d) {
117
+ for (let e of this.gb) {
118
+ if (e.loadContents(c, d)) {
119
+ return !0;
120
+ }
121
+ }
122
+ return !1;
123
+ },});
124
+ };
125
+ const fa = m.onRuntimeInitialized;
126
+ m.onRuntimeInitialized = function() {
127
+ function a(l) {
128
+ this.F = l;
129
+ this.zb = l.getContext("2d");
130
+ this.Eb = e;
131
+ this.S = [];
132
+ this.ja = 0;
133
+ this.clear = function() {
134
+ console.assert(0 == this.ja);
135
+ this.S = [];
136
+ f.delete(this);
137
+ };
138
+ this.save = function() {
139
+ ++this.ja;
140
+ this.S.push(e.save.bind(e));
141
+ };
142
+ this.restore = function() {
143
+ 0 < this.ja && (this.S.push(e.restore.bind(e)), --this.ja);
144
+ };
145
+ this.transform = function(r) {
146
+ this.S.push(e.transform.bind(e, r));
147
+ };
148
+ this.align = function(r, x, z, H) {
149
+ this.S.push(e.align.bind(e, r, x, z, H));
150
+ };
151
+ this.flush = function() {
152
+ console.assert(0 == this.ja);
153
+ f.add(this);
154
+ d && c();
155
+ };
156
+ }
157
+ function b(l) {
158
+ var r = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, x = l.getContext("webgl2", r);
159
+ x || (x = l.getContext("webgl", r));
160
+ var z = x, H = ha(ja), C = {handle:H, attributes:r, version:r.Fc, Ua:z};
161
+ z.canvas && (z.canvas.xc = C);
162
+ ja[H] = C;
163
+ ("undefined" == typeof r.Ob || r.Ob) && ka(C);
164
+ la(H);
165
+ r = g(l.width, l.height);
166
+ r.Bb = H;
167
+ r.F = l;
168
+ r.Wa = l.width;
169
+ r.Va = l.height;
170
+ r.Ab = x;
171
+ return r;
172
+ }
173
+ function c() {
174
+ if (e) {
175
+ var l = e.Db, r = 0, x = 0, z = 0, H = Array(f.size), C = 0;
176
+ for (var L of f) {
177
+ L.da = Math.min(L.F.width, l), L.ca = Math.min(L.F.height, l), L.Ja = L.ca * L.da, r = Math.max(r, L.da), x = Math.max(x, L.ca), z += L.Ja, H[C++] = L;
178
+ }
179
+ f.clear();
180
+ if (!(0 >= z)) {
181
+ r = 1 << (0 >= r ? 0 : 32 - Math.clz32(r - 1));
182
+ for (x = 1 << (0 >= x ? 0 : 32 - Math.clz32(x - 1)); x * r < z;) {
183
+ r <= x ? r *= 2 : x *= 2;
184
+ }
185
+ r = Math.min(r, l);
186
+ r = Math.min(x, l);
187
+ H.sort((ia, Fb) => Fb.Ja - ia.Ja);
188
+ z = new m.DynamicRectanizer(l);
189
+ for (L = 0; L < H.length;) {
190
+ z.reset(r, x);
191
+ for (C = L; C < H.length; ++C) {
192
+ var O = H[C], M = z.addRect(O.da, O.ca);
193
+ if (0 > M) {
194
+ console.assert(C > L);
195
+ break;
196
+ }
197
+ O.qa = M & 65535;
198
+ O.ra = M >> 16;
199
+ }
200
+ O = p.push(z.drawWidth());
201
+ M = n.push(z.drawHeight());
202
+ console.assert(O >= z.drawWidth());
203
+ console.assert(M >= z.drawHeight());
204
+ console.assert(O <= l);
205
+ console.assert(M <= l);
206
+ e.F.width != O && (e.F.width = O);
207
+ e.F.height != M && (e.F.height = M);
208
+ e.clear();
209
+ for (O = L; O < C; ++O) {
210
+ M = H[O];
211
+ e.saveClipRect(M.qa, M.ra, M.qa + M.da, M.ra + M.ca);
212
+ let ia = new m.Mat2D();
213
+ ia.xx = M.da / M.F.width;
214
+ ia.yy = M.ca / M.F.height;
215
+ ia.xy = ia.yx = 0;
216
+ ia.tx = M.qa;
217
+ ia.ty = M.ra;
218
+ e.transform(ia);
219
+ for (const Fb of M.S) {
220
+ Fb();
221
+ }
222
+ e.restoreClipRect();
223
+ M.S = [];
224
+ }
225
+ for (e.flush(); L < C; ++L) {
226
+ O = H[L], M = O.zb, M.globalCompositeOperation = "copy", M.drawImage(e.F, O.qa, O.ra, O.da, O.ca, 0, 0, O.F.width, O.F.height);
227
+ }
228
+ L = C;
229
+ }
230
+ }
231
+ }
232
+ }
233
+ fa && fa();
234
+ const d = navigator.userAgent.match(/firefox|fxios/i);
235
+ let e = null;
236
+ const f = new Set(), g = m.makeRenderer;
237
+ m.makeRenderer = function(l, r) {
238
+ return r ? (e || (e = b(document.createElement("canvas")), r = e.Ab, e.Db = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE))), new a(l)) : b(l);
239
+ };
240
+ const k = m.Artboard.prototype.draw;
241
+ m.Artboard.prototype.draw = function(l) {
242
+ l.S ? l.S.push(k.bind(this, l.Eb)) : k.call(this, l);
243
+ };
244
+ const p = new da(), n = new da(), u = new ca();
245
+ m.requestAnimationFrame = u.requestAnimationFrame.bind(u);
246
+ m.cancelAnimationFrame = u.cancelAnimationFrame.bind(u);
247
+ m.enableFPSCounter = u.Pb.bind(u);
248
+ u.lb = c;
249
+ m.resolveAnimationFrame = c;
250
+ let v = m.load;
251
+ m.load = function(l, r, x = !0) {
252
+ const z = new m.FallbackFileAssetLoader();
253
+ void 0 !== r && z.addLoader(r);
254
+ x && (r = new m.CDNFileAssetLoader(), z.addLoader(r));
255
+ return Promise.resolve(v(l, z));
256
+ };
257
+ const y = m.WebGLRenderer.prototype.clear;
258
+ m.WebGLRenderer.prototype.clear = function() {
259
+ la(this.Bb);
260
+ const l = this.F;
261
+ if (this.Wa != l.width || this.Va != l.height) {
262
+ this.resize(l.width, l.height), this.Wa = l.width, this.Va = l.height;
263
+ }
264
+ y.call(this);
265
+ };
266
+ m.decodeImage = function(l, r) {
267
+ l = m.decodeImageSkia(l);
268
+ r(l);
269
+ };
270
+ };
271
+ var ma = Object.assign({}, m), na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ra;
272
+ if (na || oa) {
273
+ oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ra = a => {
274
+ var b = new XMLHttpRequest();
275
+ b.open("GET", a, !1);
276
+ b.responseType = "arraybuffer";
277
+ b.send(null);
278
+ return new Uint8Array(b.response);
279
+ }), qa = (a, b, c) => {
280
+ var d = new XMLHttpRequest();
281
+ d.open("GET", a, !0);
282
+ d.responseType = "arraybuffer";
283
+ d.onload = () => {
284
+ 200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
285
+ };
286
+ d.onerror = c;
287
+ d.send(null);
288
+ };
289
+ }
290
+ var sa = console.log.bind(console), ta = console.error.bind(console);
291
+ Object.assign(m, ma);
292
+ ma = null;
293
+ var noExitRuntime = !0;
294
+ "object" != typeof WebAssembly && ua("no native wasm support detected");
295
+ var va, q, wa = !1, t, w, xa, ya, A, B, D, za;
296
+ function Aa() {
297
+ var a = va.buffer;
298
+ m.HEAP8 = t = new Int8Array(a);
299
+ m.HEAP16 = xa = new Int16Array(a);
300
+ m.HEAP32 = A = new Int32Array(a);
301
+ m.HEAPU8 = w = new Uint8Array(a);
302
+ m.HEAPU16 = ya = new Uint16Array(a);
303
+ m.HEAPU32 = B = new Uint32Array(a);
304
+ m.HEAPF32 = D = new Float32Array(a);
305
+ m.HEAPF64 = za = new Float64Array(a);
306
+ }
307
+ var Ba, Ca = [], Da = [], Ea = [], Fa = 0, Ga = null, Ha = null;
308
+ function ua(a) {
309
+ a = "Aborted(" + a + ")";
310
+ ta(a);
311
+ wa = !0;
312
+ a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
313
+ ba(a);
314
+ throw a;
315
+ }
316
+ function Ia(a) {
317
+ return a.startsWith("data:application/octet-stream;base64,");
318
+ }
319
+ var Ja;
320
+ Ja = "webgl_advanced.wasm";
321
+ Ia(Ja) || (Ja = pa + Ja);
322
+ function Ka(a) {
323
+ if (ra) {
324
+ return ra(a);
325
+ }
326
+ throw "both async and sync fetching of the wasm failed";
327
+ }
328
+ function La(a) {
329
+ if (na || oa) {
330
+ if ("function" == typeof fetch && !a.startsWith("file://")) {
331
+ return fetch(a, {credentials:"same-origin"}).then(b => {
332
+ if (!b.ok) {
333
+ throw "failed to load wasm binary file at '" + a + "'";
334
+ }
335
+ return b.arrayBuffer();
336
+ }).catch(() => Ka(a));
337
+ }
338
+ if (qa) {
339
+ return new Promise((b, c) => {
340
+ qa(a, d => b(new Uint8Array(d)), c);
341
+ });
342
+ }
343
+ }
344
+ return Promise.resolve().then(() => Ka(a));
345
+ }
346
+ function Ma(a, b, c) {
347
+ return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
348
+ ta("failed to asynchronously prepare wasm: " + d);
349
+ ua(d);
350
+ });
351
+ }
352
+ function Na(a, b) {
353
+ var c = Ja;
354
+ return "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
355
+ ta("wasm streaming compile failed: " + e);
356
+ ta("falling back to ArrayBuffer instantiation");
357
+ return Ma(c, a, b);
358
+ }));
359
+ }
360
+ var E, F, Ra = {490268:(a, b, c, d, e) => {
361
+ if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
362
+ return 0;
363
+ }
364
+ if ("undefined" === typeof window.h) {
365
+ window.h = {Ea:0};
366
+ window.h.H = {};
367
+ window.h.H.Da = a;
368
+ window.h.H.capture = b;
369
+ window.h.H.La = c;
370
+ window.h.ha = {};
371
+ window.h.ha.stopped = d;
372
+ window.h.ha.tb = e;
373
+ let f = window.h;
374
+ f.C = [];
375
+ f.vc = function(g) {
376
+ for (var k = 0; k < f.C.length; ++k) {
377
+ if (null == f.C[k]) {
378
+ return f.C[k] = g, k;
379
+ }
380
+ }
381
+ f.C.push(g);
382
+ return f.C.length - 1;
383
+ };
384
+ f.yb = function(g) {
385
+ for (f.C[g] = null; 0 < f.C.length;) {
386
+ if (null == f.C[f.C.length - 1]) {
387
+ f.C.pop();
388
+ } else {
389
+ break;
390
+ }
391
+ }
392
+ };
393
+ f.Kc = function(g) {
394
+ for (var k = 0; k < f.C.length; ++k) {
395
+ if (f.C[k] == g) {
396
+ return f.yb(k);
397
+ }
398
+ }
399
+ };
400
+ f.ua = function(g) {
401
+ return f.C[g];
402
+ };
403
+ f.xb = ["touchend", "click"];
404
+ f.unlock = function() {
405
+ for (var g = 0; g < f.C.length; ++g) {
406
+ var k = f.C[g];
407
+ null != k && null != k.I && k.state === f.ha.tb && k.I.resume().then(() => {
408
+ Oa(k.mb);
409
+ }, p => {
410
+ console.error("Failed to resume audiocontext", p);
411
+ });
412
+ }
413
+ f.xb.map(function(p) {
414
+ document.removeEventListener(p, f.unlock, !0);
415
+ });
416
+ };
417
+ f.xb.map(function(g) {
418
+ document.addEventListener(g, f.unlock, !0);
419
+ });
420
+ }
421
+ window.h.Ea += 1;
422
+ return 1;
423
+ }, 492446:() => {
424
+ "undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
425
+ }, 492610:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492714:() => {
426
+ try {
427
+ var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
428
+ a.close();
429
+ return b;
430
+ } catch (c) {
431
+ return 0;
432
+ }
433
+ }, 492885:(a, b, c, d, e, f) => {
434
+ if ("undefined" === typeof window.h) {
435
+ return -1;
436
+ }
437
+ var g = {}, k = {};
438
+ a == window.h.H.Da && 0 != c && (k.sampleRate = c);
439
+ g.I = new (window.AudioContext || window.webkitAudioContext)(k);
440
+ g.I.suspend();
441
+ g.state = window.h.ha.stopped;
442
+ c = 0;
443
+ a != window.h.H.Da && (c = b);
444
+ g.Y = g.I.createScriptProcessor(d, c, b);
445
+ g.Y.onaudioprocess = function(p) {
446
+ if (null == g.va || 0 == g.va.length) {
447
+ g.va = new Float32Array(D.buffer, e, d * b);
448
+ }
449
+ if (a == window.h.H.capture || a == window.h.H.La) {
450
+ for (var n = 0; n < b; n += 1) {
451
+ for (var u = p.inputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
452
+ v[y * b + n] = u[y];
453
+ }
454
+ }
455
+ Pa(f, d, e);
456
+ }
457
+ if (a == window.h.H.Da || a == window.h.H.La) {
458
+ for (Qa(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
459
+ for (u = p.outputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
460
+ u[y] = v[y * b + n];
461
+ }
462
+ }
463
+ } else {
464
+ for (n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
465
+ p.outputBuffer.getChannelData(n).fill(0.0);
466
+ }
467
+ }
468
+ };
469
+ a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
470
+ g.Fa = g.I.createMediaStreamSource(p);
471
+ g.Fa.connect(g.Y);
472
+ g.Y.connect(g.I.destination);
473
+ }).catch(function(p) {
474
+ console.log("Failed to get user media: " + p);
475
+ });
476
+ a == window.h.H.Da && g.Y.connect(g.I.destination);
477
+ g.mb = f;
478
+ return window.h.vc(g);
479
+ }, 495762:a => window.h.ua(a).I.sampleRate, 495835:a => {
480
+ a = window.h.ua(a);
481
+ void 0 !== a.Y && (a.Y.onaudioprocess = function() {
482
+ }, a.Y.disconnect(), a.Y = void 0);
483
+ void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
484
+ a.I.close();
485
+ a.I = void 0;
486
+ a.mb = void 0;
487
+ }, 496235:a => {
488
+ window.h.yb(a);
489
+ }, 496285:a => {
490
+ a = window.h.ua(a);
491
+ a.I.resume();
492
+ a.state = window.h.ha.tb;
493
+ }, 496424:a => {
494
+ a = window.h.ua(a);
495
+ a.I.suspend();
496
+ a.state = window.h.ha.stopped;
497
+ }}, Sa = (a, b) => {
498
+ for (var c = 0, d = a.length - 1; 0 <= d; d--) {
499
+ var e = a[d];
500
+ "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
501
+ }
502
+ if (b) {
503
+ for (; c; c--) {
504
+ a.unshift("..");
505
+ }
506
+ }
507
+ return a;
508
+ }, Ta = a => {
509
+ var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
510
+ (a = Sa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
511
+ a && c && (a += "/");
512
+ return (b ? "/" : "") + a;
513
+ }, Ua = a => {
514
+ var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
515
+ a = b[0];
516
+ b = b[1];
517
+ if (!a && !b) {
518
+ return ".";
519
+ }
520
+ b && (b = b.substr(0, b.length - 1));
521
+ return a + b;
522
+ }, Va = a => {
523
+ if ("/" === a) {
524
+ return "/";
525
+ }
526
+ a = Ta(a);
527
+ a = a.replace(/\/$/, "");
528
+ var b = a.lastIndexOf("/");
529
+ return -1 === b ? a : a.substr(b + 1);
530
+ }, Wa = () => {
531
+ if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
532
+ return a => crypto.getRandomValues(a);
533
+ }
534
+ ua("initRandomDevice");
535
+ }, Xa = a => (Xa = Wa())(a);
536
+ function Ya() {
537
+ for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
538
+ b = 0 <= c ? arguments[c] : "/";
539
+ if ("string" != typeof b) {
540
+ throw new TypeError("Arguments to path.resolve must be strings");
541
+ }
542
+ if (!b) {
543
+ return "";
544
+ }
545
+ a = b + "/" + a;
546
+ b = "/" === b.charAt(0);
547
+ }
548
+ a = Sa(a.split("/").filter(d => !!d), !b).join("/");
549
+ return (b ? "/" : "") + a || ".";
550
+ }
551
+ var Za = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, $a = (a, b, c) => {
552
+ var d = b + c;
553
+ for (c = b; a[c] && !(c >= d);) {
554
+ ++c;
555
+ }
556
+ if (16 < c - b && a.buffer && Za) {
557
+ return Za.decode(a.subarray(b, c));
558
+ }
559
+ for (d = ""; b < c;) {
560
+ var e = a[b++];
561
+ if (e & 128) {
562
+ var f = a[b++] & 63;
563
+ if (192 == (e & 224)) {
564
+ d += String.fromCharCode((e & 31) << 6 | f);
565
+ } else {
566
+ var g = a[b++] & 63;
567
+ e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | g : (e & 7) << 18 | f << 12 | g << 6 | a[b++] & 63;
568
+ 65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
569
+ }
570
+ } else {
571
+ d += String.fromCharCode(e);
572
+ }
573
+ }
574
+ return d;
575
+ }, ab = [], bb = a => {
576
+ for (var b = 0, c = 0; c < a.length; ++c) {
577
+ var d = a.charCodeAt(c);
578
+ 127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
579
+ }
580
+ return b;
581
+ }, cb = (a, b, c, d) => {
582
+ if (!(0 < d)) {
583
+ return 0;
584
+ }
585
+ var e = c;
586
+ d = c + d - 1;
587
+ for (var f = 0; f < a.length; ++f) {
588
+ var g = a.charCodeAt(f);
589
+ if (55296 <= g && 57343 >= g) {
590
+ var k = a.charCodeAt(++f);
591
+ g = 65536 + ((g & 1023) << 10) | k & 1023;
592
+ }
593
+ if (127 >= g) {
594
+ if (c >= d) {
595
+ break;
596
+ }
597
+ b[c++] = g;
598
+ } else {
599
+ if (2047 >= g) {
600
+ if (c + 1 >= d) {
601
+ break;
602
+ }
603
+ b[c++] = 192 | g >> 6;
604
+ } else {
605
+ if (65535 >= g) {
606
+ if (c + 2 >= d) {
607
+ break;
608
+ }
609
+ b[c++] = 224 | g >> 12;
610
+ } else {
611
+ if (c + 3 >= d) {
612
+ break;
613
+ }
614
+ b[c++] = 240 | g >> 18;
615
+ b[c++] = 128 | g >> 12 & 63;
616
+ }
617
+ b[c++] = 128 | g >> 6 & 63;
618
+ }
619
+ b[c++] = 128 | g & 63;
620
+ }
621
+ }
622
+ b[c] = 0;
623
+ return c - e;
624
+ };
625
+ function db(a, b) {
626
+ var c = Array(bb(a) + 1);
627
+ a = cb(a, c, 0, c.length);
628
+ b && (c.length = a);
629
+ return c;
630
+ }
631
+ var eb = [];
632
+ function fb(a, b) {
633
+ eb[a] = {input:[], D:[], U:b};
634
+ gb(a, hb);
635
+ }
636
+ var hb = {open:function(a) {
637
+ var b = eb[a.node.la];
638
+ if (!b) {
639
+ throw new G(43);
640
+ }
641
+ a.s = b;
642
+ a.seekable = !1;
643
+ }, close:function(a) {
644
+ a.s.U.ta(a.s);
645
+ }, ta:function(a) {
646
+ a.s.U.ta(a.s);
647
+ }, read:function(a, b, c, d) {
648
+ if (!a.s || !a.s.U.eb) {
649
+ throw new G(60);
650
+ }
651
+ for (var e = 0, f = 0; f < d; f++) {
652
+ try {
653
+ var g = a.s.U.eb(a.s);
654
+ } catch (k) {
655
+ throw new G(29);
656
+ }
657
+ if (void 0 === g && 0 === e) {
658
+ throw new G(6);
659
+ }
660
+ if (null === g || void 0 === g) {
661
+ break;
662
+ }
663
+ e++;
664
+ b[c + f] = g;
665
+ }
666
+ e && (a.node.timestamp = Date.now());
667
+ return e;
668
+ }, write:function(a, b, c, d) {
669
+ if (!a.s || !a.s.U.Pa) {
670
+ throw new G(60);
671
+ }
672
+ try {
673
+ for (var e = 0; e < d; e++) {
674
+ a.s.U.Pa(a.s, b[c + e]);
675
+ }
676
+ } catch (f) {
677
+ throw new G(29);
678
+ }
679
+ d && (a.node.timestamp = Date.now());
680
+ return e;
681
+ },}, ib = {eb:function() {
682
+ a: {
683
+ if (!ab.length) {
684
+ var a = null;
685
+ "undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
686
+ if (!a) {
687
+ a = null;
688
+ break a;
689
+ }
690
+ ab = db(a, !0);
691
+ }
692
+ a = ab.shift();
693
+ }
694
+ return a;
695
+ }, Pa:function(a, b) {
696
+ null === b || 10 === b ? (sa($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
697
+ }, ta:function(a) {
698
+ a.D && 0 < a.D.length && (sa($a(a.D, 0)), a.D = []);
699
+ }, bc:function() {
700
+ return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
701
+ }, cc:function() {
702
+ return 0;
703
+ }, dc:function() {
704
+ return [24, 80];
705
+ },}, jb = {Pa:function(a, b) {
706
+ null === b || 10 === b ? (ta($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
707
+ }, ta:function(a) {
708
+ a.D && 0 < a.D.length && (ta($a(a.D, 0)), a.D = []);
709
+ },};
710
+ function kb(a, b) {
711
+ var c = a.l ? a.l.length : 0;
712
+ c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
713
+ }
714
+ var I = {O:null, T() {
715
+ return I.createNode(null, "/", 16895, 0);
716
+ }, createNode(a, b, c, d) {
717
+ if (24576 === (c & 61440) || 4096 === (c & 61440)) {
718
+ throw new G(63);
719
+ }
720
+ I.O || (I.O = {dir:{node:{M:I.j.M, P:I.j.P, ka:I.j.ka, Ba:I.j.Ba, rb:I.j.rb, wb:I.j.wb, sb:I.j.sb, pb:I.j.pb, Ga:I.j.Ga}, stream:{$:I.m.$}}, file:{node:{M:I.j.M, P:I.j.P}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, sa:I.m.sa, ib:I.m.ib, kb:I.m.kb}}, link:{node:{M:I.j.M, P:I.j.P, ma:I.j.ma}, stream:{}}, Xa:{node:{M:I.j.M, P:I.j.P}, stream:lb}});
721
+ c = mb(a, b, c, d);
722
+ 16384 === (c.mode & 61440) ? (c.j = I.O.dir.node, c.m = I.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = I.O.file.node, c.m = I.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = I.O.link.node, c.m = I.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = I.O.Xa.node, c.m = I.O.Xa.stream);
723
+ c.timestamp = Date.now();
724
+ a && (a.l[b] = c, a.timestamp = c.timestamp);
725
+ return c;
726
+ }, Ec(a) {
727
+ return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
728
+ }, j:{M(a) {
729
+ var b = {};
730
+ b.Mb = 8192 === (a.mode & 61440) ? a.id : 1;
731
+ b.fb = a.id;
732
+ b.mode = a.mode;
733
+ b.jc = 1;
734
+ b.uid = 0;
735
+ b.Xb = 0;
736
+ b.la = a.la;
737
+ 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
738
+ b.Fb = new Date(a.timestamp);
739
+ b.hc = new Date(a.timestamp);
740
+ b.Jb = new Date(a.timestamp);
741
+ b.Gb = 4096;
742
+ b.Hb = Math.ceil(b.size / b.Gb);
743
+ return b;
744
+ }, P(a, b) {
745
+ void 0 !== b.mode && (a.mode = b.mode);
746
+ void 0 !== b.timestamp && (a.timestamp = b.timestamp);
747
+ if (void 0 !== b.size && (b = b.size, a.v != b)) {
748
+ if (0 == b) {
749
+ a.l = null, a.v = 0;
750
+ } else {
751
+ var c = a.l;
752
+ a.l = new Uint8Array(b);
753
+ c && a.l.set(c.subarray(0, Math.min(b, a.v)));
754
+ a.v = b;
755
+ }
756
+ }
757
+ }, ka() {
758
+ throw nb[44];
759
+ }, Ba(a, b, c, d) {
760
+ return I.createNode(a, b, c, d);
761
+ }, rb(a, b, c) {
762
+ if (16384 === (a.mode & 61440)) {
763
+ try {
764
+ var d = ob(b, c);
765
+ } catch (f) {
766
+ }
767
+ if (d) {
768
+ for (var e in d.l) {
769
+ throw new G(55);
770
+ }
771
+ }
772
+ }
773
+ delete a.parent.l[a.name];
774
+ a.parent.timestamp = Date.now();
775
+ a.name = c;
776
+ b.l[c] = a;
777
+ b.timestamp = a.parent.timestamp;
778
+ a.parent = b;
779
+ }, wb(a, b) {
780
+ delete a.l[b];
781
+ a.timestamp = Date.now();
782
+ }, sb(a, b) {
783
+ var c = ob(a, b), d;
784
+ for (d in c.l) {
785
+ throw new G(55);
786
+ }
787
+ delete a.l[b];
788
+ a.timestamp = Date.now();
789
+ }, pb(a) {
790
+ var b = [".", ".."], c;
791
+ for (c in a.l) {
792
+ a.l.hasOwnProperty(c) && b.push(c);
793
+ }
794
+ return b;
795
+ }, Ga(a, b, c) {
796
+ a = I.createNode(a, b, 41471, 0);
797
+ a.link = c;
798
+ return a;
799
+ }, ma(a) {
800
+ if (40960 !== (a.mode & 61440)) {
801
+ throw new G(28);
802
+ }
803
+ return a.link;
804
+ },}, m:{read(a, b, c, d, e) {
805
+ var f = a.node.l;
806
+ if (e >= a.node.v) {
807
+ return 0;
808
+ }
809
+ a = Math.min(a.node.v - e, d);
810
+ if (8 < a && f.subarray) {
811
+ b.set(f.subarray(e, e + a), c);
812
+ } else {
813
+ for (d = 0; d < a; d++) {
814
+ b[c + d] = f[e + d];
815
+ }
816
+ }
817
+ return a;
818
+ }, write(a, b, c, d, e, f) {
819
+ b.buffer === t.buffer && (f = !1);
820
+ if (!d) {
821
+ return 0;
822
+ }
823
+ a = a.node;
824
+ a.timestamp = Date.now();
825
+ if (b.subarray && (!a.l || a.l.subarray)) {
826
+ if (f) {
827
+ return a.l = b.subarray(c, c + d), a.v = d;
828
+ }
829
+ if (0 === a.v && 0 === e) {
830
+ return a.l = b.slice(c, c + d), a.v = d;
831
+ }
832
+ if (e + d <= a.v) {
833
+ return a.l.set(b.subarray(c, c + d), e), d;
834
+ }
835
+ }
836
+ kb(a, e + d);
837
+ if (a.l.subarray && b.subarray) {
838
+ a.l.set(b.subarray(c, c + d), e);
839
+ } else {
840
+ for (f = 0; f < d; f++) {
841
+ a.l[e + f] = b[c + f];
842
+ }
843
+ }
844
+ a.v = Math.max(a.v, e + d);
845
+ return d;
846
+ }, $(a, b, c) {
847
+ 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
848
+ if (0 > b) {
849
+ throw new G(28);
850
+ }
851
+ return b;
852
+ }, sa(a, b, c) {
853
+ kb(a.node, b + c);
854
+ a.node.v = Math.max(a.node.v, b + c);
855
+ }, ib(a, b, c, d, e) {
856
+ if (32768 !== (a.node.mode & 61440)) {
857
+ throw new G(43);
858
+ }
859
+ a = a.node.l;
860
+ if (e & 2 || a.buffer !== t.buffer) {
861
+ if (0 < c || c + b < a.length) {
862
+ a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
863
+ }
864
+ c = !0;
865
+ b = 65536 * Math.ceil(b / 65536);
866
+ (e = pb(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
867
+ if (!b) {
868
+ throw new G(48);
869
+ }
870
+ t.set(a, b);
871
+ } else {
872
+ c = !1, b = a.byteOffset;
873
+ }
874
+ return {o:b, L:c};
875
+ }, kb(a, b, c, d) {
876
+ I.m.write(a, b, 0, d, c, !1);
877
+ return 0;
878
+ },},};
879
+ function qb(a, b) {
880
+ var c = 0;
881
+ a && (c |= 365);
882
+ b && (c |= 146);
883
+ return c;
884
+ }
885
+ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {}, yb = (a, b = {}) => {
886
+ a = Ya(a);
887
+ if (!a) {
888
+ return {path:"", node:null};
889
+ }
890
+ b = Object.assign({bb:!0, Ra:0}, b);
891
+ if (8 < b.Ra) {
892
+ throw new G(32);
893
+ }
894
+ a = a.split("/").filter(g => !!g);
895
+ for (var c = rb, d = "/", e = 0; e < a.length; e++) {
896
+ var f = e === a.length - 1;
897
+ if (f && b.parent) {
898
+ break;
899
+ }
900
+ c = ob(c, a[e]);
901
+ d = Ta(d + "/" + a[e]);
902
+ c.Ca && (!f || f && b.bb) && (c = c.Ca.root);
903
+ if (!f || b.Ma) {
904
+ for (f = 0; 40960 === (c.mode & 61440);) {
905
+ if (c = xb(d), d = Ya(Ua(d), c), c = yb(d, {Ra:b.Ra + 1}).node, 40 < f++) {
906
+ throw new G(32);
907
+ }
908
+ }
909
+ }
910
+ }
911
+ return {path:d, node:c};
912
+ }, zb = a => {
913
+ for (var b;;) {
914
+ if (a === a.parent) {
915
+ return a = a.T.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
916
+ }
917
+ b = b ? `${a.name}/${b}` : a.name;
918
+ a = a.parent;
919
+ }
920
+ }, Ab = (a, b) => {
921
+ for (var c = 0, d = 0; d < b.length; d++) {
922
+ c = (c << 5) - c + b.charCodeAt(d) | 0;
923
+ }
924
+ return (a + c >>> 0) % vb.length;
925
+ }, ob = (a, b) => {
926
+ var c;
927
+ if (c = (c = Bb(a, "x")) ? c : a.j.ka ? 0 : 2) {
928
+ throw new G(c, a);
929
+ }
930
+ for (c = vb[Ab(a.id, b)]; c; c = c.ic) {
931
+ var d = c.name;
932
+ if (c.parent.id === a.id && d === b) {
933
+ return c;
934
+ }
935
+ }
936
+ return a.j.ka(a, b);
937
+ }, mb = (a, b, c, d) => {
938
+ a = new Cb(a, b, c, d);
939
+ b = Ab(a.parent.id, a.name);
940
+ a.ic = vb[b];
941
+ return vb[b] = a;
942
+ }, Db = a => {
943
+ var b = ["r", "w", "rw"][a & 3];
944
+ a & 512 && (b += "w");
945
+ return b;
946
+ }, Bb = (a, b) => {
947
+ if (wb) {
948
+ return 0;
949
+ }
950
+ if (!b.includes("r") || a.mode & 292) {
951
+ if (b.includes("w") && !(a.mode & 146) || b.includes("x") && !(a.mode & 73)) {
952
+ return 2;
953
+ }
954
+ } else {
955
+ return 2;
956
+ }
957
+ return 0;
958
+ }, Eb = (a, b) => {
959
+ try {
960
+ return ob(a, b), 20;
961
+ } catch (c) {
962
+ }
963
+ return Bb(a, "wx");
964
+ }, Gb = () => {
965
+ for (var a = 0; 4096 >= a; a++) {
966
+ if (!tb[a]) {
967
+ return a;
968
+ }
969
+ }
970
+ throw new G(33);
971
+ }, Hb = a => {
972
+ a = tb[a];
973
+ if (!a) {
974
+ throw new G(8);
975
+ }
976
+ return a;
977
+ }, Jb = (a, b = -1) => {
978
+ Ib || (Ib = function() {
979
+ this.h = {};
980
+ }, Ib.prototype = {}, Object.defineProperties(Ib.prototype, {object:{get() {
981
+ return this.node;
982
+ }, set(c) {
983
+ this.node = c;
984
+ }}, flags:{get() {
985
+ return this.h.flags;
986
+ }, set(c) {
987
+ this.h.flags = c;
988
+ },}, position:{get() {
989
+ return this.h.position;
990
+ }, set(c) {
991
+ this.h.position = c;
992
+ },},}));
993
+ a = Object.assign(new Ib(), a);
994
+ -1 == b && (b = Gb());
995
+ a.X = b;
996
+ return tb[b] = a;
997
+ }, lb = {open:a => {
998
+ a.m = sb[a.node.la].m;
999
+ a.m.open && a.m.open(a);
1000
+ }, $:() => {
1001
+ throw new G(70);
1002
+ },}, gb = (a, b) => {
1003
+ sb[a] = {m:b};
1004
+ }, Kb = (a, b) => {
1005
+ var c = "/" === b, d = !b;
1006
+ if (c && rb) {
1007
+ throw new G(10);
1008
+ }
1009
+ if (!c && !d) {
1010
+ var e = yb(b, {bb:!1});
1011
+ b = e.path;
1012
+ e = e.node;
1013
+ if (e.Ca) {
1014
+ throw new G(10);
1015
+ }
1016
+ if (16384 !== (e.mode & 61440)) {
1017
+ throw new G(54);
1018
+ }
1019
+ }
1020
+ b = {type:a, Ic:{}, jb:b, fc:[]};
1021
+ a = a.T(b);
1022
+ a.T = b;
1023
+ b.root = a;
1024
+ c ? rb = a : e && (e.Ca = b, e.T && e.T.fc.push(b));
1025
+ }, Lb = (a, b, c) => {
1026
+ var d = yb(a, {parent:!0}).node;
1027
+ a = Va(a);
1028
+ if (!a || "." === a || ".." === a) {
1029
+ throw new G(28);
1030
+ }
1031
+ var e = Eb(d, a);
1032
+ if (e) {
1033
+ throw new G(e);
1034
+ }
1035
+ if (!d.j.Ba) {
1036
+ throw new G(63);
1037
+ }
1038
+ return d.j.Ba(d, a, b, c);
1039
+ }, Mb = (a, b, c) => {
1040
+ "undefined" == typeof c && (c = b, b = 438);
1041
+ Lb(a, b | 8192, c);
1042
+ }, Nb = (a, b) => {
1043
+ if (!Ya(a)) {
1044
+ throw new G(44);
1045
+ }
1046
+ var c = yb(b, {parent:!0}).node;
1047
+ if (!c) {
1048
+ throw new G(44);
1049
+ }
1050
+ b = Va(b);
1051
+ var d = Eb(c, b);
1052
+ if (d) {
1053
+ throw new G(d);
1054
+ }
1055
+ if (!c.j.Ga) {
1056
+ throw new G(63);
1057
+ }
1058
+ c.j.Ga(c, b, a);
1059
+ }, xb = a => {
1060
+ a = yb(a).node;
1061
+ if (!a) {
1062
+ throw new G(44);
1063
+ }
1064
+ if (!a.j.ma) {
1065
+ throw new G(28);
1066
+ }
1067
+ return Ya(zb(a.parent), a.j.ma(a));
1068
+ }, Pb = (a, b, c) => {
1069
+ if ("" === a) {
1070
+ throw new G(44);
1071
+ }
1072
+ if ("string" == typeof b) {
1073
+ var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
1074
+ if ("undefined" == typeof d) {
1075
+ throw Error(`Unknown file open mode: ${b}`);
1076
+ }
1077
+ b = d;
1078
+ }
1079
+ c = b & 64 ? ("undefined" == typeof c ? 438 : c) & 4095 | 32768 : 0;
1080
+ if ("object" == typeof a) {
1081
+ var e = a;
1082
+ } else {
1083
+ a = Ta(a);
1084
+ try {
1085
+ e = yb(a, {Ma:!(b & 131072)}).node;
1086
+ } catch (f) {
1087
+ }
1088
+ }
1089
+ d = !1;
1090
+ if (b & 64) {
1091
+ if (e) {
1092
+ if (b & 128) {
1093
+ throw new G(20);
1094
+ }
1095
+ } else {
1096
+ e = Lb(a, c, 0), d = !0;
1097
+ }
1098
+ }
1099
+ if (!e) {
1100
+ throw new G(44);
1101
+ }
1102
+ 8192 === (e.mode & 61440) && (b &= -513);
1103
+ if (b & 65536 && 16384 !== (e.mode & 61440)) {
1104
+ throw new G(54);
1105
+ }
1106
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Db(b) || b & 512) ? 31 : Bb(e, Db(b)) : 44)) {
1107
+ throw new G(c);
1108
+ }
1109
+ if (b & 512 && !d) {
1110
+ c = e;
1111
+ c = "string" == typeof c ? yb(c, {Ma:!0}).node : c;
1112
+ if (!c.j.P) {
1113
+ throw new G(63);
1114
+ }
1115
+ if (16384 === (c.mode & 61440)) {
1116
+ throw new G(31);
1117
+ }
1118
+ if (32768 !== (c.mode & 61440)) {
1119
+ throw new G(28);
1120
+ }
1121
+ if (d = Bb(c, "w")) {
1122
+ throw new G(d);
1123
+ }
1124
+ c.j.P(c, {size:0, timestamp:Date.now()});
1125
+ }
1126
+ b &= -131713;
1127
+ e = Jb({node:e, path:zb(e), flags:b, seekable:!0, position:0, m:e.m, wc:[], error:!1});
1128
+ e.m.open && e.m.open(e);
1129
+ !m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1130
+ return e;
1131
+ }, Qb = (a, b, c) => {
1132
+ if (null === a.X) {
1133
+ throw new G(8);
1134
+ }
1135
+ if (!a.seekable || !a.m.$) {
1136
+ throw new G(70);
1137
+ }
1138
+ if (0 != c && 1 != c && 2 != c) {
1139
+ throw new G(28);
1140
+ }
1141
+ a.position = a.m.$(a, b, c);
1142
+ a.wc = [];
1143
+ }, Rb = () => {
1144
+ G || (G = function(a, b) {
1145
+ this.name = "ErrnoError";
1146
+ this.node = b;
1147
+ this.mc = function(c) {
1148
+ this.W = c;
1149
+ };
1150
+ this.mc(a);
1151
+ this.message = "FS error";
1152
+ }, G.prototype = Error(), G.prototype.constructor = G, [44].forEach(a => {
1153
+ nb[a] = new G(a);
1154
+ nb[a].stack = "<generic error, no stack>";
1155
+ }));
1156
+ }, Sb, Ub = (a, b, c) => {
1157
+ a = Ta("/dev/" + a);
1158
+ var d = qb(!!b, !!c);
1159
+ Tb || (Tb = 64);
1160
+ var e = Tb++ << 8 | 0;
1161
+ gb(e, {open:f => {
1162
+ f.seekable = !1;
1163
+ }, close:() => {
1164
+ c && c.buffer && c.buffer.length && c(10);
1165
+ }, read:(f, g, k, p) => {
1166
+ for (var n = 0, u = 0; u < p; u++) {
1167
+ try {
1168
+ var v = b();
1169
+ } catch (y) {
1170
+ throw new G(29);
1171
+ }
1172
+ if (void 0 === v && 0 === n) {
1173
+ throw new G(6);
1174
+ }
1175
+ if (null === v || void 0 === v) {
1176
+ break;
1177
+ }
1178
+ n++;
1179
+ g[k + u] = v;
1180
+ }
1181
+ n && (f.node.timestamp = Date.now());
1182
+ return n;
1183
+ }, write:(f, g, k, p) => {
1184
+ for (var n = 0; n < p; n++) {
1185
+ try {
1186
+ c(g[k + n]);
1187
+ } catch (u) {
1188
+ throw new G(29);
1189
+ }
1190
+ }
1191
+ p && (f.node.timestamp = Date.now());
1192
+ return n;
1193
+ }});
1194
+ Mb(a, d, e);
1195
+ }, Tb, Vb = {}, Ib, Ob, Wb = void 0;
1196
+ function Xb() {
1197
+ Wb += 4;
1198
+ return A[Wb - 4 >> 2];
1199
+ }
1200
+ function Yb(a) {
1201
+ if (void 0 === a) {
1202
+ return "_unknown";
1203
+ }
1204
+ a = a.replace(/[^a-zA-Z0-9_]/g, "$");
1205
+ var b = a.charCodeAt(0);
1206
+ return 48 <= b && 57 >= b ? `_${a}` : a;
1207
+ }
1208
+ function Zb(a, b) {
1209
+ a = Yb(a);
1210
+ return {[a]:function() {
1211
+ return b.apply(this, arguments);
1212
+ }}[a];
1213
+ }
1214
+ function $b() {
1215
+ this.L = [void 0];
1216
+ this.cb = [];
1217
+ }
1218
+ var J = new $b(), ac = void 0;
1219
+ function K(a) {
1220
+ throw new ac(a);
1221
+ }
1222
+ var bc = a => {
1223
+ a || K("Cannot use deleted val. handle = " + a);
1224
+ return J.get(a).value;
1225
+ }, cc = a => {
1226
+ switch(a) {
1227
+ case void 0:
1228
+ return 1;
1229
+ case null:
1230
+ return 2;
1231
+ case !0:
1232
+ return 3;
1233
+ case !1:
1234
+ return 4;
1235
+ default:
1236
+ return J.sa({qb:1, value:a});
1237
+ }
1238
+ };
1239
+ function dc(a) {
1240
+ var b = Error, c = Zb(a, function(d) {
1241
+ this.name = a;
1242
+ this.message = d;
1243
+ d = Error(d).stack;
1244
+ void 0 !== d && (this.stack = this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
1245
+ });
1246
+ c.prototype = Object.create(b.prototype);
1247
+ c.prototype.constructor = c;
1248
+ c.prototype.toString = function() {
1249
+ return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
1250
+ };
1251
+ return c;
1252
+ }
1253
+ var ec = void 0, fc = void 0;
1254
+ function N(a) {
1255
+ for (var b = ""; w[a];) {
1256
+ b += fc[w[a++]];
1257
+ }
1258
+ return b;
1259
+ }
1260
+ var gc = [];
1261
+ function hc() {
1262
+ for (; gc.length;) {
1263
+ var a = gc.pop();
1264
+ a.g.ga = !1;
1265
+ a["delete"]();
1266
+ }
1267
+ }
1268
+ var ic = void 0, jc = {};
1269
+ function kc(a, b) {
1270
+ for (void 0 === b && K("ptr should not be undefined"); a.A;) {
1271
+ b = a.oa(b), a = a.A;
1272
+ }
1273
+ return b;
1274
+ }
1275
+ var lc = {};
1276
+ function mc(a) {
1277
+ a = nc(a);
1278
+ var b = N(a);
1279
+ oc(a);
1280
+ return b;
1281
+ }
1282
+ function pc(a, b) {
1283
+ var c = lc[a];
1284
+ void 0 === c && K(b + " has unknown type " + mc(a));
1285
+ return c;
1286
+ }
1287
+ function qc() {
1288
+ }
1289
+ var rc = !1;
1290
+ function sc(a) {
1291
+ --a.count.value;
1292
+ 0 === a.count.value && (a.G ? a.K.V(a.G) : a.u.i.V(a.o));
1293
+ }
1294
+ function tc(a, b, c) {
1295
+ if (b === c) {
1296
+ return a;
1297
+ }
1298
+ if (void 0 === c.A) {
1299
+ return null;
1300
+ }
1301
+ a = tc(a, b, c.A);
1302
+ return null === a ? null : c.Nb(a);
1303
+ }
1304
+ var uc = {};
1305
+ function vc(a, b) {
1306
+ b = kc(a, b);
1307
+ return jc[b];
1308
+ }
1309
+ var wc = void 0;
1310
+ function xc(a) {
1311
+ throw new wc(a);
1312
+ }
1313
+ function yc(a, b) {
1314
+ b.u && b.o || xc("makeClassHandle requires ptr and ptrType");
1315
+ !!b.K !== !!b.G && xc("Both smartPtrType and smartPtr must be specified");
1316
+ b.count = {value:1};
1317
+ return zc(Object.create(a, {g:{value:b,},}));
1318
+ }
1319
+ function zc(a) {
1320
+ if ("undefined" === typeof FinalizationRegistry) {
1321
+ return zc = b => b, a;
1322
+ }
1323
+ rc = new FinalizationRegistry(b => {
1324
+ sc(b.g);
1325
+ });
1326
+ zc = b => {
1327
+ var c = b.g;
1328
+ c.G && rc.register(b, {g:c}, b);
1329
+ return b;
1330
+ };
1331
+ qc = b => {
1332
+ rc.unregister(b);
1333
+ };
1334
+ return zc(a);
1335
+ }
1336
+ var Ac = {};
1337
+ function Bc(a) {
1338
+ for (; a.length;) {
1339
+ var b = a.pop();
1340
+ a.pop()(b);
1341
+ }
1342
+ }
1343
+ function Cc(a) {
1344
+ return this.fromWireType(A[a >> 2]);
1345
+ }
1346
+ var Dc = {}, Ec = {};
1347
+ function P(a, b, c) {
1348
+ function d(k) {
1349
+ k = c(k);
1350
+ k.length !== a.length && xc("Mismatched type converter count");
1351
+ for (var p = 0; p < a.length; ++p) {
1352
+ Fc(a[p], k[p]);
1353
+ }
1354
+ }
1355
+ a.forEach(function(k) {
1356
+ Ec[k] = b;
1357
+ });
1358
+ var e = Array(b.length), f = [], g = 0;
1359
+ b.forEach((k, p) => {
1360
+ lc.hasOwnProperty(k) ? e[p] = lc[k] : (f.push(k), Dc.hasOwnProperty(k) || (Dc[k] = []), Dc[k].push(() => {
1361
+ e[p] = lc[k];
1362
+ ++g;
1363
+ g === f.length && d(e);
1364
+ }));
1365
+ });
1366
+ 0 === f.length && d(e);
1367
+ }
1368
+ function Gc(a) {
1369
+ switch(a) {
1370
+ case 1:
1371
+ return 0;
1372
+ case 2:
1373
+ return 1;
1374
+ case 4:
1375
+ return 2;
1376
+ case 8:
1377
+ return 3;
1378
+ default:
1379
+ throw new TypeError(`Unknown type size: ${a}`);
1380
+ }
1381
+ }
1382
+ function Hc(a, b, c = {}) {
1383
+ var d = b.name;
1384
+ a || K(`type "${d}" must have a positive integer typeid pointer`);
1385
+ if (lc.hasOwnProperty(a)) {
1386
+ if (c.Zb) {
1387
+ return;
1388
+ }
1389
+ K(`Cannot register type '${d}' twice`);
1390
+ }
1391
+ lc[a] = b;
1392
+ delete Ec[a];
1393
+ Dc.hasOwnProperty(a) && (b = Dc[a], delete Dc[a], b.forEach(e => e()));
1394
+ }
1395
+ function Fc(a, b, c = {}) {
1396
+ if (!("argPackAdvance" in b)) {
1397
+ throw new TypeError("registerType registeredInstance requires argPackAdvance");
1398
+ }
1399
+ Hc(a, b, c);
1400
+ }
1401
+ function Ic(a) {
1402
+ K(a.g.u.i.name + " instance already deleted");
1403
+ }
1404
+ function Jc() {
1405
+ }
1406
+ function Kc(a, b, c) {
1407
+ if (void 0 === a[b].B) {
1408
+ var d = a[b];
1409
+ a[b] = function() {
1410
+ a[b].B.hasOwnProperty(arguments.length) || K(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
1411
+ return a[b].B[arguments.length].apply(this, arguments);
1412
+ };
1413
+ a[b].B = [];
1414
+ a[b].B[d.ea] = d;
1415
+ }
1416
+ }
1417
+ function Lc(a, b, c) {
1418
+ m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && K(`Cannot register public name '${a}' twice`), Kc(m, a, a), m.hasOwnProperty(c) && K(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Hc = c));
1419
+ }
1420
+ function Mc(a, b, c, d, e, f, g, k) {
1421
+ this.name = a;
1422
+ this.constructor = b;
1423
+ this.N = c;
1424
+ this.V = d;
1425
+ this.A = e;
1426
+ this.Sb = f;
1427
+ this.oa = g;
1428
+ this.Nb = k;
1429
+ this.nb = [];
1430
+ }
1431
+ function Nc(a, b, c) {
1432
+ for (; b !== c;) {
1433
+ b.oa || K(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
1434
+ }
1435
+ return a;
1436
+ }
1437
+ function Oc(a, b) {
1438
+ if (null === b) {
1439
+ return this.Oa && K(`null is not a valid ${this.name}`), 0;
1440
+ }
1441
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1442
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1443
+ return Nc(b.g.o, b.g.u.i, this.i);
1444
+ }
1445
+ function Qc(a, b) {
1446
+ if (null === b) {
1447
+ this.Oa && K(`null is not a valid ${this.name}`);
1448
+ if (this.xa) {
1449
+ var c = this.Qa();
1450
+ null !== a && a.push(this.V, c);
1451
+ return c;
1452
+ }
1453
+ return 0;
1454
+ }
1455
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1456
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1457
+ !this.wa && b.g.u.wa && K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1458
+ c = Nc(b.g.o, b.g.u.i, this.i);
1459
+ if (this.xa) {
1460
+ switch(void 0 === b.g.G && K("Passing raw pointer to smart pointer is illegal"), this.qc) {
1461
+ case 0:
1462
+ b.g.K === this ? c = b.g.G : K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1463
+ break;
1464
+ case 1:
1465
+ c = b.g.G;
1466
+ break;
1467
+ case 2:
1468
+ if (b.g.K === this) {
1469
+ c = b.g.G;
1470
+ } else {
1471
+ var d = b.clone();
1472
+ c = this.lc(c, cc(function() {
1473
+ d["delete"]();
1474
+ }));
1475
+ null !== a && a.push(this.V, c);
1476
+ }
1477
+ break;
1478
+ default:
1479
+ K("Unsupporting sharing policy");
1480
+ }
1481
+ }
1482
+ return c;
1483
+ }
1484
+ function Rc(a, b) {
1485
+ if (null === b) {
1486
+ return this.Oa && K(`null is not a valid ${this.name}`), 0;
1487
+ }
1488
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1489
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1490
+ b.g.u.wa && K(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1491
+ return Nc(b.g.o, b.g.u.i, this.i);
1492
+ }
1493
+ function Sc(a, b, c, d) {
1494
+ this.name = a;
1495
+ this.i = b;
1496
+ this.Oa = c;
1497
+ this.wa = d;
1498
+ this.xa = !1;
1499
+ this.V = this.lc = this.Qa = this.ob = this.qc = this.kc = void 0;
1500
+ void 0 !== b.A ? this.toWireType = Qc : (this.toWireType = d ? Oc : Rc, this.J = null);
1501
+ }
1502
+ function Tc(a, b, c) {
1503
+ m.hasOwnProperty(a) || xc("Replacing nonexistant public symbol");
1504
+ void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
1505
+ }
1506
+ var Uc = [], Q = a => {
1507
+ var b = Uc[a];
1508
+ b || (a >= Uc.length && (Uc.length = a + 1), Uc[a] = b = Ba.get(a));
1509
+ return b;
1510
+ }, Vc = (a, b) => {
1511
+ var c = [];
1512
+ return function() {
1513
+ c.length = 0;
1514
+ Object.assign(c, arguments);
1515
+ if (a.includes("j")) {
1516
+ var d = m["dynCall_" + a];
1517
+ d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1518
+ } else {
1519
+ d = Q(b).apply(null, c);
1520
+ }
1521
+ return d;
1522
+ };
1523
+ };
1524
+ function R(a, b) {
1525
+ a = N(a);
1526
+ var c = a.includes("j") ? Vc(a, b) : Q(b);
1527
+ "function" != typeof c && K(`unknown function pointer with signature ${a}: ${b}`);
1528
+ return c;
1529
+ }
1530
+ var Wc = void 0;
1531
+ function Xc(a, b) {
1532
+ function c(f) {
1533
+ e[f] || lc[f] || (Ec[f] ? Ec[f].forEach(c) : (d.push(f), e[f] = !0));
1534
+ }
1535
+ var d = [], e = {};
1536
+ b.forEach(c);
1537
+ throw new Wc(`${a}: ` + d.map(mc).join([", "]));
1538
+ }
1539
+ function Yc(a, b, c, d, e) {
1540
+ var f = b.length;
1541
+ 2 > f && K("argTypes array size mismatch! Must at least get return value and 'this' types!");
1542
+ var g = null !== b[1] && null !== c, k = !1;
1543
+ for (c = 1; c < b.length; ++c) {
1544
+ if (null !== b[c] && void 0 === b[c].J) {
1545
+ k = !0;
1546
+ break;
1547
+ }
1548
+ }
1549
+ var p = "void" !== b[0].name, n = f - 2, u = Array(n), v = [], y = [];
1550
+ return function() {
1551
+ arguments.length !== n && K(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
1552
+ y.length = 0;
1553
+ v.length = g ? 2 : 1;
1554
+ v[0] = e;
1555
+ if (g) {
1556
+ var l = b[1].toWireType(y, this);
1557
+ v[1] = l;
1558
+ }
1559
+ for (var r = 0; r < n; ++r) {
1560
+ u[r] = b[r + 2].toWireType(y, arguments[r]), v.push(u[r]);
1561
+ }
1562
+ r = d.apply(null, v);
1563
+ if (k) {
1564
+ Bc(y);
1565
+ } else {
1566
+ for (var x = g ? 1 : 2; x < b.length; x++) {
1567
+ var z = 1 === x ? l : u[x - 2];
1568
+ null !== b[x].J && b[x].J(z);
1569
+ }
1570
+ }
1571
+ l = p ? b[0].fromWireType(r) : void 0;
1572
+ return l;
1573
+ };
1574
+ }
1575
+ function Zc(a, b) {
1576
+ for (var c = [], d = 0; d < a; d++) {
1577
+ c.push(B[b + 4 * d >> 2]);
1578
+ }
1579
+ return c;
1580
+ }
1581
+ function $c(a, b, c) {
1582
+ a instanceof Object || K(`${c} with invalid "this": ${a}`);
1583
+ a instanceof b.i.constructor || K(`${c} incompatible with "this" of type ${a.constructor.name}`);
1584
+ a.g.o || K(`cannot call emscripten binding method ${c} on deleted object`);
1585
+ return Nc(a.g.o, a.g.u.i, b.i);
1586
+ }
1587
+ function ad(a) {
1588
+ a >= J.h && 0 === --J.get(a).qb && J.Yb(a);
1589
+ }
1590
+ function bd(a, b, c) {
1591
+ switch(b) {
1592
+ case 0:
1593
+ return function(d) {
1594
+ return this.fromWireType((c ? t : w)[d]);
1595
+ };
1596
+ case 1:
1597
+ return function(d) {
1598
+ return this.fromWireType((c ? xa : ya)[d >> 1]);
1599
+ };
1600
+ case 2:
1601
+ return function(d) {
1602
+ return this.fromWireType((c ? A : B)[d >> 2]);
1603
+ };
1604
+ default:
1605
+ throw new TypeError("Unknown integer type: " + a);
1606
+ }
1607
+ }
1608
+ function Pc(a) {
1609
+ if (null === a) {
1610
+ return "null";
1611
+ }
1612
+ var b = typeof a;
1613
+ return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
1614
+ }
1615
+ function cd(a, b) {
1616
+ switch(b) {
1617
+ case 2:
1618
+ return function(c) {
1619
+ return this.fromWireType(D[c >> 2]);
1620
+ };
1621
+ case 3:
1622
+ return function(c) {
1623
+ return this.fromWireType(za[c >> 3]);
1624
+ };
1625
+ default:
1626
+ throw new TypeError("Unknown float type: " + a);
1627
+ }
1628
+ }
1629
+ function dd(a, b, c) {
1630
+ switch(b) {
1631
+ case 0:
1632
+ return c ? function(d) {
1633
+ return t[d];
1634
+ } : function(d) {
1635
+ return w[d];
1636
+ };
1637
+ case 1:
1638
+ return c ? function(d) {
1639
+ return xa[d >> 1];
1640
+ } : function(d) {
1641
+ return ya[d >> 1];
1642
+ };
1643
+ case 2:
1644
+ return c ? function(d) {
1645
+ return A[d >> 2];
1646
+ } : function(d) {
1647
+ return B[d >> 2];
1648
+ };
1649
+ default:
1650
+ throw new TypeError("Unknown integer type: " + a);
1651
+ }
1652
+ }
1653
+ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
1654
+ var c = a >> 1;
1655
+ for (var d = c + b / 2; !(c >= d) && ya[c];) {
1656
+ ++c;
1657
+ }
1658
+ c <<= 1;
1659
+ if (32 < c - a && ed) {
1660
+ return ed.decode(w.subarray(a, c));
1661
+ }
1662
+ c = "";
1663
+ for (d = 0; !(d >= b / 2); ++d) {
1664
+ var e = xa[a + 2 * d >> 1];
1665
+ if (0 == e) {
1666
+ break;
1667
+ }
1668
+ c += String.fromCharCode(e);
1669
+ }
1670
+ return c;
1671
+ }, gd = (a, b, c) => {
1672
+ void 0 === c && (c = 2147483647);
1673
+ if (2 > c) {
1674
+ return 0;
1675
+ }
1676
+ c -= 2;
1677
+ var d = b;
1678
+ c = c < 2 * a.length ? c / 2 : a.length;
1679
+ for (var e = 0; e < c; ++e) {
1680
+ xa[b >> 1] = a.charCodeAt(e), b += 2;
1681
+ }
1682
+ xa[b >> 1] = 0;
1683
+ return b - d;
1684
+ }, hd = a => 2 * a.length, jd = (a, b) => {
1685
+ for (var c = 0, d = ""; !(c >= b / 4);) {
1686
+ var e = A[a + 4 * c >> 2];
1687
+ if (0 == e) {
1688
+ break;
1689
+ }
1690
+ ++c;
1691
+ 65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1692
+ }
1693
+ return d;
1694
+ }, kd = (a, b, c) => {
1695
+ void 0 === c && (c = 2147483647);
1696
+ if (4 > c) {
1697
+ return 0;
1698
+ }
1699
+ var d = b;
1700
+ c = d + c - 4;
1701
+ for (var e = 0; e < a.length; ++e) {
1702
+ var f = a.charCodeAt(e);
1703
+ if (55296 <= f && 57343 >= f) {
1704
+ var g = a.charCodeAt(++e);
1705
+ f = 65536 + ((f & 1023) << 10) | g & 1023;
1706
+ }
1707
+ A[b >> 2] = f;
1708
+ b += 4;
1709
+ if (b + 4 > c) {
1710
+ break;
1711
+ }
1712
+ }
1713
+ A[b >> 2] = 0;
1714
+ return b - d;
1715
+ }, ld = a => {
1716
+ for (var b = 0, c = 0; c < a.length; ++c) {
1717
+ var d = a.charCodeAt(c);
1718
+ 55296 <= d && 57343 >= d && ++c;
1719
+ b += 4;
1720
+ }
1721
+ return b;
1722
+ }, md = {};
1723
+ function nd(a) {
1724
+ var b = md[a];
1725
+ return void 0 === b ? N(a) : b;
1726
+ }
1727
+ var od = [];
1728
+ function pd(a) {
1729
+ var b = od.length;
1730
+ od.push(a);
1731
+ return b;
1732
+ }
1733
+ function qd(a, b) {
1734
+ for (var c = Array(a), d = 0; d < a; ++d) {
1735
+ c[d] = pc(B[b + 4 * d >> 2], "parameter " + d);
1736
+ }
1737
+ return c;
1738
+ }
1739
+ var rd = [], sd = [];
1740
+ function td(a) {
1741
+ var b = a.getExtension("ANGLE_instanced_arrays");
1742
+ b && (a.vertexAttribDivisor = function(c, d) {
1743
+ b.vertexAttribDivisorANGLE(c, d);
1744
+ }, a.drawArraysInstanced = function(c, d, e, f) {
1745
+ b.drawArraysInstancedANGLE(c, d, e, f);
1746
+ }, a.drawElementsInstanced = function(c, d, e, f, g) {
1747
+ b.drawElementsInstancedANGLE(c, d, e, f, g);
1748
+ });
1749
+ }
1750
+ function ud(a) {
1751
+ var b = a.getExtension("OES_vertex_array_object");
1752
+ b && (a.createVertexArray = function() {
1753
+ return b.createVertexArrayOES();
1754
+ }, a.deleteVertexArray = function(c) {
1755
+ b.deleteVertexArrayOES(c);
1756
+ }, a.bindVertexArray = function(c) {
1757
+ b.bindVertexArrayOES(c);
1758
+ }, a.isVertexArray = function(c) {
1759
+ return b.isVertexArrayOES(c);
1760
+ });
1761
+ }
1762
+ function vd(a) {
1763
+ var b = a.getExtension("WEBGL_draw_buffers");
1764
+ b && (a.drawBuffers = function(c, d) {
1765
+ b.drawBuffersWEBGL(c, d);
1766
+ });
1767
+ }
1768
+ var wd = 1, xd = [], yd = [], zd = [], Ad = [], Bd = [], Cd = [], Dd = [], ja = [], Ed = [], Fd = [], Gd = {}, Hd = {}, Id = 4;
1769
+ function S(a) {
1770
+ Jd || (Jd = a);
1771
+ }
1772
+ function ha(a) {
1773
+ for (var b = wd++, c = a.length; c < b; c++) {
1774
+ a[c] = null;
1775
+ }
1776
+ return b;
1777
+ }
1778
+ function la(a) {
1779
+ T = ja[a];
1780
+ m.Dc = U = T && T.Ua;
1781
+ return !(a && !U);
1782
+ }
1783
+ function ka(a) {
1784
+ a || (a = T);
1785
+ if (!a.$b) {
1786
+ a.$b = !0;
1787
+ var b = a.Ua;
1788
+ td(b);
1789
+ ud(b);
1790
+ vd(b);
1791
+ b.Za = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1792
+ b.hb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1793
+ 2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1794
+ if (2 > a.version || !b.$a) {
1795
+ b.$a = b.getExtension("EXT_disjoint_timer_query");
1796
+ }
1797
+ b.Gc = b.getExtension("WEBGL_multi_draw");
1798
+ (b.getSupportedExtensions() || []).forEach(function(c) {
1799
+ c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
1800
+ });
1801
+ }
1802
+ }
1803
+ var Jd, T;
1804
+ function Kd(a, b) {
1805
+ U.bindFramebuffer(a, zd[b]);
1806
+ }
1807
+ function Ld(a) {
1808
+ U.bindVertexArray(Dd[a]);
1809
+ }
1810
+ function Md(a, b) {
1811
+ for (var c = 0; c < a; c++) {
1812
+ var d = A[b + 4 * c >> 2];
1813
+ U.deleteVertexArray(Dd[d]);
1814
+ Dd[d] = null;
1815
+ }
1816
+ }
1817
+ var Nd = [];
1818
+ function Od(a, b, c, d) {
1819
+ U.drawElements(a, b, c, d);
1820
+ }
1821
+ function Pd(a, b, c, d) {
1822
+ for (var e = 0; e < a; e++) {
1823
+ var f = U[c](), g = f && ha(d);
1824
+ f ? (f.name = g, d[g] = f) : S(1282);
1825
+ A[b + 4 * e >> 2] = g;
1826
+ }
1827
+ }
1828
+ function Qd(a, b) {
1829
+ Pd(a, b, "createVertexArray", Dd);
1830
+ }
1831
+ function Rd(a, b) {
1832
+ if (b) {
1833
+ var c = void 0;
1834
+ switch(a) {
1835
+ case 36346:
1836
+ c = 1;
1837
+ break;
1838
+ case 36344:
1839
+ return;
1840
+ case 34814:
1841
+ case 36345:
1842
+ c = 0;
1843
+ break;
1844
+ case 34466:
1845
+ var d = U.getParameter(34467);
1846
+ c = d ? d.length : 0;
1847
+ break;
1848
+ case 33309:
1849
+ if (2 > T.version) {
1850
+ S(1282);
1851
+ return;
1852
+ }
1853
+ c = 2 * (U.getSupportedExtensions() || []).length;
1854
+ break;
1855
+ case 33307:
1856
+ case 33308:
1857
+ if (2 > T.version) {
1858
+ S(1280);
1859
+ return;
1860
+ }
1861
+ c = 33307 == a ? 3 : 0;
1862
+ }
1863
+ if (void 0 === c) {
1864
+ switch(d = U.getParameter(a), typeof d) {
1865
+ case "number":
1866
+ c = d;
1867
+ break;
1868
+ case "boolean":
1869
+ c = d ? 1 : 0;
1870
+ break;
1871
+ case "string":
1872
+ S(1280);
1873
+ return;
1874
+ case "object":
1875
+ if (null === d) {
1876
+ switch(a) {
1877
+ case 34964:
1878
+ case 35725:
1879
+ case 34965:
1880
+ case 36006:
1881
+ case 36007:
1882
+ case 32873:
1883
+ case 34229:
1884
+ case 36662:
1885
+ case 36663:
1886
+ case 35053:
1887
+ case 35055:
1888
+ case 36010:
1889
+ case 35097:
1890
+ case 35869:
1891
+ case 32874:
1892
+ case 36389:
1893
+ case 35983:
1894
+ case 35368:
1895
+ case 34068:
1896
+ c = 0;
1897
+ break;
1898
+ default:
1899
+ S(1280);
1900
+ return;
1901
+ }
1902
+ } else {
1903
+ if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
1904
+ for (a = 0; a < d.length; ++a) {
1905
+ A[b + 4 * a >> 2] = d[a];
1906
+ }
1907
+ return;
1908
+ }
1909
+ try {
1910
+ c = d.name | 0;
1911
+ } catch (e) {
1912
+ S(1280);
1913
+ ta("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
1914
+ return;
1915
+ }
1916
+ }
1917
+ break;
1918
+ default:
1919
+ S(1280);
1920
+ ta("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
1921
+ return;
1922
+ }
1923
+ }
1924
+ A[b >> 2] = c;
1925
+ } else {
1926
+ S(1281);
1927
+ }
1928
+ }
1929
+ function Sd(a, b) {
1930
+ Rd(a, b);
1931
+ }
1932
+ var Ud = a => {
1933
+ var b = bb(a) + 1, c = Td(b);
1934
+ c && cb(a, w, c, b);
1935
+ return c;
1936
+ };
1937
+ function Vd(a) {
1938
+ return "]" == a.slice(-1) && a.lastIndexOf("[");
1939
+ }
1940
+ function Wd(a) {
1941
+ a -= 5120;
1942
+ return 0 == a ? t : 1 == a ? w : 2 == a ? xa : 4 == a ? A : 6 == a ? D : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? B : ya;
1943
+ }
1944
+ function Xd(a, b, c, d, e) {
1945
+ a = Wd(a);
1946
+ var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g = Id;
1947
+ return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
1948
+ }
1949
+ function V(a) {
1950
+ var b = U.Kb;
1951
+ if (b) {
1952
+ var c = b.na[a];
1953
+ "number" == typeof c && (b.na[a] = c = U.getUniformLocation(b, b.ub[a] + (0 < c ? "[" + c + "]" : "")));
1954
+ return c;
1955
+ }
1956
+ S(1282);
1957
+ }
1958
+ var Yd = [], Zd = [], $d = {}, be = () => {
1959
+ if (!ae) {
1960
+ var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, b;
1961
+ for (b in $d) {
1962
+ void 0 === $d[b] ? delete a[b] : a[b] = $d[b];
1963
+ }
1964
+ var c = [];
1965
+ for (b in a) {
1966
+ c.push(`${b}=${a[b]}`);
1967
+ }
1968
+ ae = c;
1969
+ }
1970
+ return ae;
1971
+ }, ae, ce = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), de = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ee = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fe = (a, b, c, d) => {
1972
+ function e(l, r, x) {
1973
+ for (l = "number" == typeof l ? l.toString() : l || ""; l.length < r;) {
1974
+ l = x[0] + l;
1975
+ }
1976
+ return l;
1977
+ }
1978
+ function f(l, r) {
1979
+ return e(l, r, "0");
1980
+ }
1981
+ function g(l, r) {
1982
+ function x(H) {
1983
+ return 0 > H ? -1 : 0 < H ? 1 : 0;
1984
+ }
1985
+ var z;
1986
+ 0 === (z = x(l.getFullYear() - r.getFullYear())) && 0 === (z = x(l.getMonth() - r.getMonth())) && (z = x(l.getDate() - r.getDate()));
1987
+ return z;
1988
+ }
1989
+ function k(l) {
1990
+ switch(l.getDay()) {
1991
+ case 0:
1992
+ return new Date(l.getFullYear() - 1, 11, 29);
1993
+ case 1:
1994
+ return l;
1995
+ case 2:
1996
+ return new Date(l.getFullYear(), 0, 3);
1997
+ case 3:
1998
+ return new Date(l.getFullYear(), 0, 2);
1999
+ case 4:
2000
+ return new Date(l.getFullYear(), 0, 1);
2001
+ case 5:
2002
+ return new Date(l.getFullYear() - 1, 11, 31);
2003
+ case 6:
2004
+ return new Date(l.getFullYear() - 1, 11, 30);
2005
+ }
2006
+ }
2007
+ function p(l) {
2008
+ var r = l.aa;
2009
+ for (l = new Date((new Date(l.ba + 1900, 0, 1)).getTime()); 0 < r;) {
2010
+ var x = l.getMonth(), z = (ce(l.getFullYear()) ? de : ee)[x];
2011
+ if (r > z - l.getDate()) {
2012
+ r -= z - l.getDate() + 1, l.setDate(1), 11 > x ? l.setMonth(x + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2013
+ } else {
2014
+ l.setDate(l.getDate() + r);
2015
+ break;
2016
+ }
2017
+ }
2018
+ x = new Date(l.getFullYear() + 1, 0, 4);
2019
+ r = k(new Date(l.getFullYear(), 0, 4));
2020
+ x = k(x);
2021
+ return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
2022
+ }
2023
+ var n = A[d + 40 >> 2];
2024
+ d = {tc:A[d >> 2], sc:A[d + 4 >> 2], Ha:A[d + 8 >> 2], Sa:A[d + 12 >> 2], Ia:A[d + 16 >> 2], ba:A[d + 20 >> 2], R:A[d + 24 >> 2], aa:A[d + 28 >> 2], Jc:A[d + 32 >> 2], rc:A[d + 36 >> 2], uc:n ? n ? $a(w, n) : "" : ""};
2025
+ c = c ? $a(w, c) : "";
2026
+ n = {"%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",};
2027
+ for (var u in n) {
2028
+ c = c.replace(new RegExp(u, "g"), n[u]);
2029
+ }
2030
+ var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
2031
+ n = {"%a":l => v[l.R].substring(0, 3), "%A":l => v[l.R], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Sa, 2), "%e":l => e(l.Sa, 2, " "), "%g":l => p(l).toString().substring(2), "%G":l => p(l), "%H":l => f(l.Ha, 2), "%I":l => {
2032
+ l = l.Ha;
2033
+ 0 == l ? l = 12 : 12 < l && (l -= 12);
2034
+ return f(l, 2);
2035
+ }, "%j":l => {
2036
+ for (var r = 0, x = 0; x <= l.Ia - 1; r += (ce(l.ba + 1900) ? de : ee)[x++]) {
2037
+ }
2038
+ return f(l.Sa + r, 3);
2039
+ }, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.sc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ha && 12 > l.Ha ? "AM" : "PM", "%S":l => f(l.tc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.aa + 7 - l.R) / 7), 2), "%V":l => {
2040
+ var r = Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7);
2041
+ 2 >= (l.R + 371 - l.aa - 2) % 7 && r++;
2042
+ if (r) {
2043
+ 53 == r && (x = (l.R + 371 - l.aa) % 7, 4 == x || 3 == x && ce(l.ba) || (r = 1));
2044
+ } else {
2045
+ r = 52;
2046
+ var x = (l.R + 7 - l.aa - 1) % 7;
2047
+ (4 == x || 5 == x && ce(l.ba % 400 - 1)) && r++;
2048
+ }
2049
+ return f(r, 2);
2050
+ }, "%w":l => l.R, "%W":l => f(Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ba + 1900).toString().substring(2), "%Y":l => l.ba + 1900, "%z":l => {
2051
+ l = l.rc;
2052
+ var r = 0 <= l;
2053
+ l = Math.abs(l) / 60;
2054
+ return (r ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
2055
+ }, "%Z":l => l.uc, "%%":() => "%"};
2056
+ c = c.replace(/%%/g, "\x00\x00");
2057
+ for (u in n) {
2058
+ c.includes(u) && (c = c.replace(new RegExp(u, "g"), n[u](d)));
2059
+ }
2060
+ c = c.replace(/\0\0/g, "%");
2061
+ u = db(c, !1);
2062
+ if (u.length > b) {
2063
+ return 0;
2064
+ }
2065
+ t.set(u, a);
2066
+ return u.length - 1;
2067
+ };
2068
+ function Cb(a, b, c, d) {
2069
+ a || (a = this);
2070
+ this.parent = a;
2071
+ this.T = a.T;
2072
+ this.Ca = null;
2073
+ this.id = ub++;
2074
+ this.name = b;
2075
+ this.mode = c;
2076
+ this.j = {};
2077
+ this.m = {};
2078
+ this.la = d;
2079
+ }
2080
+ Object.defineProperties(Cb.prototype, {read:{get:function() {
2081
+ return 365 === (this.mode & 365);
2082
+ }, set:function(a) {
2083
+ a ? this.mode |= 365 : this.mode &= -366;
2084
+ }}, write:{get:function() {
2085
+ return 146 === (this.mode & 146);
2086
+ }, set:function(a) {
2087
+ a ? this.mode |= 146 : this.mode &= -147;
2088
+ }}});
2089
+ Rb();
2090
+ vb = Array(4096);
2091
+ Kb(I, "/");
2092
+ Lb("/tmp", 16895, 0);
2093
+ Lb("/home", 16895, 0);
2094
+ Lb("/home/web_user", 16895, 0);
2095
+ (() => {
2096
+ Lb("/dev", 16895, 0);
2097
+ gb(259, {read:() => 0, write:(d, e, f, g) => g,});
2098
+ Mb("/dev/null", 259);
2099
+ fb(1280, ib);
2100
+ fb(1536, jb);
2101
+ Mb("/dev/tty", 1280);
2102
+ Mb("/dev/tty1", 1536);
2103
+ var a = new Uint8Array(1024), b = 0, c = () => {
2104
+ 0 === b && (b = Xa(a).byteLength);
2105
+ return a[--b];
2106
+ };
2107
+ Ub("random", c);
2108
+ Ub("urandom", c);
2109
+ Lb("/dev/shm", 16895, 0);
2110
+ Lb("/dev/shm/tmp", 16895, 0);
2111
+ })();
2112
+ (() => {
2113
+ Lb("/proc", 16895, 0);
2114
+ var a = Lb("/proc/self", 16895, 0);
2115
+ Lb("/proc/self/fd", 16895, 0);
2116
+ Kb({T:() => {
2117
+ var b = mb(a, "fd", 16895, 73);
2118
+ b.j = {ka:(c, d) => {
2119
+ var e = Hb(+d);
2120
+ c = {parent:null, T:{jb:"fake"}, j:{ma:() => e.path},};
2121
+ return c.parent = c;
2122
+ }};
2123
+ return b;
2124
+ }}, "/proc/self/fd");
2125
+ })();
2126
+ Object.assign($b.prototype, {get(a) {
2127
+ return this.L[a];
2128
+ }, has(a) {
2129
+ return void 0 !== this.L[a];
2130
+ }, sa(a) {
2131
+ var b = this.cb.pop() || this.L.length;
2132
+ this.L[b] = a;
2133
+ return b;
2134
+ }, Yb(a) {
2135
+ this.L[a] = void 0;
2136
+ this.cb.push(a);
2137
+ }});
2138
+ ac = m.BindingError = class extends Error {
2139
+ constructor(a) {
2140
+ super(a);
2141
+ this.name = "BindingError";
2142
+ }
2143
+ };
2144
+ J.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2145
+ J.h = J.L.length;
2146
+ m.count_emval_handles = function() {
2147
+ for (var a = 0, b = J.h; b < J.L.length; ++b) {
2148
+ void 0 !== J.L[b] && ++a;
2149
+ }
2150
+ return a;
2151
+ };
2152
+ ec = m.PureVirtualError = dc("PureVirtualError");
2153
+ for (var ge = Array(256), he = 0; 256 > he; ++he) {
2154
+ ge[he] = String.fromCharCode(he);
2155
+ }
2156
+ fc = ge;
2157
+ m.getInheritedInstanceCount = function() {
2158
+ return Object.keys(jc).length;
2159
+ };
2160
+ m.getLiveInheritedInstances = function() {
2161
+ var a = [], b;
2162
+ for (b in jc) {
2163
+ jc.hasOwnProperty(b) && a.push(jc[b]);
2164
+ }
2165
+ return a;
2166
+ };
2167
+ m.flushPendingDeletes = hc;
2168
+ m.setDelayFunction = function(a) {
2169
+ ic = a;
2170
+ gc.length && ic && ic(hc);
2171
+ };
2172
+ wc = m.InternalError = class extends Error {
2173
+ constructor(a) {
2174
+ super(a);
2175
+ this.name = "InternalError";
2176
+ }
2177
+ };
2178
+ Jc.prototype.isAliasOf = function(a) {
2179
+ if (!(this instanceof Jc && a instanceof Jc)) {
2180
+ return !1;
2181
+ }
2182
+ var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
2183
+ for (a = a.g.o; b.A;) {
2184
+ c = b.oa(c), b = b.A;
2185
+ }
2186
+ for (; d.A;) {
2187
+ a = d.oa(a), d = d.A;
2188
+ }
2189
+ return b === d && c === a;
2190
+ };
2191
+ Jc.prototype.clone = function() {
2192
+ this.g.o || Ic(this);
2193
+ if (this.g.ia) {
2194
+ return this.g.count.value += 1, this;
2195
+ }
2196
+ var a = zc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2197
+ a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, G:e.G, K:e.K,},}}));
2198
+ a.g.count.value += 1;
2199
+ a.g.ga = !1;
2200
+ return a;
2201
+ };
2202
+ Jc.prototype["delete"] = function() {
2203
+ this.g.o || Ic(this);
2204
+ this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
2205
+ qc(this);
2206
+ sc(this.g);
2207
+ this.g.ia || (this.g.G = void 0, this.g.o = void 0);
2208
+ };
2209
+ Jc.prototype.isDeleted = function() {
2210
+ return !this.g.o;
2211
+ };
2212
+ Jc.prototype.deleteLater = function() {
2213
+ this.g.o || Ic(this);
2214
+ this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
2215
+ gc.push(this);
2216
+ 1 === gc.length && ic && ic(hc);
2217
+ this.g.ga = !0;
2218
+ return this;
2219
+ };
2220
+ Sc.prototype.Tb = function(a) {
2221
+ this.ob && (a = this.ob(a));
2222
+ return a;
2223
+ };
2224
+ Sc.prototype.Ya = function(a) {
2225
+ this.V && this.V(a);
2226
+ };
2227
+ Sc.prototype.argPackAdvance = 8;
2228
+ Sc.prototype.readValueFromPointer = Cc;
2229
+ Sc.prototype.deleteObject = function(a) {
2230
+ if (null !== a) {
2231
+ a["delete"]();
2232
+ }
2233
+ };
2234
+ Sc.prototype.fromWireType = function(a) {
2235
+ function b() {
2236
+ return this.xa ? yc(this.i.N, {u:this.kc, o:c, K:this, G:a,}) : yc(this.i.N, {u:this, o:a,});
2237
+ }
2238
+ var c = this.Tb(a);
2239
+ if (!c) {
2240
+ return this.Ya(a), null;
2241
+ }
2242
+ var d = vc(this.i, c);
2243
+ if (void 0 !== d) {
2244
+ if (0 === d.g.count.value) {
2245
+ return d.g.o = c, d.g.G = a, d.clone();
2246
+ }
2247
+ d = d.clone();
2248
+ this.Ya(a);
2249
+ return d;
2250
+ }
2251
+ d = this.i.Sb(c);
2252
+ d = uc[d];
2253
+ if (!d) {
2254
+ return b.call(this);
2255
+ }
2256
+ d = this.wa ? d.Ib : d.pointerType;
2257
+ var e = tc(c, this.i, d.i);
2258
+ return null === e ? b.call(this) : this.xa ? yc(d.i.N, {u:d, o:e, K:this, G:a,}) : yc(d.i.N, {u:d, o:e,});
2259
+ };
2260
+ Wc = m.UnboundTypeError = dc("UnboundTypeError");
2261
+ for (var U, W = 0; 32 > W; ++W) {
2262
+ Nd.push(Array(W));
2263
+ }
2264
+ var ie = new Float32Array(288);
2265
+ for (W = 0; 288 > W; ++W) {
2266
+ Yd[W] = ie.subarray(0, W + 1);
2267
+ }
2268
+ var je = new Int32Array(288);
2269
+ for (W = 0; 288 > W; ++W) {
2270
+ Zd[W] = je.subarray(0, W + 1);
2271
+ }
2272
+ var Ae = {__syscall_fcntl64:function(a, b, c) {
2273
+ Wb = c;
2274
+ try {
2275
+ var d = Hb(a);
2276
+ switch(b) {
2277
+ case 0:
2278
+ var e = Xb();
2279
+ return 0 > e ? -28 : Jb(d, e).X;
2280
+ case 1:
2281
+ case 2:
2282
+ return 0;
2283
+ case 3:
2284
+ return d.flags;
2285
+ case 4:
2286
+ return e = Xb(), d.flags |= e, 0;
2287
+ case 5:
2288
+ return e = Xb(), xa[e + 0 >> 1] = 2, 0;
2289
+ case 6:
2290
+ case 7:
2291
+ return 0;
2292
+ case 16:
2293
+ case 8:
2294
+ return -28;
2295
+ case 9:
2296
+ return A[ke() >> 2] = 28, -1;
2297
+ default:
2298
+ return -28;
2299
+ }
2300
+ } catch (f) {
2301
+ if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
2302
+ throw f;
2303
+ }
2304
+ return -f.W;
2305
+ }
2306
+ }, __syscall_fstat64:function(a, b) {
2307
+ try {
2308
+ a: {
2309
+ var c = Hb(a).path;
2310
+ try {
2311
+ var d = yb(c, {Ma:!0}).node;
2312
+ if (!d) {
2313
+ throw new G(44);
2314
+ }
2315
+ if (!d.j.M) {
2316
+ throw new G(63);
2317
+ }
2318
+ var e = d.j.M(d);
2319
+ } catch (n) {
2320
+ if (n && n.node && Ta(c) !== Ta(zb(n.node))) {
2321
+ var f = -54;
2322
+ break a;
2323
+ }
2324
+ throw n;
2325
+ }
2326
+ A[b >> 2] = e.Mb;
2327
+ A[b + 4 >> 2] = e.mode;
2328
+ B[b + 8 >> 2] = e.jc;
2329
+ A[b + 12 >> 2] = e.uid;
2330
+ A[b + 16 >> 2] = e.Xb;
2331
+ A[b + 20 >> 2] = e.la;
2332
+ F = [e.size >>> 0, (E = e.size, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2333
+ A[b + 24 >> 2] = F[0];
2334
+ A[b + 28 >> 2] = F[1];
2335
+ A[b + 32 >> 2] = 4096;
2336
+ A[b + 36 >> 2] = e.Hb;
2337
+ var g = e.Fb.getTime(), k = e.hc.getTime(), p = e.Jb.getTime();
2338
+ F = [Math.floor(g / 1000) >>> 0, (E = Math.floor(g / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2339
+ A[b + 40 >> 2] = F[0];
2340
+ A[b + 44 >> 2] = F[1];
2341
+ B[b + 48 >> 2] = g % 1000 * 1000;
2342
+ F = [Math.floor(k / 1000) >>> 0, (E = Math.floor(k / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2343
+ A[b + 56 >> 2] = F[0];
2344
+ A[b + 60 >> 2] = F[1];
2345
+ B[b + 64 >> 2] = k % 1000 * 1000;
2346
+ F = [Math.floor(p / 1000) >>> 0, (E = Math.floor(p / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2347
+ A[b + 72 >> 2] = F[0];
2348
+ A[b + 76 >> 2] = F[1];
2349
+ B[b + 80 >> 2] = p % 1000 * 1000;
2350
+ F = [e.fb >>> 0, (E = e.fb, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2351
+ A[b + 88 >> 2] = F[0];
2352
+ A[b + 92 >> 2] = F[1];
2353
+ f = 0;
2354
+ }
2355
+ return f;
2356
+ } catch (n) {
2357
+ if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
2358
+ throw n;
2359
+ }
2360
+ return -n.W;
2361
+ }
2362
+ }, __syscall_ioctl:function(a, b, c) {
2363
+ Wb = c;
2364
+ try {
2365
+ var d = Hb(a);
2366
+ switch(b) {
2367
+ case 21509:
2368
+ return d.s ? 0 : -59;
2369
+ case 21505:
2370
+ if (!d.s) {
2371
+ return -59;
2372
+ }
2373
+ if (d.s.U.bc) {
2374
+ b = [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,];
2375
+ var e = Xb();
2376
+ A[e >> 2] = 25856;
2377
+ A[e + 4 >> 2] = 5;
2378
+ A[e + 8 >> 2] = 191;
2379
+ A[e + 12 >> 2] = 35387;
2380
+ for (var f = 0; 32 > f; f++) {
2381
+ t[e + f + 17 >> 0] = b[f] || 0;
2382
+ }
2383
+ }
2384
+ return 0;
2385
+ case 21510:
2386
+ case 21511:
2387
+ case 21512:
2388
+ return d.s ? 0 : -59;
2389
+ case 21506:
2390
+ case 21507:
2391
+ case 21508:
2392
+ if (!d.s) {
2393
+ return -59;
2394
+ }
2395
+ if (d.s.U.cc) {
2396
+ for (e = Xb(), b = [], f = 0; 32 > f; f++) {
2397
+ b.push(t[e + f + 17 >> 0]);
2398
+ }
2399
+ }
2400
+ return 0;
2401
+ case 21519:
2402
+ if (!d.s) {
2403
+ return -59;
2404
+ }
2405
+ e = Xb();
2406
+ return A[e >> 2] = 0;
2407
+ case 21520:
2408
+ return d.s ? -28 : -59;
2409
+ case 21531:
2410
+ e = Xb();
2411
+ if (!d.m.ac) {
2412
+ throw new G(59);
2413
+ }
2414
+ return d.m.ac(d, b, e);
2415
+ case 21523:
2416
+ if (!d.s) {
2417
+ return -59;
2418
+ }
2419
+ d.s.U.dc && (f = [24, 80], e = Xb(), xa[e >> 1] = f[0], xa[e + 2 >> 1] = f[1]);
2420
+ return 0;
2421
+ case 21524:
2422
+ return d.s ? 0 : -59;
2423
+ case 21515:
2424
+ return d.s ? 0 : -59;
2425
+ default:
2426
+ return -28;
2427
+ }
2428
+ } catch (g) {
2429
+ if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
2430
+ throw g;
2431
+ }
2432
+ return -g.W;
2433
+ }
2434
+ }, __syscall_openat:function(a, b, c, d) {
2435
+ Wb = d;
2436
+ try {
2437
+ b = b ? $a(w, b) : "";
2438
+ var e = b;
2439
+ if ("/" === e.charAt(0)) {
2440
+ b = e;
2441
+ } else {
2442
+ var f = -100 === a ? "/" : Hb(a).path;
2443
+ if (0 == e.length) {
2444
+ throw new G(44);
2445
+ }
2446
+ b = Ta(f + "/" + e);
2447
+ }
2448
+ var g = d ? Xb() : 0;
2449
+ return Pb(b, c, g).X;
2450
+ } catch (k) {
2451
+ if ("undefined" == typeof Vb || "ErrnoError" !== k.name) {
2452
+ throw k;
2453
+ }
2454
+ return -k.W;
2455
+ }
2456
+ }, _embind_create_inheriting_constructor:function(a, b, c) {
2457
+ a = N(a);
2458
+ b = pc(b, "wrapper");
2459
+ c = bc(c);
2460
+ var d = [].slice, e = b.i, f = e.N, g = e.A.N, k = e.A.constructor;
2461
+ a = Zb(a, function() {
2462
+ e.A.nb.forEach(function(n) {
2463
+ if (this[n] === g[n]) {
2464
+ throw new ec(`Pure virtual function ${n} must be implemented in JavaScript`);
2465
+ }
2466
+ }.bind(this));
2467
+ Object.defineProperty(this, "__parent", {value:f});
2468
+ this.__construct.apply(this, d.call(arguments));
2469
+ });
2470
+ f.__construct = function() {
2471
+ this === f && K("Pass correct 'this' to __construct");
2472
+ var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
2473
+ qc(n);
2474
+ var u = n.g;
2475
+ n.notifyOnDestruction();
2476
+ u.ia = !0;
2477
+ Object.defineProperties(this, {g:{value:u}});
2478
+ zc(this);
2479
+ n = u.o;
2480
+ n = kc(e, n);
2481
+ jc.hasOwnProperty(n) ? K(`Tried to register registered instance: ${n}`) : jc[n] = this;
2482
+ };
2483
+ f.__destruct = function() {
2484
+ this === f && K("Pass correct 'this' to __destruct");
2485
+ qc(this);
2486
+ var n = this.g.o;
2487
+ n = kc(e, n);
2488
+ jc.hasOwnProperty(n) ? delete jc[n] : K(`Tried to unregister unregistered instance: ${n}`);
2489
+ };
2490
+ a.prototype = Object.create(f);
2491
+ for (var p in c) {
2492
+ a.prototype[p] = c[p];
2493
+ }
2494
+ return cc(a);
2495
+ }, _embind_finalize_value_object:function(a) {
2496
+ var b = Ac[a];
2497
+ delete Ac[a];
2498
+ var c = b.Qa, d = b.V, e = b.ab, f = e.map(g => g.Wb).concat(e.map(g => g.oc));
2499
+ P([a], f, g => {
2500
+ var k = {};
2501
+ e.forEach((p, n) => {
2502
+ var u = g[n], v = p.Ub, y = p.Vb, l = g[n + e.length], r = p.nc, x = p.pc;
2503
+ k[p.Qb] = {read:z => u.fromWireType(v(y, z)), write:(z, H) => {
2504
+ var C = [];
2505
+ r(x, z, l.toWireType(C, H));
2506
+ Bc(C);
2507
+ }};
2508
+ });
2509
+ return [{name:b.name, fromWireType:function(p) {
2510
+ var n = {}, u;
2511
+ for (u in k) {
2512
+ n[u] = k[u].read(p);
2513
+ }
2514
+ d(p);
2515
+ return n;
2516
+ }, toWireType:function(p, n) {
2517
+ for (var u in k) {
2518
+ if (!(u in n)) {
2519
+ throw new TypeError(`Missing field: "${u}"`);
2520
+ }
2521
+ }
2522
+ var v = c();
2523
+ for (u in k) {
2524
+ k[u].write(v, n[u]);
2525
+ }
2526
+ null !== p && p.push(d, v);
2527
+ return v;
2528
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:d,}];
2529
+ });
2530
+ }, _embind_register_bigint:function() {
2531
+ }, _embind_register_bool:function(a, b, c, d, e) {
2532
+ var f = Gc(c);
2533
+ b = N(b);
2534
+ Fc(a, {name:b, fromWireType:function(g) {
2535
+ return !!g;
2536
+ }, toWireType:function(g, k) {
2537
+ return k ? d : e;
2538
+ }, argPackAdvance:8, readValueFromPointer:function(g) {
2539
+ if (1 === c) {
2540
+ var k = t;
2541
+ } else if (2 === c) {
2542
+ k = xa;
2543
+ } else if (4 === c) {
2544
+ k = A;
2545
+ } else {
2546
+ throw new TypeError("Unknown boolean type size: " + b);
2547
+ }
2548
+ return this.fromWireType(k[g >> f]);
2549
+ }, J:null,});
2550
+ }, _embind_register_class:function(a, b, c, d, e, f, g, k, p, n, u, v, y) {
2551
+ u = N(u);
2552
+ f = R(e, f);
2553
+ k && (k = R(g, k));
2554
+ n && (n = R(p, n));
2555
+ y = R(v, y);
2556
+ var l = Yb(u);
2557
+ Lc(l, function() {
2558
+ Xc(`Cannot construct ${u} due to unbound types`, [d]);
2559
+ });
2560
+ P([a, b, c], d ? [d] : [], function(r) {
2561
+ r = r[0];
2562
+ if (d) {
2563
+ var x = r.i;
2564
+ var z = x.N;
2565
+ } else {
2566
+ z = Jc.prototype;
2567
+ }
2568
+ r = Zb(l, function() {
2569
+ if (Object.getPrototypeOf(this) !== H) {
2570
+ throw new ac("Use 'new' to construct " + u);
2571
+ }
2572
+ if (void 0 === C.Z) {
2573
+ throw new ac(u + " has no accessible constructor");
2574
+ }
2575
+ var O = C.Z[arguments.length];
2576
+ if (void 0 === O) {
2577
+ throw new ac(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Z).toString()}) parameters instead!`);
2578
+ }
2579
+ return O.apply(this, arguments);
2580
+ });
2581
+ var H = Object.create(z, {constructor:{value:r},});
2582
+ r.prototype = H;
2583
+ var C = new Mc(u, r, H, y, x, f, k, n);
2584
+ C.A && (void 0 === C.A.pa && (C.A.pa = []), C.A.pa.push(C));
2585
+ x = new Sc(u, C, !0, !1);
2586
+ z = new Sc(u + "*", C, !1, !1);
2587
+ var L = new Sc(u + " const*", C, !1, !0);
2588
+ uc[a] = {pointerType:z, Ib:L};
2589
+ Tc(l, r);
2590
+ return [x, z, L];
2591
+ });
2592
+ }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2593
+ var k = Zc(c, d);
2594
+ b = N(b);
2595
+ f = R(e, f);
2596
+ P([], [a], function(p) {
2597
+ function n() {
2598
+ Xc(`Cannot call ${u} due to unbound types`, k);
2599
+ }
2600
+ p = p[0];
2601
+ var u = `${p.name}.${b}`;
2602
+ b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2603
+ var v = p.i.constructor;
2604
+ void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Kc(v, b, u), v[b].B[c - 1] = n);
2605
+ P([], k, function(y) {
2606
+ y = Yc(u, [y[0], null].concat(y.slice(1)), null, f, g);
2607
+ void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
2608
+ if (p.i.pa) {
2609
+ for (const l of p.i.pa) {
2610
+ l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
2611
+ }
2612
+ }
2613
+ return [];
2614
+ });
2615
+ return [];
2616
+ });
2617
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
2618
+ b = N(b);
2619
+ f = R(e, f);
2620
+ P([], [a], function(p) {
2621
+ p = p[0];
2622
+ var n = `${p.name}.${b}`, u = {get() {
2623
+ Xc(`Cannot access ${n} due to unbound types`, [c]);
2624
+ }, enumerable:!0, configurable:!0};
2625
+ u.set = k ? () => {
2626
+ Xc(`Cannot access ${n} due to unbound types`, [c]);
2627
+ } : () => {
2628
+ K(`${n} is a read-only property`);
2629
+ };
2630
+ Object.defineProperty(p.i.constructor, b, u);
2631
+ P([], [c], function(v) {
2632
+ v = v[0];
2633
+ var y = {get() {
2634
+ return v.fromWireType(f(d));
2635
+ }, enumerable:!0};
2636
+ k && (k = R(g, k), y.set = l => {
2637
+ var r = [];
2638
+ k(d, v.toWireType(r, l));
2639
+ Bc(r);
2640
+ });
2641
+ Object.defineProperty(p.i.constructor, b, y);
2642
+ return [];
2643
+ });
2644
+ return [];
2645
+ });
2646
+ }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2647
+ var g = Zc(b, c);
2648
+ e = R(d, e);
2649
+ P([], [a], function(k) {
2650
+ k = k[0];
2651
+ var p = `constructor ${k.name}`;
2652
+ void 0 === k.i.Z && (k.i.Z = []);
2653
+ if (void 0 !== k.i.Z[b - 1]) {
2654
+ throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2655
+ }
2656
+ k.i.Z[b - 1] = () => {
2657
+ Xc(`Cannot construct ${k.name} due to unbound types`, g);
2658
+ };
2659
+ P([], g, function(n) {
2660
+ n.splice(1, 0, null);
2661
+ k.i.Z[b - 1] = Yc(p, n, null, e, f);
2662
+ return [];
2663
+ });
2664
+ return [];
2665
+ });
2666
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
2667
+ var p = Zc(c, d);
2668
+ b = N(b);
2669
+ f = R(e, f);
2670
+ P([], [a], function(n) {
2671
+ function u() {
2672
+ Xc(`Cannot call ${v} due to unbound types`, p);
2673
+ }
2674
+ n = n[0];
2675
+ var v = `${n.name}.${b}`;
2676
+ b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2677
+ k && n.i.nb.push(b);
2678
+ var y = n.i.N, l = y[b];
2679
+ void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (u.ea = c - 2, u.className = n.name, y[b] = u) : (Kc(y, b, v), y[b].B[c - 2] = u);
2680
+ P([], p, function(r) {
2681
+ r = Yc(v, r, n, f, g);
2682
+ void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
2683
+ return [];
2684
+ });
2685
+ return [];
2686
+ });
2687
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, k, p, n) {
2688
+ b = N(b);
2689
+ e = R(d, e);
2690
+ P([], [a], function(u) {
2691
+ u = u[0];
2692
+ var v = `${u.name}.${b}`, y = {get() {
2693
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2694
+ }, enumerable:!0, configurable:!0};
2695
+ y.set = p ? () => {
2696
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2697
+ } : () => {
2698
+ K(v + " is a read-only property");
2699
+ };
2700
+ Object.defineProperty(u.i.N, b, y);
2701
+ P([], p ? [c, g] : [c], function(l) {
2702
+ var r = l[0], x = {get() {
2703
+ var H = $c(this, u, v + " getter");
2704
+ return r.fromWireType(e(f, H));
2705
+ }, enumerable:!0};
2706
+ if (p) {
2707
+ p = R(k, p);
2708
+ var z = l[1];
2709
+ x.set = function(H) {
2710
+ var C = $c(this, u, v + " setter"), L = [];
2711
+ p(n, C, z.toWireType(L, H));
2712
+ Bc(L);
2713
+ };
2714
+ }
2715
+ Object.defineProperty(u.i.N, b, x);
2716
+ return [];
2717
+ });
2718
+ return [];
2719
+ });
2720
+ }, _embind_register_emval:function(a, b) {
2721
+ b = N(b);
2722
+ Fc(a, {name:b, fromWireType:function(c) {
2723
+ var d = bc(c);
2724
+ ad(c);
2725
+ return d;
2726
+ }, toWireType:function(c, d) {
2727
+ return cc(d);
2728
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:null,});
2729
+ }, _embind_register_enum:function(a, b, c, d) {
2730
+ function e() {
2731
+ }
2732
+ c = Gc(c);
2733
+ b = N(b);
2734
+ e.values = {};
2735
+ Fc(a, {name:b, constructor:e, fromWireType:function(f) {
2736
+ return this.constructor.values[f];
2737
+ }, toWireType:function(f, g) {
2738
+ return g.value;
2739
+ }, argPackAdvance:8, readValueFromPointer:bd(b, c, d), J:null,});
2740
+ Lc(b, e);
2741
+ }, _embind_register_enum_value:function(a, b, c) {
2742
+ var d = pc(a, "enum");
2743
+ b = N(b);
2744
+ a = d.constructor;
2745
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
2746
+ })},});
2747
+ a.values[c] = d;
2748
+ a[b] = d;
2749
+ }, _embind_register_float:function(a, b, c) {
2750
+ c = Gc(c);
2751
+ b = N(b);
2752
+ Fc(a, {name:b, fromWireType:function(d) {
2753
+ return d;
2754
+ }, toWireType:function(d, e) {
2755
+ return e;
2756
+ }, argPackAdvance:8, readValueFromPointer:cd(b, c), J:null,});
2757
+ }, _embind_register_function:function(a, b, c, d, e, f) {
2758
+ var g = Zc(b, c);
2759
+ a = N(a);
2760
+ e = R(d, e);
2761
+ Lc(a, function() {
2762
+ Xc(`Cannot call ${a} due to unbound types`, g);
2763
+ }, b - 1);
2764
+ P([], g, function(k) {
2765
+ Tc(a, Yc(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2766
+ return [];
2767
+ });
2768
+ }, _embind_register_integer:function(a, b, c, d, e) {
2769
+ b = N(b);
2770
+ -1 === e && (e = 4294967295);
2771
+ e = Gc(c);
2772
+ var f = k => k;
2773
+ if (0 === d) {
2774
+ var g = 32 - 8 * c;
2775
+ f = k => k << g >>> g;
2776
+ }
2777
+ c = b.includes("unsigned") ? function(k, p) {
2778
+ return p >>> 0;
2779
+ } : function(k, p) {
2780
+ return p;
2781
+ };
2782
+ Fc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), J:null,});
2783
+ }, _embind_register_memory_view:function(a, b, c) {
2784
+ function d(f) {
2785
+ f >>= 2;
2786
+ var g = B;
2787
+ return new e(g.buffer, g[f + 1], g[f]);
2788
+ }
2789
+ var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2790
+ c = N(c);
2791
+ Fc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Zb:!0,});
2792
+ }, _embind_register_std_string:function(a, b) {
2793
+ b = N(b);
2794
+ var c = "std::string" === b;
2795
+ Fc(a, {name:b, fromWireType:function(d) {
2796
+ var e = B[d >> 2], f = d + 4;
2797
+ if (c) {
2798
+ for (var g = f, k = 0; k <= e; ++k) {
2799
+ var p = f + k;
2800
+ if (k == e || 0 == w[p]) {
2801
+ g = g ? $a(w, g, p - g) : "";
2802
+ if (void 0 === n) {
2803
+ var n = g;
2804
+ } else {
2805
+ n += String.fromCharCode(0), n += g;
2806
+ }
2807
+ g = p + 1;
2808
+ }
2809
+ }
2810
+ } else {
2811
+ n = Array(e);
2812
+ for (k = 0; k < e; ++k) {
2813
+ n[k] = String.fromCharCode(w[f + k]);
2814
+ }
2815
+ n = n.join("");
2816
+ }
2817
+ oc(d);
2818
+ return n;
2819
+ }, toWireType:function(d, e) {
2820
+ e instanceof ArrayBuffer && (e = new Uint8Array(e));
2821
+ var f = "string" == typeof e;
2822
+ f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || K("Cannot pass non-string to std::string");
2823
+ var g = c && f ? bb(e) : e.length;
2824
+ var k = Td(4 + g + 1), p = k + 4;
2825
+ B[k >> 2] = g;
2826
+ if (c && f) {
2827
+ cb(e, w, p, g + 1);
2828
+ } else {
2829
+ if (f) {
2830
+ for (f = 0; f < g; ++f) {
2831
+ var n = e.charCodeAt(f);
2832
+ 255 < n && (oc(p), K("String has UTF-16 code units that do not fit in 8 bits"));
2833
+ w[p + f] = n;
2834
+ }
2835
+ } else {
2836
+ for (f = 0; f < g; ++f) {
2837
+ w[p + f] = e[f];
2838
+ }
2839
+ }
2840
+ }
2841
+ null !== d && d.push(oc, k);
2842
+ return k;
2843
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:function(d) {
2844
+ oc(d);
2845
+ },});
2846
+ }, _embind_register_std_wstring:function(a, b, c) {
2847
+ c = N(c);
2848
+ if (2 === b) {
2849
+ var d = fd;
2850
+ var e = gd;
2851
+ var f = hd;
2852
+ var g = () => ya;
2853
+ var k = 1;
2854
+ } else {
2855
+ 4 === b && (d = jd, e = kd, f = ld, g = () => B, k = 2);
2856
+ }
2857
+ Fc(a, {name:c, fromWireType:function(p) {
2858
+ for (var n = B[p >> 2], u = g(), v, y = p + 4, l = 0; l <= n; ++l) {
2859
+ var r = p + 4 + l * b;
2860
+ if (l == n || 0 == u[r >> k]) {
2861
+ y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
2862
+ }
2863
+ }
2864
+ oc(p);
2865
+ return v;
2866
+ }, toWireType:function(p, n) {
2867
+ "string" != typeof n && K(`Cannot pass non-string to C++ string type ${c}`);
2868
+ var u = f(n), v = Td(4 + u + b);
2869
+ B[v >> 2] = u >> k;
2870
+ e(n, v + 4, u + b);
2871
+ null !== p && p.push(oc, v);
2872
+ return v;
2873
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:function(p) {
2874
+ oc(p);
2875
+ },});
2876
+ }, _embind_register_value_object:function(a, b, c, d, e, f) {
2877
+ Ac[a] = {name:N(b), Qa:R(c, d), V:R(e, f), ab:[],};
2878
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, p, n) {
2879
+ Ac[a].ab.push({Qb:N(b), Wb:c, Ub:R(d, e), Vb:f, oc:g, nc:R(k, p), pc:n,});
2880
+ }, _embind_register_void:function(a, b) {
2881
+ b = N(b);
2882
+ Fc(a, {ec:!0, name:b, argPackAdvance:0, fromWireType:function() {
2883
+ }, toWireType:function() {
2884
+ },});
2885
+ }, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
2886
+ throw Infinity;
2887
+ }, _emval_as:function(a, b, c) {
2888
+ a = bc(a);
2889
+ b = pc(b, "emval::as");
2890
+ var d = [], e = cc(d);
2891
+ B[c >> 2] = e;
2892
+ return b.toWireType(d, a);
2893
+ }, _emval_call_method:function(a, b, c, d, e) {
2894
+ a = od[a];
2895
+ b = bc(b);
2896
+ c = nd(c);
2897
+ var f = [];
2898
+ B[d >> 2] = cc(f);
2899
+ return a(b, c, f, e);
2900
+ }, _emval_call_void_method:function(a, b, c, d) {
2901
+ a = od[a];
2902
+ b = bc(b);
2903
+ c = nd(c);
2904
+ a(b, c, null, d);
2905
+ }, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
2906
+ var c = qd(a, b), d = c[0];
2907
+ b = d.name + "_$" + c.slice(1).map(function(g) {
2908
+ return g.name;
2909
+ }).join("_") + "$";
2910
+ var e = rd[b];
2911
+ if (void 0 !== e) {
2912
+ return e;
2913
+ }
2914
+ var f = Array(a - 1);
2915
+ e = pd((g, k, p, n) => {
2916
+ for (var u = 0, v = 0; v < a - 1; ++v) {
2917
+ f[v] = c[v + 1].readValueFromPointer(n + u), u += c[v + 1].argPackAdvance;
2918
+ }
2919
+ g = g[k].apply(g, f);
2920
+ for (v = 0; v < a - 1; ++v) {
2921
+ c[v + 1].Lb && c[v + 1].Lb(f[v]);
2922
+ }
2923
+ if (!d.ec) {
2924
+ return d.toWireType(p, g);
2925
+ }
2926
+ });
2927
+ return rd[b] = e;
2928
+ }, _emval_get_property:function(a, b) {
2929
+ a = bc(a);
2930
+ b = bc(b);
2931
+ return cc(a[b]);
2932
+ }, _emval_incref:function(a) {
2933
+ 4 < a && (J.get(a).qb += 1);
2934
+ }, _emval_new_cstring:function(a) {
2935
+ return cc(nd(a));
2936
+ }, _emval_new_object:function() {
2937
+ return cc({});
2938
+ }, _emval_run_destructors:function(a) {
2939
+ var b = bc(a);
2940
+ Bc(b);
2941
+ ad(a);
2942
+ }, _emval_set_property:function(a, b, c) {
2943
+ a = bc(a);
2944
+ b = bc(b);
2945
+ c = bc(c);
2946
+ a[b] = c;
2947
+ }, _emval_take_value:function(a, b) {
2948
+ a = pc(a, "_emval_take_value");
2949
+ a = a.readValueFromPointer(b);
2950
+ return cc(a);
2951
+ }, abort:() => {
2952
+ ua("");
2953
+ }, emscripten_asm_const_int:(a, b, c) => {
2954
+ sd.length = 0;
2955
+ var d;
2956
+ for (c >>= 2; d = w[b++];) {
2957
+ c += 105 != d & c, sd.push(105 == d ? A[c] : za[c++ >> 1]), ++c;
2958
+ }
2959
+ return Ra[a].apply(null, sd);
2960
+ }, emscripten_date_now:function() {
2961
+ return Date.now();
2962
+ }, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
2963
+ U.activeTexture(a);
2964
+ }, emscripten_glAttachShader:function(a, b) {
2965
+ U.attachShader(yd[a], Cd[b]);
2966
+ }, emscripten_glBindAttribLocation:function(a, b, c) {
2967
+ U.bindAttribLocation(yd[a], b, c ? $a(w, c) : "");
2968
+ }, emscripten_glBindBuffer:function(a, b) {
2969
+ 35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
2970
+ U.bindBuffer(a, xd[b]);
2971
+ }, emscripten_glBindFramebuffer:Kd, emscripten_glBindRenderbuffer:function(a, b) {
2972
+ U.bindRenderbuffer(a, Ad[b]);
2973
+ }, emscripten_glBindSampler:function(a, b) {
2974
+ U.bindSampler(a, Ed[b]);
2975
+ }, emscripten_glBindTexture:function(a, b) {
2976
+ U.bindTexture(a, Bd[b]);
2977
+ }, emscripten_glBindVertexArray:Ld, emscripten_glBindVertexArrayOES:Ld, emscripten_glBlendColor:function(a, b, c, d) {
2978
+ U.blendColor(a, b, c, d);
2979
+ }, emscripten_glBlendEquation:function(a) {
2980
+ U.blendEquation(a);
2981
+ }, emscripten_glBlendFunc:function(a, b) {
2982
+ U.blendFunc(a, b);
2983
+ }, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k, p, n) {
2984
+ U.blitFramebuffer(a, b, c, d, e, f, g, k, p, n);
2985
+ }, emscripten_glBufferData:function(a, b, c, d) {
2986
+ 2 <= T.version ? c && b ? U.bufferData(a, w, d, c, b) : U.bufferData(a, b, d) : U.bufferData(a, c ? w.subarray(c, c + b) : b, d);
2987
+ }, emscripten_glBufferSubData:function(a, b, c, d) {
2988
+ 2 <= T.version ? c && U.bufferSubData(a, b, w, d, c) : U.bufferSubData(a, b, w.subarray(d, d + c));
2989
+ }, emscripten_glCheckFramebufferStatus:function(a) {
2990
+ return U.checkFramebufferStatus(a);
2991
+ }, emscripten_glClear:function(a) {
2992
+ U.clear(a);
2993
+ }, emscripten_glClearColor:function(a, b, c, d) {
2994
+ U.clearColor(a, b, c, d);
2995
+ }, emscripten_glClearStencil:function(a) {
2996
+ U.clearStencil(a);
2997
+ }, emscripten_glClientWaitSync:function(a, b, c, d) {
2998
+ return U.clientWaitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
2999
+ }, emscripten_glColorMask:function(a, b, c, d) {
3000
+ U.colorMask(!!a, !!b, !!c, !!d);
3001
+ }, emscripten_glCompileShader:function(a) {
3002
+ U.compileShader(Cd[a]);
3003
+ }, emscripten_glCompressedTexImage2D:function(a, b, c, d, e, f, g, k) {
3004
+ 2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f, w, k, g) : U.compressedTexImage2D(a, b, c, d, e, f, k ? w.subarray(k, k + g) : null);
3005
+ }, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
3006
+ 2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k, p) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, w, p, k) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, p ? w.subarray(p, p + k) : null);
3007
+ }, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
3008
+ U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
3009
+ }, emscripten_glCreateProgram:function() {
3010
+ var a = ha(yd), b = U.createProgram();
3011
+ b.name = a;
3012
+ b.Aa = b.ya = b.za = 0;
3013
+ b.Ta = 1;
3014
+ yd[a] = b;
3015
+ return a;
3016
+ }, emscripten_glCreateShader:function(a) {
3017
+ var b = ha(Cd);
3018
+ Cd[b] = U.createShader(a);
3019
+ return b;
3020
+ }, emscripten_glCullFace:function(a) {
3021
+ U.cullFace(a);
3022
+ }, emscripten_glDeleteBuffers:function(a, b) {
3023
+ for (var c = 0; c < a; c++) {
3024
+ var d = A[b + 4 * c >> 2], e = xd[d];
3025
+ e && (U.deleteBuffer(e), e.name = 0, xd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
3026
+ }
3027
+ }, emscripten_glDeleteFramebuffers:function(a, b) {
3028
+ for (var c = 0; c < a; ++c) {
3029
+ var d = A[b + 4 * c >> 2], e = zd[d];
3030
+ e && (U.deleteFramebuffer(e), e.name = 0, zd[d] = null);
3031
+ }
3032
+ }, emscripten_glDeleteProgram:function(a) {
3033
+ if (a) {
3034
+ var b = yd[a];
3035
+ b ? (U.deleteProgram(b), b.name = 0, yd[a] = null) : S(1281);
3036
+ }
3037
+ }, emscripten_glDeleteRenderbuffers:function(a, b) {
3038
+ for (var c = 0; c < a; c++) {
3039
+ var d = A[b + 4 * c >> 2], e = Ad[d];
3040
+ e && (U.deleteRenderbuffer(e), e.name = 0, Ad[d] = null);
3041
+ }
3042
+ }, emscripten_glDeleteSamplers:function(a, b) {
3043
+ for (var c = 0; c < a; c++) {
3044
+ var d = A[b + 4 * c >> 2], e = Ed[d];
3045
+ e && (U.deleteSampler(e), e.name = 0, Ed[d] = null);
3046
+ }
3047
+ }, emscripten_glDeleteShader:function(a) {
3048
+ if (a) {
3049
+ var b = Cd[a];
3050
+ b ? (U.deleteShader(b), Cd[a] = null) : S(1281);
3051
+ }
3052
+ }, emscripten_glDeleteSync:function(a) {
3053
+ if (a) {
3054
+ var b = Fd[a];
3055
+ b ? (U.deleteSync(b), b.name = 0, Fd[a] = null) : S(1281);
3056
+ }
3057
+ }, emscripten_glDeleteTextures:function(a, b) {
3058
+ for (var c = 0; c < a; c++) {
3059
+ var d = A[b + 4 * c >> 2], e = Bd[d];
3060
+ e && (U.deleteTexture(e), e.name = 0, Bd[d] = null);
3061
+ }
3062
+ }, emscripten_glDeleteVertexArrays:Md, emscripten_glDeleteVertexArraysOES:Md, emscripten_glDepthMask:function(a) {
3063
+ U.depthMask(!!a);
3064
+ }, emscripten_glDisable:function(a) {
3065
+ U.disable(a);
3066
+ }, emscripten_glDisableVertexAttribArray:function(a) {
3067
+ U.disableVertexAttribArray(a);
3068
+ }, emscripten_glDrawArrays:function(a, b, c) {
3069
+ U.drawArrays(a, b, c);
3070
+ }, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
3071
+ U.drawArraysInstanced(a, b, c, d);
3072
+ }, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
3073
+ U.Za.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
3074
+ }, emscripten_glDrawBuffers:function(a, b) {
3075
+ for (var c = Nd[a], d = 0; d < a; d++) {
3076
+ c[d] = A[b + 4 * d >> 2];
3077
+ }
3078
+ U.drawBuffers(c);
3079
+ }, emscripten_glDrawElements:Od, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
3080
+ U.drawElementsInstanced(a, b, c, d, e);
3081
+ }, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
3082
+ U.Za.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
3083
+ }, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
3084
+ Od(a, d, e, f);
3085
+ }, emscripten_glEnable:function(a) {
3086
+ U.enable(a);
3087
+ }, emscripten_glEnableVertexAttribArray:function(a) {
3088
+ U.enableVertexAttribArray(a);
3089
+ }, emscripten_glFenceSync:function(a, b) {
3090
+ return (a = U.fenceSync(a, b)) ? (b = ha(Fd), a.name = b, Fd[b] = a, b) : 0;
3091
+ }, emscripten_glFinish:function() {
3092
+ U.finish();
3093
+ }, emscripten_glFlush:function() {
3094
+ U.flush();
3095
+ }, emscripten_glFramebufferRenderbuffer:function(a, b, c, d) {
3096
+ U.framebufferRenderbuffer(a, b, c, Ad[d]);
3097
+ }, emscripten_glFramebufferTexture2D:function(a, b, c, d, e) {
3098
+ U.framebufferTexture2D(a, b, c, Bd[d], e);
3099
+ }, emscripten_glFrontFace:function(a) {
3100
+ U.frontFace(a);
3101
+ }, emscripten_glGenBuffers:function(a, b) {
3102
+ Pd(a, b, "createBuffer", xd);
3103
+ }, emscripten_glGenFramebuffers:function(a, b) {
3104
+ Pd(a, b, "createFramebuffer", zd);
3105
+ }, emscripten_glGenRenderbuffers:function(a, b) {
3106
+ Pd(a, b, "createRenderbuffer", Ad);
3107
+ }, emscripten_glGenSamplers:function(a, b) {
3108
+ Pd(a, b, "createSampler", Ed);
3109
+ }, emscripten_glGenTextures:function(a, b) {
3110
+ Pd(a, b, "createTexture", Bd);
3111
+ }, emscripten_glGenVertexArrays:Qd, emscripten_glGenVertexArraysOES:Qd, emscripten_glGenerateMipmap:function(a) {
3112
+ U.generateMipmap(a);
3113
+ }, emscripten_glGetBufferParameteriv:function(a, b, c) {
3114
+ c ? A[c >> 2] = U.getBufferParameter(a, b) : S(1281);
3115
+ }, emscripten_glGetError:function() {
3116
+ var a = U.getError() || Jd;
3117
+ Jd = 0;
3118
+ return a;
3119
+ }, emscripten_glGetFramebufferAttachmentParameteriv:function(a, b, c, d) {
3120
+ a = U.getFramebufferAttachmentParameter(a, b, c);
3121
+ if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
3122
+ a = a.name | 0;
3123
+ }
3124
+ A[d >> 2] = a;
3125
+ }, emscripten_glGetIntegerv:Sd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
3126
+ a = U.getProgramInfoLog(yd[a]);
3127
+ null === a && (a = "(unknown error)");
3128
+ b = 0 < b && d ? cb(a, w, d, b) : 0;
3129
+ c && (A[c >> 2] = b);
3130
+ }, emscripten_glGetProgramiv:function(a, b, c) {
3131
+ if (c) {
3132
+ if (a >= wd) {
3133
+ S(1281);
3134
+ } else {
3135
+ if (a = yd[a], 35716 == b) {
3136
+ a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), A[c >> 2] = a.length + 1;
3137
+ } else if (35719 == b) {
3138
+ if (!a.Aa) {
3139
+ for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
3140
+ a.Aa = Math.max(a.Aa, U.getActiveUniform(a, b).name.length + 1);
3141
+ }
3142
+ }
3143
+ A[c >> 2] = a.Aa;
3144
+ } else if (35722 == b) {
3145
+ if (!a.ya) {
3146
+ for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
3147
+ a.ya = Math.max(a.ya, U.getActiveAttrib(a, b).name.length + 1);
3148
+ }
3149
+ }
3150
+ A[c >> 2] = a.ya;
3151
+ } else if (35381 == b) {
3152
+ if (!a.za) {
3153
+ for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
3154
+ a.za = Math.max(a.za, U.getActiveUniformBlockName(a, b).length + 1);
3155
+ }
3156
+ }
3157
+ A[c >> 2] = a.za;
3158
+ } else {
3159
+ A[c >> 2] = U.getProgramParameter(a, b);
3160
+ }
3161
+ }
3162
+ } else {
3163
+ S(1281);
3164
+ }
3165
+ }, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
3166
+ c ? A[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
3167
+ }, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
3168
+ a = U.getShaderInfoLog(Cd[a]);
3169
+ null === a && (a = "(unknown error)");
3170
+ b = 0 < b && d ? cb(a, w, d, b) : 0;
3171
+ c && (A[c >> 2] = b);
3172
+ }, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
3173
+ a = U.getShaderPrecisionFormat(a, b);
3174
+ A[c >> 2] = a.rangeMin;
3175
+ A[c + 4 >> 2] = a.rangeMax;
3176
+ A[d >> 2] = a.precision;
3177
+ }, emscripten_glGetShaderiv:function(a, b, c) {
3178
+ c ? 35716 == b ? (a = U.getShaderInfoLog(Cd[a]), null === a && (a = "(unknown error)"), A[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Cd[a]), A[c >> 2] = a ? a.length + 1 : 0) : A[c >> 2] = U.getShaderParameter(Cd[a], b) : S(1281);
3179
+ }, emscripten_glGetString:function(a) {
3180
+ var b = Gd[a];
3181
+ if (!b) {
3182
+ switch(a) {
3183
+ case 7939:
3184
+ b = U.getSupportedExtensions() || [];
3185
+ b = b.concat(b.map(function(d) {
3186
+ return "GL_" + d;
3187
+ }));
3188
+ b = Ud(b.join(" "));
3189
+ break;
3190
+ case 7936:
3191
+ case 7937:
3192
+ case 37445:
3193
+ case 37446:
3194
+ (b = U.getParameter(a)) || S(1280);
3195
+ b = b && Ud(b);
3196
+ break;
3197
+ case 7938:
3198
+ b = U.getParameter(7938);
3199
+ b = 2 <= T.version ? "OpenGL ES 3.0 (" + b + ")" : "OpenGL ES 2.0 (" + b + ")";
3200
+ b = Ud(b);
3201
+ break;
3202
+ case 35724:
3203
+ b = U.getParameter(35724);
3204
+ var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
3205
+ null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
3206
+ b = Ud(b);
3207
+ break;
3208
+ default:
3209
+ S(1280);
3210
+ }
3211
+ Gd[a] = b;
3212
+ }
3213
+ return b;
3214
+ }, emscripten_glGetStringi:function(a, b) {
3215
+ if (2 > T.version) {
3216
+ return S(1282), 0;
3217
+ }
3218
+ var c = Hd[a];
3219
+ if (c) {
3220
+ return 0 > b || b >= c.length ? (S(1281), 0) : c[b];
3221
+ }
3222
+ switch(a) {
3223
+ case 7939:
3224
+ return c = U.getSupportedExtensions() || [], c = c.concat(c.map(function(d) {
3225
+ return "GL_" + d;
3226
+ })), c = c.map(function(d) {
3227
+ return Ud(d);
3228
+ }), c = Hd[a] = c, 0 > b || b >= c.length ? (S(1281), 0) : c[b];
3229
+ default:
3230
+ return S(1280), 0;
3231
+ }
3232
+ }, emscripten_glGetUniformLocation:function(a, b) {
3233
+ b = b ? $a(w, b) : "";
3234
+ if (a = yd[a]) {
3235
+ var c = a, d = c.na, e = c.vb, f;
3236
+ if (!d) {
3237
+ for (c.na = d = {}, c.ub = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
3238
+ var g = U.getActiveUniform(c, f);
3239
+ var k = g.name;
3240
+ g = g.size;
3241
+ var p = Vd(k);
3242
+ p = 0 < p ? k.slice(0, p) : k;
3243
+ var n = c.Ta;
3244
+ c.Ta += g;
3245
+ e[p] = [g, n];
3246
+ for (k = 0; k < g; ++k) {
3247
+ d[n] = k, c.ub[n++] = p;
3248
+ }
3249
+ }
3250
+ }
3251
+ c = a.na;
3252
+ d = 0;
3253
+ e = b;
3254
+ f = Vd(b);
3255
+ 0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3256
+ if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
3257
+ return d;
3258
+ }
3259
+ } else {
3260
+ S(1281);
3261
+ }
3262
+ return -1;
3263
+ }, emscripten_glInvalidateFramebuffer:function(a, b, c) {
3264
+ for (var d = Nd[b], e = 0; e < b; e++) {
3265
+ d[e] = A[c + 4 * e >> 2];
3266
+ }
3267
+ U.invalidateFramebuffer(a, d);
3268
+ }, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
3269
+ for (var k = Nd[b], p = 0; p < b; p++) {
3270
+ k[p] = A[c + 4 * p >> 2];
3271
+ }
3272
+ U.invalidateSubFramebuffer(a, k, d, e, f, g);
3273
+ }, emscripten_glIsSync:function(a) {
3274
+ return U.isSync(Fd[a]);
3275
+ }, emscripten_glIsTexture:function(a) {
3276
+ return (a = Bd[a]) ? U.isTexture(a) : 0;
3277
+ }, emscripten_glLineWidth:function(a) {
3278
+ U.lineWidth(a);
3279
+ }, emscripten_glLinkProgram:function(a) {
3280
+ a = yd[a];
3281
+ U.linkProgram(a);
3282
+ a.na = 0;
3283
+ a.vb = {};
3284
+ }, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
3285
+ U.hb.multiDrawArraysInstancedBaseInstanceWEBGL(a, A, b >> 2, A, c >> 2, A, d >> 2, B, e >> 2, f);
3286
+ }, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
3287
+ U.hb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, A, b >> 2, c, A, d >> 2, A, e >> 2, A, f >> 2, B, g >> 2, k);
3288
+ }, emscripten_glPixelStorei:function(a, b) {
3289
+ 3317 == a && (Id = b);
3290
+ U.pixelStorei(a, b);
3291
+ }, emscripten_glReadBuffer:function(a) {
3292
+ U.readBuffer(a);
3293
+ }, emscripten_glReadPixels:function(a, b, c, d, e, f, g) {
3294
+ if (2 <= T.version) {
3295
+ if (U.Ka) {
3296
+ U.readPixels(a, b, c, d, e, f, g);
3297
+ } else {
3298
+ var k = Wd(f);
3299
+ U.readPixels(a, b, c, d, e, f, k, g >> 31 - Math.clz32(k.BYTES_PER_ELEMENT));
3300
+ }
3301
+ } else {
3302
+ (g = Xd(f, e, c, d, g)) ? U.readPixels(a, b, c, d, e, f, g) : S(1280);
3303
+ }
3304
+ }, emscripten_glRenderbufferStorage:function(a, b, c, d) {
3305
+ U.renderbufferStorage(a, b, c, d);
3306
+ }, emscripten_glRenderbufferStorageMultisample:function(a, b, c, d, e) {
3307
+ U.renderbufferStorageMultisample(a, b, c, d, e);
3308
+ }, emscripten_glSamplerParameteri:function(a, b, c) {
3309
+ U.samplerParameteri(Ed[a], b, c);
3310
+ }, emscripten_glSamplerParameteriv:function(a, b, c) {
3311
+ U.samplerParameteri(Ed[a], b, A[c >> 2]);
3312
+ }, emscripten_glScissor:function(a, b, c, d) {
3313
+ U.scissor(a, b, c, d);
3314
+ }, emscripten_glShaderSource:function(a, b, c, d) {
3315
+ for (var e = "", f = 0; f < b; ++f) {
3316
+ var g = d ? A[d + 4 * f >> 2] : -1, k = A[c + 4 * f >> 2];
3317
+ g = k ? $a(w, k, 0 > g ? void 0 : g) : "";
3318
+ e += g;
3319
+ }
3320
+ U.shaderSource(Cd[a], e);
3321
+ }, emscripten_glStencilFunc:function(a, b, c) {
3322
+ U.stencilFunc(a, b, c);
3323
+ }, emscripten_glStencilFuncSeparate:function(a, b, c, d) {
3324
+ U.stencilFuncSeparate(a, b, c, d);
3325
+ }, emscripten_glStencilMask:function(a) {
3326
+ U.stencilMask(a);
3327
+ }, emscripten_glStencilMaskSeparate:function(a, b) {
3328
+ U.stencilMaskSeparate(a, b);
3329
+ }, emscripten_glStencilOp:function(a, b, c) {
3330
+ U.stencilOp(a, b, c);
3331
+ }, emscripten_glStencilOpSeparate:function(a, b, c, d) {
3332
+ U.stencilOpSeparate(a, b, c, d);
3333
+ }, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k, p) {
3334
+ if (2 <= T.version) {
3335
+ if (U.fa) {
3336
+ U.texImage2D(a, b, c, d, e, f, g, k, p);
3337
+ } else if (p) {
3338
+ var n = Wd(k);
3339
+ U.texImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
3340
+ } else {
3341
+ U.texImage2D(a, b, c, d, e, f, g, k, null);
3342
+ }
3343
+ } else {
3344
+ U.texImage2D(a, b, c, d, e, f, g, k, p ? Xd(k, g, d, e, p) : null);
3345
+ }
3346
+ }, emscripten_glTexParameterf:function(a, b, c) {
3347
+ U.texParameterf(a, b, c);
3348
+ }, emscripten_glTexParameterfv:function(a, b, c) {
3349
+ U.texParameterf(a, b, D[c >> 2]);
3350
+ }, emscripten_glTexParameteri:function(a, b, c) {
3351
+ U.texParameteri(a, b, c);
3352
+ }, emscripten_glTexParameteriv:function(a, b, c) {
3353
+ U.texParameteri(a, b, A[c >> 2]);
3354
+ }, emscripten_glTexStorage2D:function(a, b, c, d, e) {
3355
+ U.texStorage2D(a, b, c, d, e);
3356
+ }, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
3357
+ if (2 <= T.version) {
3358
+ if (U.fa) {
3359
+ U.texSubImage2D(a, b, c, d, e, f, g, k, p);
3360
+ } else if (p) {
3361
+ var n = Wd(k);
3362
+ U.texSubImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
3363
+ } else {
3364
+ U.texSubImage2D(a, b, c, d, e, f, g, k, null);
3365
+ }
3366
+ } else {
3367
+ n = null, p && (n = Xd(k, g, e, f, p)), U.texSubImage2D(a, b, c, d, e, f, g, k, n);
3368
+ }
3369
+ }, emscripten_glUniform1f:function(a, b) {
3370
+ U.uniform1f(V(a), b);
3371
+ }, emscripten_glUniform1fv:function(a, b, c) {
3372
+ if (2 <= T.version) {
3373
+ b && U.uniform1fv(V(a), D, c >> 2, b);
3374
+ } else {
3375
+ if (288 >= b) {
3376
+ for (var d = Yd[b - 1], e = 0; e < b; ++e) {
3377
+ d[e] = D[c + 4 * e >> 2];
3378
+ }
3379
+ } else {
3380
+ d = D.subarray(c >> 2, c + 4 * b >> 2);
3381
+ }
3382
+ U.uniform1fv(V(a), d);
3383
+ }
3384
+ }, emscripten_glUniform1i:function(a, b) {
3385
+ U.uniform1i(V(a), b);
3386
+ }, emscripten_glUniform1iv:function(a, b, c) {
3387
+ if (2 <= T.version) {
3388
+ b && U.uniform1iv(V(a), A, c >> 2, b);
3389
+ } else {
3390
+ if (288 >= b) {
3391
+ for (var d = Zd[b - 1], e = 0; e < b; ++e) {
3392
+ d[e] = A[c + 4 * e >> 2];
3393
+ }
3394
+ } else {
3395
+ d = A.subarray(c >> 2, c + 4 * b >> 2);
3396
+ }
3397
+ U.uniform1iv(V(a), d);
3398
+ }
3399
+ }, emscripten_glUniform2f:function(a, b, c) {
3400
+ U.uniform2f(V(a), b, c);
3401
+ }, emscripten_glUniform2fv:function(a, b, c) {
3402
+ if (2 <= T.version) {
3403
+ b && U.uniform2fv(V(a), D, c >> 2, 2 * b);
3404
+ } else {
3405
+ if (144 >= b) {
3406
+ for (var d = Yd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
3407
+ d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2];
3408
+ }
3409
+ } else {
3410
+ d = D.subarray(c >> 2, c + 8 * b >> 2);
3411
+ }
3412
+ U.uniform2fv(V(a), d);
3413
+ }
3414
+ }, emscripten_glUniform2i:function(a, b, c) {
3415
+ U.uniform2i(V(a), b, c);
3416
+ }, emscripten_glUniform2iv:function(a, b, c) {
3417
+ if (2 <= T.version) {
3418
+ b && U.uniform2iv(V(a), A, c >> 2, 2 * b);
3419
+ } else {
3420
+ if (144 >= b) {
3421
+ for (var d = Zd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
3422
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2];
3423
+ }
3424
+ } else {
3425
+ d = A.subarray(c >> 2, c + 8 * b >> 2);
3426
+ }
3427
+ U.uniform2iv(V(a), d);
3428
+ }
3429
+ }, emscripten_glUniform3f:function(a, b, c, d) {
3430
+ U.uniform3f(V(a), b, c, d);
3431
+ }, emscripten_glUniform3fv:function(a, b, c) {
3432
+ if (2 <= T.version) {
3433
+ b && U.uniform3fv(V(a), D, c >> 2, 3 * b);
3434
+ } else {
3435
+ if (96 >= b) {
3436
+ for (var d = Yd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
3437
+ d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2];
3438
+ }
3439
+ } else {
3440
+ d = D.subarray(c >> 2, c + 12 * b >> 2);
3441
+ }
3442
+ U.uniform3fv(V(a), d);
3443
+ }
3444
+ }, emscripten_glUniform3i:function(a, b, c, d) {
3445
+ U.uniform3i(V(a), b, c, d);
3446
+ }, emscripten_glUniform3iv:function(a, b, c) {
3447
+ if (2 <= T.version) {
3448
+ b && U.uniform3iv(V(a), A, c >> 2, 3 * b);
3449
+ } else {
3450
+ if (96 >= b) {
3451
+ for (var d = Zd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
3452
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2];
3453
+ }
3454
+ } else {
3455
+ d = A.subarray(c >> 2, c + 12 * b >> 2);
3456
+ }
3457
+ U.uniform3iv(V(a), d);
3458
+ }
3459
+ }, emscripten_glUniform4f:function(a, b, c, d, e) {
3460
+ U.uniform4f(V(a), b, c, d, e);
3461
+ }, emscripten_glUniform4fv:function(a, b, c) {
3462
+ if (2 <= T.version) {
3463
+ b && U.uniform4fv(V(a), D, c >> 2, 4 * b);
3464
+ } else {
3465
+ if (72 >= b) {
3466
+ var d = Yd[4 * b - 1], e = D;
3467
+ c >>= 2;
3468
+ for (var f = 0; f < 4 * b; f += 4) {
3469
+ var g = c + f;
3470
+ d[f] = e[g];
3471
+ d[f + 1] = e[g + 1];
3472
+ d[f + 2] = e[g + 2];
3473
+ d[f + 3] = e[g + 3];
3474
+ }
3475
+ } else {
3476
+ d = D.subarray(c >> 2, c + 16 * b >> 2);
3477
+ }
3478
+ U.uniform4fv(V(a), d);
3479
+ }
3480
+ }, emscripten_glUniform4i:function(a, b, c, d, e) {
3481
+ U.uniform4i(V(a), b, c, d, e);
3482
+ }, emscripten_glUniform4iv:function(a, b, c) {
3483
+ if (2 <= T.version) {
3484
+ b && U.uniform4iv(V(a), A, c >> 2, 4 * b);
3485
+ } else {
3486
+ if (72 >= b) {
3487
+ for (var d = Zd[4 * b - 1], e = 0; e < 4 * b; e += 4) {
3488
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2], d[e + 3] = A[c + (4 * e + 12) >> 2];
3489
+ }
3490
+ } else {
3491
+ d = A.subarray(c >> 2, c + 16 * b >> 2);
3492
+ }
3493
+ U.uniform4iv(V(a), d);
3494
+ }
3495
+ }, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
3496
+ if (2 <= T.version) {
3497
+ b && U.uniformMatrix2fv(V(a), !!c, D, d >> 2, 4 * b);
3498
+ } else {
3499
+ if (72 >= b) {
3500
+ for (var e = Yd[4 * b - 1], f = 0; f < 4 * b; f += 4) {
3501
+ e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2];
3502
+ }
3503
+ } else {
3504
+ e = D.subarray(d >> 2, d + 16 * b >> 2);
3505
+ }
3506
+ U.uniformMatrix2fv(V(a), !!c, e);
3507
+ }
3508
+ }, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
3509
+ if (2 <= T.version) {
3510
+ b && U.uniformMatrix3fv(V(a), !!c, D, d >> 2, 9 * b);
3511
+ } else {
3512
+ if (32 >= b) {
3513
+ for (var e = Yd[9 * b - 1], f = 0; f < 9 * b; f += 9) {
3514
+ e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2], e[f + 4] = D[d + (4 * f + 16) >> 2], e[f + 5] = D[d + (4 * f + 20) >> 2], e[f + 6] = D[d + (4 * f + 24) >> 2], e[f + 7] = D[d + (4 * f + 28) >> 2], e[f + 8] = D[d + (4 * f + 32) >> 2];
3515
+ }
3516
+ } else {
3517
+ e = D.subarray(d >> 2, d + 36 * b >> 2);
3518
+ }
3519
+ U.uniformMatrix3fv(V(a), !!c, e);
3520
+ }
3521
+ }, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
3522
+ if (2 <= T.version) {
3523
+ b && U.uniformMatrix4fv(V(a), !!c, D, d >> 2, 16 * b);
3524
+ } else {
3525
+ if (18 >= b) {
3526
+ var e = Yd[16 * b - 1], f = D;
3527
+ d >>= 2;
3528
+ for (var g = 0; g < 16 * b; g += 16) {
3529
+ var k = d + g;
3530
+ e[g] = f[k];
3531
+ e[g + 1] = f[k + 1];
3532
+ e[g + 2] = f[k + 2];
3533
+ e[g + 3] = f[k + 3];
3534
+ e[g + 4] = f[k + 4];
3535
+ e[g + 5] = f[k + 5];
3536
+ e[g + 6] = f[k + 6];
3537
+ e[g + 7] = f[k + 7];
3538
+ e[g + 8] = f[k + 8];
3539
+ e[g + 9] = f[k + 9];
3540
+ e[g + 10] = f[k + 10];
3541
+ e[g + 11] = f[k + 11];
3542
+ e[g + 12] = f[k + 12];
3543
+ e[g + 13] = f[k + 13];
3544
+ e[g + 14] = f[k + 14];
3545
+ e[g + 15] = f[k + 15];
3546
+ }
3547
+ } else {
3548
+ e = D.subarray(d >> 2, d + 64 * b >> 2);
3549
+ }
3550
+ U.uniformMatrix4fv(V(a), !!c, e);
3551
+ }
3552
+ }, emscripten_glUseProgram:function(a) {
3553
+ a = yd[a];
3554
+ U.useProgram(a);
3555
+ U.Kb = a;
3556
+ }, emscripten_glVertexAttrib1f:function(a, b) {
3557
+ U.vertexAttrib1f(a, b);
3558
+ }, emscripten_glVertexAttrib2fv:function(a, b) {
3559
+ U.vertexAttrib2f(a, D[b >> 2], D[b + 4 >> 2]);
3560
+ }, emscripten_glVertexAttrib3fv:function(a, b) {
3561
+ U.vertexAttrib3f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2]);
3562
+ }, emscripten_glVertexAttrib4fv:function(a, b) {
3563
+ U.vertexAttrib4f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2], D[b + 12 >> 2]);
3564
+ }, emscripten_glVertexAttribDivisor:function(a, b) {
3565
+ U.vertexAttribDivisor(a, b);
3566
+ }, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
3567
+ U.vertexAttribIPointer(a, b, c, d, e);
3568
+ }, emscripten_glVertexAttribPointer:function(a, b, c, d, e, f) {
3569
+ U.vertexAttribPointer(a, b, c, !!d, e, f);
3570
+ }, emscripten_glViewport:function(a, b, c, d) {
3571
+ U.viewport(a, b, c, d);
3572
+ }, emscripten_glWaitSync:function(a, b, c, d) {
3573
+ U.waitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
3574
+ }, emscripten_memcpy_big:(a, b, c) => w.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
3575
+ var b = w.length;
3576
+ a >>>= 0;
3577
+ if (2147483648 < a) {
3578
+ return !1;
3579
+ }
3580
+ for (var c = 1; 4 >= c; c *= 2) {
3581
+ var d = b * (1 + 0.2 / c);
3582
+ d = Math.min(d, a + 100663296);
3583
+ var e = Math;
3584
+ d = Math.max(a, d);
3585
+ a: {
3586
+ e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - va.buffer.byteLength + 65535 >>> 16;
3587
+ try {
3588
+ va.grow(e);
3589
+ Aa();
3590
+ var f = 1;
3591
+ break a;
3592
+ } catch (g) {
3593
+ }
3594
+ f = void 0;
3595
+ }
3596
+ if (f) {
3597
+ return !0;
3598
+ }
3599
+ }
3600
+ return !1;
3601
+ }, emscripten_webgl_get_current_context:function() {
3602
+ return T ? T.handle : 0;
3603
+ }, emscripten_webgl_make_context_current:function(a) {
3604
+ return la(a) ? 0 : -5;
3605
+ }, environ_get:(a, b) => {
3606
+ var c = 0;
3607
+ be().forEach(function(d, e) {
3608
+ var f = b + c;
3609
+ e = B[a + 4 * e >> 2] = f;
3610
+ for (f = 0; f < d.length; ++f) {
3611
+ t[e++ >> 0] = d.charCodeAt(f);
3612
+ }
3613
+ t[e >> 0] = 0;
3614
+ c += d.length + 1;
3615
+ });
3616
+ return 0;
3617
+ }, environ_sizes_get:(a, b) => {
3618
+ var c = be();
3619
+ B[a >> 2] = c.length;
3620
+ var d = 0;
3621
+ c.forEach(function(e) {
3622
+ d += e.length + 1;
3623
+ });
3624
+ B[b >> 2] = d;
3625
+ return 0;
3626
+ }, fd_close:function(a) {
3627
+ try {
3628
+ var b = Hb(a);
3629
+ if (null === b.X) {
3630
+ throw new G(8);
3631
+ }
3632
+ b.Na && (b.Na = null);
3633
+ try {
3634
+ b.m.close && b.m.close(b);
3635
+ } catch (c) {
3636
+ throw c;
3637
+ } finally {
3638
+ tb[b.X] = null;
3639
+ }
3640
+ b.X = null;
3641
+ return 0;
3642
+ } catch (c) {
3643
+ if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
3644
+ throw c;
3645
+ }
3646
+ return c.W;
3647
+ }
3648
+ }, fd_read:function(a, b, c, d) {
3649
+ try {
3650
+ a: {
3651
+ var e = Hb(a);
3652
+ a = b;
3653
+ for (var f, g = b = 0; g < c; g++) {
3654
+ var k = B[a >> 2], p = B[a + 4 >> 2];
3655
+ a += 8;
3656
+ var n = e, u = k, v = p, y = f, l = t;
3657
+ if (0 > v || 0 > y) {
3658
+ throw new G(28);
3659
+ }
3660
+ if (null === n.X) {
3661
+ throw new G(8);
3662
+ }
3663
+ if (1 === (n.flags & 2097155)) {
3664
+ throw new G(8);
3665
+ }
3666
+ if (16384 === (n.node.mode & 61440)) {
3667
+ throw new G(31);
3668
+ }
3669
+ if (!n.m.read) {
3670
+ throw new G(28);
3671
+ }
3672
+ var r = "undefined" != typeof y;
3673
+ if (!r) {
3674
+ y = n.position;
3675
+ } else if (!n.seekable) {
3676
+ throw new G(70);
3677
+ }
3678
+ var x = n.m.read(n, l, u, v, y);
3679
+ r || (n.position += x);
3680
+ var z = x;
3681
+ if (0 > z) {
3682
+ var H = -1;
3683
+ break a;
3684
+ }
3685
+ b += z;
3686
+ if (z < p) {
3687
+ break;
3688
+ }
3689
+ "undefined" !== typeof f && (f += z);
3690
+ }
3691
+ H = b;
3692
+ }
3693
+ B[d >> 2] = H;
3694
+ return 0;
3695
+ } catch (C) {
3696
+ if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
3697
+ throw C;
3698
+ }
3699
+ return C.W;
3700
+ }
3701
+ }, fd_seek:function(a, b, c, d, e) {
3702
+ b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
3703
+ try {
3704
+ if (isNaN(b)) {
3705
+ return 61;
3706
+ }
3707
+ var f = Hb(a);
3708
+ Qb(f, b, d);
3709
+ F = [f.position >>> 0, (E = f.position, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
3710
+ A[e >> 2] = F[0];
3711
+ A[e + 4 >> 2] = F[1];
3712
+ f.Na && 0 === b && 0 === d && (f.Na = null);
3713
+ return 0;
3714
+ } catch (g) {
3715
+ if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
3716
+ throw g;
3717
+ }
3718
+ return g.W;
3719
+ }
3720
+ }, fd_write:function(a, b, c, d) {
3721
+ try {
3722
+ a: {
3723
+ var e = Hb(a);
3724
+ a = b;
3725
+ for (var f, g = b = 0; g < c; g++) {
3726
+ var k = B[a >> 2], p = B[a + 4 >> 2];
3727
+ a += 8;
3728
+ var n = e, u = k, v = p, y = f, l = t;
3729
+ if (0 > v || 0 > y) {
3730
+ throw new G(28);
3731
+ }
3732
+ if (null === n.X) {
3733
+ throw new G(8);
3734
+ }
3735
+ if (0 === (n.flags & 2097155)) {
3736
+ throw new G(8);
3737
+ }
3738
+ if (16384 === (n.node.mode & 61440)) {
3739
+ throw new G(31);
3740
+ }
3741
+ if (!n.m.write) {
3742
+ throw new G(28);
3743
+ }
3744
+ n.seekable && n.flags & 1024 && Qb(n, 0, 2);
3745
+ var r = "undefined" != typeof y;
3746
+ if (!r) {
3747
+ y = n.position;
3748
+ } else if (!n.seekable) {
3749
+ throw new G(70);
3750
+ }
3751
+ var x = n.m.write(n, l, u, v, y, void 0);
3752
+ r || (n.position += x);
3753
+ var z = x;
3754
+ if (0 > z) {
3755
+ var H = -1;
3756
+ break a;
3757
+ }
3758
+ b += z;
3759
+ "undefined" !== typeof f && (f += z);
3760
+ }
3761
+ H = b;
3762
+ }
3763
+ B[d >> 2] = H;
3764
+ return 0;
3765
+ } catch (C) {
3766
+ if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
3767
+ throw C;
3768
+ }
3769
+ return C.W;
3770
+ }
3771
+ }, glBindFramebuffer:Kd, glGetIntegerv:Sd, invoke_ii:le, invoke_iii:me, invoke_iiii:ne, invoke_iiiii:oe, invoke_iiiiii:pe, invoke_iiiiiii:qe, invoke_iiiiiiiiii:re, invoke_v:se, invoke_vi:te, invoke_vii:ue, invoke_viii:ve, invoke_viiii:we, invoke_viiiiii:xe, invoke_viiiiiii:ye, invoke_viiiiiiii:ze, strftime_l:(a, b, c, d) => fe(a, b, c, d)};
3772
+ (function() {
3773
+ var a = {env:Ae, wasi_snapshot_preview1:Ae,};
3774
+ Fa++;
3775
+ Na(a, function(b) {
3776
+ q = b.instance.exports;
3777
+ va = q.memory;
3778
+ Aa();
3779
+ Ba = q.__indirect_function_table;
3780
+ Da.unshift(q.__wasm_call_ctors);
3781
+ Fa--;
3782
+ 0 == Fa && (null !== Ga && (clearInterval(Ga), Ga = null), Ha && (b = Ha, Ha = null, b()));
3783
+ }).catch(ba);
3784
+ return {};
3785
+ })();
3786
+ var Td = a => (Td = q.malloc)(a), oc = a => (oc = q.free)(a), Oa = m._ma_device__on_notification_unlocked = a => (Oa = m._ma_device__on_notification_unlocked = q.ma_device__on_notification_unlocked)(a);
3787
+ m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = q.ma_malloc_emscripten)(a, b);
3788
+ m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = q.ma_free_emscripten)(a, b);
3789
+ var Pa = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Pa = m._ma_device_process_pcm_frames_capture__webaudio = q.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Qa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Qa = m._ma_device_process_pcm_frames_playback__webaudio = q.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ke = () => (ke = q.__errno_location)(), nc = a => (nc = q.__getTypeName)(a);
3790
+ m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = q._embind_initialize_bindings)();
3791
+ var pb = (a, b) => (pb = q.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = q.setThrew)(a, b), Y = () => (Y = q.stackSave)(), Z = a => (Z = q.stackRestore)(a);
3792
+ m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = q.dynCall_iiiij)(a, b, c, d, e, f);
3793
+ m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = q.dynCall_viiij)(a, b, c, d, e, f);
3794
+ m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = q.dynCall_iiij)(a, b, c, d, e);
3795
+ m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = q.dynCall_viij)(a, b, c, d, e);
3796
+ m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = q.dynCall_iiji)(a, b, c, d, e);
3797
+ m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = q.dynCall_iiiji)(a, b, c, d, e, f);
3798
+ m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = q.dynCall_jiji)(a, b, c, d, e);
3799
+ m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = q.dynCall_iij)(a, b, c, d);
3800
+ m.dynCall_jii = (a, b, c) => (m.dynCall_jii = q.dynCall_jii)(a, b, c);
3801
+ m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij = q.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
3802
+ m.dynCall_viji = (a, b, c, d, e) => (m.dynCall_viji = q.dynCall_viji)(a, b, c, d, e);
3803
+ m.dynCall_ji = (a, b) => (m.dynCall_ji = q.dynCall_ji)(a, b);
3804
+ m.dynCall_vij = (a, b, c, d) => (m.dynCall_vij = q.dynCall_vij)(a, b, c, d);
3805
+ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = q.dynCall_viijii)(a, b, c, d, e, f, g);
3806
+ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = q.dynCall_iiiiij)(a, b, c, d, e, f, g);
3807
+ m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = q.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3808
+ m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = q.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3809
+ function le(a, b) {
3810
+ var c = Y();
3811
+ try {
3812
+ return Q(a)(b);
3813
+ } catch (d) {
3814
+ Z(c);
3815
+ if (d !== d + 0) {
3816
+ throw d;
3817
+ }
3818
+ X(1, 0);
3819
+ }
3820
+ }
3821
+ function ue(a, b, c) {
3822
+ var d = Y();
3823
+ try {
3824
+ Q(a)(b, c);
3825
+ } catch (e) {
3826
+ Z(d);
3827
+ if (e !== e + 0) {
3828
+ throw e;
3829
+ }
3830
+ X(1, 0);
3831
+ }
3832
+ }
3833
+ function te(a, b) {
3834
+ var c = Y();
3835
+ try {
3836
+ Q(a)(b);
3837
+ } catch (d) {
3838
+ Z(c);
3839
+ if (d !== d + 0) {
3840
+ throw d;
3841
+ }
3842
+ X(1, 0);
3843
+ }
3844
+ }
3845
+ function ne(a, b, c, d) {
3846
+ var e = Y();
3847
+ try {
3848
+ return Q(a)(b, c, d);
3849
+ } catch (f) {
3850
+ Z(e);
3851
+ if (f !== f + 0) {
3852
+ throw f;
3853
+ }
3854
+ X(1, 0);
3855
+ }
3856
+ }
3857
+ function ve(a, b, c, d) {
3858
+ var e = Y();
3859
+ try {
3860
+ Q(a)(b, c, d);
3861
+ } catch (f) {
3862
+ Z(e);
3863
+ if (f !== f + 0) {
3864
+ throw f;
3865
+ }
3866
+ X(1, 0);
3867
+ }
3868
+ }
3869
+ function we(a, b, c, d, e) {
3870
+ var f = Y();
3871
+ try {
3872
+ Q(a)(b, c, d, e);
3873
+ } catch (g) {
3874
+ Z(f);
3875
+ if (g !== g + 0) {
3876
+ throw g;
3877
+ }
3878
+ X(1, 0);
3879
+ }
3880
+ }
3881
+ function se(a) {
3882
+ var b = Y();
3883
+ try {
3884
+ Q(a)();
3885
+ } catch (c) {
3886
+ Z(b);
3887
+ if (c !== c + 0) {
3888
+ throw c;
3889
+ }
3890
+ X(1, 0);
3891
+ }
3892
+ }
3893
+ function qe(a, b, c, d, e, f, g) {
3894
+ var k = Y();
3895
+ try {
3896
+ return Q(a)(b, c, d, e, f, g);
3897
+ } catch (p) {
3898
+ Z(k);
3899
+ if (p !== p + 0) {
3900
+ throw p;
3901
+ }
3902
+ X(1, 0);
3903
+ }
3904
+ }
3905
+ function me(a, b, c) {
3906
+ var d = Y();
3907
+ try {
3908
+ return Q(a)(b, c);
3909
+ } catch (e) {
3910
+ Z(d);
3911
+ if (e !== e + 0) {
3912
+ throw e;
3913
+ }
3914
+ X(1, 0);
3915
+ }
3916
+ }
3917
+ function ye(a, b, c, d, e, f, g, k) {
3918
+ var p = Y();
3919
+ try {
3920
+ Q(a)(b, c, d, e, f, g, k);
3921
+ } catch (n) {
3922
+ Z(p);
3923
+ if (n !== n + 0) {
3924
+ throw n;
3925
+ }
3926
+ X(1, 0);
3927
+ }
3928
+ }
3929
+ function re(a, b, c, d, e, f, g, k, p, n) {
3930
+ var u = Y();
3931
+ try {
3932
+ return Q(a)(b, c, d, e, f, g, k, p, n);
3933
+ } catch (v) {
3934
+ Z(u);
3935
+ if (v !== v + 0) {
3936
+ throw v;
3937
+ }
3938
+ X(1, 0);
3939
+ }
3940
+ }
3941
+ function oe(a, b, c, d, e) {
3942
+ var f = Y();
3943
+ try {
3944
+ return Q(a)(b, c, d, e);
3945
+ } catch (g) {
3946
+ Z(f);
3947
+ if (g !== g + 0) {
3948
+ throw g;
3949
+ }
3950
+ X(1, 0);
3951
+ }
3952
+ }
3953
+ function ze(a, b, c, d, e, f, g, k, p) {
3954
+ var n = Y();
3955
+ try {
3956
+ Q(a)(b, c, d, e, f, g, k, p);
3957
+ } catch (u) {
3958
+ Z(n);
3959
+ if (u !== u + 0) {
3960
+ throw u;
3961
+ }
3962
+ X(1, 0);
3963
+ }
3964
+ }
3965
+ function pe(a, b, c, d, e, f) {
3966
+ var g = Y();
3967
+ try {
3968
+ return Q(a)(b, c, d, e, f);
3969
+ } catch (k) {
3970
+ Z(g);
3971
+ if (k !== k + 0) {
3972
+ throw k;
3973
+ }
3974
+ X(1, 0);
3975
+ }
3976
+ }
3977
+ function xe(a, b, c, d, e, f, g) {
3978
+ var k = Y();
3979
+ try {
3980
+ Q(a)(b, c, d, e, f, g);
3981
+ } catch (p) {
3982
+ Z(k);
3983
+ if (p !== p + 0) {
3984
+ throw p;
3985
+ }
3986
+ X(1, 0);
3987
+ }
3988
+ }
3989
+ var Be;
3990
+ Ha = function Ce() {
3991
+ Be || De();
3992
+ Be || (Ha = Ce);
3993
+ };
3994
+ function De() {
3995
+ if (!(0 < Fa)) {
3996
+ for (; 0 < Ca.length;) {
3997
+ Ca.shift()(m);
3998
+ }
3999
+ if (!(0 < Fa || Be || (Be = !0, m.calledRun = !0, wa))) {
4000
+ m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
4001
+ for (wb = !1; 0 < Da.length;) {
4002
+ Da.shift()(m);
4003
+ }
4004
+ aa(m);
4005
+ if (m.onRuntimeInitialized) {
4006
+ m.onRuntimeInitialized();
4007
+ }
4008
+ for (; 0 < Ea.length;) {
4009
+ Ea.shift()(m);
4010
+ }
4011
+ }
4012
+ }
4013
+ }
4014
+ De();
4015
+
178
4016
 
179
4017
 
180
4018
  return moduleArg.ready