diff --git a/.gitignore b/.gitignore index a70f630f..2ab3cab0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store + # https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored .yarn/* !.yarn/patches diff --git a/dist/wa-sqlite-async.mjs b/dist/wa-sqlite-async.mjs index 39a29fb6..3dc98d57 100644 --- a/dist/wa-sqlite-async.mjs +++ b/dist/wa-sqlite-async.mjs @@ -3,111 +3,110 @@ var Module = (() => { var _scriptDir = import.meta.url; return ( -function(Module = {}) { +function(moduleArg = {}) { -var e;e||(e=typeof Module !== 'undefined' ? Module : {});var aa,ba;e.ready=new Promise((a,b)=>{aa=a;ba=b});var ca=Object.assign({},e),da="./this.program",ea=(a,b)=>{throw b;},fa="object"==typeof window,ia="function"==typeof importScripts,p="",ja; -if(fa||ia)ia?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),_scriptDir&&(p=_scriptDir),0!==p.indexOf("blob:")?p=p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):p="",ia&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var ka=e.print||console.log.bind(console),t=e.printErr||console.warn.bind(console);Object.assign(e,ca);ca=null;e.thisProgram&&(da=e.thisProgram); -e.quit&&(ea=e.quit);var la;e.wasmBinary&&(la=e.wasmBinary);var noExitRuntime=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&u("no native wasm support detected");var ma,v=!1,na,x,y,oa,A,B,pa,qa;function ra(){var a=ma.buffer;e.HEAP8=x=new Int8Array(a);e.HEAP16=oa=new Int16Array(a);e.HEAP32=A=new Int32Array(a);e.HEAPU8=y=new Uint8Array(a);e.HEAPU16=new Uint16Array(a);e.HEAPU32=B=new Uint32Array(a);e.HEAPF32=pa=new Float32Array(a);e.HEAPF64=qa=new Float64Array(a)}var sa=[],ta=[],ua=[],va=[],wa=0; -function xa(){var a=e.preRun.shift();sa.unshift(a)}var C=0,ya=null,za=null;function u(a){if(e.onAbort)e.onAbort(a);a="Aborted("+a+")";t(a);v=!0;na=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Aa(a){return a.startsWith("data:application/octet-stream;base64,")}var E;if(e.locateFile){if(E="wa-sqlite-async.wasm",!Aa(E)){var Ba=E;E=e.locateFile?e.locateFile(Ba,p):p+Ba}}else E=(new URL("wa-sqlite-async.wasm",import.meta.url)).href; -function Ca(a){try{if(a==E&&la)return new Uint8Array(la);if(ja)return ja(a);throw"both async and sync fetching of the wasm failed";}catch(b){u(b)}}function Da(a){return la||!fa&&!ia||"function"!=typeof fetch?Promise.resolve().then(()=>Ca(a)):fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ca(a))} -function Ea(a,b,c){return Da(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t("failed to asynchronously prepare wasm: "+d);u(d)})}function Fa(a,b){var c=E;return la||"function"!=typeof WebAssembly.instantiateStreaming||Aa(c)||"function"!=typeof fetch?Ea(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(f){t("wasm streaming compile failed: "+f);t("falling back to ArrayBuffer instantiation");return Ea(c,a,b)}))}var H,I; -function Ga(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function Ha(a){for(;0>0];case "i8":return x[a>>0];case "i16":return oa[a>>1];case "i32":return A[a>>2];case "i64":return A[a>>2];case "float":return pa[a>>2];case "double":return qa[a>>3];case "*":return B[a>>2];default:u("invalid type for getValue: "+b)}} -function L(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":x[a>>0]=b;break;case "i8":x[a>>0]=b;break;case "i16":oa[a>>1]=b;break;case "i32":A[a>>2]=b;break;case "i64":I=[b>>>0,(H=b,1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[a>>2]=I[0];A[a+4>>2]=I[1];break;case "float":pa[a>>2]=b;break;case "double":qa[a>>3]=b;break;case "*":B[a>>2]=b;break;default:u("invalid type for setValue: "+c)}} -var Ia="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0; -function Ja(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function M(a,b){return a?Ja(y,a,b):""} -var Ka=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},N=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ka(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},La=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},Ma=a=>{if("/"=== -a)return"/";a=N(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function Na(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);u("initRandomDevice")}function Oa(a){return(Oa=Na())(a)} -function Pa(){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=Ka(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}function Qa(a){for(var b=0,c=0;c=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b} -function Ra(a,b,c,d){if(!(0=g){var m=a.charCodeAt(++h);g=65536+((g&1023)<<10)|m&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-f}var Sa=[];function Ta(a,b){Sa[a]={input:[],Rb:[],bc:b};Ua(a,Va)} -var Va={open:function(a){var b=Sa[a.node.ec];if(!b)throw new O(43);a.Sb=b;a.seekable=!1},close:function(a){a.Sb.bc.ic(a.Sb)},ic:function(a){a.Sb.bc.ic(a.Sb)},read:function(a,b,c,d){if(!a.Sb||!a.Sb.bc.zc)throw new O(60);for(var f=0,h=0;h=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Nb,a.Nb=new Uint8Array(b),0=a.node.Pb)return 0;a=Math.min(a.node.Pb-f,d);if(8b)throw new O(28);return b},vc:function(a,b,c){P.xc(a.node,b+c);a.node.Pb=Math.max(a.node.Pb, -b+c)},kc:function(a,b,c,d,f){if(32768!==(a.node.mode&61440))throw new O(43);a=a.node.Nb;if(f&2||a.buffer!==x.buffer){if(0{a=Pa(a);if(!a)return{path:"", -node:null};b=Object.assign({yc:!0,tc:0},b);if(8!!g);for(var c=cb,d="/",f=0;f{for(var b;;){if(a===a.parent)return a=a.Ub.Ac,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}}, -ib=(a,b)=>{for(var c=0,d=0;d>>0)%R.length},jb=a=>{var b=ib(a.parent.id,a.name);if(R[b]===a)R[b]=a.ac;else for(b=R[b];b;){if(b.ac===a){b.ac=a.ac;break}b=b.ac}},ab=(a,b)=>{var c;if(c=(c=kb(a,"x"))?c:a.Cb.cc?0:2)throw new O(c,a);for(c=R[ib(a.id,b)];c;c=c.ac){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Cb.cc(a,b)},Za=(a,b,c,d)=>{a=new lb(a,b,c,d);b=ib(a.parent.id,a.name);a.ac=R[b];return R[b]=a},mb={r:0,"r+":2,w:577,"w+":578,a:1089, -"a+":1090},nb=a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},kb=(a,b)=>{if(fb)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},ob=(a,b)=>{try{return ab(a,b),20}catch(c){}return kb(a,"wx")},pb=(a,b,c)=>{try{var d=ab(a,b)}catch(f){return f.Ob}if(a=kb(a,"wx"))return a;if(c){if(16384!==(d.mode&61440))return 54;if(d===d.parent||"/"===hb(d))return 10}else if(16384===(d.mode&61440))return 31;return 0},qb= -(a=0)=>{for(;4096>=a;a++)if(!Q[a])return a;throw new O(33);},sb=(a,b)=>{rb||(rb=function(){this.hc={}},rb.prototype={},Object.defineProperties(rb.prototype,{object:{get:function(){return this.node},set:function(c){this.node=c}},flags:{get:function(){return this.hc.flags},set:function(c){this.hc.flags=c}},position:{get:function(){return this.hc.position},set:function(c){this.hc.position=c}}}));a=Object.assign(new rb,a);b=qb(b);a.Wb=b;return Q[b]=a},Ya={open:a=>{a.Mb=db[a.node.ec].Mb;a.Mb.open&&a.Mb.open(a)}, -Zb:()=>{throw new O(70);}},Ua=(a,b)=>{db[a]={Mb:b}},tb=(a,b)=>{var c="/"===b,d=!b;if(c&&cb)throw new O(10);if(!c&&!d){var f=S(b,{yc:!1});b=f.path;f=f.node;if(f.$b)throw new O(10);if(16384!==(f.mode&61440))throw new O(54);}b={type:a,Wc:{},Ac:b,Mc:[]};a=a.Ub(b);a.Ub=b;b.root=a;c?cb=a:f&&(f.$b=b,f.Ub&&f.Ub.Mc.push(b))},ub=(a,b,c)=>{var d=S(a,{parent:!0}).node;a=Ma(a);if(!a||"."===a||".."===a)throw new O(28);var f=ob(d,a);if(f)throw new O(f);if(!d.Cb.jc)throw new O(63);return d.Cb.jc(d,a,b,c)},T=(a,b)=> -ub(a,(void 0!==b?b:511)&1023|16384,0),vb=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);ub(a,b|8192,c)},wb=(a,b)=>{if(!Pa(a))throw new O(44);var c=S(b,{parent:!0}).node;if(!c)throw new O(44);b=Ma(b);var d=ob(c,b);if(d)throw new O(d);if(!c.Cb.nc)throw new O(63);c.Cb.nc(c,b,a)},xb=a=>{var b=S(a,{parent:!0}).node;a=Ma(a);var c=ab(b,a),d=pb(b,a,!0);if(d)throw new O(d);if(!b.Cb.mc)throw new O(63);if(c.$b)throw new O(10);b.Cb.mc(b,a);jb(c)},gb=a=>{a=S(a).node;if(!a)throw new O(44);if(!a.Cb.fc)throw new O(28); -return Pa(hb(a.parent),a.Cb.fc(a))},yb=(a,b)=>{a=S(a,{Yb:!b}).node;if(!a)throw new O(44);if(!a.Cb.Tb)throw new O(63);return a.Cb.Tb(a)},zb=a=>yb(a,!0),Ab=(a,b)=>{a="string"==typeof a?S(a,{Yb:!0}).node:a;if(!a.Cb.Qb)throw new O(63);a.Cb.Qb(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},Bb=(a,b)=>{if(0>b)throw new O(28);a="string"==typeof a?S(a,{Yb:!0}).node:a;if(!a.Cb.Qb)throw new O(63);if(16384===(a.mode&61440))throw new O(31);if(32768!==(a.mode&61440))throw new O(28);var c=kb(a,"w");if(c)throw new O(c); -a.Cb.Qb(a,{size:b,timestamp:Date.now()})},Db=(a,b,c)=>{if(""===a)throw new O(44);if("string"==typeof b){var d=mb[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 f=a;else{a=N(a);try{f=S(a,{Yb:!(b&131072)}).node}catch(h){}}d=!1;if(b&64)if(f){if(b&128)throw new O(20);}else f=ub(a,c,0),d=!0;if(!f)throw new O(44);8192===(f.mode&61440)&&(b&=-513);if(b&65536&&16384!==(f.mode&61440))throw new O(54);if(!d&& -(c=f?40960===(f.mode&61440)?32:16384===(f.mode&61440)&&("r"!==nb(b)||b&512)?31:kb(f,nb(b)):44))throw new O(c);b&512&&!d&&Bb(f,0);b&=-131713;f=sb({node:f,path:hb(f),flags:b,seekable:!0,position:0,Mb:f.Mb,Tc:[],error:!1});f.Mb.open&&f.Mb.open(f);!e.logReadFiles||b&1||(Cb||(Cb={}),a in Cb||(Cb[a]=1));return f},Eb=(a,b,c)=>{if(null===a.Wb)throw new O(8);if(!a.seekable||!a.Mb.Zb)throw new O(70);if(0!=c&&1!=c&&2!=c)throw new O(28);a.position=a.Mb.Zb(a,b,c);a.Tc=[]},Fb=()=>{O||(O=function(a,b){this.name= -"ErrnoError";this.node=b;this.Rc=function(c){this.Ob=c};this.Rc(a);this.message="FS error"},O.prototype=Error(),O.prototype.constructor=O,[44].forEach(a=>{$a[a]=new O(a);$a[a].stack=""}))},Gb,Hb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},Jb=(a,b,c)=>{a=N("/dev/"+a);var d=Hb(!!b,!!c);Ib||(Ib=64);var f=Ib++<<8|0;Ua(f,{open:h=>{h.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(h,g,m,k)=>{for(var l=0,q=0;q{for(var l=0;l>2]=d.Ic;A[c+8>>2]=d.qc;A[c+12>>2]=d.mode;B[c+16>>2]=d.Oc;A[c+20>>2]=d.uid;A[c+24>>2]=d.Lc;A[c+28>>2]=d.ec;I=[d.size>>>0,(H=d.size,1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[c+40>>2]=I[0];A[c+44>>2]=I[1];A[c+48>>2]=4096;A[c+52>>2]=d.Gc;a=d.Ec.getTime();b=d.Nc.getTime();var f=d.Hc.getTime();I=[Math.floor(a/1E3)>>>0,(H=Math.floor(a/1E3),1<=+Math.abs(H)? -0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[c+56>>2]=I[0];A[c+60>>2]=I[1];B[c+64>>2]=a%1E3*1E3;I=[Math.floor(b/1E3)>>>0,(H=Math.floor(b/1E3),1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[c+72>>2]=I[0];A[c+76>>2]=I[1];B[c+80>>2]=b%1E3*1E3;I=[Math.floor(f/1E3)>>>0,(H=Math.floor(f/1E3),1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[c+88>>2]=I[0];A[c+92>>2]= -I[1];B[c+96>>2]=f%1E3*1E3;I=[d.qc>>>0,(H=d.qc,1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[c+104>>2]=I[0];A[c+108>>2]=I[1];return 0}var Mb=void 0;function Nb(){Mb+=4;return A[Mb-4>>2]}function W(a){a=Q[a];if(!a)throw new O(8);return a}function Ob(a,b,c){return Ra(a,y,b,c)}function Pb(a){return B[a>>2]+4294967296*A[a+4>>2]}var Qb=[0,31,60,91,121,152,182,213,244,274,305,335],Rb=[0,31,59,90,120,151,181,212,243,273,304,334]; -function Sb(a){var b=Qa(a)+1,c=Tb(b);c&&Ob(a,c,b);return c}var Ub={};function Vb(){if(!Wb){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",_:da||"./this.program"},b;for(b in Ub)void 0===Ub[b]?delete a[b]:a[b]=Ub[b];var c=[];for(b in a)c.push(b+"="+a[b]);Wb=c}return Wb}var Wb;function Xb(){}function Yb(){}function Zb(){}function $b(){}function ac(){} -function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){}function Cc(){}function Dc(){}function Ec(){}function Fc(){}function Gc(){}function Hc(){} -function Ic(){}function Jc(a){na=a;if(!(noExitRuntime||0{Tc={resolve:a,reject:b}})}function Wc(){var a=Tb(16396),b=a+12;A[a>>2]=b;A[a+4>>2]=b+16384;b=Nc[0];var c=Qc[b];void 0===c&&(c=Sc++,Qc[b]=c,Rc[c]=b);A[a+8>>2]=c;return a} -function Xc(a){if(!v){if(0===Y){var b=!1,c=!1;a((d=0)=>{if(!v&&(Pc=d,b=!0,c)){Y=2;Lc(()=>Yc(X));"undefined"!=typeof Zc&&Zc.rc.Kc&&Zc.rc.resume();d=!1;try{var f=(0,e.asm[Rc[A[X+8>>2]]])()}catch(m){f=m,d=!0}var h=!1;if(!X){var g=Tc;g&&(Tc=null,(d?g.reject:g.resolve)(f),h=!0)}if(d&&!h)throw f;}});c=!0;b||(Y=1,X=Wc(),"undefined"!=typeof Zc&&Zc.rc.Kc&&Zc.rc.pause(),Lc(()=>$c(X)))}else 2===Y?(Y=0,Lc(ad),bd(X),X=null,Uc.forEach(d=>{if(!v)try{if(d(),!(noExitRuntime||0{a().then(b)})}var dd={}; -function Z(a,b,c,d,f){function h(n){--wa;0!==k&&ed(k);return"string"===b?M(n):"boolean"===b?!!n:n}var g={string:n=>{var r=0;if(null!==n&&void 0!==n&&0!==n){r=Qa(n)+1;var w=fd(r);Ob(n,w,r);r=w}return r},array:n=>{var r=fd(n.length);x.set(n,r);return r}};a=e["_"+a];var m=[],k=0;if(d)for(var l=0;l{T("/dev");Ua(259,{read:()=>0,write:(d,f,h,g)=>g});vb("/dev/null",259);Ta(1280,Wa);Ta(1536,Xa);vb("/dev/tty",1280);vb("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Oa(a).byteLength);return a[--b]};Jb("random",c);Jb("urandom",c);T("/dev/shm");T("/dev/shm/tmp")})(); -(()=>{T("/proc");var a=T("/proc/self");T("/proc/self/fd");tb({Ub:()=>{var b=Za(a,"fd",16895,73);b.Cb={cc:(c,d)=>{var f=Q[+d];if(!f)throw new O(8);c={parent:null,Ub:{Ac:"fake"},Cb:{fc:()=>f.path}};return c.parent=c}};return b}},"/proc/self/fd")})();var Zc; -(function(){const a=new Map;e.setAuthorizer=function(b,c,d){c?a.set(b,{f:c,uc:d}):a.delete(b);return Z("set_authorizer","number",["number"],[b])};Xb=function(b,c,d,f,h,g){if(a.has(b)){const {f:m,uc:k}=a.get(b);return m(k,c,d?M(d):null,f?M(f):null,h?M(h):null,g?M(g):null)}return 0}})(); -(function(){const a=new Map,b=new Map;e.createFunction=function(c,d,f,h,g,m){const k=a.size;a.set(k,{f:m,Xb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,f,h,k,0])};e.createAggregate=function(c,d,f,h,g,m,k){const l=a.size;a.set(l,{step:m,Jc:k,Xb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,f,h,l,1])};e.getFunctionUserData=function(c){return b.get(c)};Zb=function(c,d,f,h){c=a.get(c);b.set(d, -c.Xb);c.f(d,new Uint32Array(y.buffer,h,f));b.delete(d)};ac=function(c,d,f,h){c=a.get(c);b.set(d,c.Xb);c.step(d,new Uint32Array(y.buffer,h,f));b.delete(d)};Yb=function(c,d){c=a.get(c);b.set(d,c.Xb);c.Jc(d);b.delete(d)}})();(function(){const a=new Map;e.progressHandler=function(b,c,d,f){d?a.set(b,{f:d,uc:f}):a.delete(b);return Z("progress_handler",null,["number","number"],[b,c])};$b=function(b){if(a.has(b)){const {f:c,uc:d}=a.get(b);return c(d)}return 0}})(); -(function(){function a(k,l){const q=`get${k}`,n=`set${k}`;return new Proxy(new DataView(y.buffer,l,"Int32"===k?4:8),{get(r,w){if(w===q)return function(z,F){if(!F)throw Error("must be little endian");return r[w](z,F)};if(w===n)return function(z,F,D){if(!D)throw Error("must be little endian");return r[w](z,F,D)};if("string"===typeof w&&w.match(/^(get)|(set)/))throw Error("invalid type");return r[w]}})}const b="object"===typeof dd,c=new Map,d=new Map,f=new Map,h=b?new Set:null,g=b?new Set:null,m=new Map; -rc=function(k,l,q,n){m.set(M(k),{size:l,dc:Array.from(new Uint32Array(y.buffer,n,q))})};e.createModule=function(k,l,q,n){b&&(q.handleAsync=cd);const r=c.size;c.set(r,{module:q,Xb:n});n=0;q.xCreate&&(n|=1);q.xConnect&&(n|=2);q.xBestIndex&&(n|=4);q.xDisconnect&&(n|=8);q.xDestroy&&(n|=16);q.xOpen&&(n|=32);q.xClose&&(n|=64);q.xFilter&&(n|=128);q.xNext&&(n|=256);q.xEof&&(n|=512);q.xColumn&&(n|=1024);q.xRowid&&(n|=2048);q.xUpdate&&(n|=4096);q.xBegin&&(n|=8192);q.xSync&&(n|=16384);q.xCommit&&(n|=32768); -q.xRollback&&(n|=65536);q.xFindFunction&&(n|=131072);q.xRename&&(n|=262144);return Z("create_module","number",["number","string","number","number"],[k,l,r,n])};hc=function(k,l,q,n,r,w){l=c.get(l);d.set(r,l);if(b){h.delete(r);for(const z of h)d.delete(z)}n=Array.from(new Uint32Array(y.buffer,n,q)).map(z=>M(z));return l.module.xCreate(k,l.Xb,n,r,a("Int32",w))};gc=function(k,l,q,n,r,w){l=c.get(l);d.set(r,l);if(b){h.delete(r);for(const z of h)d.delete(z)}n=Array.from(new Uint32Array(y.buffer,n,q)).map(z=> -M(z));return l.module.xConnect(k,l.Xb,n,r,a("Int32",w))};cc=function(k,l){var q=d.get(k),n=m.get("sqlite3_index_info").dc;const r={};r.nConstraint=K(l+n[0],"i32");r.aConstraint=[];var w=K(l+n[1],"*"),z=m.get("sqlite3_index_constraint").size;for(var F=0;F>=2;return B[g]+B[g+1]*2**32}const c="object"===typeof dd,d=new Map,f=new Map;e.registerVFS= -function(g,m){if(Z("sqlite3_vfs_find","number",["string"],[g.name]))throw Error(`VFS '${g.name}' already registered`);c&&(g.handleAsync=cd);var k=g.Vc??64;const l=e._malloc(4);m=Z("register_vfs","number",["string","number","number","number"],[g.name,k,m?1:0,l]);m||(k=K(l,"*"),d.set(k,g));e._free(l);return m};const h=c?new Set:null;wc=function(g){const m=f.get(g);c?h.add(g):f.delete(g);return m.xClose(g)};Dc=function(g,m,k,l){return f.get(g).xRead(g,y.subarray(m,m+k),b(l))};Ic=function(g,m,k,l){return f.get(g).xWrite(g, -y.subarray(m,m+k),b(l))};Gc=function(g,m){return f.get(g).xTruncate(g,b(m))};Fc=function(g,m){return f.get(g).xSync(g,m)};Ac=function(g,m){const k=f.get(g);m=a("BigInt64",m);return k.xFileSize(g,m)};Bc=function(g,m){return f.get(g).xLock(g,m)};Hc=function(g,m){return f.get(g).xUnlock(g,m)};vc=function(g,m){const k=f.get(g);m=a("Int32",m);return k.xCheckReservedLock(g,m)};zc=function(g,m,k){const l=f.get(g);k=new DataView(y.buffer,k);return l.xFileControl(g,m,k)};Ec=function(g){return f.get(g).xSectorSize(g)}; -yc=function(g){return f.get(g).xDeviceCharacteristics(g)};Cc=function(g,m,k,l,q){g=d.get(g);f.set(k,g);if(c){h.delete(k);for(var n of h)f.delete(n)}n=null;if(l&64){n=1;const r=[];for(;n;){const w=y[m++];if(w)r.push(w);else switch(y[m]||(n=null),n){case 1:r.push(63);n=2;break;case 2:r.push(61);n=3;break;case 3:r.push(38),n=2}}n=(new TextDecoder).decode(new Uint8Array(r))}else m&&(n=M(m));q=a("Int32",q);return g.xOpen(n,k,l,q)};xc=function(g,m,k){return d.get(g).xDelete(M(m),k)};uc=function(g,m,k,l){g= -d.get(g);l=a("Int32",l);return g.xAccess(M(m),k,l)}})(); -var jd={a:function(a,b,c,d){u("Assertion failed: "+M(a)+", at: "+[b?M(b):"unknown filename",c,d?M(d):"unknown function"])},K:function(a,b){try{return a=M(a),Ab(a,b),0}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return-c.Ob}},M:function(a,b,c){try{b=M(b);b=Kb(a,b);if(c&-8)return-28;var d=S(b,{Yb:!0}).node;if(!d)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&kb(d,a)?-2:0}catch(f){if("undefined"==typeof U||"ErrnoError"!==f.name)throw f;return-f.Ob}},L:function(a, -b){try{var c=Q[a];if(!c)throw new O(8);Ab(c.node,b);return 0}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return-d.Ob}},J:function(a){try{var b=Q[a];if(!b)throw new O(8);var c=b.node;var d="string"==typeof c?S(c,{Yb:!0}).node:c;if(!d.Cb.Qb)throw new O(63);d.Cb.Qb(d,{timestamp:Date.now()});return 0}catch(f){if("undefined"==typeof U||"ErrnoError"!==f.name)throw f;return-f.Ob}},b:function(a,b,c){Mb=c;try{var d=W(a);switch(b){case 0:var f=Nb();return 0>f?-28:sb(d,f).Wb;case 1:case 2:return 0; -case 3:return d.flags;case 4:return f=Nb(),d.flags|=f,0;case 5:return f=Nb(),oa[f+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return A[hd()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==typeof U||"ErrnoError"!==h.name)throw h;return-h.Ob}},I:function(a,b){try{var c=W(a);return Lb(yb,c.path,b)}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return-d.Ob}},j:function(a,b,c){try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return-61;var d= -Q[a];if(!d)throw new O(8);if(0===(d.flags&2097155))throw new O(28);Bb(d.node,b);return 0}catch(f){if("undefined"==typeof U||"ErrnoError"!==f.name)throw f;return-f.Ob}},C:function(a,b){try{if(0===b)return-28;var c=Qa("/")+1;if(b=d)return-28;var f=gb(b),h=Math.min(d,Qa(f)),g=x[c+h];Ob(f,c,d+1);x[c+h]=g;return h}catch(m){if("undefined"==typeof U||"ErrnoError"!==m.name)throw m;return-m.Ob}},r:function(a){try{return a=M(a),xb(a),0}catch(b){if("undefined"==typeof U||"ErrnoError"!==b.name)throw b;return-b.Ob}},H:function(a,b){try{return a=M(a),Lb(yb,a,b)}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return-c.Ob}},o:function(a,b,c){try{b=M(b);b=Kb(a,b);if(0===c){a=b;var d=S(a,{parent:!0}).node; -if(!d)throw new O(44);var f=Ma(a),h=ab(d,f),g=pb(d,f,!1);if(g)throw new O(g);if(!d.Cb.oc)throw new O(63);if(h.$b)throw new O(10);d.Cb.oc(d,f);jb(h)}else 512===c?xb(b):u("Invalid flags passed to unlinkat");return 0}catch(m){if("undefined"==typeof U||"ErrnoError"!==m.name)throw m;return-m.Ob}},n:function(a,b,c){try{b=M(b);b=Kb(a,b,!0);if(c){var d=Pb(c),f=A[c+8>>2];h=1E3*d+f/1E6;c+=16;d=Pb(c);f=A[c+8>>2];g=1E3*d+f/1E6}else var h=Date.now(),g=h;a=h;var m=S(b,{Yb:!0}).node;m.Cb.Qb(m,{timestamp:Math.max(a, -g)});return 0}catch(k){if("undefined"==typeof U||"ErrnoError"!==k.name)throw k;return-k.Ob}},y:function(a,b){a=new Date(1E3*Pb(a));A[b>>2]=a.getSeconds();A[b+4>>2]=a.getMinutes();A[b+8>>2]=a.getHours();A[b+12>>2]=a.getDate();A[b+16>>2]=a.getMonth();A[b+20>>2]=a.getFullYear()-1900;A[b+24>>2]=a.getDay();var c=a.getFullYear();A[b+28>>2]=(0!==c%4||0===c%100&&0!==c%400?Rb:Qb)[a.getMonth()]+a.getDate()-1|0;A[b+36>>2]=-(60*a.getTimezoneOffset());c=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();var d= -(new Date(a.getFullYear(),0,1)).getTimezoneOffset();A[b+32>>2]=(c!=d&&a.getTimezoneOffset()==Math.min(d,c))|0},w:function(a,b,c,d,f,h,g){try{var m=W(d);if(0!==(b&2)&&0===(c&2)&&2!==(m.flags&2097155))throw new O(2);if(1===(m.flags&2097155))throw new O(2);if(!m.Mb.kc)throw new O(43);var k=m.Mb.kc(m,a,f,b,c);var l=k.Pc;A[h>>2]=k.Dc;B[g>>2]=l;return 0}catch(q){if("undefined"==typeof U||"ErrnoError"!==q.name)throw q;return-q.Ob}},x:function(a,b,c,d,f,h){try{var g=W(f);if(c&2){if(32768!==(g.node.mode&61440))throw new O(43); -d&2||g.Mb.lc&&g.Mb.lc(g,y.slice(a,a+b),h,b,d)}}catch(m){if("undefined"==typeof U||"ErrnoError"!==m.name)throw m;return-m.Ob}},p:function(a,b,c){function d(k){return(k=k.toTimeString().match(/\(([A-Za-z ]+)\)$/))?k[1]:"GMT"}var f=(new Date).getFullYear(),h=new Date(f,0,1),g=new Date(f,6,1);f=h.getTimezoneOffset();var m=g.getTimezoneOffset();B[a>>2]=60*Math.max(f,m);A[b>>2]=Number(f!=m);a=d(h);b=d(g);a=Sb(a);b=Sb(b);m>2]=a,B[c+4>>2]=b):(B[c>>2]=b,B[c+4>>2]=a)},e:function(){return Date.now()}, -d:()=>performance.now(),l:function(a){var b=y.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var f=Math,h=f.min;d=Math.max(a,d);d+=(65536-d%65536)%65536;a:{var g=ma.buffer;try{ma.grow(h.call(f,2147483648,d)-g.byteLength+65535>>>16);ra();var m=1;break a}catch(k){}m=void 0}if(m)return!0}return!1},A:function(a,b){var c=0;Vb().forEach(function(d,f){var h=b+c;f=B[a+4*f>>2]=h;for(h=0;h>0]=d.charCodeAt(h);x[f>>0]=0;c+=d.length+ -1});return 0},B:function(a,b){var c=Vb();B[a>>2]=c.length;var d=0;c.forEach(function(f){d+=f.length+1});B[b>>2]=d;return 0},f:function(a){try{var b=W(a);if(null===b.Wb)throw new O(8);b.pc&&(b.pc=null);try{b.Mb.close&&b.Mb.close(b)}catch(c){throw c;}finally{Q[b.Wb]=null}b.Wb=null;return 0}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return c.Ob}},m:function(a,b){try{var c=W(a);x[b>>0]=c.Sb?2:16384===(c.mode&61440)?3:40960===(c.mode&61440)?7:4;oa[b+2>>1]=0;I=[0,(H=0,1<=+Math.abs(H)? -0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[b+8>>2]=I[0];A[b+12>>2]=I[1];I=[0,(H=0,1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[b+16>>2]=I[0];A[b+20>>2]=I[1];return 0}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return d.Ob}},t:function(a,b,c,d){try{a:{var f=W(a);a=b;for(var h,g=b=0;g>2],k=B[a+4>>2];a+=8;var l=f,q=m,n=k,r=h,w=x;if(0>n||0>r)throw new O(28);if(null=== -l.Wb)throw new O(8);if(1===(l.flags&2097155))throw new O(8);if(16384===(l.node.mode&61440))throw new O(31);if(!l.Mb.read)throw new O(28);var z="undefined"!=typeof r;if(!z)r=l.position;else if(!l.seekable)throw new O(70);var F=l.Mb.read(l,w,q,n,r);z||(l.position+=F);var D=F;if(0>D){var J=-1;break a}b+=D;if(D>2]=J;return 0}catch(G){if("undefined"==typeof U||"ErrnoError"!==G.name)throw G;return G.Ob}},i:function(a,b,c,d,f){try{b=c+2097152>>>0<4194305-!!b? -(b>>>0)+4294967296*c:NaN;if(isNaN(b))return 61;var h=W(a);Eb(h,b,d);I=[h.position>>>0,(H=h.position,1<=+Math.abs(H)?0>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)];A[f>>2]=I[0];A[f+4>>2]=I[1];h.pc&&0===b&&0===d&&(h.pc=null);return 0}catch(g){if("undefined"==typeof U||"ErrnoError"!==g.name)throw g;return g.Ob}},D:function(a){try{var b=W(a);return Xc(function(c){var d=b.node.Ub;d.type.Sc?d.type.Sc(d,!1,function(f){f?c(function(){return 29}):c(0)}):c(0)})}catch(c){if("undefined"== -typeof U||"ErrnoError"!==c.name)throw c;return c.Ob}},q:function(a,b,c,d){try{a:{var f=W(a);a=b;for(var h,g=b=0;g>2],k=B[a+4>>2];a+=8;var l=f,q=m,n=k,r=h,w=x;if(0>n||0>r)throw new O(28);if(null===l.Wb)throw new O(8);if(0===(l.flags&2097155))throw new O(8);if(16384===(l.node.mode&61440))throw new O(31);if(!l.Mb.write)throw new O(28);l.seekable&&l.flags&1024&&Eb(l,0,2);var z="undefined"!=typeof r;if(!z)r=l.position;else if(!l.seekable)throw new O(70);var F=l.Mb.write(l,w,q,n,r,void 0); -z||(l.position+=F);var D=F;if(0>D){var J=-1;break a}b+=D;"undefined"!==typeof h&&(h+=D)}J=b}B[d>>2]=J;return 0}catch(G){if("undefined"==typeof U||"ErrnoError"!==G.name)throw G;return G.Ob}},ra:Xb,N:Yb,ga:Zb,ca:$b,Y:ac,la:bc,G:cc,h:dc,oa:ec,ja:fc,ea:gc,fa:hc,k:ic,v:jc,pa:kc,g:lc,qa:mc,da:nc,ha:oc,ia:pc,na:qc,c:rc,ka:sc,ma:tc,aa:uc,V:vc,$:wc,ba:xc,S:yc,U:zc,Z:Ac,X:Bc,R:Cc,Q:Dc,T:Ec,_:Fc,O:Gc,W:Hc,P:Ic}; -(function(){function a(c){c=c.exports;c=Mc(c);e.asm=c;ma=e.asm.sa;ra();ta.unshift(e.asm.ta);C--;e.monitorRunDependencies&&e.monitorRunDependencies(C);if(0==C&&(null!==ya&&(clearInterval(ya),ya=null),za)){var d=za;za=null;d()}return c}var b={a:jd};C++;e.monitorRunDependencies&&e.monitorRunDependencies(C);if(e.instantiateWasm)try{return e.instantiateWasm(b,a)}catch(c){t("Module.instantiateWasm callback failed with error: "+c),ba(c)}Fa(b,function(c){a(c.instance)}).catch(ba);return{}})(); -e._sqlite3_vfs_find=function(){return(e._sqlite3_vfs_find=e.asm.ua).apply(null,arguments)};e._sqlite3_malloc=function(){return(e._sqlite3_malloc=e.asm.va).apply(null,arguments)};e._sqlite3_free=function(){return(e._sqlite3_free=e.asm.wa).apply(null,arguments)};e._sqlite3_prepare_v2=function(){return(e._sqlite3_prepare_v2=e.asm.xa).apply(null,arguments)};e._sqlite3_step=function(){return(e._sqlite3_step=e.asm.ya).apply(null,arguments)}; -e._sqlite3_column_int64=function(){return(e._sqlite3_column_int64=e.asm.za).apply(null,arguments)};e._sqlite3_column_int=function(){return(e._sqlite3_column_int=e.asm.Aa).apply(null,arguments)};e._sqlite3_finalize=function(){return(e._sqlite3_finalize=e.asm.Ba).apply(null,arguments)};e._sqlite3_reset=function(){return(e._sqlite3_reset=e.asm.Ca).apply(null,arguments)};e._sqlite3_clear_bindings=function(){return(e._sqlite3_clear_bindings=e.asm.Da).apply(null,arguments)}; -e._sqlite3_value_blob=function(){return(e._sqlite3_value_blob=e.asm.Ea).apply(null,arguments)};e._sqlite3_value_text=function(){return(e._sqlite3_value_text=e.asm.Fa).apply(null,arguments)};e._sqlite3_value_bytes=function(){return(e._sqlite3_value_bytes=e.asm.Ga).apply(null,arguments)};e._sqlite3_value_double=function(){return(e._sqlite3_value_double=e.asm.Ha).apply(null,arguments)};e._sqlite3_value_int=function(){return(e._sqlite3_value_int=e.asm.Ia).apply(null,arguments)}; -e._sqlite3_value_int64=function(){return(e._sqlite3_value_int64=e.asm.Ja).apply(null,arguments)};e._sqlite3_value_type=function(){return(e._sqlite3_value_type=e.asm.Ka).apply(null,arguments)};e._sqlite3_result_blob=function(){return(e._sqlite3_result_blob=e.asm.La).apply(null,arguments)};e._sqlite3_result_double=function(){return(e._sqlite3_result_double=e.asm.Ma).apply(null,arguments)};e._sqlite3_result_error=function(){return(e._sqlite3_result_error=e.asm.Na).apply(null,arguments)}; -e._sqlite3_result_int=function(){return(e._sqlite3_result_int=e.asm.Oa).apply(null,arguments)};e._sqlite3_result_int64=function(){return(e._sqlite3_result_int64=e.asm.Pa).apply(null,arguments)};e._sqlite3_result_null=function(){return(e._sqlite3_result_null=e.asm.Qa).apply(null,arguments)};e._sqlite3_result_text=function(){return(e._sqlite3_result_text=e.asm.Ra).apply(null,arguments)};e._sqlite3_column_count=function(){return(e._sqlite3_column_count=e.asm.Sa).apply(null,arguments)}; -e._sqlite3_data_count=function(){return(e._sqlite3_data_count=e.asm.Ta).apply(null,arguments)};e._sqlite3_column_blob=function(){return(e._sqlite3_column_blob=e.asm.Ua).apply(null,arguments)};e._sqlite3_column_bytes=function(){return(e._sqlite3_column_bytes=e.asm.Va).apply(null,arguments)};e._sqlite3_column_double=function(){return(e._sqlite3_column_double=e.asm.Wa).apply(null,arguments)};e._sqlite3_column_text=function(){return(e._sqlite3_column_text=e.asm.Xa).apply(null,arguments)}; -e._sqlite3_column_type=function(){return(e._sqlite3_column_type=e.asm.Ya).apply(null,arguments)};e._sqlite3_column_name=function(){return(e._sqlite3_column_name=e.asm.Za).apply(null,arguments)};e._sqlite3_bind_blob=function(){return(e._sqlite3_bind_blob=e.asm._a).apply(null,arguments)};e._sqlite3_bind_double=function(){return(e._sqlite3_bind_double=e.asm.$a).apply(null,arguments)};e._sqlite3_bind_int=function(){return(e._sqlite3_bind_int=e.asm.ab).apply(null,arguments)}; -e._sqlite3_bind_int64=function(){return(e._sqlite3_bind_int64=e.asm.bb).apply(null,arguments)};e._sqlite3_bind_null=function(){return(e._sqlite3_bind_null=e.asm.cb).apply(null,arguments)};e._sqlite3_bind_text=function(){return(e._sqlite3_bind_text=e.asm.db).apply(null,arguments)};e._sqlite3_bind_parameter_count=function(){return(e._sqlite3_bind_parameter_count=e.asm.eb).apply(null,arguments)};e._sqlite3_bind_parameter_name=function(){return(e._sqlite3_bind_parameter_name=e.asm.fb).apply(null,arguments)}; -e._sqlite3_sql=function(){return(e._sqlite3_sql=e.asm.gb).apply(null,arguments)};e._sqlite3_exec=function(){return(e._sqlite3_exec=e.asm.hb).apply(null,arguments)};e._sqlite3_errmsg=function(){return(e._sqlite3_errmsg=e.asm.ib).apply(null,arguments)};e._sqlite3_declare_vtab=function(){return(e._sqlite3_declare_vtab=e.asm.jb).apply(null,arguments)};e._sqlite3_libversion=function(){return(e._sqlite3_libversion=e.asm.kb).apply(null,arguments)}; -e._sqlite3_libversion_number=function(){return(e._sqlite3_libversion_number=e.asm.lb).apply(null,arguments)};e._sqlite3_changes=function(){return(e._sqlite3_changes=e.asm.mb).apply(null,arguments)};e._sqlite3_close=function(){return(e._sqlite3_close=e.asm.nb).apply(null,arguments)};e._sqlite3_limit=function(){return(e._sqlite3_limit=e.asm.ob).apply(null,arguments)};e._sqlite3_open_v2=function(){return(e._sqlite3_open_v2=e.asm.pb).apply(null,arguments)}; -e._sqlite3_get_autocommit=function(){return(e._sqlite3_get_autocommit=e.asm.qb).apply(null,arguments)};function hd(){return(hd=e.asm.rb).apply(null,arguments)}var Tb=e._malloc=function(){return(Tb=e._malloc=e.asm.sb).apply(null,arguments)},bd=e._free=function(){return(bd=e._free=e.asm.tb).apply(null,arguments)};e._RegisterExtensionFunctions=function(){return(e._RegisterExtensionFunctions=e.asm.ub).apply(null,arguments)};e._set_authorizer=function(){return(e._set_authorizer=e.asm.vb).apply(null,arguments)}; -e._create_function=function(){return(e._create_function=e.asm.wb).apply(null,arguments)};e._create_module=function(){return(e._create_module=e.asm.xb).apply(null,arguments)};e._progress_handler=function(){return(e._progress_handler=e.asm.yb).apply(null,arguments)};e._register_vfs=function(){return(e._register_vfs=e.asm.zb).apply(null,arguments)};e._getSqliteFree=function(){return(e._getSqliteFree=e.asm.Ab).apply(null,arguments)};var kd=e._main=function(){return(kd=e._main=e.asm.Bb).apply(null,arguments)}; -function bb(){return(bb=e.asm.Db).apply(null,arguments)}function ld(){return(ld=e.asm.Eb).apply(null,arguments)}function gd(){return(gd=e.asm.Fb).apply(null,arguments)}function ed(){return(ed=e.asm.Gb).apply(null,arguments)}function fd(){return(fd=e.asm.Hb).apply(null,arguments)}function $c(){return($c=e.asm.Ib).apply(null,arguments)}function Oc(){return(Oc=e.asm.Jb).apply(null,arguments)}function Yc(){return(Yc=e.asm.Kb).apply(null,arguments)} -function ad(){return(ad=e.asm.Lb).apply(null,arguments)}e.getTempRet0=ld;e.ccall=Z;e.cwrap=function(a,b,c,d){var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!d?e["_"+a]:function(){return Z(a,b,c,arguments,d)}};e.setValue=L;e.getValue=K;e.UTF8ToString=M;e.stringToUTF8=Ob;e.lengthBytesUTF8=Qa;var md;za=function nd(){md||od();md||(za=nd)}; -function od(){function a(){if(!md&&(md=!0,e.calledRun=!0,!v)){e.noFSInit||Gb||(Gb=!0,Fb(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?Jb("stdin",e.stdin):wb("/dev/tty","/dev/stdin"),e.stdout?Jb("stdout",null,e.stdout):wb("/dev/tty","/dev/stdout"),e.stderr?Jb("stderr",null,e.stderr):wb("/dev/tty1","/dev/stderr"),Db("/dev/stdin",0),Db("/dev/stdout",1),Db("/dev/stderr",1));fb=!1;Ha(ta);Ha(ua);aa(e);if(e.onRuntimeInitialized)e.onRuntimeInitialized();if(pd){var b=kd;try{var c=b(0,0);na= -c;Jc(c)}catch(d){Kc(d)}}if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)b=e.postRun.shift(),va.unshift(b);Ha(va)}}if(!(0{aa=a;ba=b});var ca=Object.assign({},f),da="./this.program",ea=(a,b)=>{throw b;},fa="object"==typeof window,ia="function"==typeof importScripts,p="",ja; +if(fa||ia)ia?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),_scriptDir&&(p=_scriptDir),0!==p.indexOf("blob:")?p=p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):p="",ia&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var ka=f.print||console.log.bind(console),t=f.printErr||console.error.bind(console);Object.assign(f,ca);ca=null;f.thisProgram&&(da=f.thisProgram); +f.quit&&(ea=f.quit);var la;f.wasmBinary&&(la=f.wasmBinary);var noExitRuntime=f.noExitRuntime||!0;"object"!=typeof WebAssembly&&u("no native wasm support detected");var ma,v=!1,na,w,y,oa,z,B,pa,qa;function ra(){var a=ma.buffer;f.HEAP8=w=new Int8Array(a);f.HEAP16=oa=new Int16Array(a);f.HEAPU8=y=new Uint8Array(a);f.HEAPU16=new Uint16Array(a);f.HEAP32=z=new Int32Array(a);f.HEAPU32=B=new Uint32Array(a);f.HEAPF32=pa=new Float32Array(a);f.HEAPF64=qa=new Float64Array(a)}var sa=[],ta=[],ua=[],va=[],wa=0; +function xa(){var a=f.preRun.shift();sa.unshift(a)}var C=0,ya=null,za=null;function u(a){if(f.onAbort)f.onAbort(a);a="Aborted("+a+")";t(a);v=!0;na=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Aa(a){return a.startsWith("data:application/octet-stream;base64,")}var Ba;if(f.locateFile){if(Ba="wa-sqlite-async.wasm",!Aa(Ba)){var Ca=Ba;Ba=f.locateFile?f.locateFile(Ca,p):p+Ca}}else Ba=(new URL("wa-sqlite-async.wasm",import.meta.url)).href; +function Da(a){if(a==Ba&&la)return new Uint8Array(la);if(ja)return ja(a);throw"both async and sync fetching of the wasm failed";}function Ea(a){return la||!fa&&!ia||"function"!=typeof fetch?Promise.resolve().then(()=>Da(a)):fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Da(a))} +function Fa(a,b,c){return Ea(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t(`failed to asynchronously prepare wasm: ${d}`);u(d)})}function Ga(a,b){var c=Ba;return la||"function"!=typeof WebAssembly.instantiateStreaming||Aa(c)||"function"!=typeof fetch?Fa(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Fa(c,a,b)}))}var D,F; +function Ha(a){this.name="ExitStatus";this.message=`Program terminated with exit(${a})`;this.status=a}var Ia=a=>{for(;0>0];case "i8":return w[a>>0];case "i16":return oa[a>>1];case "i32":return z[a>>2];case "i64":u("to do getValue(i64) use WASM_BIGINT");case "float":return pa[a>>2];case "double":return qa[a>>3];case "*":return B[a>>2];default:u(`invalid type for getValue: ${b}`)}} +function J(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":w[a>>0]=b;break;case "i8":w[a>>0]=b;break;case "i16":oa[a>>1]=b;break;case "i32":z[a>>2]=b;break;case "i64":u("to do setValue(i64) use WASM_BIGINT");case "float":pa[a>>2]=b;break;case "double":qa[a>>3]=b;break;case "*":B[a>>2]=b;break;default:u(`invalid type for setValue: ${c}`)}} +var Ja="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,K=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, +Ka=(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},M=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ka(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},La=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},Ma=a=>{if("/"=== +a)return"/";a=M(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Na=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);u("initRandomDevice")},Oa=a=>(Oa=Na())(a); +function Pa(){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=Ka(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} +var Qa=[],Ra=a=>{for(var b=0,c=0;c=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},Sa=(a,b,c,d)=>{if(!(0=g){var n=a.charCodeAt(++h);g=65536+((g&1023)<<10)|n&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>> +12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},Ta=[];function Ua(a,b){Ta[a]={input:[],Rb:[],bc:b};Va(a,Wa)} +var Wa={open(a){var b=Ta[a.node.ec];if(!b)throw new N(43);a.Sb=b;a.seekable=!1},close(a){a.Sb.bc.ic(a.Sb)},ic(a){a.Sb.bc.ic(a.Sb)},read(a,b,c,d){if(!a.Sb||!a.Sb.bc.xc)throw new N(60);for(var e=0,h=0;h=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Nb,a.Nb=new Uint8Array(b),0=a.node.Pb)return 0;a=Math.min(a.node.Pb-e,d);if(8b)throw new N(28);return b},uc(a,b,c){Za(a.node,b+c);a.node.Pb=Math.max(a.node.Pb,b+c)},kc(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new N(43);a=a.node.Nb;if(e&2||a.buffer!== +w.buffer){if(0{var c=0;a&&(c|=365);b&&(c|=146);return c},fb=null,gb={},hb=[],ib=1,Q=null,jb=!0,N=null,bb={}; +function R(a,b={}){a=Pa(a);if(!a)return{path:"",node:null};b=Object.assign({wc:!0,sc:0},b);if(8!!g);for(var c=fb,d="/",e=0;e>>0)%Q.length}function nb(a){var b=mb(a.parent.id,a.name);if(Q[b]===a)Q[b]=a.ac;else for(b=Q[b];b;){if(b.ac===a){b.ac=a.ac;break}b=b.ac}} +function cb(a,b){var c;if(c=(c=ob(a,"x"))?c:a.Cb.cc?0:2)throw new N(c,a);for(c=Q[mb(a.id,b)];c;c=c.ac){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Cb.cc(a,b)}function ab(a,b,c,d){a=new pb(a,b,c,d);b=mb(a.parent.id,a.name);a.ac=Q[b];return Q[b]=a}function P(a){return 16384===(a&61440)}function qb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b} +function ob(a,b){if(jb)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}function rb(a,b){try{return cb(a,b),20}catch(c){}return ob(a,"wx")}function sb(a,b,c){try{var d=cb(a,b)}catch(e){return e.Ob}if(a=ob(a,"wx"))return a;if(c){if(!P(d.mode))return 54;if(d===d.parent||"/"===lb(d))return 10}else if(P(d.mode))return 31;return 0}function tb(){for(var a=0;4096>=a;a++)if(!hb[a])return a;throw new N(33);} +function S(a){a=hb[a];if(!a)throw new N(8);return a}function ub(a,b=-1){vb||(vb=function(){this.hc={}},vb.prototype={},Object.defineProperties(vb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.hc.flags},set(c){this.hc.flags=c}},position:{get(){return this.hc.position},set(c){this.hc.position=c}}}));a=Object.assign(new vb,a);-1==b&&(b=tb());a.Wb=b;return hb[b]=a}var $a={open(a){a.Mb=gb[a.node.ec].Mb;a.Mb.open&&a.Mb.open(a)},Zb(){throw new N(70);}}; +function Va(a,b){gb[a]={Mb:b}}function wb(a,b){var c="/"===b,d=!b;if(c&&fb)throw new N(10);if(!c&&!d){var e=R(b,{wc:!1});b=e.path;e=e.node;if(e.$b)throw new N(10);if(!P(e.mode))throw new N(54);}b={type:a,bd:{},zc:b,Lc:[]};a=a.Ub(b);a.Ub=b;b.root=a;c?fb=a:e&&(e.$b=b,e.Ub&&e.Ub.Lc.push(b))}function xb(a,b,c){var d=R(a,{parent:!0}).node;a=Ma(a);if(!a||"."===a||".."===a)throw new N(28);var e=rb(d,a);if(e)throw new N(e);if(!d.Cb.jc)throw new N(63);return d.Cb.jc(d,a,b,c)} +function T(a,b){return xb(a,(void 0!==b?b:511)&1023|16384,0)}function yb(a,b,c){"undefined"==typeof c&&(c=b,b=438);xb(a,b|8192,c)}function zb(a,b){if(!Pa(a))throw new N(44);var c=R(b,{parent:!0}).node;if(!c)throw new N(44);b=Ma(b);var d=rb(c,b);if(d)throw new N(d);if(!c.Cb.nc)throw new N(63);c.Cb.nc(c,b,a)}function Ab(a){var b=R(a,{parent:!0}).node;a=Ma(a);var c=cb(b,a),d=sb(b,a,!0);if(d)throw new N(d);if(!b.Cb.mc)throw new N(63);if(c.$b)throw new N(10);b.Cb.mc(b,a);nb(c)} +function kb(a){a=R(a).node;if(!a)throw new N(44);if(!a.Cb.fc)throw new N(28);return Pa(lb(a.parent),a.Cb.fc(a))}function Bb(a,b){a=R(a,{Yb:!b}).node;if(!a)throw new N(44);if(!a.Cb.Tb)throw new N(63);return a.Cb.Tb(a)}function Cb(a){return Bb(a,!0)}function Db(a,b){a="string"==typeof a?R(a,{Yb:!0}).node:a;if(!a.Cb.Qb)throw new N(63);a.Cb.Qb(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} +function Eb(a,b){if(0>b)throw new N(28);a="string"==typeof a?R(a,{Yb:!0}).node:a;if(!a.Cb.Qb)throw new N(63);if(P(a.mode))throw new N(31);if(32768!==(a.mode&61440))throw new N(28);var c=ob(a,"w");if(c)throw new N(c);a.Cb.Qb(a,{size:b,timestamp:Date.now()})} +function Fb(a,b,c){if(""===a)throw new N(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=M(a);try{e=R(a,{Yb:!(b&131072)}).node}catch(h){}}d=!1;if(b&64)if(e){if(b&128)throw new N(20);}else e=xb(a,c,0),d=!0;if(!e)throw new N(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&!P(e.mode))throw new N(54);if(!d&&(c= +e?40960===(e.mode&61440)?32:P(e.mode)&&("r"!==qb(b)||b&512)?31:ob(e,qb(b)):44))throw new N(c);b&512&&!d&&Eb(e,0);b&=-131713;e=ub({node:e,path:lb(e),flags:b,seekable:!0,position:0,Mb:e.Mb,Rc:[],error:!1});e.Mb.open&&e.Mb.open(e);!f.logReadFiles||b&1||(Gb||(Gb={}),a in Gb||(Gb[a]=1));return e}function Hb(a,b,c){if(null===a.Wb)throw new N(8);if(!a.seekable||!a.Mb.Zb)throw new N(70);if(0!=c&&1!=c&&2!=c)throw new N(28);a.position=a.Mb.Zb(a,b,c);a.Rc=[]} +function Ib(){N||(N=function(a,b){this.name="ErrnoError";this.node=b;this.Pc=function(c){this.Ob=c};this.Pc(a);this.message="FS error"},N.prototype=Error(),N.prototype.constructor=N,[44].forEach(a=>{bb[a]=new N(a);bb[a].stack=""}))}var Jb; +function Kb(a,b,c){a=M("/dev/"+a);var d=eb(!!b,!!c);Lb||(Lb=64);var e=Lb++<<8|0;Va(e,{open(h){h.seekable=!1},close(){c&&c.buffer&&c.buffer.length&&c(10)},read(h,g,n,k){for(var l=0,r=0;r>2]=d.Hc;z[c+4>>2]=d.mode;B[c+8>>2]=d.Nc;z[c+12>>2]=d.uid;z[c+16>>2]=d.Kc;z[c+20>>2]=d.ec;F=[d.size>>>0,(D=d.size,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+24>>2]=F[0];z[c+28>>2]=F[1];z[c+32>>2]=4096;z[c+36>>2]=d.Fc;a=d.Dc.getTime();b=d.Mc.getTime();var e=d.Gc.getTime();F=[Math.floor(a/1E3)>>>0,(D=Math.floor(a/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+40>>2]=F[0];z[c+44>>2]=F[1];B[c+48>>2]=a%1E3*1E3;F=[Math.floor(b/1E3)>>>0,(D=Math.floor(b/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+56>>2]=F[0];z[c+60>>2]=F[1];B[c+64>>2]=b%1E3*1E3;F=[Math.floor(e/1E3)>>>0,(D=Math.floor(e/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+72>>2]=F[0];z[c+76>>2]=F[1];B[c+80>>2]= +e%1E3*1E3;F=[d.yc>>>0,(D=d.yc,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+88>>2]=F[0];z[c+92>>2]=F[1];return 0}var Ob=void 0;function Pb(){var a=z[Ob>>2];Ob+=4;return a} +var Qb=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*b:NaN,Rb=[0,31,60,91,121,152,182,213,244,274,305,335],Sb=[0,31,59,90,120,151,181,212,243,273,304,334],Ub=a=>{var b=Ra(a)+1,c=Tb(b);c&&Sa(a,y,c,b);return c},Vb={},Xb=()=>{if(!Wb){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",_:da||"./this.program"},b;for(b in Vb)void 0===Vb[b]?delete a[b]:a[b]=Vb[b]; +var c=[];for(b in a)c.push(`${b}=${a[b]}`);Wb=c}return Wb},Wb;function Yb(){}function Zb(){}function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){} +function Ac(){}function Bc(){}function Cc(){}function Dc(){}function Ec(){}function Fc(){}function Gc(){}function Hc(){}function Ic(){}function Jc(){}var Kc=a=>{na=a;if(!(noExitRuntime||0{a instanceof Ha||"unwind"==a||ea(1,a)},Mc=a=>{try{a()}catch(b){u(b)}}; +function Nc(a){var b={},c;for(c in a)(function(d){var e=a[d];b[d]="function"==typeof e?function(){Oc.push(d);try{return e.apply(null,arguments)}finally{v||(Oc.pop()===d||u(),V&&1===X&&0===Oc.length&&(X=0,Mc(Pc),"undefined"!=typeof Fibers&&Fibers.cd()))}}:e})(c);return b}var X=0,V=null,Qc=0,Oc=[],Rc={},Sc={},Tc=0,Uc=null,Vc=[];function Wc(){return new Promise((a,b)=>{Uc={resolve:a,reject:b}})} +function Xc(){var a=Tb(16396),b=a+12;B[a>>2]=b;B[a+4>>2]=b+16384;b=Oc[0];var c=Rc[b];void 0===c&&(c=Tc++,Rc[b]=c,Sc[c]=b);z[a+8>>2]=c;return a} +function Yc(a){if(!v){if(0===X){var b=!1,c=!1;a((d=0)=>{if(!v&&(Qc=d,b=!0,c)){X=2;Mc(()=>Zc(V));"undefined"!=typeof Browser&&Browser.qc.Jc&&Browser.qc.resume();d=!1;try{var e=(0,Y[Sc[z[V+8>>2]]])()}catch(n){e=n,d=!0}var h=!1;if(!V){var g=Uc;g&&(Uc=null,(d?g.reject:g.resolve)(e),h=!0)}if(d&&!h)throw e;}});c=!0;b||(X=1,V=Xc(),"undefined"!=typeof Browser&&Browser.qc.Jc&&Browser.qc.pause(),Mc(()=>$c(V)))}else 2===X?(X=0,Mc(ad),bd(V),V=null,Vc.forEach(d=>{if(!v)try{if(d(),!(noExitRuntime||0{a().then(b)})} +var dd={},Z=(a,b,c,d,e)=>{function h(m){--wa;0!==k&&ed(k);return"string"===b?m?K(y,m):"":"boolean"===b?!!m:m}var g={string:m=>{var q=0;if(null!==m&&void 0!==m&&0!==m){q=Ra(m)+1;var x=fd(q);Sa(m,y,x,q);q=x}return q},array:m=>{var q=fd(m.length);w.set(m,q);return q}};a=f["_"+a];var n=[],k=0;if(d)for(var l=0;l0,write:(d,e,h,g)=>g});yb("/dev/null",259);Ua(1280,Xa);Ua(1536,Ya);yb("/dev/tty",1280);yb("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Oa(a).byteLength);return a[--b]};Kb("random",c);Kb("urandom",c);T("/dev/shm");T("/dev/shm/tmp")})(); +(function(){T("/proc");var a=T("/proc/self");T("/proc/self/fd");wb({Ub(){var b=ab(a,"fd",16895,73);b.Cb={cc(c,d){var e=S(+d);c={parent:null,Ub:{zc:"fake"},Cb:{fc:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})(); +(function(){const a=new Map;f.setAuthorizer=function(b,c,d){c?a.set(b,{f:c,tc:d}):a.delete(b);return Z("set_authorizer","number",["number"],[b])};Yb=function(b,c,d,e,h,g){if(a.has(b)){const {f:n,tc:k}=a.get(b);return n(k,c,d?d?K(y,d):"":null,e?e?K(y,e):"":null,h?h?K(y,h):"":null,g?g?K(y,g):"":null)}return 0}})(); +(function(){const a=new Map,b=new Map;f.createFunction=function(c,d,e,h,g,n){const k=a.size;a.set(k,{f:n,Xb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,e,h,k,0])};f.createAggregate=function(c,d,e,h,g,n,k){const l=a.size;a.set(l,{step:n,Ic:k,Xb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,e,h,l,1])};f.getFunctionUserData=function(c){return b.get(c)};$b=function(c,d,e,h){c=a.get(c);b.set(d, +c.Xb);c.f(d,new Uint32Array(y.buffer,h,e));b.delete(d)};bc=function(c,d,e,h){c=a.get(c);b.set(d,c.Xb);c.step(d,new Uint32Array(y.buffer,h,e));b.delete(d)};Zb=function(c,d){c=a.get(c);b.set(d,c.Xb);c.Ic(d);b.delete(d)}})();(function(){const a=new Map;f.progressHandler=function(b,c,d,e){d?a.set(b,{f:d,tc:e}):a.delete(b);return Z("progress_handler",null,["number","number"],[b,c])};ac=function(b){if(a.has(b)){const {f:c,tc:d}=a.get(b);return c(d)}return 0}})(); +(function(){function a(k,l){const r=`get${k}`,m=`set${k}`;return new Proxy(new DataView(y.buffer,l,"Int32"===k?4:8),{get(q,x){if(x===r)return function(A,G){if(!G)throw Error("must be little endian");return q[x](A,G)};if(x===m)return function(A,G,E){if(!E)throw Error("must be little endian");return q[x](A,G,E)};if("string"===typeof x&&x.match(/^(get)|(set)/))throw Error("invalid type");return q[x]}})}const b="object"===typeof dd,c=new Map,d=new Map,e=new Map,h=b?new Set:null,g=b?new Set:null,n=new Map; +sc=function(k,l,r,m){n.set(k?K(y,k):"",{size:l,dc:Array.from(new Uint32Array(y.buffer,m,r))})};f.createModule=function(k,l,r,m){b&&(r.handleAsync=cd);const q=c.size;c.set(q,{module:r,Xb:m});m=0;r.xCreate&&(m|=1);r.xConnect&&(m|=2);r.xBestIndex&&(m|=4);r.xDisconnect&&(m|=8);r.xDestroy&&(m|=16);r.xOpen&&(m|=32);r.xClose&&(m|=64);r.xFilter&&(m|=128);r.xNext&&(m|=256);r.xEof&&(m|=512);r.xColumn&&(m|=1024);r.xRowid&&(m|=2048);r.xUpdate&&(m|=4096);r.xBegin&&(m|=8192);r.xSync&&(m|=16384);r.xCommit&&(m|= +32768);r.xRollback&&(m|=65536);r.xFindFunction&&(m|=131072);r.xRename&&(m|=262144);return Z("create_module","number",["number","string","number","number"],[k,l,q,m])};ic=function(k,l,r,m,q,x){l=c.get(l);d.set(q,l);if(b){h.delete(q);for(const A of h)d.delete(A)}m=Array.from(new Uint32Array(y.buffer,m,r)).map(A=>A?K(y,A):"");return l.module.xCreate(k,l.Xb,m,q,a("Int32",x))};hc=function(k,l,r,m,q,x){l=c.get(l);d.set(q,l);if(b){h.delete(q);for(const A of h)d.delete(A)}m=Array.from(new Uint32Array(y.buffer, +m,r)).map(A=>A?K(y,A):"");return l.module.xConnect(k,l.Xb,m,q,a("Int32",x))};dc=function(k,l){var r=d.get(k),m=n.get("sqlite3_index_info").dc;const q={};q.nConstraint=I(l+m[0],"i32");q.aConstraint=[];var x=I(l+m[1],"*"),A=n.get("sqlite3_index_constraint").size;for(var G=0;G>=2;return B[g]+B[g+1]*2**32}const c="object"===typeof dd,d=new Map,e=new Map;f.registerVFS= +function(g,n){if(Z("sqlite3_vfs_find","number",["string"],[g.name]))throw Error(`VFS '${g.name}' already registered`);c&&(g.handleAsync=cd);var k=g.ad??64;const l=f._malloc(4);n=Z("register_vfs","number",["string","number","number","number"],[g.name,k,n?1:0,l]);n||(k=I(l,"*"),d.set(k,g));f._free(l);return n};const h=c?new Set:null;xc=function(g){const n=e.get(g);c?h.add(g):e.delete(g);return n.xClose(g)};Ec=function(g,n,k,l){return e.get(g).xRead(g,y.subarray(n,n+k),b(l))};Jc=function(g,n,k,l){return e.get(g).xWrite(g, +y.subarray(n,n+k),b(l))};Hc=function(g,n){return e.get(g).xTruncate(g,b(n))};Gc=function(g,n){return e.get(g).xSync(g,n)};Bc=function(g,n){const k=e.get(g);n=a("BigInt64",n);return k.xFileSize(g,n)};Cc=function(g,n){return e.get(g).xLock(g,n)};Ic=function(g,n){return e.get(g).xUnlock(g,n)};wc=function(g,n){const k=e.get(g);n=a("Int32",n);return k.xCheckReservedLock(g,n)};Ac=function(g,n,k){const l=e.get(g);k=new DataView(y.buffer,k);return l.xFileControl(g,n,k)};Fc=function(g){return e.get(g).xSectorSize(g)}; +zc=function(g){return e.get(g).xDeviceCharacteristics(g)};Dc=function(g,n,k,l,r){g=d.get(g);e.set(k,g);if(c){h.delete(k);for(var m of h)e.delete(m)}m=null;if(l&64){m=1;const q=[];for(;m;){const x=y[n++];if(x)q.push(x);else switch(y[n]||(m=null),m){case 1:q.push(63);m=2;break;case 2:q.push(61);m=3;break;case 3:q.push(38),m=2}}m=(new TextDecoder).decode(new Uint8Array(q))}else n&&(m=n?K(y,n):"");r=a("Int32",r);return g.xOpen(m,k,l,r)};yc=function(g,n,k){return d.get(g).xDelete(n?K(y,n):"",k)};vc=function(g, +n,k,l){g=d.get(g);l=a("Int32",l);return g.xAccess(n?K(y,n):"",k,l)}})(); +var jd={a:(a,b,c,d)=>{u(`Assertion failed: ${a?K(y,a):""}, at: `+[b?b?K(y,b):"":"unknown filename",c,d?d?K(y,d):"":"unknown function"])},K:function(a,b){try{return a=a?K(y,a):"",Db(a,b),0}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return-c.Ob}},M:function(a,b,c){try{b=b?K(y,b):"";b=Mb(a,b);if(c&-8)return-28;var d=R(b,{Yb:!0}).node;if(!d)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&ob(d,a)?-2:0}catch(e){if("undefined"==typeof U||"ErrnoError"!==e.name)throw e; +return-e.Ob}},L:function(a,b){try{var c=S(a);Db(c.node,b);return 0}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return-d.Ob}},J:function(a){try{var b=S(a).node;var c="string"==typeof b?R(b,{Yb:!0}).node:b;if(!c.Cb.Qb)throw new N(63);c.Cb.Qb(c,{timestamp:Date.now()});return 0}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return-d.Ob}},b:function(a,b,c){Ob=c;try{var d=S(a);switch(b){case 0:var e=Pb();if(0>e)return-28;for(;hb[e];)e++;return ub(d,e).Wb;case 1:case 2:return 0; +case 3:return d.flags;case 4:return e=Pb(),d.flags|=e,0;case 5:return e=Pb(),oa[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return z[hd()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==typeof U||"ErrnoError"!==h.name)throw h;return-h.Ob}},I:function(a,b){try{var c=S(a);return Nb(Bb,c.path,b)}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return-d.Ob}},n:function(a,b,c){b=Qb(b,c);try{if(isNaN(b))return 61;var d=S(a);if(0===(d.flags&2097155))throw new N(28); +Eb(d.node,b);return 0}catch(e){if("undefined"==typeof U||"ErrnoError"!==e.name)throw e;return-e.Ob}},C:function(a,b){try{if(0===b)return-28;var c=Ra("/")+1;if(b=d)return-28; +var e=kb(b),h=Math.min(d,Ra(e)),g=w[c+h];Sa(e,y,c,d+1);w[c+h]=g;return h}catch(n){if("undefined"==typeof U||"ErrnoError"!==n.name)throw n;return-n.Ob}},u:function(a){try{return a=a?K(y,a):"",Ab(a),0}catch(b){if("undefined"==typeof U||"ErrnoError"!==b.name)throw b;return-b.Ob}},H:function(a,b){try{return a=a?K(y,a):"",Nb(Bb,a,b)}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return-c.Ob}},r:function(a,b,c){try{b=b?K(y,b):"";b=Mb(a,b);if(0===c){a=b;var d=R(a,{parent:!0}).node;if(!d)throw new N(44); +var e=Ma(a),h=cb(d,e),g=sb(d,e,!1);if(g)throw new N(g);if(!d.Cb.oc)throw new N(63);if(h.$b)throw new N(10);d.Cb.oc(d,e);nb(h)}else 512===c?Ab(b):u("Invalid flags passed to unlinkat");return 0}catch(n){if("undefined"==typeof U||"ErrnoError"!==n.name)throw n;return-n.Ob}},q:function(a,b,c){try{b=b?K(y,b):"";b=Mb(a,b,!0);if(c){var d=B[c>>2]+4294967296*z[c+4>>2],e=z[c+8>>2];h=1E3*d+e/1E6;c+=16;d=B[c>>2]+4294967296*z[c+4>>2];e=z[c+8>>2];g=1E3*d+e/1E6}else var h=Date.now(),g=h;a=h;var n=R(b,{Yb:!0}).node; +n.Cb.Qb(n,{timestamp:Math.max(a,g)});return 0}catch(k){if("undefined"==typeof U||"ErrnoError"!==k.name)throw k;return-k.Ob}},l:function(a,b,c){a=new Date(1E3*Qb(a,b));z[c>>2]=a.getSeconds();z[c+4>>2]=a.getMinutes();z[c+8>>2]=a.getHours();z[c+12>>2]=a.getDate();z[c+16>>2]=a.getMonth();z[c+20>>2]=a.getFullYear()-1900;z[c+24>>2]=a.getDay();b=a.getFullYear();z[c+28>>2]=(0!==b%4||0===b%100&&0!==b%400?Sb:Rb)[a.getMonth()]+a.getDate()-1|0;z[c+36>>2]=-(60*a.getTimezoneOffset());b=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();var d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();z[c+32>>2]=(b!=d&&a.getTimezoneOffset()==Math.min(d,b))|0},i:function(a,b,c,d,e,h,g,n){e=Qb(e,h);try{if(isNaN(e))return 61;var k=S(d);if(0!==(b&2)&&0===(c&2)&&2!==(k.flags&2097155))throw new N(2);if(1===(k.flags&2097155))throw new N(2);if(!k.Mb.kc)throw new N(43);var l=k.Mb.kc(k,a,e,b,c);var r=l.Oc;z[g>>2]=l.Cc;B[n>>2]=r;return 0}catch(m){if("undefined"==typeof U||"ErrnoError"!==m.name)throw m;return-m.Ob}},j:function(a, +b,c,d,e,h,g){h=Qb(h,g);try{if(isNaN(h))return 61;var n=S(e);if(c&2){if(32768!==(n.node.mode&61440))throw new N(43);d&2||n.Mb.lc&&n.Mb.lc(n,y.slice(a,a+b),h,b,d)}}catch(k){if("undefined"==typeof U||"ErrnoError"!==k.name)throw k;return-k.Ob}},s:(a,b,c)=>{function d(k){return(k=k.toTimeString().match(/\(([A-Za-z ]+)\)$/))?k[1]:"GMT"}var e=(new Date).getFullYear(),h=new Date(e,0,1),g=new Date(e,6,1);e=h.getTimezoneOffset();var n=g.getTimezoneOffset();B[a>>2]=60*Math.max(e,n);z[b>>2]=Number(e!=n);a=d(h); +b=d(g);a=Ub(a);b=Ub(b);n>2]=a,B[c+4>>2]=b):(B[c>>2]=b,B[c+4>>2]=a)},e:()=>Date.now(),d:()=>performance.now(),o:a=>{var b=y.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)%65536)-ma.buffer.byteLength+65535)/65536;try{ma.grow(e);ra();var h=1;break a}catch(g){}h=void 0}if(h)return!0}return!1},A:(a,b)=>{var c=0;Xb().forEach((d,e)=>{var h=b+c;e=B[a+4*e>>2]=h;for(h= +0;h>0]=d.charCodeAt(h);w[e>>0]=0;c+=d.length+1});return 0},B:(a,b)=>{var c=Xb();B[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);B[b>>2]=d;return 0},f:function(a){try{var b=S(a);if(null===b.Wb)throw new N(8);b.pc&&(b.pc=null);try{b.Mb.close&&b.Mb.close(b)}catch(c){throw c;}finally{hb[b.Wb]=null}b.Wb=null;return 0}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return c.Ob}},p:function(a,b){try{var c=S(a);w[b>>0]=c.Sb?2:P(c.mode)?3:40960===(c.mode&61440)?7: +4;oa[b+2>>1]=0;F=[0,(D=0,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[b+8>>2]=F[0];z[b+12>>2]=F[1];F=[0,(D=0,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[b+16>>2]=F[0];z[b+20>>2]=F[1];return 0}catch(d){if("undefined"==typeof U||"ErrnoError"!==d.name)throw d;return d.Ob}},x:function(a,b,c,d){try{a:{var e=S(a);a=b;for(var h,g=b=0;g>2],k=B[a+4>>2];a+=8;var l=e,r=n,m=k,q=h,x= +w;if(0>m||0>q)throw new N(28);if(null===l.Wb)throw new N(8);if(1===(l.flags&2097155))throw new N(8);if(P(l.node.mode))throw new N(31);if(!l.Mb.read)throw new N(28);var A="undefined"!=typeof q;if(!A)q=l.position;else if(!l.seekable)throw new N(70);var G=l.Mb.read(l,x,r,m,q);A||(l.position+=G);var E=G;if(0>E){var L=-1;break a}b+=E;if(E>2]=L;return 0}catch(H){if("undefined"==typeof U||"ErrnoError"!==H.name)throw H;return H.Ob}},m:function(a,b,c,d,e){b= +Qb(b,c);try{if(isNaN(b))return 61;var h=S(a);Hb(h,b,d);F=[h.position>>>0,(D=h.position,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[e>>2]=F[0];z[e+4>>2]=F[1];h.pc&&0===b&&0===d&&(h.pc=null);return 0}catch(g){if("undefined"==typeof U||"ErrnoError"!==g.name)throw g;return g.Ob}},D:function(a){try{var b=S(a);return Yc(c=>{var d=b.node.Ub;d.type.Qc?d.type.Qc(d,!1,e=>{e?c(29):c(0)}):c(0)})}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c; +return c.Ob}},t:function(a,b,c,d){try{a:{var e=S(a);a=b;for(var h,g=b=0;g>2],k=B[a+4>>2];a+=8;var l=e,r=n,m=k,q=h,x=w;if(0>m||0>q)throw new N(28);if(null===l.Wb)throw new N(8);if(0===(l.flags&2097155))throw new N(8);if(P(l.node.mode))throw new N(31);if(!l.Mb.write)throw new N(28);l.seekable&&l.flags&1024&&Hb(l,0,2);var A="undefined"!=typeof q;if(!A)q=l.position;else if(!l.seekable)throw new N(70);var G=l.Mb.write(l,x,r,m,q,void 0);A||(l.position+=G);var E=G;if(0>E){var L=-1;break a}b+= +E;"undefined"!==typeof h&&(h+=E)}L=b}B[d>>2]=L;return 0}catch(H){if("undefined"==typeof U||"ErrnoError"!==H.name)throw H;return H.Ob}},ra:Yb,N:Zb,ga:$b,ca:ac,Y:bc,la:cc,G:dc,h:ec,oa:fc,ja:gc,ea:hc,fa:ic,k:jc,v:kc,pa:lc,g:mc,qa:nc,da:oc,ha:pc,ia:qc,na:rc,c:sc,ka:tc,ma:uc,aa:vc,V:wc,$:xc,ba:yc,S:zc,U:Ac,Z:Bc,X:Cc,R:Dc,Q:Ec,T:Fc,_:Gc,O:Hc,W:Ic,P:Jc},Y=function(){function a(c){c=c.exports;Y=c=Nc(c);ma=Y.sa;ra();ta.unshift(Y.ta);C--;f.monitorRunDependencies&&f.monitorRunDependencies(C);if(0==C&&(null!== +ya&&(clearInterval(ya),ya=null),za)){var d=za;za=null;d()}return c}var b={a:jd};C++;f.monitorRunDependencies&&f.monitorRunDependencies(C);if(f.instantiateWasm)try{return f.instantiateWasm(b,a)}catch(c){t(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Ga(b,function(c){a(c.instance)}).catch(ba);return{}}();f._sqlite3_vfs_find=a=>(f._sqlite3_vfs_find=Y.ua)(a);f._sqlite3_malloc=a=>(f._sqlite3_malloc=Y.va)(a);f._sqlite3_free=a=>(f._sqlite3_free=Y.wa)(a); +f._sqlite3_prepare_v2=(a,b,c,d,e)=>(f._sqlite3_prepare_v2=Y.xa)(a,b,c,d,e);f._sqlite3_step=a=>(f._sqlite3_step=Y.ya)(a);f._sqlite3_column_int64=(a,b)=>(f._sqlite3_column_int64=Y.za)(a,b);f._sqlite3_column_int=(a,b)=>(f._sqlite3_column_int=Y.Aa)(a,b);f._sqlite3_finalize=a=>(f._sqlite3_finalize=Y.Ba)(a);f._sqlite3_reset=a=>(f._sqlite3_reset=Y.Ca)(a);f._sqlite3_clear_bindings=a=>(f._sqlite3_clear_bindings=Y.Da)(a);f._sqlite3_value_blob=a=>(f._sqlite3_value_blob=Y.Ea)(a); +f._sqlite3_value_text=a=>(f._sqlite3_value_text=Y.Fa)(a);f._sqlite3_value_bytes=a=>(f._sqlite3_value_bytes=Y.Ga)(a);f._sqlite3_value_double=a=>(f._sqlite3_value_double=Y.Ha)(a);f._sqlite3_value_int=a=>(f._sqlite3_value_int=Y.Ia)(a);f._sqlite3_value_int64=a=>(f._sqlite3_value_int64=Y.Ja)(a);f._sqlite3_value_type=a=>(f._sqlite3_value_type=Y.Ka)(a);f._sqlite3_result_blob=(a,b,c,d)=>(f._sqlite3_result_blob=Y.La)(a,b,c,d);f._sqlite3_result_double=(a,b)=>(f._sqlite3_result_double=Y.Ma)(a,b); +f._sqlite3_result_error=(a,b,c)=>(f._sqlite3_result_error=Y.Na)(a,b,c);f._sqlite3_result_int=(a,b)=>(f._sqlite3_result_int=Y.Oa)(a,b);f._sqlite3_result_int64=(a,b,c)=>(f._sqlite3_result_int64=Y.Pa)(a,b,c);f._sqlite3_result_null=a=>(f._sqlite3_result_null=Y.Qa)(a);f._sqlite3_result_text=(a,b,c,d)=>(f._sqlite3_result_text=Y.Ra)(a,b,c,d);f._sqlite3_column_count=a=>(f._sqlite3_column_count=Y.Sa)(a);f._sqlite3_data_count=a=>(f._sqlite3_data_count=Y.Ta)(a); +f._sqlite3_column_blob=(a,b)=>(f._sqlite3_column_blob=Y.Ua)(a,b);f._sqlite3_column_bytes=(a,b)=>(f._sqlite3_column_bytes=Y.Va)(a,b);f._sqlite3_column_double=(a,b)=>(f._sqlite3_column_double=Y.Wa)(a,b);f._sqlite3_column_text=(a,b)=>(f._sqlite3_column_text=Y.Xa)(a,b);f._sqlite3_column_type=(a,b)=>(f._sqlite3_column_type=Y.Ya)(a,b);f._sqlite3_column_name=(a,b)=>(f._sqlite3_column_name=Y.Za)(a,b);f._sqlite3_bind_blob=(a,b,c,d,e)=>(f._sqlite3_bind_blob=Y._a)(a,b,c,d,e); +f._sqlite3_bind_double=(a,b,c)=>(f._sqlite3_bind_double=Y.$a)(a,b,c);f._sqlite3_bind_int=(a,b,c)=>(f._sqlite3_bind_int=Y.ab)(a,b,c);f._sqlite3_bind_int64=(a,b,c,d)=>(f._sqlite3_bind_int64=Y.bb)(a,b,c,d);f._sqlite3_bind_null=(a,b)=>(f._sqlite3_bind_null=Y.cb)(a,b);f._sqlite3_bind_text=(a,b,c,d,e)=>(f._sqlite3_bind_text=Y.db)(a,b,c,d,e);f._sqlite3_bind_parameter_count=a=>(f._sqlite3_bind_parameter_count=Y.eb)(a);f._sqlite3_bind_parameter_name=(a,b)=>(f._sqlite3_bind_parameter_name=Y.fb)(a,b); +f._sqlite3_sql=a=>(f._sqlite3_sql=Y.gb)(a);f._sqlite3_exec=(a,b,c,d,e)=>(f._sqlite3_exec=Y.hb)(a,b,c,d,e);f._sqlite3_errmsg=a=>(f._sqlite3_errmsg=Y.ib)(a);f._sqlite3_declare_vtab=(a,b)=>(f._sqlite3_declare_vtab=Y.jb)(a,b);f._sqlite3_libversion=()=>(f._sqlite3_libversion=Y.kb)();f._sqlite3_libversion_number=()=>(f._sqlite3_libversion_number=Y.lb)();f._sqlite3_changes=a=>(f._sqlite3_changes=Y.mb)(a);f._sqlite3_close=a=>(f._sqlite3_close=Y.nb)(a); +f._sqlite3_limit=(a,b,c)=>(f._sqlite3_limit=Y.ob)(a,b,c);f._sqlite3_open_v2=(a,b,c,d)=>(f._sqlite3_open_v2=Y.pb)(a,b,c,d);f._sqlite3_get_autocommit=a=>(f._sqlite3_get_autocommit=Y.qb)(a);var hd=()=>(hd=Y.rb)(),Tb=f._malloc=a=>(Tb=f._malloc=Y.sb)(a),bd=f._free=a=>(bd=f._free=Y.tb)(a);f._RegisterExtensionFunctions=a=>(f._RegisterExtensionFunctions=Y.ub)(a);f._set_authorizer=a=>(f._set_authorizer=Y.vb)(a);f._create_function=(a,b,c,d,e,h)=>(f._create_function=Y.wb)(a,b,c,d,e,h); +f._create_module=(a,b,c,d)=>(f._create_module=Y.xb)(a,b,c,d);f._progress_handler=(a,b)=>(f._progress_handler=Y.yb)(a,b);f._register_vfs=(a,b,c,d)=>(f._register_vfs=Y.zb)(a,b,c,d);f._getSqliteFree=()=>(f._getSqliteFree=Y.Ab)();var kd=f._main=(a,b)=>(kd=f._main=Y.Bb)(a,b),db=(a,b)=>(db=Y.Db)(a,b),ld=()=>(ld=Y.Eb)(),gd=()=>(gd=Y.Fb)(),ed=a=>(ed=Y.Gb)(a),fd=a=>(fd=Y.Hb)(a),$c=a=>($c=Y.Ib)(a),Pc=()=>(Pc=Y.Jb)(),Zc=a=>(Zc=Y.Kb)(a),ad=()=>(ad=Y.Lb)();f.getTempRet0=ld;f.ccall=Z; +f.cwrap=(a,b,c,d)=>{var e=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&e&&!d?f["_"+a]:function(){return Z(a,b,c,arguments,d)}};f.setValue=J;f.getValue=I;f.UTF8ToString=(a,b)=>a?K(y,a,b):"";f.stringToUTF8=(a,b,c)=>Sa(a,y,b,c);f.lengthBytesUTF8=Ra;var md;za=function nd(){md||od();md||(za=nd)}; +function od(){function a(){if(!md&&(md=!0,f.calledRun=!0,!v)){f.noFSInit||Jb||(Jb=!0,Ib(),f.stdin=f.stdin,f.stdout=f.stdout,f.stderr=f.stderr,f.stdin?Kb("stdin",f.stdin):zb("/dev/tty","/dev/stdin"),f.stdout?Kb("stdout",null,f.stdout):zb("/dev/tty","/dev/stdout"),f.stderr?Kb("stderr",null,f.stderr):zb("/dev/tty1","/dev/stderr"),Fb("/dev/stdin",0),Fb("/dev/stdout",1),Fb("/dev/stderr",1));jb=!1;Ia(ta);Ia(ua);aa(f);if(f.onRuntimeInitialized)f.onRuntimeInitialized();if(pd){var b=kd;try{var c=b(0,0);na= +c;Kc(c)}catch(d){Lc(d)}}if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)b=f.postRun.shift(),va.unshift(b);Ia(va)}}if(!(0 { var _scriptDir = import.meta.url; return ( -function(Module = {}) { +function(moduleArg = {}) { -var e;e||(e=typeof Module !== 'undefined' ? Module : {});var aa,ba;e.ready=new Promise((a,b)=>{aa=a;ba=b});var da=Object.assign({},e),ea="./this.program",fa=(a,b)=>{throw b;},ha="object"==typeof window,ia="function"==typeof importScripts,p="",ja; -if(ha||ia)ia?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),_scriptDir&&(p=_scriptDir),0!==p.indexOf("blob:")?p=p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):p="",ia&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var ka=e.print||console.log.bind(console),t=e.printErr||console.warn.bind(console);Object.assign(e,da);da=null;e.thisProgram&&(ea=e.thisProgram); -e.quit&&(fa=e.quit);var la;e.wasmBinary&&(la=e.wasmBinary);var noExitRuntime=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&u("no native wasm support detected");var ma,na=!1,v,x,oa,y,A,pa,qa;function ra(){var a=ma.buffer;e.HEAP8=v=new Int8Array(a);e.HEAP16=oa=new Int16Array(a);e.HEAP32=y=new Int32Array(a);e.HEAPU8=x=new Uint8Array(a);e.HEAPU16=new Uint16Array(a);e.HEAPU32=A=new Uint32Array(a);e.HEAPF32=pa=new Float32Array(a);e.HEAPF64=qa=new Float64Array(a)}var sa=[],ta=[],ua=[],va=[]; -function wa(){var a=e.preRun.shift();sa.unshift(a)}var B=0,xa=null,ya=null;function u(a){if(e.onAbort)e.onAbort(a);a="Aborted("+a+")";t(a);na=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function za(a){return a.startsWith("data:application/octet-stream;base64,")}var C;if(e.locateFile){if(C="wa-sqlite.wasm",!za(C)){var Aa=C;C=e.locateFile?e.locateFile(Aa,p):p+Aa}}else C=(new URL("wa-sqlite.wasm",import.meta.url)).href; -function Ba(a){try{if(a==C&&la)return new Uint8Array(la);if(ja)return ja(a);throw"both async and sync fetching of the wasm failed";}catch(b){u(b)}}function Ca(a){return la||!ha&&!ia||"function"!=typeof fetch?Promise.resolve().then(()=>Ba(a)):fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ba(a))} -function Da(a,b,c){return Ca(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t("failed to asynchronously prepare wasm: "+d);u(d)})}function Ea(a,b){var c=C;return la||"function"!=typeof WebAssembly.instantiateStreaming||za(c)||"function"!=typeof fetch?Da(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(f){t("wasm streaming compile failed: "+f);t("falling back to ArrayBuffer instantiation");return Da(c,a,b)}))}var E,H; -function Fa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function Ga(a){for(;0>0];case "i8":return v[a>>0];case "i16":return oa[a>>1];case "i32":return y[a>>2];case "i64":return y[a>>2];case "float":return pa[a>>2];case "double":return qa[a>>3];case "*":return A[a>>2];default:u("invalid type for getValue: "+b)}} -function K(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":v[a>>0]=b;break;case "i8":v[a>>0]=b;break;case "i16":oa[a>>1]=b;break;case "i32":y[a>>2]=b;break;case "i64":H=[b>>>0,(E=b,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[a>>2]=H[0];y[a+4>>2]=H[1];break;case "float":pa[a>>2]=b;break;case "double":qa[a>>3]=b;break;case "*":A[a>>2]=b;break;default:u("invalid type for setValue: "+c)}} -var Ha="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0; -function Ia(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function L(a,b){return a?Ia(x,a,b):""} -var Ja=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},M=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ja(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ka=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},La=a=>{if("/"=== -a)return"/";a=M(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function Ma(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);u("initRandomDevice")}function Na(a){return(Na=Ma())(a)} -function Oa(){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=Ja(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}function N(a){for(var b=0,c=0;c=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b} -function Pa(a,b,c,d){if(!(0=g){var m=a.charCodeAt(++k);g=65536+((g&1023)<<10)|m&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-f}var Qa=[];function Ra(a,b){Qa[a]={input:[],Nb:[],Zb:b};Sa(a,Ta)} -var Ta={open:function(a){var b=Qa[a.node.bc];if(!b)throw new O(43);a.Ob=b;a.seekable=!1},close:function(a){a.Ob.Zb.Wb(a.Ob)},Wb:function(a){a.Ob.Zb.Wb(a.Ob)},read:function(a,b,c,d){if(!a.Ob||!a.Ob.Zb.uc)throw new O(60);for(var f=0,k=0;k=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Jb,a.Jb=new Uint8Array(b),0=a.node.Lb)return 0;a=Math.min(a.node.Lb-f,d);if(8b)throw new O(28);return b},qc:function(a,b,c){P.sc(a.node,b+c);a.node.Lb=Math.max(a.node.Lb, -b+c)},fc:function(a,b,c,d,f){if(32768!==(a.node.mode&61440))throw new O(43);a=a.node.Jb;if(f&2||a.buffer!==v.buffer){if(0{a=Oa(a);if(!a)return{path:"", -node:null};b=Object.assign({tc:!0,oc:0},b);if(8!!g);for(var c=$a,d="/",f=0;f{for(var b;;){if(a===a.parent)return a=a.Rb.vc,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}}, -fb=(a,b)=>{for(var c=0,d=0;d>>0)%S.length},gb=a=>{var b=fb(a.parent.id,a.name);if(S[b]===a)S[b]=a.Yb;else for(b=S[b];b;){if(b.Yb===a){b.Yb=a.Yb;break}b=b.Yb}},Q=(a,b)=>{var c;if(c=(c=hb(a,"x"))?c:a.Cb.$b?0:2)throw new O(c,a);for(c=S[fb(a.id,b)];c;c=c.Yb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Cb.$b(a,b)},Xa=(a,b,c,d)=>{a=new ib(a,b,c,d);b=fb(a.parent.id,a.name);a.Yb=S[b];return S[b]=a},jb={r:0,"r+":2,w:577,"w+":578,a:1089, -"a+":1090},kb=a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},hb=(a,b)=>{if(cb)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},lb=(a,b)=>{try{return Q(a,b),20}catch(c){}return hb(a,"wx")},mb=(a,b,c)=>{try{var d=Q(a,b)}catch(f){return f.Kb}if(a=hb(a,"wx"))return a;if(c){if(16384!==(d.mode&61440))return 54;if(d===d.parent||"/"===eb(d))return 10}else if(16384===(d.mode&61440))return 31;return 0},nb=(a= -0)=>{for(;4096>=a;a++)if(!R[a])return a;throw new O(33);},pb=(a,b)=>{ob||(ob=function(){this.dc={}},ob.prototype={},Object.defineProperties(ob.prototype,{object:{get:function(){return this.node},set:function(c){this.node=c}},flags:{get:function(){return this.dc.flags},set:function(c){this.dc.flags=c}},position:{get:function(){return this.dc.position},set:function(c){this.dc.position=c}}}));a=Object.assign(new ob,a);b=nb(b);a.Sb=b;return R[b]=a},Wa={open:a=>{a.Ib=ab[a.node.bc].Ib;a.Ib.open&&a.Ib.open(a)}, -Vb:()=>{throw new O(70);}},Sa=(a,b)=>{ab[a]={Ib:b}},qb=(a,b)=>{var c="/"===b,d=!b;if(c&&$a)throw new O(10);if(!c&&!d){var f=U(b,{tc:!1});b=f.path;f=f.node;if(f.Xb)throw new O(10);if(16384!==(f.mode&61440))throw new O(54);}b={type:a,Qc:{},vc:b,Hc:[]};a=a.Rb(b);a.Rb=b;b.root=a;c?$a=a:f&&(f.Xb=b,f.Rb&&f.Rb.Hc.push(b))},rb=(a,b,c)=>{var d=U(a,{parent:!0}).node;a=La(a);if(!a||"."===a||".."===a)throw new O(28);var f=lb(d,a);if(f)throw new O(f);if(!d.Cb.ec)throw new O(63);return d.Cb.ec(d,a,b,c)},V=(a,b)=> -rb(a,(void 0!==b?b:511)&1023|16384,0),sb=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);rb(a,b|8192,c)},tb=(a,b)=>{if(!Oa(a))throw new O(44);var c=U(b,{parent:!0}).node;if(!c)throw new O(44);b=La(b);var d=lb(c,b);if(d)throw new O(d);if(!c.Cb.jc)throw new O(63);c.Cb.jc(c,b,a)},ub=a=>{var b=U(a,{parent:!0}).node;a=La(a);var c=Q(b,a),d=mb(b,a,!0);if(d)throw new O(d);if(!b.Cb.ic)throw new O(63);if(c.Xb)throw new O(10);b.Cb.ic(b,a);gb(c)},db=a=>{a=U(a).node;if(!a)throw new O(44);if(!a.Cb.cc)throw new O(28); -return Oa(eb(a.parent),a.Cb.cc(a))},vb=(a,b)=>{a=U(a,{Ub:!b}).node;if(!a)throw new O(44);if(!a.Cb.Pb)throw new O(63);return a.Cb.Pb(a)},wb=a=>vb(a,!0),xb=(a,b)=>{a="string"==typeof a?U(a,{Ub:!0}).node:a;if(!a.Cb.Mb)throw new O(63);a.Cb.Mb(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},yb=(a,b)=>{if(0>b)throw new O(28);a="string"==typeof a?U(a,{Ub:!0}).node:a;if(!a.Cb.Mb)throw new O(63);if(16384===(a.mode&61440))throw new O(31);if(32768!==(a.mode&61440))throw new O(28);var c=hb(a,"w");if(c)throw new O(c); -a.Cb.Mb(a,{size:b,timestamp:Date.now()})},Ab=(a,b,c)=>{if(""===a)throw new O(44);if("string"==typeof b){var d=jb[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 f=a;else{a=M(a);try{f=U(a,{Ub:!(b&131072)}).node}catch(k){}}d=!1;if(b&64)if(f){if(b&128)throw new O(20);}else f=rb(a,c,0),d=!0;if(!f)throw new O(44);8192===(f.mode&61440)&&(b&=-513);if(b&65536&&16384!==(f.mode&61440))throw new O(54);if(!d&& -(c=f?40960===(f.mode&61440)?32:16384===(f.mode&61440)&&("r"!==kb(b)||b&512)?31:hb(f,kb(b)):44))throw new O(c);b&512&&!d&&yb(f,0);b&=-131713;f=pb({node:f,path:eb(f),flags:b,seekable:!0,position:0,Ib:f.Ib,Nc:[],error:!1});f.Ib.open&&f.Ib.open(f);!e.logReadFiles||b&1||(zb||(zb={}),a in zb||(zb[a]=1));return f},Bb=(a,b,c)=>{if(null===a.Sb)throw new O(8);if(!a.seekable||!a.Ib.Vb)throw new O(70);if(0!=c&&1!=c&&2!=c)throw new O(28);a.position=a.Ib.Vb(a,b,c);a.Nc=[]},Cb=()=>{O||(O=function(a,b){this.name= -"ErrnoError";this.node=b;this.Mc=function(c){this.Kb=c};this.Mc(a);this.message="FS error"},O.prototype=Error(),O.prototype.constructor=O,[44].forEach(a=>{Ya[a]=new O(a);Ya[a].stack=""}))},Db,Eb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},Gb=(a,b,c)=>{a=M("/dev/"+a);var d=Eb(!!b,!!c);Fb||(Fb=64);var f=Fb++<<8|0;Sa(f,{open:k=>{k.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(k,g,m,l)=>{for(var h=0,q=0;q{for(var h=0;h>2]=d.Dc;y[c+8>>2]=d.mc;y[c+12>>2]=d.mode;A[c+16>>2]=d.Jc;y[c+20>>2]=d.uid;y[c+24>>2]=d.Fc;y[c+28>>2]=d.bc;H=[d.size>>>0,(E=d.size,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[c+40>>2]=H[0];y[c+44>>2]=H[1];y[c+48>>2]=4096;y[c+52>>2]=d.Bc;a=d.zc.getTime();b=d.Ic.getTime();var f=d.Cc.getTime();H=[Math.floor(a/1E3)>>>0,(E=Math.floor(a/1E3),1<=+Math.abs(E)? -0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[c+56>>2]=H[0];y[c+60>>2]=H[1];A[c+64>>2]=a%1E3*1E3;H=[Math.floor(b/1E3)>>>0,(E=Math.floor(b/1E3),1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[c+72>>2]=H[0];y[c+76>>2]=H[1];A[c+80>>2]=b%1E3*1E3;H=[Math.floor(f/1E3)>>>0,(E=Math.floor(f/1E3),1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[c+88>>2]=H[0];y[c+92>>2]= -H[1];A[c+96>>2]=f%1E3*1E3;H=[d.mc>>>0,(E=d.mc,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[c+104>>2]=H[0];y[c+108>>2]=H[1];return 0}var Ib=void 0;function Jb(){Ib+=4;return y[Ib-4>>2]}function Y(a){a=R[a];if(!a)throw new O(8);return a}function Kb(a,b,c){return Pa(a,x,b,c)}function Lb(a){return A[a>>2]+4294967296*y[a+4>>2]}var Mb=[0,31,60,91,121,152,182,213,244,274,305,335],Nb=[0,31,59,90,120,151,181,212,243,273,304,334]; -function Ob(a){var b=N(a)+1,c=Pb(b);c&&Kb(a,c,b);return c}var Qb={};function Rb(){if(!Sb){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",_:ea||"./this.program"},b;for(b in Qb)void 0===Qb[b]?delete a[b]:a[b]=Qb[b];var c=[];for(b in a)c.push(b+"="+a[b]);Sb=c}return Sb}var Sb;function Tb(){}function Ub(){}function Vb(){}function Wb(){}function Xb(){} -function Yb(){}function Zb(){}function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){}function Cc(){}function Dc(){} -function Ec(){}function Z(a,b,c,d){var f={string:h=>{var q=0;if(null!==h&&void 0!==h&&0!==h){q=N(h)+1;var n=Fc(q);Kb(h,n,q);q=n}return q},array:h=>{var q=Fc(h.length);v.set(h,q);return q}};a=e["_"+a];var k=[],g=0;if(d)for(var m=0;m{V("/dev");Sa(259,{read:()=>0,write:(d,f,k,g)=>g});sb("/dev/null",259);Ra(1280,Ua);Ra(1536,Va);sb("/dev/tty",1280);sb("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Na(a).byteLength);return a[--b]};Gb("random",c);Gb("urandom",c);V("/dev/shm");V("/dev/shm/tmp")})(); -(()=>{V("/proc");var a=V("/proc/self");V("/proc/self/fd");qb({Rb:()=>{var b=Xa(a,"fd",16895,73);b.Cb={$b:(c,d)=>{var f=R[+d];if(!f)throw new O(8);c={parent:null,Rb:{vc:"fake"},Cb:{cc:()=>f.path}};return c.parent=c}};return b}},"/proc/self/fd")})(); -(function(){const a=new Map;e.setAuthorizer=function(b,c,d){c?a.set(b,{f:c,pc:d}):a.delete(b);return Z("set_authorizer","number",["number"],[b])};Tb=function(b,c,d,f,k,g){if(a.has(b)){const {f:m,pc:l}=a.get(b);return m(l,c,d?L(d):null,f?L(f):null,k?L(k):null,g?L(g):null)}return 0}})(); -(function(){const a=new Map,b=new Map;e.createFunction=function(c,d,f,k,g,m){const l=a.size;a.set(l,{f:m,Tb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,f,k,l,0])};e.createAggregate=function(c,d,f,k,g,m,l){const h=a.size;a.set(h,{step:m,Ec:l,Tb:g});return Z("create_function","number","number string number number number number".split(" "),[c,d,f,k,h,1])};e.getFunctionUserData=function(c){return b.get(c)};Vb=function(c,d,f,k){c=a.get(c);b.set(d, -c.Tb);c.f(d,new Uint32Array(x.buffer,k,f));b.delete(d)};Xb=function(c,d,f,k){c=a.get(c);b.set(d,c.Tb);c.step(d,new Uint32Array(x.buffer,k,f));b.delete(d)};Ub=function(c,d){c=a.get(c);b.set(d,c.Tb);c.Ec(d);b.delete(d)}})();(function(){const a=new Map;e.progressHandler=function(b,c,d,f){d?a.set(b,{f:d,pc:f}):a.delete(b);return Z("progress_handler",null,["number","number"],[b,c])};Wb=function(b){if(a.has(b)){const {f:c,pc:d}=a.get(b);return c(d)}return 0}})(); -(function(){function a(l,h){const q=`get${l}`,n=`set${l}`;return new Proxy(new DataView(x.buffer,h,"Int32"===l?4:8),{get(r,w){if(w===q)return function(z,F){if(!F)throw Error("must be little endian");return r[w](z,F)};if(w===n)return function(z,F,D){if(!D)throw Error("must be little endian");return r[w](z,F,D)};if("string"===typeof w&&w.match(/^(get)|(set)/))throw Error("invalid type");return r[w]}})}const b="object"===typeof Asyncify,c=new Map,d=new Map,f=new Map,k=b?new Set:null,g=b?new Set:null, -m=new Map;nc=function(l,h,q,n){m.set(L(l),{size:h,ac:Array.from(new Uint32Array(x.buffer,n,q))})};e.createModule=function(l,h,q,n){b&&(q.handleAsync=Asyncify.Gc);const r=c.size;c.set(r,{module:q,Tb:n});n=0;q.xCreate&&(n|=1);q.xConnect&&(n|=2);q.xBestIndex&&(n|=4);q.xDisconnect&&(n|=8);q.xDestroy&&(n|=16);q.xOpen&&(n|=32);q.xClose&&(n|=64);q.xFilter&&(n|=128);q.xNext&&(n|=256);q.xEof&&(n|=512);q.xColumn&&(n|=1024);q.xRowid&&(n|=2048);q.xUpdate&&(n|=4096);q.xBegin&&(n|=8192);q.xSync&&(n|=16384);q.xCommit&& -(n|=32768);q.xRollback&&(n|=65536);q.xFindFunction&&(n|=131072);q.xRename&&(n|=262144);return Z("create_module","number",["number","string","number","number"],[l,h,r,n])};dc=function(l,h,q,n,r,w){h=c.get(h);d.set(r,h);if(b){k.delete(r);for(const z of k)d.delete(z)}n=Array.from(new Uint32Array(x.buffer,n,q)).map(z=>L(z));return h.module.xCreate(l,h.Tb,n,r,a("Int32",w))};cc=function(l,h,q,n,r,w){h=c.get(h);d.set(r,h);if(b){k.delete(r);for(const z of k)d.delete(z)}n=Array.from(new Uint32Array(x.buffer, -n,q)).map(z=>L(z));return h.module.xConnect(l,h.Tb,n,r,a("Int32",w))};Zb=function(l,h){var q=d.get(l),n=m.get("sqlite3_index_info").ac;const r={};r.nConstraint=I(h+n[0],"i32");r.aConstraint=[];var w=I(h+n[1],"*"),z=m.get("sqlite3_index_constraint").size;for(var F=0;F>=2;return A[g]+A[g+1]*2**32}const c="object"===typeof Asyncify,d=new Map,f=new Map; -e.registerVFS=function(g,m){if(Z("sqlite3_vfs_find","number",["string"],[g.name]))throw Error(`VFS '${g.name}' already registered`);c&&(g.handleAsync=Asyncify.Gc);var l=g.Pc??64;const h=e._malloc(4);m=Z("register_vfs","number",["string","number","number","number"],[g.name,l,m?1:0,h]);m||(l=I(h,"*"),d.set(l,g));e._free(h);return m};const k=c?new Set:null;sc=function(g){const m=f.get(g);c?k.add(g):f.delete(g);return m.xClose(g)};zc=function(g,m,l,h){return f.get(g).xRead(g,x.subarray(m,m+l),b(h))}; -Ec=function(g,m,l,h){return f.get(g).xWrite(g,x.subarray(m,m+l),b(h))};Cc=function(g,m){return f.get(g).xTruncate(g,b(m))};Bc=function(g,m){return f.get(g).xSync(g,m)};wc=function(g,m){const l=f.get(g);m=a("BigInt64",m);return l.xFileSize(g,m)};xc=function(g,m){return f.get(g).xLock(g,m)};Dc=function(g,m){return f.get(g).xUnlock(g,m)};rc=function(g,m){const l=f.get(g);m=a("Int32",m);return l.xCheckReservedLock(g,m)};vc=function(g,m,l){const h=f.get(g);l=new DataView(x.buffer,l);return h.xFileControl(g, -m,l)};Ac=function(g){return f.get(g).xSectorSize(g)};uc=function(g){return f.get(g).xDeviceCharacteristics(g)};yc=function(g,m,l,h,q){g=d.get(g);f.set(l,g);if(c){k.delete(l);for(var n of k)f.delete(n)}n=null;if(h&64){n=1;const r=[];for(;n;){const w=x[m++];if(w)r.push(w);else switch(x[m]||(n=null),n){case 1:r.push(63);n=2;break;case 2:r.push(61);n=3;break;case 3:r.push(38),n=2}}n=(new TextDecoder).decode(new Uint8Array(r))}else m&&(n=L(m));q=a("Int32",q);return g.xOpen(n,l,h,q)};tc=function(g,m,l){return d.get(g).xDelete(L(m), -l)};qc=function(g,m,l,h){g=d.get(g);h=a("Int32",h);return g.xAccess(L(m),l,h)}})(); -var Jc={a:function(a,b,c,d){u("Assertion failed: "+L(a)+", at: "+[b?L(b):"unknown filename",c,d?L(d):"unknown function"])},K:function(a,b){try{return a=L(a),xb(a,b),0}catch(c){if("undefined"==typeof W||"ErrnoError"!==c.name)throw c;return-c.Kb}},M:function(a,b,c){try{b=L(b);b=X(a,b);if(c&-8)return-28;var d=U(b,{Ub:!0}).node;if(!d)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&hb(d,a)?-2:0}catch(f){if("undefined"==typeof W||"ErrnoError"!==f.name)throw f;return-f.Kb}},L:function(a, -b){try{var c=R[a];if(!c)throw new O(8);xb(c.node,b);return 0}catch(d){if("undefined"==typeof W||"ErrnoError"!==d.name)throw d;return-d.Kb}},J:function(a){try{var b=R[a];if(!b)throw new O(8);var c=b.node;var d="string"==typeof c?U(c,{Ub:!0}).node:c;if(!d.Cb.Mb)throw new O(63);d.Cb.Mb(d,{timestamp:Date.now()});return 0}catch(f){if("undefined"==typeof W||"ErrnoError"!==f.name)throw f;return-f.Kb}},b:function(a,b,c){Ib=c;try{var d=Y(a);switch(b){case 0:var f=Jb();return 0>f?-28:pb(d,f).Sb;case 1:case 2:return 0; -case 3:return d.flags;case 4:return f=Jb(),d.flags|=f,0;case 5:return f=Jb(),oa[f+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return y[Ic()>>2]=28,-1;default:return-28}}catch(k){if("undefined"==typeof W||"ErrnoError"!==k.name)throw k;return-k.Kb}},I:function(a,b){try{var c=Y(a);return Hb(vb,c.path,b)}catch(d){if("undefined"==typeof W||"ErrnoError"!==d.name)throw d;return-d.Kb}},j:function(a,b,c){try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return-61;var d= -R[a];if(!d)throw new O(8);if(0===(d.flags&2097155))throw new O(28);yb(d.node,b);return 0}catch(f){if("undefined"==typeof W||"ErrnoError"!==f.name)throw f;return-f.Kb}},C:function(a,b){try{if(0===b)return-28;var c=N("/")+1;if(b=d)return-28;var f=db(b),k=Math.min(d,N(f)),g=v[c+k];Kb(f,c,d+1);v[c+k]=g;return k}catch(m){if("undefined"==typeof W||"ErrnoError"!==m.name)throw m;return-m.Kb}},r:function(a){try{return a=L(a),ub(a),0}catch(b){if("undefined"==typeof W||"ErrnoError"!==b.name)throw b;return-b.Kb}},H:function(a,b){try{return a=L(a),Hb(vb,a,b)}catch(c){if("undefined"==typeof W||"ErrnoError"!==c.name)throw c;return-c.Kb}},o:function(a,b,c){try{b=L(b);b=X(a,b);if(0===c){a=b;var d=U(a,{parent:!0}).node;if(!d)throw new O(44); -var f=La(a),k=Q(d,f),g=mb(d,f,!1);if(g)throw new O(g);if(!d.Cb.kc)throw new O(63);if(k.Xb)throw new O(10);d.Cb.kc(d,f);gb(k)}else 512===c?ub(b):u("Invalid flags passed to unlinkat");return 0}catch(m){if("undefined"==typeof W||"ErrnoError"!==m.name)throw m;return-m.Kb}},n:function(a,b,c){try{b=L(b);b=X(a,b,!0);if(c){var d=Lb(c),f=y[c+8>>2];k=1E3*d+f/1E6;c+=16;d=Lb(c);f=y[c+8>>2];g=1E3*d+f/1E6}else var k=Date.now(),g=k;a=k;var m=U(b,{Ub:!0}).node;m.Cb.Mb(m,{timestamp:Math.max(a,g)});return 0}catch(l){if("undefined"== -typeof W||"ErrnoError"!==l.name)throw l;return-l.Kb}},y:function(a,b){a=new Date(1E3*Lb(a));y[b>>2]=a.getSeconds();y[b+4>>2]=a.getMinutes();y[b+8>>2]=a.getHours();y[b+12>>2]=a.getDate();y[b+16>>2]=a.getMonth();y[b+20>>2]=a.getFullYear()-1900;y[b+24>>2]=a.getDay();var c=a.getFullYear();y[b+28>>2]=(0!==c%4||0===c%100&&0!==c%400?Nb:Mb)[a.getMonth()]+a.getDate()-1|0;y[b+36>>2]=-(60*a.getTimezoneOffset());c=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();var d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset(); -y[b+32>>2]=(c!=d&&a.getTimezoneOffset()==Math.min(d,c))|0},w:function(a,b,c,d,f,k,g){try{var m=Y(d);if(0!==(b&2)&&0===(c&2)&&2!==(m.flags&2097155))throw new O(2);if(1===(m.flags&2097155))throw new O(2);if(!m.Ib.fc)throw new O(43);var l=m.Ib.fc(m,a,f,b,c);var h=l.Kc;y[k>>2]=l.yc;A[g>>2]=h;return 0}catch(q){if("undefined"==typeof W||"ErrnoError"!==q.name)throw q;return-q.Kb}},x:function(a,b,c,d,f,k){try{var g=Y(f);if(c&2){if(32768!==(g.node.mode&61440))throw new O(43);d&2||g.Ib.hc&&g.Ib.hc(g,x.slice(a, -a+b),k,b,d)}}catch(m){if("undefined"==typeof W||"ErrnoError"!==m.name)throw m;return-m.Kb}},p:function(a,b,c){function d(l){return(l=l.toTimeString().match(/\(([A-Za-z ]+)\)$/))?l[1]:"GMT"}var f=(new Date).getFullYear(),k=new Date(f,0,1),g=new Date(f,6,1);f=k.getTimezoneOffset();var m=g.getTimezoneOffset();A[a>>2]=60*Math.max(f,m);y[b>>2]=Number(f!=m);a=d(k);b=d(g);a=Ob(a);b=Ob(b);m>2]=a,A[c+4>>2]=b):(A[c>>2]=b,A[c+4>>2]=a)},e:function(){return Date.now()},d:()=>performance.now(),l:function(a){var b= -x.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var f=Math,k=f.min;d=Math.max(a,d);d+=(65536-d%65536)%65536;a:{var g=ma.buffer;try{ma.grow(k.call(f,2147483648,d)-g.byteLength+65535>>>16);ra();var m=1;break a}catch(l){}m=void 0}if(m)return!0}return!1},A:function(a,b){var c=0;Rb().forEach(function(d,f){var k=b+c;f=A[a+4*f>>2]=k;for(k=0;k>0]=d.charCodeAt(k);v[f>>0]=0;c+=d.length+1});return 0},B:function(a,b){var c=Rb();A[a>> -2]=c.length;var d=0;c.forEach(function(f){d+=f.length+1});A[b>>2]=d;return 0},f:function(a){try{var b=Y(a);if(null===b.Sb)throw new O(8);b.lc&&(b.lc=null);try{b.Ib.close&&b.Ib.close(b)}catch(c){throw c;}finally{R[b.Sb]=null}b.Sb=null;return 0}catch(c){if("undefined"==typeof W||"ErrnoError"!==c.name)throw c;return c.Kb}},m:function(a,b){try{var c=Y(a);v[b>>0]=c.Ob?2:16384===(c.mode&61440)?3:40960===(c.mode&61440)?7:4;oa[b+2>>1]=0;H=[0,(E=0,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E- -+(~~E>>>0))/4294967296)>>>0:0)];y[b+8>>2]=H[0];y[b+12>>2]=H[1];H=[0,(E=0,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[b+16>>2]=H[0];y[b+20>>2]=H[1];return 0}catch(d){if("undefined"==typeof W||"ErrnoError"!==d.name)throw d;return d.Kb}},t:function(a,b,c,d){try{a:{var f=Y(a);a=b;for(var k,g=b=0;g>2],l=A[a+4>>2];a+=8;var h=f,q=m,n=l,r=k,w=v;if(0>n||0>r)throw new O(28);if(null===h.Sb)throw new O(8);if(1===(h.flags&2097155))throw new O(8); -if(16384===(h.node.mode&61440))throw new O(31);if(!h.Ib.read)throw new O(28);var z="undefined"!=typeof r;if(!z)r=h.position;else if(!h.seekable)throw new O(70);var F=h.Ib.read(h,w,q,n,r);z||(h.position+=F);var D=F;if(0>D){var J=-1;break a}b+=D;if(D>2]=J;return 0}catch(G){if("undefined"==typeof W||"ErrnoError"!==G.name)throw G;return G.Kb}},i:function(a,b,c,d,f){try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return 61;var k=Y(a); -Bb(k,b,d);H=[k.position>>>0,(E=k.position,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];y[f>>2]=H[0];y[f+4>>2]=H[1];k.lc&&0===b&&0===d&&(k.lc=null);return 0}catch(g){if("undefined"==typeof W||"ErrnoError"!==g.name)throw g;return g.Kb}},D:function(a){try{var b=Y(a);return b.Ib&&b.Ib.Wb?b.Ib.Wb(b):0}catch(c){if("undefined"==typeof W||"ErrnoError"!==c.name)throw c;return c.Kb}},q:function(a,b,c,d){try{a:{var f=Y(a);a=b;for(var k,g=b=0;g>2],l=A[a+4>>2];a+=8;var h=f,q=m,n=l,r=k,w=v;if(0>n||0>r)throw new O(28);if(null===h.Sb)throw new O(8);if(0===(h.flags&2097155))throw new O(8);if(16384===(h.node.mode&61440))throw new O(31);if(!h.Ib.write)throw new O(28);h.seekable&&h.flags&1024&&Bb(h,0,2);var z="undefined"!=typeof r;if(!z)r=h.position;else if(!h.seekable)throw new O(70);var F=h.Ib.write(h,w,q,n,r,void 0);z||(h.position+=F);var D=F;if(0>D){var J=-1;break a}b+=D;"undefined"!==typeof k&&(k+=D)}J=b}A[d>>2]=J;return 0}catch(G){if("undefined"== -typeof W||"ErrnoError"!==G.name)throw G;return G.Kb}},ra:Tb,N:Ub,ga:Vb,ca:Wb,Y:Xb,la:Yb,G:Zb,h:$b,oa:ac,ja:bc,ea:cc,fa:dc,k:ec,v:fc,pa:gc,g:hc,qa:ic,da:jc,ha:kc,ia:lc,na:mc,c:nc,ka:oc,ma:pc,aa:qc,V:rc,$:sc,ba:tc,S:uc,U:vc,Z:wc,X:xc,R:yc,Q:zc,T:Ac,_:Bc,O:Cc,W:Dc,P:Ec}; -(function(){function a(c){c=c.exports;e.asm=c;ma=e.asm.sa;ra();ta.unshift(e.asm.ta);B--;e.monitorRunDependencies&&e.monitorRunDependencies(B);if(0==B&&(null!==xa&&(clearInterval(xa),xa=null),ya)){var d=ya;ya=null;d()}return c}var b={a:Jc};B++;e.monitorRunDependencies&&e.monitorRunDependencies(B);if(e.instantiateWasm)try{return e.instantiateWasm(b,a)}catch(c){t("Module.instantiateWasm callback failed with error: "+c),ba(c)}Ea(b,function(c){a(c.instance)}).catch(ba);return{}})(); -e._sqlite3_vfs_find=function(){return(e._sqlite3_vfs_find=e.asm.ua).apply(null,arguments)};e._sqlite3_malloc=function(){return(e._sqlite3_malloc=e.asm.va).apply(null,arguments)};e._sqlite3_free=function(){return(e._sqlite3_free=e.asm.wa).apply(null,arguments)};e._sqlite3_prepare_v2=function(){return(e._sqlite3_prepare_v2=e.asm.xa).apply(null,arguments)};e._sqlite3_step=function(){return(e._sqlite3_step=e.asm.ya).apply(null,arguments)}; -e._sqlite3_column_int64=function(){return(e._sqlite3_column_int64=e.asm.za).apply(null,arguments)};e._sqlite3_column_int=function(){return(e._sqlite3_column_int=e.asm.Aa).apply(null,arguments)};e._sqlite3_finalize=function(){return(e._sqlite3_finalize=e.asm.Ba).apply(null,arguments)};e._sqlite3_reset=function(){return(e._sqlite3_reset=e.asm.Ca).apply(null,arguments)};e._sqlite3_clear_bindings=function(){return(e._sqlite3_clear_bindings=e.asm.Da).apply(null,arguments)}; -e._sqlite3_value_blob=function(){return(e._sqlite3_value_blob=e.asm.Ea).apply(null,arguments)};e._sqlite3_value_text=function(){return(e._sqlite3_value_text=e.asm.Fa).apply(null,arguments)};e._sqlite3_value_bytes=function(){return(e._sqlite3_value_bytes=e.asm.Ga).apply(null,arguments)};e._sqlite3_value_double=function(){return(e._sqlite3_value_double=e.asm.Ha).apply(null,arguments)};e._sqlite3_value_int=function(){return(e._sqlite3_value_int=e.asm.Ia).apply(null,arguments)}; -e._sqlite3_value_int64=function(){return(e._sqlite3_value_int64=e.asm.Ja).apply(null,arguments)};e._sqlite3_value_type=function(){return(e._sqlite3_value_type=e.asm.Ka).apply(null,arguments)};e._sqlite3_result_blob=function(){return(e._sqlite3_result_blob=e.asm.La).apply(null,arguments)};e._sqlite3_result_double=function(){return(e._sqlite3_result_double=e.asm.Ma).apply(null,arguments)};e._sqlite3_result_error=function(){return(e._sqlite3_result_error=e.asm.Na).apply(null,arguments)}; -e._sqlite3_result_int=function(){return(e._sqlite3_result_int=e.asm.Oa).apply(null,arguments)};e._sqlite3_result_int64=function(){return(e._sqlite3_result_int64=e.asm.Pa).apply(null,arguments)};e._sqlite3_result_null=function(){return(e._sqlite3_result_null=e.asm.Qa).apply(null,arguments)};e._sqlite3_result_text=function(){return(e._sqlite3_result_text=e.asm.Ra).apply(null,arguments)};e._sqlite3_column_count=function(){return(e._sqlite3_column_count=e.asm.Sa).apply(null,arguments)}; -e._sqlite3_data_count=function(){return(e._sqlite3_data_count=e.asm.Ta).apply(null,arguments)};e._sqlite3_column_blob=function(){return(e._sqlite3_column_blob=e.asm.Ua).apply(null,arguments)};e._sqlite3_column_bytes=function(){return(e._sqlite3_column_bytes=e.asm.Va).apply(null,arguments)};e._sqlite3_column_double=function(){return(e._sqlite3_column_double=e.asm.Wa).apply(null,arguments)};e._sqlite3_column_text=function(){return(e._sqlite3_column_text=e.asm.Xa).apply(null,arguments)}; -e._sqlite3_column_type=function(){return(e._sqlite3_column_type=e.asm.Ya).apply(null,arguments)};e._sqlite3_column_name=function(){return(e._sqlite3_column_name=e.asm.Za).apply(null,arguments)};e._sqlite3_bind_blob=function(){return(e._sqlite3_bind_blob=e.asm._a).apply(null,arguments)};e._sqlite3_bind_double=function(){return(e._sqlite3_bind_double=e.asm.$a).apply(null,arguments)};e._sqlite3_bind_int=function(){return(e._sqlite3_bind_int=e.asm.ab).apply(null,arguments)}; -e._sqlite3_bind_int64=function(){return(e._sqlite3_bind_int64=e.asm.bb).apply(null,arguments)};e._sqlite3_bind_null=function(){return(e._sqlite3_bind_null=e.asm.cb).apply(null,arguments)};e._sqlite3_bind_text=function(){return(e._sqlite3_bind_text=e.asm.db).apply(null,arguments)};e._sqlite3_bind_parameter_count=function(){return(e._sqlite3_bind_parameter_count=e.asm.eb).apply(null,arguments)};e._sqlite3_bind_parameter_name=function(){return(e._sqlite3_bind_parameter_name=e.asm.fb).apply(null,arguments)}; -e._sqlite3_sql=function(){return(e._sqlite3_sql=e.asm.gb).apply(null,arguments)};e._sqlite3_exec=function(){return(e._sqlite3_exec=e.asm.hb).apply(null,arguments)};e._sqlite3_errmsg=function(){return(e._sqlite3_errmsg=e.asm.ib).apply(null,arguments)};e._sqlite3_declare_vtab=function(){return(e._sqlite3_declare_vtab=e.asm.jb).apply(null,arguments)};e._sqlite3_libversion=function(){return(e._sqlite3_libversion=e.asm.kb).apply(null,arguments)}; -e._sqlite3_libversion_number=function(){return(e._sqlite3_libversion_number=e.asm.lb).apply(null,arguments)};e._sqlite3_changes=function(){return(e._sqlite3_changes=e.asm.mb).apply(null,arguments)};e._sqlite3_close=function(){return(e._sqlite3_close=e.asm.nb).apply(null,arguments)};e._sqlite3_limit=function(){return(e._sqlite3_limit=e.asm.ob).apply(null,arguments)};e._sqlite3_open_v2=function(){return(e._sqlite3_open_v2=e.asm.pb).apply(null,arguments)}; -e._sqlite3_get_autocommit=function(){return(e._sqlite3_get_autocommit=e.asm.qb).apply(null,arguments)};function Ic(){return(Ic=e.asm.rb).apply(null,arguments)}var Pb=e._malloc=function(){return(Pb=e._malloc=e.asm.sb).apply(null,arguments)};e._free=function(){return(e._free=e.asm.tb).apply(null,arguments)};e._RegisterExtensionFunctions=function(){return(e._RegisterExtensionFunctions=e.asm.ub).apply(null,arguments)};e._set_authorizer=function(){return(e._set_authorizer=e.asm.vb).apply(null,arguments)}; -e._create_function=function(){return(e._create_function=e.asm.wb).apply(null,arguments)};e._create_module=function(){return(e._create_module=e.asm.xb).apply(null,arguments)};e._progress_handler=function(){return(e._progress_handler=e.asm.yb).apply(null,arguments)};e._register_vfs=function(){return(e._register_vfs=e.asm.zb).apply(null,arguments)};e._getSqliteFree=function(){return(e._getSqliteFree=e.asm.Ab).apply(null,arguments)};var Kc=e._main=function(){return(Kc=e._main=e.asm.Bb).apply(null,arguments)}; -function Za(){return(Za=e.asm.Db).apply(null,arguments)}function Lc(){return(Lc=e.asm.Eb).apply(null,arguments)}function Gc(){return(Gc=e.asm.Fb).apply(null,arguments)}function Hc(){return(Hc=e.asm.Gb).apply(null,arguments)}function Fc(){return(Fc=e.asm.Hb).apply(null,arguments)}e.getTempRet0=Lc;e.ccall=Z;e.cwrap=function(a,b,c,d){var f=!c||c.every(k=>"number"===k||"boolean"===k);return"string"!==b&&f&&!d?e["_"+a]:function(){return Z(a,b,c,arguments,d)}};e.setValue=K;e.getValue=I;e.UTF8ToString=L; -e.stringToUTF8=Kb;e.lengthBytesUTF8=N;var Mc;ya=function Nc(){Mc||Oc();Mc||(ya=Nc)}; -function Oc(){function a(){if(!Mc&&(Mc=!0,e.calledRun=!0,!na)){e.noFSInit||Db||(Db=!0,Cb(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?Gb("stdin",e.stdin):tb("/dev/tty","/dev/stdin"),e.stdout?Gb("stdout",null,e.stdout):tb("/dev/tty","/dev/stdout"),e.stderr?Gb("stderr",null,e.stderr):tb("/dev/tty1","/dev/stderr"),Ab("/dev/stdin",0),Ab("/dev/stdout",1),Ab("/dev/stderr",1));cb=!1;Ga(ta);Ga(ua);aa(e);if(e.onRuntimeInitialized)e.onRuntimeInitialized();if(Pc){var b=Kc;try{var c=b(0,0);if(!noExitRuntime){if(e.onExit)e.onExit(c); -na=!0}fa(c,new Fa(c))}catch(d){d instanceof Fa||"unwind"==d||fa(1,d)}}if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)b=e.postRun.shift(),va.unshift(b);Ga(va)}}if(!(0{aa=a;ba=b});var ca=Object.assign({},f),ea="./this.program",fa=(a,b)=>{throw b;},ha="object"==typeof window,ia="function"==typeof importScripts,q="",ja; +if(ha||ia)ia?q=self.location.href:"undefined"!=typeof document&&document.currentScript&&(q=document.currentScript.src),_scriptDir&&(q=_scriptDir),0!==q.indexOf("blob:")?q=q.substr(0,q.replace(/[?#].*/,"").lastIndexOf("/")+1):q="",ia&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var ka=f.print||console.log.bind(console),t=f.printErr||console.error.bind(console);Object.assign(f,ca);ca=null;f.thisProgram&&(ea=f.thisProgram); +f.quit&&(fa=f.quit);var la;f.wasmBinary&&(la=f.wasmBinary);var noExitRuntime=f.noExitRuntime||!0;"object"!=typeof WebAssembly&&u("no native wasm support detected");var ma,na=!1,v,w,oa,x,z,pa,qa;function ra(){var a=ma.buffer;f.HEAP8=v=new Int8Array(a);f.HEAP16=oa=new Int16Array(a);f.HEAPU8=w=new Uint8Array(a);f.HEAPU16=new Uint16Array(a);f.HEAP32=x=new Int32Array(a);f.HEAPU32=z=new Uint32Array(a);f.HEAPF32=pa=new Float32Array(a);f.HEAPF64=qa=new Float64Array(a)}var sa=[],ta=[],ua=[],va=[]; +function wa(){var a=f.preRun.shift();sa.unshift(a)}var B=0,xa=null,ya=null;function u(a){if(f.onAbort)f.onAbort(a);a="Aborted("+a+")";t(a);na=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function za(a){return a.startsWith("data:application/octet-stream;base64,")}var C;if(f.locateFile){if(C="wa-sqlite.wasm",!za(C)){var Aa=C;C=f.locateFile?f.locateFile(Aa,q):q+Aa}}else C=(new URL("wa-sqlite.wasm",import.meta.url)).href; +function Ba(a){if(a==C&&la)return new Uint8Array(la);if(ja)return ja(a);throw"both async and sync fetching of the wasm failed";}function Ca(a){return la||!ha&&!ia||"function"!=typeof fetch?Promise.resolve().then(()=>Ba(a)):fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ba(a))} +function Da(a,b,c){return Ca(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t(`failed to asynchronously prepare wasm: ${d}`);u(d)})}function Ea(a,b){var c=C;return la||"function"!=typeof WebAssembly.instantiateStreaming||za(c)||"function"!=typeof fetch?Da(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Da(c,a,b)}))}var D,F; +function Fa(a){this.name="ExitStatus";this.message=`Program terminated with exit(${a})`;this.status=a}var Ga=a=>{for(;0>0];case "i8":return v[a>>0];case "i16":return oa[a>>1];case "i32":return x[a>>2];case "i64":u("to do getValue(i64) use WASM_BIGINT");case "float":return pa[a>>2];case "double":return qa[a>>3];case "*":return z[a>>2];default:u(`invalid type for getValue: ${b}`)}} +function J(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":v[a>>0]=b;break;case "i8":v[a>>0]=b;break;case "i16":oa[a>>1]=b;break;case "i32":x[a>>2]=b;break;case "i64":u("to do setValue(i64) use WASM_BIGINT");case "float":pa[a>>2]=b;break;case "double":qa[a>>3]=b;break;case "*":z[a>>2]=b;break;default:u(`invalid type for setValue: ${c}`)}} +var Ha="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,K=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, +Ia=(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},M=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ia(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ja=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},Ka=a=>{if("/"=== +a)return"/";a=M(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},La=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);u("initRandomDevice")},Ma=a=>(Ma=La())(a); +function Na(){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=Ia(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} +var Oa=[],N=a=>{for(var b=0,c=0;c=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},O=(a,b,c,d)=>{if(!(0=g){var m=a.charCodeAt(++h);g=65536+((g&1023)<<10)|m&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>> +12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},Pa=[];function Qa(a,b){Pa[a]={input:[],Nb:[],Zb:b};Ra(a,Sa)} +var Sa={open(a){var b=Pa[a.node.bc];if(!b)throw new P(43);a.Ob=b;a.seekable=!1},close(a){a.Ob.Zb.Wb(a.Ob)},Wb(a){a.Ob.Zb.Wb(a.Ob)},read(a,b,c,d){if(!a.Ob||!a.Ob.Zb.sc)throw new P(60);for(var e=0,h=0;h=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Jb,a.Jb=new Uint8Array(b),0=a.node.Lb)return 0;a=Math.min(a.node.Lb-e,d);if(8b)throw new P(28);return b},pc(a,b,c){Va(a.node,b+c);a.node.Lb=Math.max(a.node.Lb,b+c)},fc(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new P(43);a=a.node.Jb;if(e&2||a.buffer!== +v.buffer){if(0{var c=0;a&&(c|=365);b&&(c|=146);return c},bb=null,cb={},db=[],eb=1,S=null,fb=!0,P=null,Ya={}; +function T(a,b={}){a=Na(a);if(!a)return{path:"",node:null};b=Object.assign({rc:!0,nc:0},b);if(8!!g);for(var c=bb,d="/",e=0;e>>0)%S.length}function jb(a){var b=ib(a.parent.id,a.name);if(S[b]===a)S[b]=a.Yb;else for(b=S[b];b;){if(b.Yb===a){b.Yb=a.Yb;break}b=b.Yb}} +function Za(a,b){var c;if(c=(c=kb(a,"x"))?c:a.Cb.$b?0:2)throw new P(c,a);for(c=S[ib(a.id,b)];c;c=c.Yb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Cb.$b(a,b)}function Xa(a,b,c,d){a=new lb(a,b,c,d);b=ib(a.parent.id,a.name);a.Yb=S[b];return S[b]=a}function R(a){return 16384===(a&61440)}function mb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b} +function kb(a,b){if(fb)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}function nb(a,b){try{return Za(a,b),20}catch(c){}return kb(a,"wx")}function ob(a,b,c){try{var d=Za(a,b)}catch(e){return e.Kb}if(a=kb(a,"wx"))return a;if(c){if(!R(d.mode))return 54;if(d===d.parent||"/"===hb(d))return 10}else if(R(d.mode))return 31;return 0}function pb(){for(var a=0;4096>=a;a++)if(!db[a])return a;throw new P(33);} +function V(a){a=db[a];if(!a)throw new P(8);return a}function qb(a,b=-1){rb||(rb=function(){this.dc={}},rb.prototype={},Object.defineProperties(rb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.dc.flags},set(c){this.dc.flags=c}},position:{get(){return this.dc.position},set(c){this.dc.position=c}}}));a=Object.assign(new rb,a);-1==b&&(b=pb());a.Sb=b;return db[b]=a}var Wa={open(a){a.Ib=cb[a.node.bc].Ib;a.Ib.open&&a.Ib.open(a)},Vb(){throw new P(70);}}; +function Ra(a,b){cb[a]={Ib:b}}function sb(a,b){var c="/"===b,d=!b;if(c&&bb)throw new P(10);if(!c&&!d){var e=T(b,{rc:!1});b=e.path;e=e.node;if(e.Xb)throw new P(10);if(!R(e.mode))throw new P(54);}b={type:a,Wc:{},uc:b,Gc:[]};a=a.Rb(b);a.Rb=b;b.root=a;c?bb=a:e&&(e.Xb=b,e.Rb&&e.Rb.Gc.push(b))}function tb(a,b,c){var d=T(a,{parent:!0}).node;a=Ka(a);if(!a||"."===a||".."===a)throw new P(28);var e=nb(d,a);if(e)throw new P(e);if(!d.Cb.ec)throw new P(63);return d.Cb.ec(d,a,b,c)} +function W(a,b){return tb(a,(void 0!==b?b:511)&1023|16384,0)}function ub(a,b,c){"undefined"==typeof c&&(c=b,b=438);tb(a,b|8192,c)}function vb(a,b){if(!Na(a))throw new P(44);var c=T(b,{parent:!0}).node;if(!c)throw new P(44);b=Ka(b);var d=nb(c,b);if(d)throw new P(d);if(!c.Cb.jc)throw new P(63);c.Cb.jc(c,b,a)}function wb(a){var b=T(a,{parent:!0}).node;a=Ka(a);var c=Za(b,a),d=ob(b,a,!0);if(d)throw new P(d);if(!b.Cb.ic)throw new P(63);if(c.Xb)throw new P(10);b.Cb.ic(b,a);jb(c)} +function gb(a){a=T(a).node;if(!a)throw new P(44);if(!a.Cb.cc)throw new P(28);return Na(hb(a.parent),a.Cb.cc(a))}function xb(a,b){a=T(a,{Ub:!b}).node;if(!a)throw new P(44);if(!a.Cb.Pb)throw new P(63);return a.Cb.Pb(a)}function yb(a){return xb(a,!0)}function zb(a,b){a="string"==typeof a?T(a,{Ub:!0}).node:a;if(!a.Cb.Mb)throw new P(63);a.Cb.Mb(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} +function Ab(a,b){if(0>b)throw new P(28);a="string"==typeof a?T(a,{Ub:!0}).node:a;if(!a.Cb.Mb)throw new P(63);if(R(a.mode))throw new P(31);if(32768!==(a.mode&61440))throw new P(28);var c=kb(a,"w");if(c)throw new P(c);a.Cb.Mb(a,{size:b,timestamp:Date.now()})} +function Bb(a,b,c){if(""===a)throw new P(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=M(a);try{e=T(a,{Ub:!(b&131072)}).node}catch(h){}}d=!1;if(b&64)if(e){if(b&128)throw new P(20);}else e=tb(a,c,0),d=!0;if(!e)throw new P(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&!R(e.mode))throw new P(54);if(!d&&(c= +e?40960===(e.mode&61440)?32:R(e.mode)&&("r"!==mb(b)||b&512)?31:kb(e,mb(b)):44))throw new P(c);b&512&&!d&&Ab(e,0);b&=-131713;e=qb({node:e,path:hb(e),flags:b,seekable:!0,position:0,Ib:e.Ib,Lc:[],error:!1});e.Ib.open&&e.Ib.open(e);!f.logReadFiles||b&1||(Cb||(Cb={}),a in Cb||(Cb[a]=1));return e}function Db(a,b,c){if(null===a.Sb)throw new P(8);if(!a.seekable||!a.Ib.Vb)throw new P(70);if(0!=c&&1!=c&&2!=c)throw new P(28);a.position=a.Ib.Vb(a,b,c);a.Lc=[]} +function Eb(){P||(P=function(a,b){this.name="ErrnoError";this.node=b;this.Kc=function(c){this.Kb=c};this.Kc(a);this.message="FS error"},P.prototype=Error(),P.prototype.constructor=P,[44].forEach(a=>{Ya[a]=new P(a);Ya[a].stack=""}))}var Fb; +function Gb(a,b,c){a=M("/dev/"+a);var d=ab(!!b,!!c);Hb||(Hb=64);var e=Hb++<<8|0;Ra(e,{open(h){h.seekable=!1},close(){c&&c.buffer&&c.buffer.length&&c(10)},read(h,g,m,l){for(var k=0,p=0;p>2]=d.Cc;x[c+4>>2]=d.mode;z[c+8>>2]=d.Ic;x[c+12>>2]=d.uid;x[c+16>>2]=d.Ec;x[c+20>>2]=d.bc;F=[d.size>>>0,(D=d.size,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[c+24>>2]=F[0];x[c+28>>2]=F[1];x[c+32>>2]=4096;x[c+36>>2]=d.Ac;a=d.yc.getTime();b=d.Hc.getTime();var e=d.Bc.getTime();F=[Math.floor(a/1E3)>>>0,(D=Math.floor(a/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[c+40>>2]=F[0];x[c+44>>2]=F[1];z[c+48>>2]=a%1E3*1E3;F=[Math.floor(b/1E3)>>>0,(D=Math.floor(b/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[c+56>>2]=F[0];x[c+60>>2]=F[1];z[c+64>>2]=b%1E3*1E3;F=[Math.floor(e/1E3)>>>0,(D=Math.floor(e/1E3),1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[c+72>>2]=F[0];x[c+76>>2]=F[1];z[c+80>>2]= +e%1E3*1E3;F=[d.tc>>>0,(D=d.tc,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[c+88>>2]=F[0];x[c+92>>2]=F[1];return 0}var Kb=void 0;function Lb(){var a=x[Kb>>2];Kb+=4;return a} +var Mb=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*b:NaN,Nb=[0,31,60,91,121,152,182,213,244,274,305,335],Ob=[0,31,59,90,120,151,181,212,243,273,304,334],Qb=a=>{var b=N(a)+1,c=Pb(b);c&&O(a,w,c,b);return c},Rb={},Tb=()=>{if(!Sb){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",_:ea||"./this.program"},b;for(b in Rb)void 0===Rb[b]?delete a[b]:a[b]=Rb[b]; +var c=[];for(b in a)c.push(`${b}=${a[b]}`);Sb=c}return Sb},Sb;function Ub(){}function Vb(){}function Wb(){}function Xb(){}function Yb(){}function Zb(){}function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){} +function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){}function Cc(){}function Dc(){}function Ec(){}function Fc(){} +var Y=(a,b,c,d)=>{var e={string:k=>{var p=0;if(null!==k&&void 0!==k&&0!==k){p=N(k)+1;var n=Gc(p);O(k,w,n,p);p=n}return p},array:k=>{var p=Gc(k.length);v.set(k,p);return p}};a=f["_"+a];var h=[],g=0;if(d)for(var m=0;m0,write:(d,e,h,g)=>g});ub("/dev/null",259);Qa(1280,Ta);Qa(1536,Ua);ub("/dev/tty",1280);ub("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Ma(a).byteLength);return a[--b]};Gb("random",c);Gb("urandom",c);W("/dev/shm");W("/dev/shm/tmp")})(); +(function(){W("/proc");var a=W("/proc/self");W("/proc/self/fd");sb({Rb(){var b=Xa(a,"fd",16895,73);b.Cb={$b(c,d){var e=V(+d);c={parent:null,Rb:{uc:"fake"},Cb:{cc:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})(); +(function(){const a=new Map;f.setAuthorizer=function(b,c,d){c?a.set(b,{f:c,oc:d}):a.delete(b);return Y("set_authorizer","number",["number"],[b])};Ub=function(b,c,d,e,h,g){if(a.has(b)){const {f:m,oc:l}=a.get(b);return m(l,c,d?d?K(w,d):"":null,e?e?K(w,e):"":null,h?h?K(w,h):"":null,g?g?K(w,g):"":null)}return 0}})(); +(function(){const a=new Map,b=new Map;f.createFunction=function(c,d,e,h,g,m){const l=a.size;a.set(l,{f:m,Tb:g});return Y("create_function","number","number string number number number number".split(" "),[c,d,e,h,l,0])};f.createAggregate=function(c,d,e,h,g,m,l){const k=a.size;a.set(k,{step:m,Dc:l,Tb:g});return Y("create_function","number","number string number number number number".split(" "),[c,d,e,h,k,1])};f.getFunctionUserData=function(c){return b.get(c)};Wb=function(c,d,e,h){c=a.get(c);b.set(d, +c.Tb);c.f(d,new Uint32Array(w.buffer,h,e));b.delete(d)};Yb=function(c,d,e,h){c=a.get(c);b.set(d,c.Tb);c.step(d,new Uint32Array(w.buffer,h,e));b.delete(d)};Vb=function(c,d){c=a.get(c);b.set(d,c.Tb);c.Dc(d);b.delete(d)}})();(function(){const a=new Map;f.progressHandler=function(b,c,d,e){d?a.set(b,{f:d,oc:e}):a.delete(b);return Y("progress_handler",null,["number","number"],[b,c])};Xb=function(b){if(a.has(b)){const {f:c,oc:d}=a.get(b);return c(d)}return 0}})(); +(function(){function a(l,k){const p=`get${l}`,n=`set${l}`;return new Proxy(new DataView(w.buffer,k,"Int32"===l?4:8),{get(r,y){if(y===p)return function(A,G){if(!G)throw Error("must be little endian");return r[y](A,G)};if(y===n)return function(A,G,E){if(!E)throw Error("must be little endian");return r[y](A,G,E)};if("string"===typeof y&&y.match(/^(get)|(set)/))throw Error("invalid type");return r[y]}})}const b="object"===typeof Asyncify,c=new Map,d=new Map,e=new Map,h=b?new Set:null,g=b?new Set:null, +m=new Map;oc=function(l,k,p,n){m.set(l?K(w,l):"",{size:k,ac:Array.from(new Uint32Array(w.buffer,n,p))})};f.createModule=function(l,k,p,n){b&&(p.handleAsync=Asyncify.Fc);const r=c.size;c.set(r,{module:p,Tb:n});n=0;p.xCreate&&(n|=1);p.xConnect&&(n|=2);p.xBestIndex&&(n|=4);p.xDisconnect&&(n|=8);p.xDestroy&&(n|=16);p.xOpen&&(n|=32);p.xClose&&(n|=64);p.xFilter&&(n|=128);p.xNext&&(n|=256);p.xEof&&(n|=512);p.xColumn&&(n|=1024);p.xRowid&&(n|=2048);p.xUpdate&&(n|=4096);p.xBegin&&(n|=8192);p.xSync&&(n|=16384); +p.xCommit&&(n|=32768);p.xRollback&&(n|=65536);p.xFindFunction&&(n|=131072);p.xRename&&(n|=262144);return Y("create_module","number",["number","string","number","number"],[l,k,r,n])};ec=function(l,k,p,n,r,y){k=c.get(k);d.set(r,k);if(b){h.delete(r);for(const A of h)d.delete(A)}n=Array.from(new Uint32Array(w.buffer,n,p)).map(A=>A?K(w,A):"");return k.module.xCreate(l,k.Tb,n,r,a("Int32",y))};dc=function(l,k,p,n,r,y){k=c.get(k);d.set(r,k);if(b){h.delete(r);for(const A of h)d.delete(A)}n=Array.from(new Uint32Array(w.buffer, +n,p)).map(A=>A?K(w,A):"");return k.module.xConnect(l,k.Tb,n,r,a("Int32",y))};$b=function(l,k){var p=d.get(l),n=m.get("sqlite3_index_info").ac;const r={};r.nConstraint=I(k+n[0],"i32");r.aConstraint=[];var y=I(k+n[1],"*"),A=m.get("sqlite3_index_constraint").size;for(var G=0;G>=2;return z[g]+z[g+1]*2**32}const c="object"===typeof Asyncify,d=new Map,e=new Map; +f.registerVFS=function(g,m){if(Y("sqlite3_vfs_find","number",["string"],[g.name]))throw Error(`VFS '${g.name}' already registered`);c&&(g.handleAsync=Asyncify.Fc);var l=g.Vc??64;const k=f._malloc(4);m=Y("register_vfs","number",["string","number","number","number"],[g.name,l,m?1:0,k]);m||(l=I(k,"*"),d.set(l,g));f._free(k);return m};const h=c?new Set:null;tc=function(g){const m=e.get(g);c?h.add(g):e.delete(g);return m.xClose(g)};Ac=function(g,m,l,k){return e.get(g).xRead(g,w.subarray(m,m+l),b(k))}; +Fc=function(g,m,l,k){return e.get(g).xWrite(g,w.subarray(m,m+l),b(k))};Dc=function(g,m){return e.get(g).xTruncate(g,b(m))};Cc=function(g,m){return e.get(g).xSync(g,m)};xc=function(g,m){const l=e.get(g);m=a("BigInt64",m);return l.xFileSize(g,m)};yc=function(g,m){return e.get(g).xLock(g,m)};Ec=function(g,m){return e.get(g).xUnlock(g,m)};sc=function(g,m){const l=e.get(g);m=a("Int32",m);return l.xCheckReservedLock(g,m)};wc=function(g,m,l){const k=e.get(g);l=new DataView(w.buffer,l);return k.xFileControl(g, +m,l)};Bc=function(g){return e.get(g).xSectorSize(g)};vc=function(g){return e.get(g).xDeviceCharacteristics(g)};zc=function(g,m,l,k,p){g=d.get(g);e.set(l,g);if(c){h.delete(l);for(var n of h)e.delete(n)}n=null;if(k&64){n=1;const r=[];for(;n;){const y=w[m++];if(y)r.push(y);else switch(w[m]||(n=null),n){case 1:r.push(63);n=2;break;case 2:r.push(61);n=3;break;case 3:r.push(38),n=2}}n=(new TextDecoder).decode(new Uint8Array(r))}else m&&(n=m?K(w,m):"");p=a("Int32",p);return g.xOpen(n,l,k,p)};uc=function(g, +m,l){return d.get(g).xDelete(m?K(w,m):"",l)};rc=function(g,m,l,k){g=d.get(g);k=a("Int32",k);return g.xAccess(m?K(w,m):"",l,k)}})(); +var Kc={a:(a,b,c,d)=>{u(`Assertion failed: ${a?K(w,a):""}, at: `+[b?b?K(w,b):"":"unknown filename",c,d?d?K(w,d):"":"unknown function"])},K:function(a,b){try{return a=a?K(w,a):"",zb(a,b),0}catch(c){if("undefined"==typeof X||"ErrnoError"!==c.name)throw c;return-c.Kb}},M:function(a,b,c){try{b=b?K(w,b):"";b=Ib(a,b);if(c&-8)return-28;var d=T(b,{Ub:!0}).node;if(!d)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&kb(d,a)?-2:0}catch(e){if("undefined"==typeof X||"ErrnoError"!==e.name)throw e; +return-e.Kb}},L:function(a,b){try{var c=V(a);zb(c.node,b);return 0}catch(d){if("undefined"==typeof X||"ErrnoError"!==d.name)throw d;return-d.Kb}},J:function(a){try{var b=V(a).node;var c="string"==typeof b?T(b,{Ub:!0}).node:b;if(!c.Cb.Mb)throw new P(63);c.Cb.Mb(c,{timestamp:Date.now()});return 0}catch(d){if("undefined"==typeof X||"ErrnoError"!==d.name)throw d;return-d.Kb}},b:function(a,b,c){Kb=c;try{var d=V(a);switch(b){case 0:var e=Lb();if(0>e)return-28;for(;db[e];)e++;return qb(d,e).Sb;case 1:case 2:return 0; +case 3:return d.flags;case 4:return e=Lb(),d.flags|=e,0;case 5:return e=Lb(),oa[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return x[Jc()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==typeof X||"ErrnoError"!==h.name)throw h;return-h.Kb}},I:function(a,b){try{var c=V(a);return Jb(xb,c.path,b)}catch(d){if("undefined"==typeof X||"ErrnoError"!==d.name)throw d;return-d.Kb}},n:function(a,b,c){b=Mb(b,c);try{if(isNaN(b))return 61;var d=V(a);if(0===(d.flags&2097155))throw new P(28); +Ab(d.node,b);return 0}catch(e){if("undefined"==typeof X||"ErrnoError"!==e.name)throw e;return-e.Kb}},C:function(a,b){try{if(0===b)return-28;var c=N("/")+1;if(b=d)return-28;var e=gb(b), +h=Math.min(d,N(e)),g=v[c+h];O(e,w,c,d+1);v[c+h]=g;return h}catch(m){if("undefined"==typeof X||"ErrnoError"!==m.name)throw m;return-m.Kb}},u:function(a){try{return a=a?K(w,a):"",wb(a),0}catch(b){if("undefined"==typeof X||"ErrnoError"!==b.name)throw b;return-b.Kb}},H:function(a,b){try{return a=a?K(w,a):"",Jb(xb,a,b)}catch(c){if("undefined"==typeof X||"ErrnoError"!==c.name)throw c;return-c.Kb}},r:function(a,b,c){try{b=b?K(w,b):"";b=Ib(a,b);if(0===c){a=b;var d=T(a,{parent:!0}).node;if(!d)throw new P(44); +var e=Ka(a),h=Za(d,e),g=ob(d,e,!1);if(g)throw new P(g);if(!d.Cb.kc)throw new P(63);if(h.Xb)throw new P(10);d.Cb.kc(d,e);jb(h)}else 512===c?wb(b):u("Invalid flags passed to unlinkat");return 0}catch(m){if("undefined"==typeof X||"ErrnoError"!==m.name)throw m;return-m.Kb}},q:function(a,b,c){try{b=b?K(w,b):"";b=Ib(a,b,!0);if(c){var d=z[c>>2]+4294967296*x[c+4>>2],e=x[c+8>>2];h=1E3*d+e/1E6;c+=16;d=z[c>>2]+4294967296*x[c+4>>2];e=x[c+8>>2];g=1E3*d+e/1E6}else var h=Date.now(),g=h;a=h;var m=T(b,{Ub:!0}).node; +m.Cb.Mb(m,{timestamp:Math.max(a,g)});return 0}catch(l){if("undefined"==typeof X||"ErrnoError"!==l.name)throw l;return-l.Kb}},l:function(a,b,c){a=new Date(1E3*Mb(a,b));x[c>>2]=a.getSeconds();x[c+4>>2]=a.getMinutes();x[c+8>>2]=a.getHours();x[c+12>>2]=a.getDate();x[c+16>>2]=a.getMonth();x[c+20>>2]=a.getFullYear()-1900;x[c+24>>2]=a.getDay();b=a.getFullYear();x[c+28>>2]=(0!==b%4||0===b%100&&0!==b%400?Ob:Nb)[a.getMonth()]+a.getDate()-1|0;x[c+36>>2]=-(60*a.getTimezoneOffset());b=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();var d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();x[c+32>>2]=(b!=d&&a.getTimezoneOffset()==Math.min(d,b))|0},i:function(a,b,c,d,e,h,g,m){e=Mb(e,h);try{if(isNaN(e))return 61;var l=V(d);if(0!==(b&2)&&0===(c&2)&&2!==(l.flags&2097155))throw new P(2);if(1===(l.flags&2097155))throw new P(2);if(!l.Ib.fc)throw new P(43);var k=l.Ib.fc(l,a,e,b,c);var p=k.Jc;x[g>>2]=k.xc;z[m>>2]=p;return 0}catch(n){if("undefined"==typeof X||"ErrnoError"!==n.name)throw n;return-n.Kb}},j:function(a, +b,c,d,e,h,g){h=Mb(h,g);try{if(isNaN(h))return 61;var m=V(e);if(c&2){if(32768!==(m.node.mode&61440))throw new P(43);d&2||m.Ib.hc&&m.Ib.hc(m,w.slice(a,a+b),h,b,d)}}catch(l){if("undefined"==typeof X||"ErrnoError"!==l.name)throw l;return-l.Kb}},s:(a,b,c)=>{function d(l){return(l=l.toTimeString().match(/\(([A-Za-z ]+)\)$/))?l[1]:"GMT"}var e=(new Date).getFullYear(),h=new Date(e,0,1),g=new Date(e,6,1);e=h.getTimezoneOffset();var m=g.getTimezoneOffset();z[a>>2]=60*Math.max(e,m);x[b>>2]=Number(e!=m);a=d(h); +b=d(g);a=Qb(a);b=Qb(b);m>2]=a,z[c+4>>2]=b):(z[c>>2]=b,z[c+4>>2]=a)},e:()=>Date.now(),d:()=>performance.now(),o:a=>{var b=w.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)%65536)-ma.buffer.byteLength+65535)/65536;try{ma.grow(e);ra();var h=1;break a}catch(g){}h=void 0}if(h)return!0}return!1},A:(a,b)=>{var c=0;Tb().forEach((d,e)=>{var h=b+c;e=z[a+4*e>>2]=h;for(h= +0;h>0]=d.charCodeAt(h);v[e>>0]=0;c+=d.length+1});return 0},B:(a,b)=>{var c=Tb();z[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);z[b>>2]=d;return 0},f:function(a){try{var b=V(a);if(null===b.Sb)throw new P(8);b.lc&&(b.lc=null);try{b.Ib.close&&b.Ib.close(b)}catch(c){throw c;}finally{db[b.Sb]=null}b.Sb=null;return 0}catch(c){if("undefined"==typeof X||"ErrnoError"!==c.name)throw c;return c.Kb}},p:function(a,b){try{var c=V(a);v[b>>0]=c.Ob?2:R(c.mode)?3:40960===(c.mode&61440)?7: +4;oa[b+2>>1]=0;F=[0,(D=0,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[b+8>>2]=F[0];x[b+12>>2]=F[1];F=[0,(D=0,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[b+16>>2]=F[0];x[b+20>>2]=F[1];return 0}catch(d){if("undefined"==typeof X||"ErrnoError"!==d.name)throw d;return d.Kb}},x:function(a,b,c,d){try{a:{var e=V(a);a=b;for(var h,g=b=0;g>2],l=z[a+4>>2];a+=8;var k=e,p=m,n=l,r=h,y= +v;if(0>n||0>r)throw new P(28);if(null===k.Sb)throw new P(8);if(1===(k.flags&2097155))throw new P(8);if(R(k.node.mode))throw new P(31);if(!k.Ib.read)throw new P(28);var A="undefined"!=typeof r;if(!A)r=k.position;else if(!k.seekable)throw new P(70);var G=k.Ib.read(k,y,p,n,r);A||(k.position+=G);var E=G;if(0>E){var L=-1;break a}b+=E;if(E>2]=L;return 0}catch(H){if("undefined"==typeof X||"ErrnoError"!==H.name)throw H;return H.Kb}},m:function(a,b,c,d,e){b= +Mb(b,c);try{if(isNaN(b))return 61;var h=V(a);Db(h,b,d);F=[h.position>>>0,(D=h.position,1<=+Math.abs(D)?0>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];x[e>>2]=F[0];x[e+4>>2]=F[1];h.lc&&0===b&&0===d&&(h.lc=null);return 0}catch(g){if("undefined"==typeof X||"ErrnoError"!==g.name)throw g;return g.Kb}},D:function(a){try{var b=V(a);return b.Ib&&b.Ib.Wb?b.Ib.Wb(b):0}catch(c){if("undefined"==typeof X||"ErrnoError"!==c.name)throw c;return c.Kb}},t:function(a,b,c,d){try{a:{var e= +V(a);a=b;for(var h,g=b=0;g>2],l=z[a+4>>2];a+=8;var k=e,p=m,n=l,r=h,y=v;if(0>n||0>r)throw new P(28);if(null===k.Sb)throw new P(8);if(0===(k.flags&2097155))throw new P(8);if(R(k.node.mode))throw new P(31);if(!k.Ib.write)throw new P(28);k.seekable&&k.flags&1024&&Db(k,0,2);var A="undefined"!=typeof r;if(!A)r=k.position;else if(!k.seekable)throw new P(70);var G=k.Ib.write(k,y,p,n,r,void 0);A||(k.position+=G);var E=G;if(0>E){var L=-1;break a}b+=E;"undefined"!==typeof h&&(h+=E)}L=b}z[d>> +2]=L;return 0}catch(H){if("undefined"==typeof X||"ErrnoError"!==H.name)throw H;return H.Kb}},ra:Ub,N:Vb,ga:Wb,ca:Xb,Y:Yb,la:Zb,G:$b,h:ac,oa:bc,ja:cc,ea:dc,fa:ec,k:fc,v:gc,pa:hc,g:ic,qa:jc,da:kc,ha:lc,ia:mc,na:nc,c:oc,ka:pc,ma:qc,aa:rc,V:sc,$:tc,ba:uc,S:vc,U:wc,Z:xc,X:yc,R:zc,Q:Ac,T:Bc,_:Cc,O:Dc,W:Ec,P:Fc},Z=function(){function a(c){Z=c=c.exports;ma=Z.sa;ra();ta.unshift(Z.ta);B--;f.monitorRunDependencies&&f.monitorRunDependencies(B);if(0==B&&(null!==xa&&(clearInterval(xa),xa=null),ya)){var d=ya;ya= +null;d()}return c}var b={a:Kc};B++;f.monitorRunDependencies&&f.monitorRunDependencies(B);if(f.instantiateWasm)try{return f.instantiateWasm(b,a)}catch(c){t(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Ea(b,function(c){a(c.instance)}).catch(ba);return{}}();f._sqlite3_vfs_find=a=>(f._sqlite3_vfs_find=Z.ua)(a);f._sqlite3_malloc=a=>(f._sqlite3_malloc=Z.va)(a);f._sqlite3_free=a=>(f._sqlite3_free=Z.wa)(a);f._sqlite3_prepare_v2=(a,b,c,d,e)=>(f._sqlite3_prepare_v2=Z.xa)(a,b,c,d,e); +f._sqlite3_step=a=>(f._sqlite3_step=Z.ya)(a);f._sqlite3_column_int64=(a,b)=>(f._sqlite3_column_int64=Z.za)(a,b);f._sqlite3_column_int=(a,b)=>(f._sqlite3_column_int=Z.Aa)(a,b);f._sqlite3_finalize=a=>(f._sqlite3_finalize=Z.Ba)(a);f._sqlite3_reset=a=>(f._sqlite3_reset=Z.Ca)(a);f._sqlite3_clear_bindings=a=>(f._sqlite3_clear_bindings=Z.Da)(a);f._sqlite3_value_blob=a=>(f._sqlite3_value_blob=Z.Ea)(a);f._sqlite3_value_text=a=>(f._sqlite3_value_text=Z.Fa)(a); +f._sqlite3_value_bytes=a=>(f._sqlite3_value_bytes=Z.Ga)(a);f._sqlite3_value_double=a=>(f._sqlite3_value_double=Z.Ha)(a);f._sqlite3_value_int=a=>(f._sqlite3_value_int=Z.Ia)(a);f._sqlite3_value_int64=a=>(f._sqlite3_value_int64=Z.Ja)(a);f._sqlite3_value_type=a=>(f._sqlite3_value_type=Z.Ka)(a);f._sqlite3_result_blob=(a,b,c,d)=>(f._sqlite3_result_blob=Z.La)(a,b,c,d);f._sqlite3_result_double=(a,b)=>(f._sqlite3_result_double=Z.Ma)(a,b); +f._sqlite3_result_error=(a,b,c)=>(f._sqlite3_result_error=Z.Na)(a,b,c);f._sqlite3_result_int=(a,b)=>(f._sqlite3_result_int=Z.Oa)(a,b);f._sqlite3_result_int64=(a,b,c)=>(f._sqlite3_result_int64=Z.Pa)(a,b,c);f._sqlite3_result_null=a=>(f._sqlite3_result_null=Z.Qa)(a);f._sqlite3_result_text=(a,b,c,d)=>(f._sqlite3_result_text=Z.Ra)(a,b,c,d);f._sqlite3_column_count=a=>(f._sqlite3_column_count=Z.Sa)(a);f._sqlite3_data_count=a=>(f._sqlite3_data_count=Z.Ta)(a); +f._sqlite3_column_blob=(a,b)=>(f._sqlite3_column_blob=Z.Ua)(a,b);f._sqlite3_column_bytes=(a,b)=>(f._sqlite3_column_bytes=Z.Va)(a,b);f._sqlite3_column_double=(a,b)=>(f._sqlite3_column_double=Z.Wa)(a,b);f._sqlite3_column_text=(a,b)=>(f._sqlite3_column_text=Z.Xa)(a,b);f._sqlite3_column_type=(a,b)=>(f._sqlite3_column_type=Z.Ya)(a,b);f._sqlite3_column_name=(a,b)=>(f._sqlite3_column_name=Z.Za)(a,b);f._sqlite3_bind_blob=(a,b,c,d,e)=>(f._sqlite3_bind_blob=Z._a)(a,b,c,d,e); +f._sqlite3_bind_double=(a,b,c)=>(f._sqlite3_bind_double=Z.$a)(a,b,c);f._sqlite3_bind_int=(a,b,c)=>(f._sqlite3_bind_int=Z.ab)(a,b,c);f._sqlite3_bind_int64=(a,b,c,d)=>(f._sqlite3_bind_int64=Z.bb)(a,b,c,d);f._sqlite3_bind_null=(a,b)=>(f._sqlite3_bind_null=Z.cb)(a,b);f._sqlite3_bind_text=(a,b,c,d,e)=>(f._sqlite3_bind_text=Z.db)(a,b,c,d,e);f._sqlite3_bind_parameter_count=a=>(f._sqlite3_bind_parameter_count=Z.eb)(a);f._sqlite3_bind_parameter_name=(a,b)=>(f._sqlite3_bind_parameter_name=Z.fb)(a,b); +f._sqlite3_sql=a=>(f._sqlite3_sql=Z.gb)(a);f._sqlite3_exec=(a,b,c,d,e)=>(f._sqlite3_exec=Z.hb)(a,b,c,d,e);f._sqlite3_errmsg=a=>(f._sqlite3_errmsg=Z.ib)(a);f._sqlite3_declare_vtab=(a,b)=>(f._sqlite3_declare_vtab=Z.jb)(a,b);f._sqlite3_libversion=()=>(f._sqlite3_libversion=Z.kb)();f._sqlite3_libversion_number=()=>(f._sqlite3_libversion_number=Z.lb)();f._sqlite3_changes=a=>(f._sqlite3_changes=Z.mb)(a);f._sqlite3_close=a=>(f._sqlite3_close=Z.nb)(a); +f._sqlite3_limit=(a,b,c)=>(f._sqlite3_limit=Z.ob)(a,b,c);f._sqlite3_open_v2=(a,b,c,d)=>(f._sqlite3_open_v2=Z.pb)(a,b,c,d);f._sqlite3_get_autocommit=a=>(f._sqlite3_get_autocommit=Z.qb)(a);var Jc=()=>(Jc=Z.rb)(),Pb=f._malloc=a=>(Pb=f._malloc=Z.sb)(a);f._free=a=>(f._free=Z.tb)(a);f._RegisterExtensionFunctions=a=>(f._RegisterExtensionFunctions=Z.ub)(a);f._set_authorizer=a=>(f._set_authorizer=Z.vb)(a);f._create_function=(a,b,c,d,e,h)=>(f._create_function=Z.wb)(a,b,c,d,e,h); +f._create_module=(a,b,c,d)=>(f._create_module=Z.xb)(a,b,c,d);f._progress_handler=(a,b)=>(f._progress_handler=Z.yb)(a,b);f._register_vfs=(a,b,c,d)=>(f._register_vfs=Z.zb)(a,b,c,d);f._getSqliteFree=()=>(f._getSqliteFree=Z.Ab)();var Lc=f._main=(a,b)=>(Lc=f._main=Z.Bb)(a,b),$a=(a,b)=>($a=Z.Db)(a,b),Mc=()=>(Mc=Z.Eb)(),Hc=()=>(Hc=Z.Fb)(),Ic=a=>(Ic=Z.Gb)(a),Gc=a=>(Gc=Z.Hb)(a);f.getTempRet0=Mc;f.ccall=Y; +f.cwrap=(a,b,c,d)=>{var e=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&e&&!d?f["_"+a]:function(){return Y(a,b,c,arguments,d)}};f.setValue=J;f.getValue=I;f.UTF8ToString=(a,b)=>a?K(w,a,b):"";f.stringToUTF8=(a,b,c)=>O(a,w,b,c);f.lengthBytesUTF8=N;var Nc;ya=function Oc(){Nc||Pc();Nc||(ya=Oc)}; +function Pc(){function a(){if(!Nc&&(Nc=!0,f.calledRun=!0,!na)){f.noFSInit||Fb||(Fb=!0,Eb(),f.stdin=f.stdin,f.stdout=f.stdout,f.stderr=f.stderr,f.stdin?Gb("stdin",f.stdin):vb("/dev/tty","/dev/stdin"),f.stdout?Gb("stdout",null,f.stdout):vb("/dev/tty","/dev/stdout"),f.stderr?Gb("stderr",null,f.stderr):vb("/dev/tty1","/dev/stderr"),Bb("/dev/stdin",0),Bb("/dev/stdout",1),Bb("/dev/stderr",1));fb=!1;Ga(ta);Ga(ua);aa(f);if(f.onRuntimeInitialized)f.onRuntimeInitialized();if(Qc){var b=Lc;try{var c=b(0,0);if(!noExitRuntime){if(f.onExit)f.onExit(c); +na=!0}fa(c,new Fa(c))}catch(d){d instanceof Fa||"unwind"==d||fa(1,d)}}if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)b=f.postRun.shift(),va.unshift(b);Ga(va)}}if(!(0