1async function nn(ve={}){var dr,d=ve,Fr="./this.program",Tr=(r,e)=>{throw e},er="",vr="";function ce(r){return d.locateFile?d.locateFile(r,vr):vr+r}var cr,me;typeof document<"u"&&document.currentScript&&(er=document.currentScript.src),er.indexOf("blob:")!==0&&(vr=er.substr(0,er.replace(/[?#].*/,"").lastIndexOf("/")+1)),cr=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var tr=console.log.bind(console),B=console.error.bind(console),X,nr=!1,or,Pr,Ar,Sr=!1;function Dr(){var r=fr.buffer;d.HEAP8=P=new Int8Array(r),d.HEAP16=G=new Int16Array(r),d.HEAPU8=M=new Uint8Array(r),d.HEAPU16=j=new Uint16Array(r),d.HEAP32=N=new Int32Array(r),d.HEAPU32=w=new Uint32Array(r),d.HEAPF32=Rr=new Float32Array(r),d.HEAPF64=Mr=new Float64Array(r),S=new BigInt64Array(r),Br=new BigUint64Array(r)}function he(){if(d.preRun)for(typeof d.preRun=="function"&&(d.preRun=[d.preRun]);d.preRun.length;)Pe(d.preRun.shift());Nr(Wr)}function pe(){Sr=!0,!d.noFSInit&&!o.initialized&&o.init(),rr.D(),o.ignorePermissions=!1}function we(){if(d.postRun)for(typeof d.postRun=="function"&&(d.postRun=[d.postRun]);d.postRun.length;)Te(d.postRun.shift());Nr(Ur)}function C(r){d.onAbort?.(r),r=`Aborted(${r})`,B(r),nr=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw Ar?.(e),e}var mr;function ge(){return ce("boolean.wasm")}function ye(r){if(r==mr&&X)return new Uint8Array(X);throw"both async and sync fetching of the wasm failed"}async function _e(r){if(!X)try{var e=await cr(r);return new Uint8Array(e)}catch{}return ye(r)}async function Ee(r,e){try{var t=await _e(r),n=await WebAssembly.instantiate(t,e);return n}catch(i){B(`failed to asynchronously prepare wasm: ${i}`),C(i)}}async function ke(r,e,t){if(!r)try{var n=fetch(e,{credentials:"same-origin"}),i=await WebAssembly.instantiateStreaming(n,t);return i}catch(a){B(`wasm streaming compile failed: ${a}`),B("falling back to ArrayBuffer instantiation")}return Ee(e,t)}function be(){var r={a:rn};return r}async function Fe(){function r(a,s){return rr=a.exports,Qt(rr),Dr(),rr}function e(a){return r(a.instance)}var t=be();if(d.instantiateWasm)return new Promise((a,s)=>{d.instantiateWasm(t,(l,u)=>{a(r(l))})});mr??=ge();var n=await ke(X,mr,t),i=e(n);return i}class Cr{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var G,N,S,P,Rr,Mr,j,w,Br,M,Nr=r=>{for(;r.length>0;)r.shift()(d)},Ur=[],Te=r=>Ur.push(r),Wr=[],Pe=r=>Wr.push(r),hr=!0,Ae=r=>le(r),Se=()=>fe();class De{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,P[this.ptr+12]=e}get_caught(){return P[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,P[this.ptr+13]=e}get_rethrown(){return P[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Ce=(r,e,t)=>{var n=new De(r);n.init(e,t),C()},Re=()=>C(""),ir={},zr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ar(r){return this.fromWireType(w[r>>2])}var H={},z={},sr={},Me=class extends Error{constructor(e){super(e),this.name="InternalError"}},xr=r=>{throw new Me(r)},Ir=(r,e,t)=>{r.forEach(l=>sr[l]=e);function n(l){var u=t(l);u.length!==r.length&&xr("Mismatched type converter count");for(var f=0;f<r.length;++f)D(r[f],u[f])}var i=new Array(e.length),a=[],s=0;for(let[l,u]of e.entries())z.hasOwnProperty(u)?i[l]=z[u]:(a.push(u),H.hasOwnProperty(u)||(H[u]=[]),H[u].push(()=>{i[l]=z[u],++s,s===a.length&&n(i)}));a.length===0&&n(i)},Be=r=>{var e=ir[r];delete ir[r];var t=e.elements,n=t.length,i=t.map(l=>l.getterReturnType).concat(t.map(l=>l.setterArgumentType)),a=e.rawConstructor,s=e.rawDestructor;Ir([r],i,l=>{for(const[u,f]of t.entries()){const v=l[u],h=f.getter,c=f.getterContext,p=l[u+n],g=f.setter,E=f.setterContext;f.read=_=>v.fromWireType(h(c,_)),f.write=(_,k)=>{var T=[];g(E,_,p.toWireType(T,k)),zr(T)}}return[{name:e.name,fromWireType:u=>{for(var f=new Array(n),v=0;v<n;++v)f[v]=t[v].read(u);return s(u),f},toWireType:(u,f)=>{if(n!==f.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${f.length}`);for(var v=a(),h=0;h<n;++h)t[h].write(v,f[h]);return u!==null&&u.push(s,v),v},readValueFromPointer:ar,destructorFunction:s}]})},A=r=>{for(var e="";;){var t=M[r++];if(!t)return e;e+=String.fromCharCode(t)}}
1,Ne=class extends Error{constructor(e){super(e),this.name="BindingError"}},R=r=>{throw new Ne(r)};function Ue(r,e,t={}){var n=e.name;if(r||R(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;R(`Cannot register type '${n}' twice`)}if(z[r]=e,delete sr[r],H.hasOwnProperty(r)){var i=H[r];delete H[r],i.forEach(a=>a())}}function D(r,e,t={}){return Ue(r,e,t)}var Or=(r,e,t)=>{switch(e){case 1:return t?n=>P[n]:n=>M[n];case 2:return t?n=>G[n>>1]:n=>j[n>>1];case 4:return t?n=>N[n>>2]:n=>w[n>>2];case 8:return t?n=>S[n>>3]:n=>Br[n>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},We=(r,e,t,n,i)=>{e=A(e);const a=n===0n;let s=l=>l;if(a){const l=t*8;s=u=>BigInt.asUintN(l,u),i=s(i)}D(r,{name:e,fromWireType:s,toWireType:(l,u)=>(typeof u=="number"&&(u=BigInt(u)),u),readValueFromPointer:Or(e,t,!a),destructorFunction:null})},ze=(r,e,t,n)=>{e=A(e),D(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},readValueFromPointer:function(i){return this.fromWireType(M[i])},destructorFunction:null})},$r=[],L=[0,1,,1,null,1,!0,1,!1,1],xe=r=>{r>9&&--L[r+1]===0&&(L[r]=void 0,$r.push(r))},jr={toValue:r=>(r||R(`Cannot use deleted val. handle = ${r}`),L[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=$r.pop()||L.length;return L[e]=r,L[e+1]=1,e}}}},Ie={name:"emscripten::val",fromWireType:r=>{var e=jr.toValue(r);return xe(r),e},toWireType:(r,e)=>jr.toHandle(e),readValueFromPointer:ar,destructorFunction:null},Oe=r=>D(r,Ie),$e=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(...i){return r[e].overloadTable.hasOwnProperty(i.length)||R(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},lr=(r,e,t)=>{d.hasOwnProperty(r)?((t===void 0||d[r].overloadTable!==void 0&&d[r].overloadTable[t]!==void 0)&&R(`Cannot register public name '${r}' twice`),$e(d,r,r),d[r].overloadTable.hasOwnProperty(t)&&R(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),d[r].overloadTable[t]=e):(d[r]=e,d[r].argCount=t)},pr=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(P[n])}:function(n){return this.fromWireType(M[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(j[n>>1])};case 4:return t?function(n){return this.fromWireType(N[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}};function je(r){return r===0?"object":r===1?"number":"string"}var He=(r,e,t,n,i)=>{e=A(e);const a=je(i);switch(a){case"object":{let f=function(){};f.values={},D(r,{name:e,constructor:f,valueType:a,fromWireType:function(v){return this.constructor.values[v]},toWireType:(v,h)=>h.value,readValueFromPointer:pr(e,t,n),destructorFunction:null}),lr(e,f);break}case"number":{var s={};D(r,{name:e,keysMap:s,valueType:a,fromWireType:f=>f,toWireType:(f,v)=>v,readValueFromPointer:pr(e,t,n),destructorFunction:null}),lr(e,s),delete d[e].argCount;break}case"string":{var l={},u={},s={};D(r,{name:e,valuesMap:l,reverseMap:u,keysMap:s,valueType:a,fromWireType:function(v){return this.reverseMap[v]},toWireType:function(v,h){return this.valuesMap[h]},readValueFromPointer:pr(e,t,n),destructorFunction:null}),lr(e,s),delete d[e].argCount;break}}},Hr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Lr=r=>{var e=ae(r),t=A(e);return U(e),t},Le=(r,e)=>{var t=z[r];return t===void 0&&R(`${e} has unknown type ${Lr(r)}`),t},Ve=(r,e,t)=>{var n=Le(r,"enum");switch(e=A(e),n.valueType){case"object":{var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Hr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a;break}case"number":{n.keysMap[e]=t;break}case"string":{n.valuesMap[e]=t,n.reverseMap[t]=e,n.keysMap[e]=e;break}}},qe=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Rr[t>>2])};case 8:return function(t){return this.fromWireType(Mr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Xe=(r,e,t)=>{e=A(e),D(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,readValueFromPointer:qe(e,t),destructorFunction:null})};function Ge(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Ke(r,e,t,n,i,a){var s=e.length;s<2&&R("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var l=Ge(e),u=!e[0].isVoid,f=s-2,v=new Array(f),h=[],c=[],p=function(...g){c.length=0;var E;h.length=1,h[0]=i;for(var _=0;_<f;++_)v[_]=e[_+2].toWireType(c,g[_]),h.push(v[_]);var k=n(...h);function T($){if(l)zr(c);else for(var b=2;b<e.length;b++){var W=b===1?E:v[b-2];e[b].destructorFunction!==null&&e[b].destructorFunction(W)}if(u)return e[0].fromWireType($)}return T(k)};return Hr(r,p)}var Ye=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+n*4>>2]);return t},Je=(r,e,t)=>{d.hasOwnProperty(r)||xr("Replacing nonexistent public symbol"),d[r].overloadTable!==void 0&&t!==void 0?d[r].overloadTable[t]=e:(d[r]=e,d[r].argCount=t)},Vr=[],Ze=r=>{var e=Vr[r];return e||(Vr[r]=e=de.get(r)),e},K=(r,e,t=!1)=>{r=A(r);function n(){var a=Ze(e);return a}var i=n();return typeof i!="function"&&R(`unknown function pointer with signature ${r}: ${e}`),i};
1class Qe extends Error{}var rt=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!z[a]){if(sr[a]){sr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Qe(`${r}: `+t.map(Lr).join([", "]))},et=r=>{r=r.trim();const e=r.indexOf("(");return e===-1?r:r.slice(0,e)},tt=(r,e,t,n,i,a,s,l)=>{var u=Ye(e,t);r=A(r),r=et(r),i=K(n,i,s),lr(r,function(){rt(`Cannot call ${r} due to unbound types`,u)},e-1),Ir([],u,f=>{var v=[f[0],null].concat(f.slice(1));return Je(r,Ke(r,v,null,i,a),e-1),[]})},nt=(r,e,t,n,i)=>{e=A(e);const a=n===0;let s=u=>u;if(a){var l=32-8*t;s=u=>u<<l>>>l,i=s(i)}D(r,{name:e,fromWireType:s,toWireType:(u,f)=>f,readValueFromPointer:Or(e,t,n!==0),destructorFunction:null})},ot=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],i=n[e];function a(s){var l=w[s>>2],u=w[s+4>>2];return new i(P.buffer,u,l)}t=A(t),D(r,{name:t,fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},qr=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s<r.length;++s){var l=r.codePointAt(s);if(l<=127){if(t>=a)break;e[t++]=l}
vendor: 29,529 bytes, lines 1-2
1else if(l<=2047){if(t+1>=a)break;e[t++]=192|l>>6,e[t++]=128|l&63}else if(l<=65535){if(t+2>=a)break;e[t++]=224|l>>12,e[t++]=128|l>>6&63,e[t++]=128|l&63}else{if(t+3>=a)break;e[t++]=240|l>>18,e[t++]=128|l>>12&63,e[t++]=128|l>>6&63,e[t++]=128|l&63,s++}}return e[t]=0,t-i},x=(r,e,t)=>qr(r,M,e,t),ur=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Xr=globalThis.TextDecoder&&new TextDecoder,Gr=(r,e,t,n)=>{var i=e+t;if(n)return i;for(;r[e]&&!(e>=i);)++e;return e},V=(r,e=0,t,n)=>{var i=Gr(r,e,t,n);if(i-e>16&&r.buffer&&Xr)return Xr.decode(r.subarray(e,i));for(var a="";e<i;){var s=r[e++];if(!(s&128)){a+=String.fromCharCode(s);continue}var l=r[e++]&63;if((s&224)==192){a+=String.fromCharCode((s&31)<<6|l);continue}var u=r[e++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|u:s=(s&7)<<18|l<<12|u<<6|r[e++]&63,s<65536)a+=String.fromCharCode(s);else{var f=s-65536;a+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return a},wr=(r,e,t)=>r?V(M,r,e,t):"",it=(r,e)=>{e=A(e),D(r,{name:e,fromWireType(t){var n=w[t>>2],i=t+4,a;return a=wr(i,n,!0),U(t),a},toWireType(t,n){n instanceof ArrayBuffer&&(n=new Uint8Array(n));var i,a=typeof n=="string";a||ArrayBuffer.isView(n)&&n.BYTES_PER_ELEMENT==1||R("Cannot pass non-string to std::string"),a?i=ur(n):i=n.length;var s=kr(4+i+1),l=s+4;return w[s>>2]=i,a?x(n,l,i+1):M.set(n,l),t!==null&&t.push(U,s),s},readValueFromPointer:ar,destructorFunction(t){U(t)}})},Kr=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,at=(r,e,t)=>{var n=r>>1,i=Gr(j,n,e/2,t);if(i-n>16&&Kr)return Kr.decode(j.subarray(n,i));for(var a="",s=n;s<i;++s){var l=j[s];a+=String.fromCharCode(l)}return a},st=(r,e,t)=>{if(t??=2147483647,t<2)return 0;t-=2;for(var n=e,i=t<r.length*2?t/2:r.length,a=0;a<i;++a){var s=r.charCodeAt(a);G[e>>1]=s,e+=2}return G[e>>1]=0,e-n},lt=r=>r.length*2,ut=(r,e,t)=>{for(var n="",i=r>>2,a=0;!(a>=e/4);a++){var s=w[i+a];if(!s&&!t)break;n+=String.fromCodePoint(s)}return n},ft=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,i=n+t-4,a=0;a<r.length;++a){var s=r.codePointAt(a);if(s>65535&&a++,N[e>>2]=s,e+=4,e+4>i)break}return N[e>>2]=0,e-n},dt=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.codePointAt(t);n>65535&&t++,e+=4}return e},vt=(r,e,t)=>{t=A(t);var n,i,a;e===2?(n=at,i=st,a=lt):(n=ut,i=ft,a=dt),D(r,{name:t,fromWireType:s=>{var l=w[s>>2],u=n(s+4,l*e,!0);return U(s),u},toWireType:(s,l)=>{typeof l!="string"&&R(`Cannot pass non-string to C++ string type ${t}`);var u=a(l),f=kr(4+u+e);return w[f>>2]=u/e,i(l,f+4,u+e),s!==null&&s.push(U,f),f},readValueFromPointer:ar,destructorFunction(s){U(s)}})},ct=(r,e,t,n,i,a)=>{ir[r]={name:A(e),rawConstructor:K(t,n),rawDestructor:K(i,a),elements:[]}},mt=(r,e,t,n,i,a,s,l,u)=>{ir[r].elements.push({getterReturnType:e,getter:K(t,n),getterContext:i,setterArgumentType:a,setter:K(s,l),setterContext:u})},ht=(r,e)=>{e=A(e),D(r,{isVoid:!0,name:e,fromWireType:()=>{},toWireType:(t,n)=>{}})},Yr=0,pt=()=>{hr=!1,Yr=0},Y={},Jr=r=>{if(r instanceof Cr||r=="unwind")return or;Tr(1,r)},Zr=()=>hr||Yr>0,Qr=r=>{or=r,Zr()||(d.onExit?.(r),nr=!0),Tr(r,new Cr(r))},wt=(r,e)=>{or=r,Qr(r)},gt=wt,yt=()=>{if(!Zr())try{gt(or)}catch(r){Jr(r)}},_t=r=>{if(!nr)try{return r()}catch(e){Jr(e)}finally{yt()}},Et=()=>performance.now(),kt=(r,e)=>{if(Y[r]&&(clearTimeout(Y[r].id),delete Y[r]),!e)return 0;var t=setTimeout(()=>{delete Y[r],_t(()=>se(r,Et()))},e);return Y[r]={id:t,timeout_ms:e},0},bt=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),l=a.getTimezoneOffset(),u=s.getTimezoneOffset(),f=Math.max(l,u);w[r>>2]=f*60,N[e>>2]=+(l!=u);var v=p=>{var g=p>=0?"-":"+",E=Math.abs(p),_=String(Math.floor(E/60)).padStart(2,"0"),k=String(E%60).padStart(2,"0");return`UTC${g}${_}${k}`},h=v(l),c=v(u);u<l?(x(h,t,17),x(c,n,17)):(x(h,n,17),x(c,t,17))},Ft=()=>2147483648,Tt=(r,e)=>Math.ceil(r/e)*e,Pt=r=>{var e=fr.buffer.byteLength,t=(r-e+65535)/65536|0;try{return fr.grow(t),Dr(),1}catch{}},At=r=>{var e=M.length;r>>>=0;var t=Ft();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,Tt(Math.max(r,i),65536)),s=Pt(a);if(s)return!0}return!1},gr={},St=()=>Fr||"./this.program",J=()=>{if(!J.strings){var r=(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:St()};for(var t in gr)gr[t]===void 0?delete e[t]:e[t]=gr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);J.strings=n}return J.strings},Dt=(r,e)=>{var t=0,n=0;for(var i of J()){var a=e+t;w[r+n>>2]=a,t+=x(i,a,1/0)+1,n+=4}return 0},Ct=(r,e)=>{var t=J();w[r>>2]=t.length;var n=0;for(var i of t)n+=ur(i)+1;return w[e>>2]=n,0},y={isAbs:r=>r.charAt(0)==="/",splitPath:r=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return e.exec(r).slice(1)},normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var i=r[n];i==="."?r.splice(n,1):i===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=y.isAbs(r),t=r.slice(-1)==="/";return r=y.normalizeArray(r.split("/").filter(n=>!!n),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=y.splitPath(r),t=e[0],n=e[1];return!t&&!n?".":(n&&(n=n.slice(0,-1)),t+n)},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>y.normalize(r.join("/")),join2:(r,e)=>y.normalize(r+"/"+e)},Rt=()=>r=>(crypto.getRandomValues(r),0),re=r=>(re=Rt())(r),q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var i=n>=0?r[n]:o.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";e=i+"/"+e,t=y.isAbs(i)}return e=y.normalizeArray(e.split("/").filter(a=>!!a),!t).join("/"),(t?"/":"")+e||"."},relative:(r,e)=>{r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);function t(f){for(var v=0;v<f.length&&f[v]==="";v++);for(var h=f.length-1;h>=0&&f[h]==="";h--);return v>h?[]:f.slice(v,h-v+1)}for(var n=t(r.split("/")),i=t(e.split("/")),a=Math.min(n.length,i.length),s=a,l=0;l<a;l++)if(n[l]!==i[l]){s=l;break}for(var u=[],l=s;l<n.length;l++)u.push("..");return u=u.concat(i.slice(s)),u.join("/")}},yr=[],_r=(r,e,t)=>{var n=ur(r)+1,i=new Array(n),a=qr(r,i,0,i.length);return i.length=a,i},Mt=()=>{if(!yr.length){var r=null;if(globalThis.window?.prompt&&(r=window.prompt("Input: "),r!==null&&(r+=` 2`)),!r)return null;yr=_r(r)}return yr.shift()},I={ttys:[],init(){},shutdown(){},register(r,e){I.ttys[r]={input:[],output:[],ops:e},o.registerDevice(r,I.stream_ops)},stream_ops:{open(r){var e=I.ttys[r.node.rdev];if(!e)throw new o.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,i){if(!r.tty||!r.tty.ops.get_char)throw new o.ErrnoError(60);for(var a=0,s=0;s<n;s++){var l;try{l=r.tty.ops.get_char(r.tty)}catch{throw new o.ErrnoError(29)}if(l===void 0&&a===0)throw new o.ErrnoError(6);if(l==null)break;a++,e[t+s]=l}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,i){if(!r.tty||!r.tty.ops.put_char)throw new o.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch{throw new o.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char(r){return Mt()},put_char(r,e){e===null||e===10?(tr(V(r.output)),r.output=[]):e!=0&&r.output.push(e)},fsync(r){r.output?.length>0&&(tr(V(r.output)),r.output=[])},ioctl_tcgets(r){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[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]}},ioctl_tcsets(r,e,t){return 0},ioctl_tiocgwinsz(r){return[24,80]}},default_tty1_ops:{put_char(r,e){e===null||e===10?(B(V(r.output)),r.output=[]):e!=0&&r.output.push(e)},fsync(r){r.output?.length>0&&(B(V(r.output)),r.output=[])}}},ee=r=>{C()},m={ops_table:null,mount(r){return m.createNode(null,"/",16895,0)},createNode(r,e,t,n){if(o.isBlkdev(t)||o.isFIFO(t))throw new o.ErrnoError(63);m.ops_table||={dir:{node:{getattr:m.node_ops.getattr,setattr:m.node_ops.setattr,lookup:m.node_ops.lookup,mknod:m.node_ops.mknod,rename:m.node_ops.rename,unlink:m.node_ops.unlink,rmdir:m.node_ops.rmdir,readdir:m.node_ops.readdir,symlink:m.node_ops.symlink},stream:{llseek:m.stream_ops.llseek}},file:{node:{getattr:m.node_ops.getattr,setattr:m.node_ops.setattr},stream:{llseek:m.stream_ops.llseek,read:m.stream_ops.read,write:m.stream_ops.write,mmap:m.stream_ops.mmap,msync:m.stream_ops.msync}},link:{node:{getattr:m.node_ops.getattr,setattr:m.node_ops.setattr,readlink:m.node_ops.readlink},stream:{}},chrdev:{node:{getattr:m.node_ops.getattr,setattr:m.node_ops.setattr},stream:o.chrdev_stream_ops}};var i=o.createNode(r,e,t,n);return o.isDir(i.mode)?(i.node_ops=m.ops_table.dir.node,i.stream_ops=m.ops_table.dir.stream,i.contents={}):o.isFile(i.mode)?(i.node_ops=m.ops_table.file.node,i.stream_ops=m.ops_table.file.stream,i.usedBytes=0,i.contents=m.emptyFileContents??=new Uint8Array(0)):o.isLink(i.mode)?(i.node_ops=m.ops_table.link.node,i.stream_ops=m.ops_table.link.stream):o.isChrdev(i.mode)&&(i.node_ops=m.ops_table.chrdev.node,i.stream_ops=m.ops_table.chrdev.stream),i.atime=i.mtime=i.ctime=Date.now(),r&&(r.contents[e]=i,r.atime=r.mtime=r.ctime=i.atime),i},getFileDataAsTypedArray(r){return r.contents.subarray(0,r.usedBytes)},expandFileStorage(r,e){var t=r.contents.length;if(!(t>=e)){var n=1024*1024;e=Math.max(e,t*(t<n?2:1.125)>>>0),t&&(e=Math.max(e,256));var i=m.getFileDataAsTypedArray(r);r.contents=new Uint8Array(e),r.contents.set(i)}},resizeFileStorage(r,e){if(r.usedBytes!=e){var t=r.contents;r.contents=new Uint8Array(e),r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=o.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,o.isDir(r.mode)?e.size=4096:o.isFile(r.mode)?e.size=r.usedBytes:o.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])e[t]!=null&&(r[t]=e[t]);e.size!==void 0&&m.resizeFileStorage(r,e.size)},lookup(r,e){throw m.doesNotExistError||(m.doesNotExistError=new o.ErrnoError(44),m.doesNotExistError.stack="<generic error, no stack>"),m.doesNotExistError},mknod(r,e,t,n){return m.createNode(r,e,t,n)},rename(r,e,t){var n;try{n=o.lookupNode(e,t)}catch{}if(n){if(o.isDir(r.mode))for(var i in n.contents)throw new o.ErrnoError(55);o.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=o.lookupNode(r,e);for(var n in t.contents)throw new o.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir(r){return[".","..",...Object.keys(r.contents)]},symlink(r,e,t){var n=m.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!o.isLink(r.mode))throw new o.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,i){var a=r.node.contents;if(i>=r.node.usedBytes)return 0;var s=Math.min(r.node.usedBytes-i,n);return e.set(a.subarray(i,i+s),t),s},write(r,e,t,n,i,a){if(e.buffer===P.buffer&&(a=!1),!n)return 0;var s=r.node;return s.mtime=s.ctime=Date.now(),a?(s.contents=e.subarray(t,t+n),s.usedBytes=n):s.usedBytes===0&&i===0?(s.contents=e.slice(t,t+n),s.usedBytes=n):(m.expandFileStorage(s,i+n),s.contents.set(e.subarray(t,t+n),i),s.usedBytes=Math.max(s.usedBytes,i+n)),n},llseek(r,e,t){var n=e;if(t===1?n+=r.position:t===2&&o.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new o.ErrnoError(28);return n},mmap(r,e,t,n,i){if(!o.isFile(r.node.mode))throw new o.ErrnoError(43);var a,s,l=r.node.contents;if(!(i&2)&&l.buffer===P.buffer)s=!1,a=l.byteOffset;else{if(s=!0,a=ee(),!a)throw new o.ErrnoError(48);l&&((t>0||t+e<l.length)&&(l.subarray?l=l.subarray(t,t+e):l=Array.prototype.slice.call(l,t,t+e)),P.set(l,a))}return{ptr:a,allocated:s}},msync(r,e,t,n,i){return m.stream_ops.write(r,e,0,n,t,!1),0}}},Bt=r=>{if(typeof r!="string")return r;var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},t=e[r];if(typeof t>"u")throw new Error(`Unknown file open mode: ${r}`);return t},te=r=>(typeof r=="string"&&(r=_r(r)),r.subarray||(r=new Uint8Array(r)),r),Er=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},Nt=async r=>{var e=await cr(r);return new Uint8Array(e)},Ut=(...r)=>o.createDataFile(...r),O=0,Z=null,Wt=r=>{if(O--,d.monitorRunDependencies?.(O),O==0&&Z){var e=Z;Z=null,e()}},zt=r=>{O++,d.monitorRunDependencies?.(O)},ne=[],xt=async(r,e)=>{typeof Browser<"u"&&Browser.init();for(var t of ne)if(t.canHandle(e))return t.handle(r,e);return r},oe=async(r,e,t,n,i,a,s,l)=>{var u=e?q.resolve(y.join2(r,e)):r;zt();try{var f=t;typeof t=="string"&&(f=await Nt(t)),f=await xt(f,u),l?.(),a||Ut(r,e,f,n,i,s)}finally{Wt()}},It=(r,e,t,n,i,a,s,l,u,f)=>{oe(r,e,t,n,i,l,u,f).then(a).catch(s)},o={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=o.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return o.isDir(this.mode)}get isDevice(){return o.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new o.ErrnoError(44);e.follow_mount??=!0,y.isAbs(r)||(r=o.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(f=>!!f),i=o.root,a="/",s=0;s<n.length;s++){var l=s===n.length-1;if(l&&e.parent)break;if(n[s]!=="."){if(n[s]===".."){if(a=y.dirname(a),o.isRoot(i)){r=a+"/"+n.slice(s+1).join("/"),t--;continue r}else i=i.parent;continue}a=y.join2(a,n[s]);try{i=o.lookupNode(i,n[s])}catch(f){if(f?.errno===44&&l&&e.noent_okay)return{path:a};throw f}if(o.isMountpoint(i)&&(!l||e.follow_mount)&&(i=i.mounted.root),o.isLink(i.mode)&&(!l||e.follow)){if(!i.node_ops.readlink)throw new o.ErrnoError(52);var u=i.node_ops.readlink(i);y.isAbs(u)||(u=y.dirname(a)+"/"+u),r=u+"/"+n.slice(s+1).join("/");continue r}}}return{path:a,node:i}}throw new o.ErrnoError(32)},getPath(r){for(var e;;){if(o.isRoot(r)){var t=r.mount.mountpoint;return e?t[t.length-1]!=="/"?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%o.nameTable.length},hashAddNode(r){var e=o.hashName(r.parent.id,r.name);r.name_next=o.nameTable[e],o.nameTable[e]=r},hashRemoveNode(r){var e=o.hashName(r.parent.id,r.name);if(o.nameTable[e]===r)o.nameTable[e]=r.name_next;else for(var t=o.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=o.mayLookup(r);if(t)throw new o.ErrnoError(t);for(var n=o.hashName(r.id,e),i=o.nameTable[n];i;i=i.name_next){var a=i.name;if(i.parent.id===r.id&&a===e)return i}return o.lookup(r,e)},createNode(r,e,t,n){var i=new o.FSNode(r,e,t,n);return o.hashAddNode(i),i},destroyNode(r){o.hashRemoveNode(r)},isRoot(r){return r===r.parent},isMountpoint(r){return!!r.mounted},isFile(r){return(r&61440)===32768},isDir(r){return(r&61440)===16384},isLink(r){return(r&61440)===40960},isChrdev(r){return(r&61440)===8192},isBlkdev(r){return(r&61440)===24576},isFIFO(r){return(r&61440)===4096},isSocket(r){return(r&49152)===49152},flagsToPermissionString(r){var e=["r","w","rw"][r&3];return r&512&&(e+="w"),e},nodePermissions(r,e){return o.ignorePermissions?0:e.includes("r")&&!(r.mode&292)||e.includes("w")&&!(r.mode&146)||e.includes("x")&&!(r.mode&73)?2:0},mayLookup(r){if(!o.isDir(r.mode))return 54;var e=o.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate(r,e){if(!o.isDir(r.mode))return 54;try{var t=o.lookupNode(r,e);return 20}catch{}return o.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=o.lookupNode(r,e)}catch(a){return a.errno}var i=o.nodePermissions(r,"wx");if(i)return i;if(t){if(!o.isDir(n.mode))return 54;if(o.isRoot(n)||o.getPath(n)===o.cwd())return 10}else if(o.isDir(n.mode))return 31;return 0},mayOpen(r,e){if(!r)return 44;if(o.isLink(r.mode))return 32;var t=o.flagsToPermissionString(e);return o.isDir(r.mode)&&(t!=="r"||e&576)?31:o.nodePermissions(r,t)},checkOpExists(r,e){if(!r)throw new o.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=o.MAX_OPEN_FDS;r++)if(!o.streams[r])return r;throw new o.ErrnoError(33)},getStreamChecked(r){var e=o.getStream(r);if(!e)throw new o.ErrnoError(8);return e},getStream:r=>o.streams[r],createStream(r,e=-1){return r=Object.assign(new o.FSStream,r),e==-1&&(e=o.nextfd()),r.fd=e,o.streams[e]=r,r},closeStream(r){o.streams[r]=null},dupStream(r,e=-1){var t=o.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,i=n?r:e;n??=e.node_ops.setattr,o.checkOpExists(n,63),n(i,t)},chrdev_stream_ops:{open(r){var e=o.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new o.ErrnoError(70)}},major:r=>r>>8,minor:r=>r&255,makedev:(r,e)=>r<<8|e,registerDevice(r,e){o.devices[r]={stream_ops:e}},getDevice:r=>o.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){typeof r=="function"&&(e=r,r=!1),o.syncFSRequests++,o.syncFSRequests>1&&B(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=o.getMounts(o.root.mount),n=0;function i(l){return o.syncFSRequests--,e(l)}function a(l){if(l)return a.errored?void 0:(a.errored=!0,i(l));++n>=t.length&&i(null)}for(var s of t)s.type.syncfs?s.type.syncfs(s,r,a):a(null)},mount(r,e,t){var n=t==="/",i=!t,a;if(n&&o.root)throw new o.ErrnoError(10);if(!n&&!i){var s=o.lookupPath(t,{follow_mount:!1});if(t=s.path,a=s.node,o.isMountpoint(a))throw new o.ErrnoError(10);if(!o.isDir(a.mode))throw new o.ErrnoError(54)}var l={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(l);return u.mount=l,l.root=u,n?o.root=u:a&&(a.mounted=l,a.mount&&a.mount.mounts.push(l)),u},unmount(r){var e=o.lookupPath(r,{follow_mount:!1});if(!o.isMountpoint(e.node))throw new o.ErrnoError(28);var t=e.node,n=t.mounted,i=o.getMounts(n);for(var[a,s]of Object.entries(o.nameTable))for(;s;){var l=s.name_next;i.includes(s.mount)&&o.destroyNode(s),s=l}t.mounted=null;var u=t.mount.mounts.indexOf(n);t.mount.mounts.splice(u,1)},lookup(r,e){return r.node_ops.lookup(r,e)},mknod(r,e,t){var n=o.lookupPath(r,{parent:!0}),i=n.node,a=y.basename(r);if(!a)throw new o.ErrnoError(28);if(a==="."||a==="..")throw new o.ErrnoError(20);var s=o.mayCreate(i,a);if(s)throw new o.ErrnoError(s);if(!i.node_ops.mknod)throw new o.ErrnoError(63);return i.node_ops.mknod(i,a,e,t)},statfs(r){return o.statfsNode(o.lookupPath(r,{follow:!0}).node)},statfsStream(r){return o.statfsNode(r.node)},statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:o.nextInode,ffree:o.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create(r,e=438){return e&=4095,e|=32768,o.mknod(r,e,0)},mkdir(r,e=511){return e&=1023,e|=16384,o.mknod(r,e,0)},mkdirTree(r,e){var t=r.split("/"),n="";for(var i of t)if(i){(n||y.isAbs(r))&&(n+="/"),n+=i;try{o.mkdir(n,e)}catch(a){if(a.errno!=20)throw a}}},mkdev(r,e,t){return typeof t>"u"&&(t=e,e=438),e|=8192,o.mknod(r,e,t)},symlink(r,e){if(!q.resolve(r))throw new o.ErrnoError(44);var t=o.lookupPath(e,{parent:!0}),n=t.node;if(!n)throw new o.ErrnoError(44);var i=y.basename(e),a=o.mayCreate(n,i);if(a)throw new o.ErrnoError(a);if(!n.node_ops.symlink)throw new o.ErrnoError(63);return n.node_ops.symlink(n,i,r)},rename(r,e){var t=y.dirname(r),n=y.dirname(e),i=y.basename(r),a=y.basename(e),s,l,u;if(s=o.lookupPath(r,{parent:!0}),l=s.node,s=o.lookupPath(e,{parent:!0}),u=s.node,!l||!u)throw new o.ErrnoError(44);if(l.mount!==u.mount)throw new o.ErrnoError(75);var f=o.lookupNode(l,i),v=q.relative(r,n);if(v.charAt(0)!==".")throw new o.ErrnoError(28);if(v=q.relative(e,t),v.charAt(0)!==".")throw new o.ErrnoError(55);var h;try{h=o.lookupNode(u,a)}catch{}if(f!==h){var c=o.isDir(f.mode),p=o.mayDelete(l,i,c);if(p)throw new o.ErrnoError(p);if(p=h?o.mayDelete(u,a,c):o.mayCreate(u,a),p)throw new o.ErrnoError(p);if(!l.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(f)||h&&o.isMountpoint(h))throw new o.ErrnoError(10);if(u!==l&&(p=o.nodePermissions(l,"w"),p))throw new o.ErrnoError(p);o.hashRemoveNode(f);try{l.node_ops.rename(f,u,a),f.parent=u}catch(g){throw g}finally{o.hashAddNode(f)}}},rmdir(r){var e=o.lookupPath(r,{parent:!0}),t=e.node,n=y.basename(r),i=o.lookupNode(t,n),a=o.mayDelete(t,n,!0);if(a)throw new o.ErrnoError(a);if(!t.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(i))throw new o.ErrnoError(10);t.node_ops.rmdir(t,n),o.destroyNode(i)},readdir(r){var e=o.lookupPath(r,{follow:!0}),t=e.node,n=o.checkOpExists(t.node_ops.readdir,54);return n(t)},unlink(r){var e=o.lookupPath(r,{parent:!0}),t=e.node;if(!t)throw new o.ErrnoError(44);var n=y.basename(r),i=o.lookupNode(t,n),a=o.mayDelete(t,n,!1);if(a)throw new o.ErrnoError(a);if(!t.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(i))throw new o.ErrnoError(10);t.node_ops.unlink(t,n),o.destroyNode(i)},readlink(r){var e=o.lookupPath(r),t=e.node;if(!t)throw new o.ErrnoError(44);if(!t.node_ops.readlink)throw new o.ErrnoError(28);return t.node_ops.readlink(t)},stat(r,e){var t=o.lookupPath(r,{follow:!e}),n=t.node,i=o.checkOpExists(n.node_ops.getattr,63);return i(n)},fstat(r){var e=o.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,i=n?e:t;return n??=t.node_ops.getattr,o.checkOpExists(n,63),n(i)},lstat(r){return o.stat(r,!0)},doChmod(r,e,t,n){o.doSetAttr(r,e,{mode:t&4095|e.mode&-4096,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;if(typeof r=="string"){var i=o.lookupPath(r,{follow:!t});n=i.node}else n=r;o.doChmod(null,n,e,t)},lchmod(r,e){o.chmod(r,e,!0)},fchmod(r,e){var t=o.getStreamChecked(r);o.doChmod(t,t.node,e,!1)},doChown(r,e,t){o.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var i;if(typeof r=="string"){var a=o.lookupPath(r,{follow:!n});i=a.node}else i=r;o.doChown(null,i,n)},lchown(r,e,t){o.chown(r,e,t,!0)},fchown(r,e,t){var n=o.getStreamChecked(r);o.doChown(n,n.node,!1)},doTruncate(r,e,t){if(o.isDir(e.mode))throw new o.ErrnoError(31);if(!o.isFile(e.mode))throw new o.ErrnoError(28);var n=o.nodePermissions(e,"w");if(n)throw new o.ErrnoError(n);o.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new o.ErrnoError(28);var t;if(typeof r=="string"){var n=o.lookupPath(r,{follow:!0});t=n.node}else t=r;o.doTruncate(null,t,e)},ftruncate(r,e){var t=o.getStreamChecked(r);if(e<0||(t.flags&2097155)===0)throw new o.ErrnoError(28);o.doTruncate(t,t.node,e)},utime(r,e,t){var n=o.lookupPath(r,{follow:!0}),i=n.node,a=o.checkOpExists(i.node_ops.setattr,63);a(i,{atime:e,mtime:t})},open(r,e,t=438){if(r==="")throw new o.ErrnoError(44);e=Bt(e),e&64?t=t&4095|32768:t=0;var n,i;if(typeof r=="object")n=r;else{i=r.endsWith("/");var a=o.lookupPath(r,{follow:!(e&131072),noent_okay:!0});n=a.node,r=a.path}var s=!1;if(e&64)if(n){if(e&128)throw new o.ErrnoError(20)}else{if(i)throw new o.ErrnoError(31);n=o.mknod(r,t|511,0),s=!0}if(!n)throw new o.ErrnoError(44);if(o.isChrdev(n.mode)&&(e&=-513),e&65536&&!o.isDir(n.mode))throw new o.ErrnoError(54);if(!s){var l=o.mayOpen(n,e);if(l)throw new o.ErrnoError(l)}e&512&&!s&&o.truncate(n,0),e&=-131713;var u=o.createStream({node:n,path:o.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return u.stream_ops.open&&u.stream_ops.open(u),s&&o.chmod(n,t&511),u},close(r){if(o.isClosed(r))throw new o.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(e){throw e}finally{o.closeStream(r.fd)}r.fd=null},isClosed(r){return r.fd===null},llseek(r,e,t){if(o.isClosed(r))throw new o.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new o.ErrnoError(70);if(t!=0&&t!=1&&t!=2)throw new o.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,i){if(n<0||i<0)throw new o.ErrnoError(28);if(o.isClosed(r))throw new o.ErrnoError(8);if((r.flags&2097155)===1)throw new o.ErrnoError(8);if(o.isDir(r.node.mode))throw new o.ErrnoError(31);if(!r.stream_ops.read)throw new o.ErrnoError(28);var a=typeof i<"u";if(!a)i=r.position;else if(!r.seekable)throw new o.ErrnoError(70);var s=r.stream_ops.read(r,e,t,n,i);return a||(r.position+=s),s},write(r,e,t,n,i,a){if(n<0||i<0)throw new o.ErrnoError(28);if(o.isClosed(r))throw new o.ErrnoError(8);if((r.flags&2097155)===0)throw new o.ErrnoError(8);if(o.isDir(r.node.mode))throw new o.ErrnoError(31);if(!r.stream_ops.write)throw new o.ErrnoError(28);r.seekable&&r.flags&1024&&o.llseek(r,0,2);var s=typeof i<"u";if(!s)i=r.position;else if(!r.seekable)throw new o.ErrnoError(70);var l=r.stream_ops.write(r,e,t,n,i,a);return s||(r.position+=l),l},mmap(r,e,t,n,i){if((n&2)!==0&&(i&2)===0&&(r.flags&2097155)!==2)throw new o.ErrnoError(2);if((r.flags&2097155)===1)throw new o.ErrnoError(2);if(!r.stream_ops.mmap)throw new o.ErrnoError(43);if(!e)throw new o.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,i)},msync(r,e,t,n,i){return r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,i):0},ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new o.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){e.flags=e.flags||0,e.encoding=e.encoding||"binary",e.encoding!=="utf8"&&e.encoding!=="binary"&&C(`Invalid encoding type "${e.encoding}"`);var t=o.open(r,e.flags),n=o.stat(r),i=n.size,a=new Uint8Array(i);return o.read(t,a,0,i,0),e.encoding==="utf8"&&(a=V(a)),o.close(t),a},writeFile(r,e,t={}){t.flags=t.flags||577;var n=o.open(r,t.flags,t.mode);e=te(e),o.write(n,e,0,e.byteLength,void 0,t.canOwn),o.close(n)},cwd:()=>o.currentPath,chdir(r){var e=o.lookupPath(r,{follow:!0});if(e.node===null)throw new o.ErrnoError(44);if(!o.isDir(e.node.mode))throw new o.ErrnoError(54);var t=o.nodePermissions(e.node,"x");if(t)throw new o.ErrnoError(t);o.currentPath=e.path},createDefaultDirectories(){o.mkdir("/tmp"),o.mkdir("/home"),o.mkdir("/home/web_user")},createDefaultDevices(){o.mkdir("/dev"),o.registerDevice(o.makedev(1,3),{read:()=>0,write:(n,i,a,s,l)=>s,llseek:()=>0}),o.mkdev("/dev/null",o.makedev(1,3)),I.register(o.makedev(5,0),I.default_tty_ops),I.register(o.makedev(6,0),I.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(e===0&&(re(r),e=r.byteLength),r[--e]);o.createDevice("/dev","random",t),o.createDevice("/dev","urandom",t),o.mkdir("/dev/shm"),o.mkdir("/dev/shm/tmp")},createSpecialDirectories(){o.mkdir("/proc");var r=o.mkdir("/proc/self");o.mkdir("/proc/self/fd"),o.mount({mount(){var e=o.createNode(r,"fd",16895,73);return e.stream_ops={llseek:m.stream_ops.llseek},e.node_ops={lookup(t,n){var i=+n,a=o.getStreamChecked(i),s={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>a.path},id:i+1};return s.parent=s,s},readdir(){return Array.from(o.streams.entries()).filter(([t,n])=>n).map(([t,n])=>t.toString())}},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?o.createDevice("/dev","stdin",r):o.symlink("/dev/tty","/dev/stdin"),e?o.createDevice("/dev","stdout",null,e):o.symlink("/dev/tty","/dev/stdout"),t?o.createDevice("/dev","stderr",null,t):o.symlink("/dev/tty1","/dev/stderr"),o.open("/dev/stdin",0),o.open("/dev/stdout",1),o.open("/dev/stderr",1)},staticInit(){o.nameTable=new Array(4096),o.mount(m,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:m}},init(r,e,t){o.initialized=!0,r??=d.stdin,e??=d.stdout,t??=d.stderr,o.createStandardStreams(r,e,t)},quit(){o.initialized=!1;for(var r of o.streams)r&&o.close(r)},findObject(r,e){var t=o.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{var t=o.lookupPath(r,{follow:!e});r=t.path}catch{}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=o.lookupPath(r,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=y.basename(r),t=o.lookupPath(r,{follow:!e}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot=t.path==="/"}catch(i){n.error=i.errno}return n},createPath(r,e,t,n){r=typeof r=="string"?r:o.getPath(r);for(var i=e.split("/").reverse();i.length;){var a=i.pop();if(a){var s=y.join2(r,a);try{o.mkdir(s)}catch(l){if(l.errno!=20)throw l}r=s}}return s},createFile(r,e,t,n,i){var a=y.join2(typeof r=="string"?r:o.getPath(r),e),s=Er(n,i);return o.create(a,s)},createDataFile(r,e,t,n,i,a){var s=e;r&&(r=typeof r=="string"?r:o.getPath(r),s=e?y.join2(r,e):r);var l=Er(n,i),u=o.create(s,l);if(t){t=te(t),o.chmod(u,l|146);var f=o.open(u,577);o.write(f,t,0,t.length,0,a),o.close(f),o.chmod(u,l)}},createDevice(r,e,t,n){var i=y.join2(typeof r=="string"?r:o.getPath(r),e),a=Er(!!t,!!n);
2o.createDevice.major??=64;var s=o.makedev(o.createDevice.major++,0);return o.registerDevice(s,{open(l){l.seekable=!1},close(l){n?.buffer?.length&&n(10)},read(l,u,f,v,h){for(var c=0,p=0;p<v;p++){var g;try{g=t()}catch{throw new o.ErrnoError(29)}if(g===void 0&&c===0)throw new o.ErrnoError(6);if(g==null)break;c++,u[f+p]=g}return c&&(l.node.atime=Date.now()),c},write(l,u,f,v,h){for(var c=0;c<v;c++)try{n(u[f+c])}catch{throw new o.ErrnoError(29)}return v&&(l.node.mtime=l.node.ctime=Date.now()),c}}),o.mkdev(i,a,s)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(globalThis.XMLHttpRequest)C("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{r.contents=me(r.url)}catch{throw new o.ErrnoError(29)}},createLazyFile(r,e,t,n,i){class a{lengthKnown=!1;chunks=[];get(c){if(!(c>this.length-1||c<0)){var p=c%this.chunkSize,g=c/this.chunkSize|0;return this.getter(g)[p]}}setDataGetter(c){this.getter=c}cacheLength(){var c=new XMLHttpRequest;c.open("HEAD",t,!1),c.send(null),c.status>=200&&c.status<300||c.status===304||C("Couldn't load "+t+". Status: "+c.status);var p=Number(c.getResponseHeader("Content-length")),g,E=(g=c.getResponseHeader("Accept-Ranges"))&&g==="bytes",_=(g=c.getResponseHeader("Content-Encoding"))&&g==="gzip",k=1024*1024;E||(k=p);var T=(b,W)=>{b>W&&C("invalid range ("+b+", "+W+") or no bytes requested!"),W>p-1&&C("only "+p+" bytes available! programmer error!");var F=new XMLHttpRequest;return F.open("GET",t,!1),p!==k&&F.setRequestHeader("Range","bytes="+b+"-"+W),F.responseType="arraybuffer",F.overrideMimeType&&F.overrideMimeType("text/plain; charset=x-user-defined"),F.send(null),F.status>=200&&F.status<300||F.status===304||C("Couldn't load "+t+". Status: "+F.status),F.response!==void 0?new Uint8Array(F.response||[]):_r(F.responseText||"")},$=this;$.setDataGetter(b=>{var W=b*k,F=(b+1)*k-1;return F=Math.min(F,p-1),typeof $.chunks[b]>"u"&&($.chunks[b]=T(W,F)),typeof $.chunks[b]>"u"&&C("doXHR failed!"),$.chunks[b]}),(_||!p)&&(k=p=1,p=this.getter(0).length,k=p,tr("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=p,this._chunkSize=k,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(globalThis.XMLHttpRequest){C("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var s=new a,l={isDevice:!1,contents:s}}else var l={isDevice:!1,url:t};var u=o.createFile(r,e,l,n,i);l.contents?u.contents=l.contents:l.url&&(u.contents=null,u.url=l.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var f={};for(const[h,c]of Object.entries(u.stream_ops))f[h]=(...p)=>(o.forceLoadFile(u),c(...p));function v(h,c,p,g,E){var _=h.node.contents;if(E>=_.length)return 0;var k=Math.min(_.length-E,g);if(_.slice)for(var T=0;T<k;T++)c[p+T]=_[E+T];else for(var T=0;T<k;T++)c[p+T]=_.get(E+T);return k}return f.read=(h,c,p,g,E)=>(o.forceLoadFile(u),v(h,c,p,g,E)),f.mmap=(h,c,p,g,E)=>{o.forceLoadFile(u);var _=ee();if(!_)throw new o.ErrnoError(48);return v(h,P,_,c,p),{ptr:_,allocated:!0}},u.stream_ops=f,u}},Q={calculateAt(r,e,t){if(y.isAbs(e))return e;var n;if(r===-100)n=o.cwd();else{var i=Q.getStreamFromFD(r);n=i.path}if(e.length==0){if(!t)throw new o.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){w[r>>2]=e.dev,w[r+4>>2]=e.mode,w[r+8>>2]=e.nlink,w[r+12>>2]=e.uid,w[r+16>>2]=e.gid,w[r+20>>2]=e.rdev,S[r+24>>3]=BigInt(e.size),N[r+32>>2]=4096,N[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),i=e.ctime.getTime();return S[r+40>>3]=BigInt(Math.floor(t/1e3)),w[r+48>>2]=t%1e3*1e3*1e3,S[r+56>>3]=BigInt(Math.floor(n/1e3)),w[r+64>>2]=n%1e3*1e3*1e3,S[r+72>>3]=BigInt(Math.floor(i/1e3)),w[r+80>>2]=i%1e3*1e3*1e3,S[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){w[r+4>>2]=e.bsize,w[r+60>>2]=e.bsize,S[r+8>>3]=BigInt(e.blocks),S[r+16>>3]=BigInt(e.bfree),S[r+24>>3]=BigInt(e.bavail),S[r+32>>3]=BigInt(e.files),S[r+40>>3]=BigInt(e.ffree),w[r+48>>2]=e.fsid,w[r+64>>2]=e.flags,w[r+56>>2]=e.namelen},doMsync(r,e,t,n,i){if(!o.isFile(e.node.mode))throw new o.ErrnoError(43);if(n&2)return 0;var a=M.slice(r,r+t);o.msync(e,a,i,t,n)},getStreamFromFD(r){var e=o.getStreamChecked(r);return e},varargs:void 0,getStr(r){var e=wr(r);return e}};function Ot(r){try{var e=Q.getStreamFromFD(r);return o.close(e),0}catch(t){if(typeof o>"u"||t.name!=="ErrnoError")throw t;return t.errno}}var $t=(r,e,t,n)=>{for(var i=0,a=0;a<t;a++){var s=w[e>>2],l=w[e+4>>
22];e+=8;var u=o.read(r,P,s,l,n);if(u<0)return-1;if(i+=u,u<l)break}return i};function jt(r,e,t,n){try{var i=Q.getStreamFromFD(r),a=$t(i,e,t);return w[n>>2]=a,0}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return s.errno}}var Ht=9007199254740992,Lt=-9007199254740992,Vt=r=>r<Lt||r>Ht?NaN:Number(r);function qt(r,e,t,n){e=Vt(e);try{if(isNaN(e))return 61;var i=Q.getStreamFromFD(r);return o.llseek(i,e,t),S[n>>3]=BigInt(i.position),i.getdents&&e===0&&t===0&&(i.getdents=null),0}catch(a){if(typeof o>"u"||a.name!=="ErrnoError")throw a;return a.errno}}var Xt=(r,e,t,n)=>{for(var i=0,a=0;a<t;a++){var s=w[e>>2],l=w[e+4>>2];e+=8;var u=o.write(r,P,s,l,n);if(u<0)return-1;if(i+=u,u<l)break}return i};function Gt(r,e,t,n){try{var i=Q.getStreamFromFD(r),a=Xt(i,e,t);return w[n>>2]=a,0}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return s.errno}}var Kt=r=>{var e=d["_"+r];return e},Yt=(r,e)=>{P.set(r,e)},ie=r=>ue(r),Jt=r=>{var e=ur(r)+1,t=ie(e);return x(r,t,e),t},Zt=(r,e,t,n,i)=>{var a={string:g=>{var E=0;return g!=null&&g!==0&&(E=Jt(g)),E},array:g=>{var E=ie(g.length);return Yt(g,E),E}};function s(g){return e==="string"?wr(g):e==="boolean"?!!g:g}var l=Kt(r),u=[],f=0;if(n)for(var v=0;v<n.length;v++){var h=a[t[v]];h?(f===0&&(f=Se()),u[v]=h(n[v])):u[v]=n[v]}var c=l(...u);function p(g){return f!==0&&Ae(f),s(g)}return c=p(c),c};if(o.createPreloadedFile=It,o.preloadFile=oe,o.staticInit(),d.noExitRuntime&&(hr=d.noExitRuntime),d.preloadPlugins&&(ne=d.preloadPlugins),d.print&&(tr=d.print),d.printErr&&(B=d.printErr),d.wasmBinary&&(X=d.wasmBinary),d.arguments&&d.arguments,d.thisProgram&&(Fr=d.thisProgram),d.preInit)for(typeof d.preInit=="function"&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.shift()();d.ccall=Zt;var ae,se,kr,U,le,ue,fe,fr,de;function Qt(r){ae=r.E,se=r.G,kr=d._malloc=r.H,U=d._free=r.I,le=r.J,ue=r.K,fe=r.L,fr=r.C,de=r.F}var rn={a:Ce,v:Re,m:Be,i:We,k:ze,A:Oe,B:He,f:Ve,h:Xe,d:tt,e:nt,b:ot,j:it,g:vt,n:ct,c:mt,l:ht,p:pt,q:kt,r:bt,w:At,s:Dt,t:Ct,z:Ot,u:jt,x:qt,y:Gt,o:Qr};function br(){if(O>0){Z=br;return}if(he(),O>0){Z=br;return}function r(){d.calledRun=!0,!nr&&(pe(),Pr?.(d),d.onRuntimeInitialized?.(),we())}d.setStatus?(d.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>d.setStatus(""),1),r()},1)):r()}var rr;return rr=await Fe(),br(),Sr?dr=d:dr=new Promise((r,e)=>{Pr=r,Ar=e}),dr}export{nn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.