
var loadWASM = (() => {
  var _scriptDir = import.meta.url;
  
  return (
function(loadWASM) {
  loadWASM = loadWASM || {};


var Module;Module||(Module=typeof loadWASM !== 'undefined' ? loadWASM : {});var aa,ba;Module.ready=new Promise(function(a,b){aa=a;ba=b});null;
Module.onRuntimeInitialized=function(){function a(f,l){switch(typeof l){case "boolean":Zb(f,l?1:0);break;case "number":$b(f,l);break;case "string":ac(f,l,-1,-1);break;case "object":if(null===l)db(f);else if(null!=l.length){var m=ca(l);bc(f,m,l.length,-1);da(m)}else ua(f,"Wrong API use : tried to return a value of an unknown type ("+l+").",-1);break;default:db(f)}}function b(f,l){for(var m=[],p=0;p<f;p+=1){var u=k(l+4*p,"i32"),w=cc(u);if(1===w||2===w)u=dc(u);else if(3===w)u=ec(u);else if(4===w){w=
u;u=fc(w);w=gc(w);for(var J=new Uint8Array(u),F=0;F<u;F+=1)J[F]=q[w+F];u=J}else u=null;m.push(u)}return m}function c(f,l){this.La=f;this.db=l;this.Ja=1;this.pb=[]}function d(f,l){this.db=l;l=ea(f)+1;this.bb=fa(l);if(null===this.bb)throw Error("Unable to allocate memory for the SQL string");r(f,t,this.bb,l);this.lb=this.bb;this.Xa=this.sb=null}function e(f){this.filename="dbfile_"+(4294967295*Math.random()>>>0);if(null!=f){var l=this.filename,m="/",p=l;m&&(m="string"==typeof m?m:ha(m),p=l?y(m+"/"+
l):m);l=ia(!0,!0);p=ja(p,(void 0!==l?l:438)&4095|32768,0);if(f){if("string"==typeof f){m=Array(f.length);for(var u=0,w=f.length;u<w;++u)m[u]=f.charCodeAt(u);f=m}ka(p,l|146);m=la(p,577);na(m,f,0,f.length,0);oa(m);ka(p,l)}}this.handleError(n(this.filename,g));this.db=k(g,"i32");hc(this.db);this.gb={};this.Na={}}var g=A(4),h=Module.cwrap,n=h("sqlite3_open","number",["string","number"]),x=h("sqlite3_close_v2","number",["number"]),v=h("sqlite3_exec","number",["number","string","number","number","number"]),
z=h("sqlite3_changes","number",["number"]),Q=h("sqlite3_prepare_v2","number",["number","string","number","number","number"]),gb=h("sqlite3_sql","string",["number"]),ic=h("sqlite3_normalized_sql","string",["number"]),hb=h("sqlite3_prepare_v2","number",["number","number","number","number","number"]),jc=h("sqlite3_bind_text","number",["number","number","number","number","number"]),ib=h("sqlite3_bind_blob","number",["number","number","number","number","number"]),kc=h("sqlite3_bind_double","number",["number",
"number","number"]),lc=h("sqlite3_bind_int","number",["number","number","number"]),mc=h("sqlite3_bind_parameter_index","number",["number","string"]),nc=h("sqlite3_step","number",["number"]),oc=h("sqlite3_errmsg","string",["number"]),pc=h("sqlite3_column_count","number",["number"]),qc=h("sqlite3_data_count","number",["number"]),rc=h("sqlite3_column_double","number",["number","number"]),jb=h("sqlite3_column_text","string",["number","number"]),sc=h("sqlite3_column_blob","number",["number","number"]),
tc=h("sqlite3_column_bytes","number",["number","number"]),uc=h("sqlite3_column_type","number",["number","number"]),vc=h("sqlite3_column_name","string",["number","number"]),wc=h("sqlite3_reset","number",["number"]),xc=h("sqlite3_clear_bindings","number",["number"]),yc=h("sqlite3_finalize","number",["number"]),kb=h("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),cc=h("sqlite3_value_type","number",["number"]),fc=h("sqlite3_value_bytes",
"number",["number"]),ec=h("sqlite3_value_text","string",["number"]),gc=h("sqlite3_value_blob","number",["number"]),dc=h("sqlite3_value_double","number",["number"]),$b=h("sqlite3_result_double","",["number","number"]),db=h("sqlite3_result_null","",["number"]),ac=h("sqlite3_result_text","",["number","string","number","number"]),bc=h("sqlite3_result_blob","",["number","number","number","number"]),Zb=h("sqlite3_result_int","",["number","number"]),ua=h("sqlite3_result_error","",["number","string","number"]),
lb=h("sqlite3_aggregate_context","number",["number","number"]),hc=h("RegisterExtensionFunctions","number",["number"]);c.prototype.bind=function(f){if(!this.La)throw"Statement closed";this.reset();return Array.isArray(f)?this.bindFromArray(f):null!=f&&"object"===typeof f?this.bindFromObject(f):!0};c.prototype.step=function(){if(!this.La)throw"Statement closed";this.Ja=1;var f=nc(this.La);switch(f){case 100:return!0;case 101:return!1;default:throw this.db.handleError(f);}};c.prototype.getNumber=function(f){null==
f&&(f=this.Ja,this.Ja+=1);return rc(this.La,f)};c.prototype.getBigInt=function(f){null==f&&(f=this.Ja,this.Ja+=1);f=jb(this.La,f);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(f)};c.prototype.getString=function(f){null==f&&(f=this.Ja,this.Ja+=1);return jb(this.La,f)};c.prototype.getBlob=function(f){null==f&&(f=this.Ja,this.Ja+=1);var l=tc(this.La,f);f=sc(this.La,f);for(var m=new Uint8Array(l),p=0;p<l;p+=1)m[p]=q[f+p];return m};c.prototype.get=function(f,l){l=l||
{};null!=f&&this.bind(f)&&this.step();f=[];for(var m=qc(this.La),p=0;p<m;p+=1)switch(uc(this.La,p)){case 1:var u=l.useBigInt?this.getBigInt(p):this.getNumber(p);f.push(u);break;case 2:f.push(this.getNumber(p));break;case 3:f.push(this.getString(p));break;case 4:f.push(this.getBlob(p));break;default:f.push(null)}return f};c.prototype.getColumnNames=function(){for(var f=[],l=pc(this.La),m=0;m<l;m+=1)f.push(vc(this.La,m));return f};c.prototype.getAsObject=function(f,l){f=this.get(f,l);l=this.getColumnNames();
for(var m={},p=0;p<l.length;p+=1)m[l[p]]=f[p];return m};c.prototype.getSQL=function(){return gb(this.La)};c.prototype.getNormalizedSQL=function(){return ic(this.La)};c.prototype.run=function(f){null!=f&&this.bind(f);this.step();return this.reset()};c.prototype.bindString=function(f,l){null==l&&(l=this.Ja,this.Ja+=1);f=pa(f);var m=ca(f);this.pb.push(m);this.db.handleError(jc(this.La,l,m,f.length-1,0));return!0};c.prototype.bindBlob=function(f,l){null==l&&(l=this.Ja,this.Ja+=1);var m=ca(f);this.pb.push(m);
this.db.handleError(ib(this.La,l,m,f.length,0));return!0};c.prototype.bindNumber=function(f,l){null==l&&(l=this.Ja,this.Ja+=1);this.db.handleError((f===(f|0)?lc:kc)(this.La,l,f));return!0};c.prototype.bindNull=function(f){null==f&&(f=this.Ja,this.Ja+=1);return 0===ib(this.La,f,0,0,0)};c.prototype.xb=function(f,l){null==l&&(l=this.Ja,this.Ja+=1);switch(typeof f){case "string":this.bindString(f,l);return;case "number":this.bindNumber(f,l);return;case "bigint":this.bindString(f.toString(),l);return;
case "boolean":this.bindNumber(f+0,l);return;case "object":if(null===f){this.bindNull(l);return}if(null!=f.length){this.bindBlob(f,l);return}}throw"Wrong API use : tried to bind a value of an unknown type ("+f+").";};c.prototype.bindFromObject=function(f){var l=this;Object.keys(f).forEach(function(m){var p=mc(l.La,m);0!==p&&l.xb(f[m],p)});return!0};c.prototype.bindFromArray=function(f){for(var l=0;l<f.length;l+=1)this.xb(f[l],l+1);return!0};c.prototype.reset=function(){this.freemem();return 0===xc(this.La)&&
0===wc(this.La)};c.prototype.freemem=function(){for(var f;void 0!==(f=this.pb.pop());)da(f)};c.prototype.free=function(){this.freemem();var f=0===yc(this.La);delete this.db.gb[this.La];this.La=0;return f};d.prototype.next=function(){if(null===this.bb)return{done:!0};null!==this.Xa&&(this.Xa.free(),this.Xa=null);if(!this.db.db)throw this.finalize(),Error("Database closed");var f=qa(),l=A(4);ra(g);ra(l);try{this.db.handleError(hb(this.db.db,this.lb,-1,g,l));this.lb=k(l,"i32");var m=k(g,"i32");if(0===
m)return this.finalize(),{done:!0};this.Xa=new c(m,this.db);this.db.gb[m]=this.Xa;return{value:this.Xa,done:!1}}catch(p){throw this.sb=B(this.lb),this.finalize(),p;}finally{sa(f)}};d.prototype.finalize=function(){da(this.bb);this.bb=null};d.prototype.getRemainingSQL=function(){return null!==this.sb?this.sb:B(this.lb)};"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator&&(d.prototype[Symbol.iterator]=function(){return this});e.prototype.run=function(f,l){if(!this.db)throw"Database closed";
if(l){f=this.prepare(f,l);try{f.step()}finally{f.free()}}else this.handleError(v(this.db,f,0,0,g));return this};e.prototype.exec=function(f,l,m){if(!this.db)throw"Database closed";var p=qa(),u=null;try{var w=ea(f)+1,J=A(w);r(f,q,J,w);var F=J;var G=A(4);for(f=[];0!==k(F,"i8");){ra(g);ra(G);this.handleError(hb(this.db,F,-1,g,G));var H=k(g,"i32");F=k(G,"i32");if(0!==H){w={columns:[],values:[]};f.push(w);u=new c(H,this);for(null!=l&&u.bind(l);u.step();)w.columns=u.getColumnNames(),w.values.push(u.get(null,
m));u.free()}}return f}catch(ma){throw u&&u.free(),ma;}finally{sa(p)}};e.prototype.each=function(f,l,m,p,u){"function"===typeof l&&(p=m,m=l,l=void 0);f=this.prepare(f,l);try{for(;f.step();)m(f.getAsObject(null,u))}finally{f.free()}if("function"===typeof p)return p()};e.prototype.prepare=function(f,l){ra(g);this.handleError(Q(this.db,f,-1,g,0));f=k(g,"i32");if(0===f)throw"Nothing to prepare";var m=new c(f,this);null!=l&&m.bind(l);return this.gb[f]=m};e.prototype.iterateStatements=function(f){return new d(f,
this)};e.prototype["export"]=function(){Object.values(this.gb).forEach(function(l){l.free()});Object.values(this.Na).forEach(ta);this.Na={};this.handleError(x(this.db));var f=va(this.filename);this.handleError(n(this.filename,g));this.db=k(g,"i32");return f};e.prototype.close=function(){null!==this.db&&(Object.values(this.gb).forEach(function(f){f.free()}),Object.values(this.Na).forEach(ta),this.Na={},this.handleError(x(this.db)),wa("/"+this.filename),this.db=null)};e.prototype.handleError=function(f){if(0===
f)return null;f=oc(this.db);throw Error(f);};e.prototype.getRowsModified=function(){return z(this.db)};e.prototype.create_function=function(f,l){Object.prototype.hasOwnProperty.call(this.Na,f)&&(ta(this.Na[f]),delete this.Na[f]);var m=xa(function(p,u,w){u=b(u,w);try{var J=l.apply(null,u)}catch(F){ua(p,F,-1);return}a(p,J)},"viii");this.Na[f]=m;this.handleError(kb(this.db,f,l.length,1,0,m,0,0,0));return this};e.prototype.create_aggregate=function(f,l){var m=l.init||function(){return null},p=l.finalize||
function(G){return G},u=l.step;if(!u)throw"An aggregate function must have a step function in "+f;var w={};Object.hasOwnProperty.call(this.Na,f)&&(ta(this.Na[f]),delete this.Na[f]);l=f+"__finalize";Object.hasOwnProperty.call(this.Na,l)&&(ta(this.Na[l]),delete this.Na[l]);var J=xa(function(G,H,ma){var Y=lb(G,1);Object.hasOwnProperty.call(w,Y)||(w[Y]=m());H=b(H,ma);H=[w[Y]].concat(H);try{w[Y]=u.apply(null,H)}catch(Ac){delete w[Y],ua(G,Ac,-1)}},"viii"),F=xa(function(G){var H=lb(G,1);try{var ma=p(w[H])}catch(Y){delete w[H];
ua(G,Y,-1);return}a(G,ma);delete w[H]},"vi");this.Na[f]=J;this.Na[l]=F;this.handleError(kb(this.db,f,u.length-1,1,0,0,J,F,0));return this};Module.Database=e};var ya=Object.assign({},Module),za="./this.program",C="";"undefined"!=typeof document&&document.currentScript&&(C=document.currentScript.src);_scriptDir&&(C=_scriptDir);0!==C.indexOf("blob:")?C=C.substr(0,C.replace(/[?#].*/,"").lastIndexOf("/")+1):C="";var Aa=Module.print||console.log.bind(console),D=Module.printErr||console.warn.bind(console);
Object.assign(Module,ya);ya=null;Module.thisProgram&&(za=Module.thisProgram);var Ba;Module.wasmBinary&&(Ba=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&E("no native wasm support detected");var Ca,Da=!1,Ea="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
function Fa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Ea)return Ea.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var g=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|g);else{var h=a[b++]&63;e=224==(e&240)?(e&15)<<12|g<<6|h:(e&7)<<18|g<<12|h<<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}function B(a,b){return a?Fa(t,a,b):""}
function r(a,b,c,d){if(!(0<d))return 0;var e=c;d=c+d-1;for(var g=0;g<a.length;++g){var h=a.charCodeAt(g);if(55296<=h&&57343>=h){var n=a.charCodeAt(++g);h=65536+((h&1023)<<10)|n&1023}if(127>=h){if(c>=d)break;b[c++]=h}else{if(2047>=h){if(c+1>=d)break;b[c++]=192|h>>6}else{if(65535>=h){if(c+2>=d)break;b[c++]=224|h>>12}else{if(c+3>=d)break;b[c++]=240|h>>18;b[c++]=128|h>>12&63}b[c++]=128|h>>6&63}b[c++]=128|h&63}}b[c]=0;return c-e}
function ea(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}var Ga,q,t,Ha,I,K,Ia,Ja;function Ka(){var a=Ca.buffer;Ga=a;Module.HEAP8=q=new Int8Array(a);Module.HEAP16=Ha=new Int16Array(a);Module.HEAP32=I=new Int32Array(a);Module.HEAPU8=t=new Uint8Array(a);Module.HEAPU16=new Uint16Array(a);Module.HEAPU32=K=new Uint32Array(a);Module.HEAPF32=Ia=new Float32Array(a);Module.HEAPF64=Ja=new Float64Array(a)}var L,La=[],Ma=[],Na=[];
function Oa(){var a=Module.preRun.shift();La.unshift(a)}var Pa=0,Qa=null,Ra=null;function E(a){if(Module.onAbort)Module.onAbort(a);a="Aborted("+a+")";D(a);Da=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Sa(){return M.startsWith("data:application/octet-stream;base64,")}var M;if(Module.locateFile){if(M="sql-wasm-module-web.wasm",!Sa()){var Ta=M;M=Module.locateFile?Module.locateFile(Ta,C):C+Ta}}else M=(new URL("sql-wasm-module-web.wasm",import.meta.url)).toString();
function Ua(){var a=M;try{if(a==M&&Ba)return new Uint8Array(Ba);throw"both async and sync fetching of the wasm failed";}catch(b){E(b)}}function Va(){return Ba||"function"!=typeof fetch?Promise.resolve().then(function(){return Ua()}):fetch(M,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+M+"'";return a.arrayBuffer()}).catch(function(){return Ua()})}var N,O;function Wa(a){for(;0<a.length;)a.shift()(Module)}
function k(a,b="i8"){b.endsWith("*")&&(b="*");switch(b){case "i1":return q[a>>0];case "i8":return q[a>>0];case "i16":return Ha[a>>1];case "i32":return I[a>>2];case "i64":return I[a>>2];case "float":return Ia[a>>2];case "double":return Ja[a>>3];case "*":return K[a>>2];default:E("invalid type for getValue: "+b)}return null}
function ra(a){var b="i32";b.endsWith("*")&&(b="*");switch(b){case "i1":q[a>>0]=0;break;case "i8":q[a>>0]=0;break;case "i16":Ha[a>>1]=0;break;case "i32":I[a>>2]=0;break;case "i64":O=[0,(N=0,1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[a>>2]=O[0];I[a+4>>2]=O[1];break;case "float":Ia[a>>2]=0;break;case "double":Ja[a>>3]=0;break;case "*":K[a>>2]=0;break;default:E("invalid type for setValue: "+b)}}
var Xa=(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,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},y=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Xa(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ya=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},Za=a=>{if("/"===
a)return"/";a=y(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function $a(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var a=new Uint8Array(1);return()=>{crypto.getRandomValues(a);return a[0]}}return()=>E("randomDevice")}
function ab(){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=Xa(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}function pa(a,b){var c=Array(ea(a)+1);a=r(a,c,0,c.length);b&&(c.length=a);return c}var bb=[];function cb(a,b){bb[a]={input:[],Pa:[],ab:b};eb(a,fb)}
var fb={open:function(a){var b=bb[a.node.eb];if(!b)throw new P(43);a.Qa=b;a.seekable=!1},close:function(a){a.Qa.ab.Ya(a.Qa)},Ya:function(a){a.Qa.ab.Ya(a.Qa)},read:function(a,b,c,d){if(!a.Qa||!a.Qa.ab.Cb)throw new P(60);for(var e=0,g=0;g<d;g++){try{var h=a.Qa.ab.Cb(a.Qa)}catch(n){throw new P(29);}if(void 0===h&&0===e)throw new P(6);if(null===h||void 0===h)break;e++;b[c+g]=h}e&&(a.node.timestamp=Date.now());return e},write:function(a,b,c,d){if(!a.Qa||!a.Qa.ab.tb)throw new P(60);try{for(var e=0;e<d;e++)a.Qa.ab.tb(a.Qa,
b[c+e])}catch(g){throw new P(29);}d&&(a.node.timestamp=Date.now());return e}},mb={Cb:function(a){if(!a.input.length){var b=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&(b=readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=pa(b,!0)}return a.input.shift()},tb:function(a,b){null===b||10===b?(Aa(Fa(a.Pa,0)),a.Pa=[]):0!=b&&a.Pa.push(b)},Ya:function(a){a.Pa&&0<a.Pa.length&&(Aa(Fa(a.Pa,0)),a.Pa=[])}},
nb={tb:function(a,b){null===b||10===b?(D(Fa(a.Pa,0)),a.Pa=[]):0!=b&&a.Pa.push(b)},Ya:function(a){a.Pa&&0<a.Pa.length&&(D(Fa(a.Pa,0)),a.Pa=[])}},R={Sa:null,Ta:function(){return R.createNode(null,"/",16895,0)},createNode:function(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new P(63);R.Sa||(R.Sa={dir:{node:{Ra:R.Ga.Ra,Oa:R.Ga.Oa,cb:R.Ga.cb,ib:R.Ga.ib,Gb:R.Ga.Gb,ob:R.Ga.ob,mb:R.Ga.mb,Fb:R.Ga.Fb,nb:R.Ga.nb},stream:{Wa:R.Ha.Wa}},file:{node:{Ra:R.Ga.Ra,Oa:R.Ga.Oa},stream:{Wa:R.Ha.Wa,read:R.Ha.read,
write:R.Ha.write,vb:R.Ha.vb,jb:R.Ha.jb,kb:R.Ha.kb}},link:{node:{Ra:R.Ga.Ra,Oa:R.Ga.Oa,fb:R.Ga.fb},stream:{}},yb:{node:{Ra:R.Ga.Ra,Oa:R.Ga.Oa},stream:ob}});c=pb(a,b,c,d);16384===(c.mode&61440)?(c.Ga=R.Sa.dir.node,c.Ha=R.Sa.dir.stream,c.Ia={}):32768===(c.mode&61440)?(c.Ga=R.Sa.file.node,c.Ha=R.Sa.file.stream,c.Ma=0,c.Ia=null):40960===(c.mode&61440)?(c.Ga=R.Sa.link.node,c.Ha=R.Sa.link.stream):8192===(c.mode&61440)&&(c.Ga=R.Sa.yb.node,c.Ha=R.Sa.yb.stream);c.timestamp=Date.now();a&&(a.Ia[b]=c,a.timestamp=
c.timestamp);return c},Tb:function(a){return a.Ia?a.Ia.subarray?a.Ia.subarray(0,a.Ma):new Uint8Array(a.Ia):new Uint8Array(0)},Ab:function(a,b){var c=a.Ia?a.Ia.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Ia,a.Ia=new Uint8Array(b),0<a.Ma&&a.Ia.set(c.subarray(0,a.Ma),0))},Qb:function(a,b){if(a.Ma!=b)if(0==b)a.Ia=null,a.Ma=0;else{var c=a.Ia;a.Ia=new Uint8Array(b);c&&a.Ia.set(c.subarray(0,Math.min(b,a.Ma)));a.Ma=b}},Ga:{Ra:function(a){var b={};b.Lb=8192===(a.mode&
61440)?a.id:1;b.rb=a.id;b.mode=a.mode;b.Ob=1;b.uid=0;b.Mb=0;b.eb=a.eb;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.Ma:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.wb=new Date(a.timestamp);b.Eb=new Date(a.timestamp);b.zb=new Date(a.timestamp);b.Ib=4096;b.Jb=Math.ceil(b.size/b.Ib);return b},Oa:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&R.Qb(a,b.size)},cb:function(){throw qb[44];},ib:function(a,b,c,d){return R.createNode(a,
b,c,d)},Gb:function(a,b,c){if(16384===(a.mode&61440)){try{var d=rb(b,c)}catch(g){}if(d)for(var e in d.Ia)throw new P(55);}delete a.parent.Ia[a.name];a.parent.timestamp=Date.now();a.name=c;b.Ia[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},ob:function(a,b){delete a.Ia[b];a.timestamp=Date.now()},mb:function(a,b){var c=rb(a,b),d;for(d in c.Ia)throw new P(55);delete a.Ia[b];a.timestamp=Date.now()},Fb:function(a){var b=[".",".."],c;for(c in a.Ia)a.Ia.hasOwnProperty(c)&&b.push(c);return b},nb:function(a,
b,c){a=R.createNode(a,b,41471,0);a.link=c;return a},fb:function(a){if(40960!==(a.mode&61440))throw new P(28);return a.link}},Ha:{read:function(a,b,c,d,e){var g=a.node.Ia;if(e>=a.node.Ma)return 0;a=Math.min(a.node.Ma-e,d);if(8<a&&g.subarray)b.set(g.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=g[e+d];return a},write:function(a,b,c,d,e,g){b.buffer===q.buffer&&(g=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Ia||a.Ia.subarray)){if(g)return a.Ia=b.subarray(c,c+d),a.Ma=d;if(0===
a.Ma&&0===e)return a.Ia=b.slice(c,c+d),a.Ma=d;if(e+d<=a.Ma)return a.Ia.set(b.subarray(c,c+d),e),d}R.Ab(a,e+d);if(a.Ia.subarray&&b.subarray)a.Ia.set(b.subarray(c,c+d),e);else for(g=0;g<d;g++)a.Ia[e+g]=b[c+g];a.Ma=Math.max(a.Ma,e+d);return d},Wa:function(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Ma);if(0>b)throw new P(28);return b},vb:function(a,b,c){R.Ab(a.node,b+c);a.node.Ma=Math.max(a.node.Ma,b+c)},jb:function(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new P(43);
a=a.node.Ia;if(e&2||a.buffer!==Ga){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=sb(65536,b))?(t.fill(0,e,e+b),b=e):b=0;if(!b)throw new P(48);q.set(a,b)}else c=!1,b=a.byteOffset;return{Pb:b,Hb:c}},kb:function(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new P(43);if(e&2)return 0;R.Ha.write(a,b,0,d,c,!1);return 0}}},tb=null,ub={},S=[],vb=1,T=null,wb=!0,P=null,qb={},U=(a,b={})=>{a=ab("/",a);if(!a)return{path:"",node:null};
b=Object.assign({Bb:!0,ub:0},b);if(8<b.ub)throw new P(32);a=Xa(a.split("/").filter(h=>!!h),!1);for(var c=tb,d="/",e=0;e<a.length;e++){var g=e===a.length-1;if(g&&b.parent)break;c=rb(c,a[e]);d=y(d+"/"+a[e]);c.Za&&(!g||g&&b.Bb)&&(c=c.Za.root);if(!g||b.Va)for(g=0;40960===(c.mode&61440);)if(c=xb(d),d=ab(Ya(d),c),c=U(d,{ub:b.ub+1}).node,40<g++)throw new P(32);}return{path:d,node:c}},ha=a=>{for(var b;;){if(a===a.parent)return a=a.Ta.Db,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}},
yb=(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%T.length},zb=a=>{var b=yb(a.parent.id,a.name);if(T[b]===a)T[b]=a.$a;else for(b=T[b];b;){if(b.$a===a){b.$a=a.$a;break}b=b.$a}},rb=(a,b)=>{var c;if(c=(c=Ab(a,"x"))?c:a.Ga.cb?0:2)throw new P(c,a);for(c=T[yb(a.id,b)];c;c=c.$a){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Ga.cb(a,b)},pb=(a,b,c,d)=>{a=new Bb(a,b,c,d);b=yb(a.parent.id,a.name);a.$a=T[b];return T[b]=a},Cb={r:0,"r+":2,w:577,"w+":578,a:1089,
"a+":1090},Db=a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},Ab=(a,b)=>{if(wb)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},Eb=(a,b)=>{try{return rb(a,b),20}catch(c){}return Ab(a,"wx")},Fb=(a,b,c)=>{try{var d=rb(a,b)}catch(e){return e.Ka}if(a=Ab(a,"wx"))return a;if(c){if(16384!==(d.mode&61440))return 54;if(d===d.parent||"/"===ha(d))return 10}else if(16384===(d.mode&61440))return 31;return 0},Gb=
(a=0)=>{for(;4096>=a;a++)if(!S[a])return a;throw new P(33);},Ib=(a,b)=>{Hb||(Hb=function(){this.hb={}},Hb.prototype={},Object.defineProperties(Hb.prototype,{object:{get:function(){return this.node},set:function(c){this.node=c}},flags:{get:function(){return this.hb.flags},set:function(c){this.hb.flags=c}},position:{get:function(){return this.hb.position},set:function(c){this.hb.position=c}}}));a=Object.assign(new Hb,a);b=Gb(b);a.Ua=b;return S[b]=a},ob={open:a=>{a.Ha=ub[a.node.eb].Ha;a.Ha.open&&a.Ha.open(a)},
Wa:()=>{throw new P(70);}},eb=(a,b)=>{ub[a]={Ha:b}},Jb=(a,b)=>{var c="/"===b,d=!b;if(c&&tb)throw new P(10);if(!c&&!d){var e=U(b,{Bb:!1});b=e.path;e=e.node;if(e.Za)throw new P(10);if(16384!==(e.mode&61440))throw new P(54);}b={type:a,Ub:{},Db:b,Nb:[]};a=a.Ta(b);a.Ta=b;b.root=a;c?tb=a:e&&(e.Za=b,e.Ta&&e.Ta.Nb.push(b))},ja=(a,b,c)=>{var d=U(a,{parent:!0}).node;a=Za(a);if(!a||"."===a||".."===a)throw new P(28);var e=Eb(d,a);if(e)throw new P(e);if(!d.Ga.ib)throw new P(63);return d.Ga.ib(d,a,b,c)},V=(a,b)=>
ja(a,(void 0!==b?b:511)&1023|16384,0),Kb=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);ja(a,b|8192,c)},Lb=(a,b)=>{if(!ab(a))throw new P(44);var c=U(b,{parent:!0}).node;if(!c)throw new P(44);b=Za(b);var d=Eb(c,b);if(d)throw new P(d);if(!c.Ga.nb)throw new P(63);c.Ga.nb(c,b,a)},Mb=a=>{var b=U(a,{parent:!0}).node;a=Za(a);var c=rb(b,a),d=Fb(b,a,!0);if(d)throw new P(d);if(!b.Ga.mb)throw new P(63);if(c.Za)throw new P(10);b.Ga.mb(b,a);zb(c)},wa=a=>{var b=U(a,{parent:!0}).node;if(!b)throw new P(44);a=Za(a);
var c=rb(b,a),d=Fb(b,a,!1);if(d)throw new P(d);if(!b.Ga.ob)throw new P(63);if(c.Za)throw new P(10);b.Ga.ob(b,a);zb(c)},xb=a=>{a=U(a).node;if(!a)throw new P(44);if(!a.Ga.fb)throw new P(28);return ab(ha(a.parent),a.Ga.fb(a))},Nb=(a,b)=>{a=U(a,{Va:!b}).node;if(!a)throw new P(44);if(!a.Ga.Ra)throw new P(63);return a.Ga.Ra(a)},Ob=a=>Nb(a,!0),ka=(a,b)=>{a="string"==typeof a?U(a,{Va:!0}).node:a;if(!a.Ga.Oa)throw new P(63);a.Ga.Oa(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},Pb=(a,b)=>{if(0>b)throw new P(28);
a="string"==typeof a?U(a,{Va:!0}).node:a;if(!a.Ga.Oa)throw new P(63);if(16384===(a.mode&61440))throw new P(31);if(32768!==(a.mode&61440))throw new P(28);var c=Ab(a,"w");if(c)throw new P(c);a.Ga.Oa(a,{size:b,timestamp:Date.now()})},la=(a,b,c)=>{if(""===a)throw new P(44);if("string"==typeof b){var d=Cb[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=y(a);try{e=U(a,{Va:!(b&131072)}).node}catch(g){}}d=
!1;if(b&64)if(e){if(b&128)throw new P(20);}else e=ja(a,c,0),d=!0;if(!e)throw new P(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new P(54);if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==Db(b)||b&512)?31:Ab(e,Db(b)):44))throw new P(c);b&512&&!d&&Pb(e,0);b&=-131713;e=Ib({node:e,path:ha(e),flags:b,seekable:!0,position:0,Ha:e.Ha,Sb:[],error:!1});e.Ha.open&&e.Ha.open(e);!Module.logReadFiles||b&1||(Qb||(Qb={}),a in Qb||(Qb[a]=1));return e},oa=a=>{if(null===
a.Ua)throw new P(8);a.qb&&(a.qb=null);try{a.Ha.close&&a.Ha.close(a)}catch(b){throw b;}finally{S[a.Ua]=null}a.Ua=null},Rb=(a,b,c)=>{if(null===a.Ua)throw new P(8);if(!a.seekable||!a.Ha.Wa)throw new P(70);if(0!=c&&1!=c&&2!=c)throw new P(28);a.position=a.Ha.Wa(a,b,c);a.Sb=[]},Sb=(a,b,c,d,e)=>{if(0>d||0>e)throw new P(28);if(null===a.Ua)throw new P(8);if(1===(a.flags&2097155))throw new P(8);if(16384===(a.node.mode&61440))throw new P(31);if(!a.Ha.read)throw new P(28);var g="undefined"!=typeof e;if(!g)e=
a.position;else if(!a.seekable)throw new P(70);b=a.Ha.read(a,b,c,d,e);g||(a.position+=b);return b},na=(a,b,c,d,e)=>{if(0>d||0>e)throw new P(28);if(null===a.Ua)throw new P(8);if(0===(a.flags&2097155))throw new P(8);if(16384===(a.node.mode&61440))throw new P(31);if(!a.Ha.write)throw new P(28);a.seekable&&a.flags&1024&&Rb(a,0,2);var g="undefined"!=typeof e;if(!g)e=a.position;else if(!a.seekable)throw new P(70);b=a.Ha.write(a,b,c,d,e,void 0);g||(a.position+=b);return b},va=a=>{var b="binary";if("utf8"!==
b&&"binary"!==b)throw Error('Invalid encoding type "'+b+'"');var c;var d=la(a,d||0);a=Nb(a).size;var e=new Uint8Array(a);Sb(d,e,0,a,0);"utf8"===b?c=Fa(e,0):"binary"===b&&(c=e);oa(d);return c},Tb=()=>{P||(P=function(a,b){this.node=b;this.Rb=function(c){this.Ka=c};this.Rb(a);this.message="FS error"},P.prototype=Error(),P.prototype.constructor=P,[44].forEach(a=>{qb[a]=new P(a);qb[a].stack="<generic error, no stack>"}))},Ub,ia=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},Wb=(a,b,c)=>{a=y("/dev/"+
a);var d=ia(!!b,!!c);Vb||(Vb=64);var e=Vb++<<8|0;eb(e,{open:g=>{g.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(g,h,n,x)=>{for(var v=0,z=0;z<x;z++){try{var Q=b()}catch(gb){throw new P(29);}if(void 0===Q&&0===v)throw new P(6);if(null===Q||void 0===Q)break;v++;h[n+z]=Q}v&&(g.node.timestamp=Date.now());return v},write:(g,h,n,x)=>{for(var v=0;v<x;v++)try{c(h[n+v])}catch(z){throw new P(29);}x&&(g.node.timestamp=Date.now());return v}});Kb(a,d,e)},Vb,W={},Hb,Qb;
function Xb(a,b,c){if("/"===b.charAt(0))return b;a=-100===a?"/":X(a).path;if(0==b.length){if(!c)throw new P(44);return a}return y(a+"/"+b)}
function Yb(a,b,c){try{var d=a(b)}catch(e){if(e&&e.node&&y(b)!==y(ha(e.node)))return-54;throw e;}I[c>>2]=d.Lb;I[c+8>>2]=d.rb;I[c+12>>2]=d.mode;K[c+16>>2]=d.Ob;I[c+20>>2]=d.uid;I[c+24>>2]=d.Mb;I[c+28>>2]=d.eb;O=[d.size>>>0,(N=d.size,1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[c+40>>2]=O[0];I[c+44>>2]=O[1];I[c+48>>2]=4096;I[c+52>>2]=d.Jb;O=[Math.floor(d.wb.getTime()/1E3)>>>0,(N=Math.floor(d.wb.getTime()/1E3),1<=+Math.abs(N)?
0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[c+56>>2]=O[0];I[c+60>>2]=O[1];K[c+64>>2]=0;O=[Math.floor(d.Eb.getTime()/1E3)>>>0,(N=Math.floor(d.Eb.getTime()/1E3),1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[c+72>>2]=O[0];I[c+76>>2]=O[1];K[c+80>>2]=0;O=[Math.floor(d.zb.getTime()/1E3)>>>0,(N=Math.floor(d.zb.getTime()/1E3),1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/
4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[c+88>>2]=O[0];I[c+92>>2]=O[1];K[c+96>>2]=0;O=[d.rb>>>0,(N=d.rb,1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[c+104>>2]=O[0];I[c+108>>2]=O[1];return 0}var zc=void 0;function Bc(){zc+=4;return I[zc-4>>2]}function X(a){a=S[a];if(!a)throw new P(8);return a}function Cc(a){return K[a>>2]+4294967296*I[a+4>>2]}
function Dc(a){var b=ea(a)+1,c=fa(b);c&&r(a,q,c,b);return c}function Ec(a,b,c){function d(x){return(x=x.toTimeString().match(/\(([A-Za-z ]+)\)$/))?x[1]:"GMT"}var e=(new Date).getFullYear(),g=new Date(e,0,1),h=new Date(e,6,1);e=g.getTimezoneOffset();var n=h.getTimezoneOffset();I[a>>2]=60*Math.max(e,n);I[b>>2]=Number(e!=n);a=d(g);b=d(h);a=Dc(a);b=Dc(b);n<e?(K[c>>2]=a,K[c+4>>2]=b):(K[c>>2]=b,K[c+4>>2]=a)}function Fc(a,b,c){Fc.Kb||(Fc.Kb=!0,Ec(a,b,c))}var Gc={};
function Hc(){if(!Ic){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",_:za||"./this.program"},b;for(b in Gc)void 0===Gc[b]?delete a[b]:a[b]=Gc[b];var c=[];for(b in a)c.push(b+"="+a[b]);Ic=c}return Ic}var Ic,Z=void 0,Jc=[];
function xa(a,b){if(!Z){Z=new WeakMap;var c=L.length;if(Z)for(var d=0;d<0+c;d++){var e=L.get(d);e&&Z.set(e,d)}}if(Z.has(a))return Z.get(a);if(Jc.length)c=Jc.pop();else{try{L.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=L.length-1}try{L.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){d=WebAssembly.Function;e={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"};for(var g={parameters:[],results:"v"==
b[0]?[]:[e[b[0]]]},h=1;h<b.length;++h)g.parameters.push(e[b[h]]);b=new d(g,a)}else{d=[1,96];e=b.slice(0,1);b=b.slice(1);g={i:127,p:127,j:126,f:125,d:124};h=b.length;128>h?d.push(h):d.push(h%128|128,h>>7);for(h=0;h<b.length;++h)d.push(g[b[h]]);"v"==e?d.push(0):d.push(1,g[e]);b=[0,97,115,109,1,0,0,0,1];e=d.length;128>e?b.push(e):b.push(e%128|128,e>>7);b.push.apply(b,d);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b,{e:{f:a}})).exports.f}L.set(c,
b)}Z.set(a,c);return c}function ta(a){Z.delete(L.get(a));Jc.push(a)}var Kc=0,Lc=1;function ca(a){var b=Kc==Lc?A(a.length):fa(a.length);a.subarray||a.slice||(a=new Uint8Array(a));t.set(a,b);return b}
function Mc(a,b,c,d){var e={string:v=>{var z=0;if(null!==v&&void 0!==v&&0!==v){var Q=(v.length<<2)+1;z=A(Q);r(v,t,z,Q)}return z},array:v=>{var z=A(v.length);q.set(v,z);return z}};a=Module["_"+a];var g=[],h=0;if(d)for(var n=0;n<d.length;n++){var x=e[c[n]];x?(0===h&&(h=qa()),g[n]=x(d[n])):g[n]=d[n]}c=a.apply(null,g);return c=function(v){0!==h&&sa(h);return"string"===b?B(v):"boolean"===b?!!v:v}(c)}
function Bb(a,b,c,d){a||(a=this);this.parent=a;this.Ta=a.Ta;this.Za=null;this.id=vb++;this.name=b;this.mode=c;this.Ga={};this.Ha={};this.eb=d}Object.defineProperties(Bb.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();T=Array(4096);Jb(R,"/");V("/tmp");V("/home");V("/home/web_user");
(()=>{V("/dev");eb(259,{read:()=>0,write:(b,c,d,e)=>e});Kb("/dev/null",259);cb(1280,mb);cb(1536,nb);Kb("/dev/tty",1280);Kb("/dev/tty1",1536);var a=$a();Wb("random",a);Wb("urandom",a);V("/dev/shm");V("/dev/shm/tmp")})();(()=>{V("/proc");var a=V("/proc/self");V("/proc/self/fd");Jb({Ta:()=>{var b=pb(a,"fd",16895,73);b.Ga={cb:(c,d)=>{var e=S[+d];if(!e)throw new P(8);c={parent:null,Ta:{Db:"fake"},Ga:{fb:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();
var Oc={a:function(a,b,c,d){E("Assertion failed: "+B(a)+", at: "+[b?B(b):"unknown filename",c,d?B(d):"unknown function"])},h:function(a,b){try{return a=B(a),ka(a,b),0}catch(c){if("undefined"==typeof W||!(c instanceof P))throw c;return-c.Ka}},H:function(a,b,c){try{b=B(b);b=Xb(a,b);if(c&-8)return-28;var d=U(b,{Va:!0}).node;if(!d)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&Ab(d,a)?-2:0}catch(e){if("undefined"==typeof W||!(e instanceof P))throw e;return-e.Ka}},i:function(a,b){try{var c=
S[a];if(!c)throw new P(8);ka(c.node,b);return 0}catch(d){if("undefined"==typeof W||!(d instanceof P))throw d;return-d.Ka}},g:function(a){try{var b=S[a];if(!b)throw new P(8);var c=b.node;var d="string"==typeof c?U(c,{Va:!0}).node:c;if(!d.Ga.Oa)throw new P(63);d.Ga.Oa(d,{timestamp:Date.now()});return 0}catch(e){if("undefined"==typeof W||!(e instanceof P))throw e;return-e.Ka}},b:function(a,b,c){zc=c;try{var d=X(a);switch(b){case 0:var e=Bc();return 0>e?-28:Ib(d,e).Ua;case 1:case 2:return 0;case 3:return d.flags;
case 4:return e=Bc(),d.flags|=e,0;case 5:return e=Bc(),Ha[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return I[Nc()>>2]=28,-1;default:return-28}}catch(g){if("undefined"==typeof W||!(g instanceof P))throw g;return-g.Ka}},G:function(a,b){try{var c=X(a);return Yb(Nb,c.path,b)}catch(d){if("undefined"==typeof W||!(d instanceof P))throw d;return-d.Ka}},l:function(a,b,c){try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return-61;var d=S[a];if(!d)throw new P(8);
if(0===(d.flags&2097155))throw new P(28);Pb(d.node,b);return 0}catch(e){if("undefined"==typeof W||!(e instanceof P))throw e;return-e.Ka}},B:function(a,b){try{if(0===b)return-28;var c=ea("/")+1;if(b<c)return-68;r("/",t,a,b);return c}catch(d){if("undefined"==typeof W||!(d instanceof P))throw d;return-d.Ka}},E:function(a,b){try{return a=B(a),Yb(Ob,a,b)}catch(c){if("undefined"==typeof W||!(c instanceof P))throw c;return-c.Ka}},y:function(a,b,c){try{return b=B(b),b=Xb(a,b),b=y(b),"/"===b[b.length-1]&&
(b=b.substr(0,b.length-1)),V(b,c),0}catch(d){if("undefined"==typeof W||!(d instanceof P))throw d;return-d.Ka}},D:function(a,b,c,d){try{b=B(b);var e=d&256;b=Xb(a,b,d&4096);return Yb(e?Ob:Nb,b,c)}catch(g){if("undefined"==typeof W||!(g instanceof P))throw g;return-g.Ka}},v:function(a,b,c,d){zc=d;try{b=B(b);b=Xb(a,b);var e=d?Bc():0;return la(b,c,e).Ua}catch(g){if("undefined"==typeof W||!(g instanceof P))throw g;return-g.Ka}},t:function(a,b,c,d){try{b=B(b);b=Xb(a,b);if(0>=d)return-28;var e=xb(b),g=Math.min(d,
ea(e)),h=q[c+g];r(e,t,c,d+1);q[c+g]=h;return g}catch(n){if("undefined"==typeof W||!(n instanceof P))throw n;return-n.Ka}},s:function(a){try{return a=B(a),Mb(a),0}catch(b){if("undefined"==typeof W||!(b instanceof P))throw b;return-b.Ka}},F:function(a,b){try{return a=B(a),Yb(Nb,a,b)}catch(c){if("undefined"==typeof W||!(c instanceof P))throw c;return-c.Ka}},p:function(a,b,c){try{return b=B(b),b=Xb(a,b),0===c?wa(b):512===c?Mb(b):E("Invalid flags passed to unlinkat"),0}catch(d){if("undefined"==typeof W||
!(d instanceof P))throw d;return-d.Ka}},o:function(a,b,c){try{b=B(b);b=Xb(a,b,!0);if(c){var d=Cc(c),e=I[c+8>>2];g=1E3*d+e/1E6;c+=16;d=Cc(c);e=I[c+8>>2];h=1E3*d+e/1E6}else var g=Date.now(),h=g;a=g;var n=U(b,{Va:!0}).node;n.Ga.Oa(n,{timestamp:Math.max(a,h)});return 0}catch(x){if("undefined"==typeof W||!(x instanceof P))throw x;return-x.Ka}},e:function(){return Date.now()},j:function(a,b){a=new Date(1E3*Cc(a));I[b>>2]=a.getSeconds();I[b+4>>2]=a.getMinutes();I[b+8>>2]=a.getHours();I[b+12>>2]=a.getDate();
I[b+16>>2]=a.getMonth();I[b+20>>2]=a.getFullYear()-1900;I[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);I[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;I[b+36>>2]=-(60*a.getTimezoneOffset());var d=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();c=c.getTimezoneOffset();I[b+32>>2]=(d!=c&&a.getTimezoneOffset()==Math.min(c,d))|0},w:function(a,b,c,d,e,g){try{var h=X(d);if(0!==(b&2)&&0===(c&2)&&2!==(h.flags&2097155))throw new P(2);if(1===(h.flags&2097155))throw new P(2);if(!h.Ha.jb)throw new P(43);
var n=h.Ha.jb(h,a,e,b,c);var x=n.Pb;I[g>>2]=n.Hb;return x}catch(v){if("undefined"==typeof W||!(v instanceof P))throw v;return-v.Ka}},x:function(a,b,c,d,e,g){try{var h=X(e);c&2&&h&&h.Ha.kb&&h.Ha.kb(h,t.slice(a,a+b),g,b,d)}catch(n){if("undefined"==typeof W||!(n instanceof P))throw n;return-n.Ka}},n:Fc,q:function(){return 2147483648},d:()=>performance.now(),c:function(a){var b=t.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);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{try{Ca.grow(e-Ga.byteLength+65535>>>16);Ka();var g=1;break a}catch(h){}g=void 0}if(g)return!0}return!1},z:function(a,b){var c=0;Hc().forEach(function(d,e){var g=b+c;e=K[a+4*e>>2]=g;for(g=0;g<d.length;++g)q[e++>>0]=d.charCodeAt(g);q[e>>0]=0;c+=d.length+1});return 0},A:function(a,b){var c=Hc();K[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});K[b>>2]=d;return 0},f:function(a){try{var b=X(a);oa(b);return 0}catch(c){if("undefined"==
typeof W||!(c instanceof P))throw c;return c.Ka}},m:function(a,b){try{var c=X(a);q[b>>0]=c.Qa?2:16384===(c.mode&61440)?3:40960===(c.mode&61440)?7:4;return 0}catch(d){if("undefined"==typeof W||!(d instanceof P))throw d;return d.Ka}},u:function(a,b,c,d){try{a:{var e=X(a);a=b;for(var g=b=0;g<c;g++){var h=K[a>>2],n=K[a+4>>2];a+=8;var x=Sb(e,q,h,n);if(0>x){var v=-1;break a}b+=x;if(x<n)break}v=b}K[d>>2]=v;return 0}catch(z){if("undefined"==typeof W||!(z instanceof P))throw z;return z.Ka}},k:function(a,b,
c,d,e){try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return 61;var g=X(a);Rb(g,b,d);O=[g.position>>>0,(N=g.position,1<=+Math.abs(N)?0<N?(Math.min(+Math.floor(N/4294967296),4294967295)|0)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)];I[e>>2]=O[0];I[e+4>>2]=O[1];g.qb&&0===b&&0===d&&(g.qb=null);return 0}catch(h){if("undefined"==typeof W||!(h instanceof P))throw h;return h.Ka}},C:function(a){try{var b=X(a);return b.Ha&&b.Ha.Ya?b.Ha.Ya(b):0}catch(c){if("undefined"==typeof W||
!(c instanceof P))throw c;return c.Ka}},r:function(a,b,c,d){try{a:{var e=X(a);a=b;for(var g=b=0;g<c;g++){var h=K[a>>2],n=K[a+4>>2];a+=8;var x=na(e,q,h,n);if(0>x){var v=-1;break a}b+=x}v=b}K[d>>2]=v;return 0}catch(z){if("undefined"==typeof W||!(z instanceof P))throw z;return z.Ka}}};
(function(){function a(e){Module.asm=e.exports;Ca=Module.asm.I;Ka();L=Module.asm.Aa;Ma.unshift(Module.asm.J);Pa--;Module.monitorRunDependencies&&Module.monitorRunDependencies(Pa);0==Pa&&(null!==Qa&&(clearInterval(Qa),Qa=null),Ra&&(e=Ra,Ra=null,e()))}function b(e){a(e.instance)}function c(e){return Va().then(function(g){return WebAssembly.instantiate(g,d)}).then(function(g){return g}).then(e,function(g){D("failed to asynchronously prepare wasm: "+g);E(g)})}var d={a:Oc};Pa++;Module.monitorRunDependencies&&
Module.monitorRunDependencies(Pa);if(Module.instantiateWasm)try{return Module.instantiateWasm(d,a)}catch(e){return D("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return Ba||"function"!=typeof WebAssembly.instantiateStreaming||Sa()||"function"!=typeof fetch?c(b):fetch(M,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(g){D("wasm streaming compile failed: "+g);D("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);
return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.J).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.K).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.L).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.M).apply(null,arguments)};
var Nc=Module.___errno_location=function(){return(Nc=Module.___errno_location=Module.asm.N).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.O).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.P).apply(null,arguments)};Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.Q).apply(null,arguments)};
Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.R).apply(null,arguments)};Module._sqlite3_value_int=function(){return(Module._sqlite3_value_int=Module.asm.S).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.T).apply(null,arguments)};Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.U).apply(null,arguments)};
Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_type=function(){return(Module._sqlite3_value_type=Module.asm.W).apply(null,arguments)};Module._sqlite3_result_blob=function(){return(Module._sqlite3_result_blob=Module.asm.X).apply(null,arguments)};Module._sqlite3_result_double=function(){return(Module._sqlite3_result_double=Module.asm.Y).apply(null,arguments)};
Module._sqlite3_result_error=function(){return(Module._sqlite3_result_error=Module.asm.Z).apply(null,arguments)};Module._sqlite3_result_int=function(){return(Module._sqlite3_result_int=Module.asm._).apply(null,arguments)};Module._sqlite3_result_int64=function(){return(Module._sqlite3_result_int64=Module.asm.$).apply(null,arguments)};Module._sqlite3_result_null=function(){return(Module._sqlite3_result_null=Module.asm.aa).apply(null,arguments)};
Module._sqlite3_result_text=function(){return(Module._sqlite3_result_text=Module.asm.ba).apply(null,arguments)};Module._sqlite3_sql=function(){return(Module._sqlite3_sql=Module.asm.ca).apply(null,arguments)};Module._sqlite3_aggregate_context=function(){return(Module._sqlite3_aggregate_context=Module.asm.da).apply(null,arguments)};Module._sqlite3_column_count=function(){return(Module._sqlite3_column_count=Module.asm.ea).apply(null,arguments)};
Module._sqlite3_data_count=function(){return(Module._sqlite3_data_count=Module.asm.fa).apply(null,arguments)};Module._sqlite3_column_blob=function(){return(Module._sqlite3_column_blob=Module.asm.ga).apply(null,arguments)};Module._sqlite3_column_bytes=function(){return(Module._sqlite3_column_bytes=Module.asm.ha).apply(null,arguments)};Module._sqlite3_column_double=function(){return(Module._sqlite3_column_double=Module.asm.ia).apply(null,arguments)};
Module._sqlite3_column_text=function(){return(Module._sqlite3_column_text=Module.asm.ja).apply(null,arguments)};Module._sqlite3_column_type=function(){return(Module._sqlite3_column_type=Module.asm.ka).apply(null,arguments)};Module._sqlite3_column_name=function(){return(Module._sqlite3_column_name=Module.asm.la).apply(null,arguments)};Module._sqlite3_bind_blob=function(){return(Module._sqlite3_bind_blob=Module.asm.ma).apply(null,arguments)};
Module._sqlite3_bind_double=function(){return(Module._sqlite3_bind_double=Module.asm.na).apply(null,arguments)};Module._sqlite3_bind_int=function(){return(Module._sqlite3_bind_int=Module.asm.oa).apply(null,arguments)};Module._sqlite3_bind_text=function(){return(Module._sqlite3_bind_text=Module.asm.pa).apply(null,arguments)};Module._sqlite3_bind_parameter_index=function(){return(Module._sqlite3_bind_parameter_index=Module.asm.qa).apply(null,arguments)};
Module._sqlite3_normalized_sql=function(){return(Module._sqlite3_normalized_sql=Module.asm.ra).apply(null,arguments)};Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.sa).apply(null,arguments)};Module._sqlite3_exec=function(){return(Module._sqlite3_exec=Module.asm.ta).apply(null,arguments)};Module._sqlite3_changes=function(){return(Module._sqlite3_changes=Module.asm.ua).apply(null,arguments)};
Module._sqlite3_close_v2=function(){return(Module._sqlite3_close_v2=Module.asm.va).apply(null,arguments)};Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.wa).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.xa).apply(null,arguments)};
var fa=Module._malloc=function(){return(fa=Module._malloc=Module.asm.ya).apply(null,arguments)},da=Module._free=function(){return(da=Module._free=Module.asm.za).apply(null,arguments)};Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ba).apply(null,arguments)};
var sb=Module._emscripten_builtin_memalign=function(){return(sb=Module._emscripten_builtin_memalign=Module.asm.Ca).apply(null,arguments)},qa=Module.stackSave=function(){return(qa=Module.stackSave=Module.asm.Da).apply(null,arguments)},sa=Module.stackRestore=function(){return(sa=Module.stackRestore=Module.asm.Ea).apply(null,arguments)},A=Module.stackAlloc=function(){return(A=Module.stackAlloc=Module.asm.Fa).apply(null,arguments)};Module.UTF8ToString=B;Module.stackAlloc=A;Module.stackSave=qa;
Module.stackRestore=sa;Module.cwrap=function(a,b,c,d){c=c||[];var e=c.every(g=>"number"===g||"boolean"===g);return"string"!==b&&e&&!d?Module["_"+a]:function(){return Mc(a,b,c,arguments)}};var Pc;Ra=function Qc(){Pc||Rc();Pc||(Ra=Qc)};
function Rc(){function a(){if(!Pc&&(Pc=!0,Module.calledRun=!0,!Da)){Module.noFSInit||Ub||(Ub=!0,Tb(),Module.stdin=Module.stdin,Module.stdout=Module.stdout,Module.stderr=Module.stderr,Module.stdin?Wb("stdin",Module.stdin):Lb("/dev/tty","/dev/stdin"),Module.stdout?Wb("stdout",null,Module.stdout):Lb("/dev/tty","/dev/stdout"),Module.stderr?Wb("stderr",null,Module.stderr):Lb("/dev/tty1","/dev/stderr"),la("/dev/stdin",0),la("/dev/stdout",1),la("/dev/stderr",1));wb=!1;Wa(Ma);aa(Module);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();
if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();Na.unshift(b)}Wa(Na)}}if(!(0<Pa)){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)Oa();Wa(La);0<Pa||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1);a()},1)):a())}}
if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);0<Module.preInit.length;)Module.preInit.pop()();Rc();


  return loadWASM.ready
}
);
})();
export default loadWASM;