diff --git a/dist/sql-asm-debug.js b/dist/sql-asm-debug.js index 0f21902e..3e254d4c 100644 --- a/dist/sql-asm-debug.js +++ b/dist/sql-asm-debug.js @@ -1075,6 +1075,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() { return results; } catch (errCaught) { if (stmt) stmt["free"](); + console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught); throw errCaught; } finally { stackRestore(stack); diff --git a/dist/sql-asm-memory-growth.js b/dist/sql-asm-memory-growth.js index 465bdf6d..c7f8a538 100644 --- a/dist/sql-asm-memory-growth.js +++ b/dist/sql-asm-memory-growth.js @@ -73,28 +73,28 @@ var initSqlJs = function (moduleConfig) { var Module;Module||(Module=typeof Module !== 'undefined' ? Module : {});null; Module.onRuntimeInitialized=function(){function a(h,l){this.Qa=h;this.db=l;this.Pa=1;this.xb=[]}function b(h,l){this.db=l;l=d(h)+1;this.hb=ba(l);if(null===this.hb)throw Error("Unable to allocate memory for the SQL string");p(h,t,this.hb,l);this.tb=this.hb;this.eb=this.Mb=null}function c(h,{filename:l=!1}={}){console.log("Database constructor called");!1===l?(this.filename="dbfile_"+(4294967295*Math.random()>>>0),this.Yc=!0,null!=h&&x.jb("/",this.filename,h,!0,!0)):"string"===typeof l&&null!=h?(this.filename= l,x.jb("/",this.filename,h,!0,!0)):this.filename=h;this.handleError(g(this.filename,e));this.db=z(e,"i32");Gb(this.db);this.ob={};this.Xa={}}var e=C(4),f=Module.cwrap,g=f("sqlite3_open","number",["string","number"]),k=f("sqlite3_close_v2","number",["number"]),n=f("sqlite3_exec","number",["number","string","number","number","number"]),q=f("sqlite3_changes","number",["number"]),m=f("sqlite3_prepare_v2","number",["number","string","number","number","number"]),r=f("sqlite3_sql","string",["number"]),w= -f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),E=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Oa=f("sqlite3_step", -"number",["number"]),G=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),fb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), +f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),F=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Oa=f("sqlite3_step", +"number",["number"]),H=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),fb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), Ob=f("sqlite3_reset","number",["number"]),Pb=f("sqlite3_clear_bindings","number",["number"]),Qb=f("sqlite3_finalize","number",["number"]),Rb=f("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Sb=f("sqlite3_value_type","number",["number"]),Tb=f("sqlite3_value_bytes","number",["number"]),Ub=f("sqlite3_value_text","string",["number"]),Vb=f("sqlite3_value_blob","number",["number"]),Wb=f("sqlite3_value_double","number",["number"]),Xb=f("sqlite3_result_double", "",["number","number"]),gb=f("sqlite3_result_null","",["number"]),Yb=f("sqlite3_result_text","",["number","string","number","number"]),Zb=f("sqlite3_result_blob","",["number","number","number","number"]),$b=f("sqlite3_result_int","",["number","number"]),hb=f("sqlite3_result_error","",["number","string","number"]),Gb=f("RegisterExtensionFunctions","number",["number"]);a.prototype.bind=function(h){if(!this.Qa)throw"Statement closed";this.reset();return Array.isArray(h)?this.yc(h):null!=h&&"object"=== typeof h?this.zc(h):!0};a.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Pa=1;var h=Oa(this.Qa);switch(h){case 100:return!0;case 101:return!1;default:throw this.db.handleError(h);}};a.prototype.ec=function(h){null==h&&(h=this.Pa,this.Pa+=1);return Jb(this.Qa,h)};a.prototype.Pc=function(h){null==h&&(h=this.Pa,this.Pa+=1);h=fb(this.Qa,h);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(h)};a.prototype.Rc=function(h){null==h&&(h=this.Pa,this.Pa+= 1);return fb(this.Qa,h)};a.prototype.getBlob=function(h){null==h&&(h=this.Pa,this.Pa+=1);var l=Lb(this.Qa,h);h=Kb(this.Qa,h);for(var u=new Uint8Array(l),v=0;v{let l=la(function(y,H){y=wa.get(y);return h.lock(y,H)?0:5}),u=la(function(y,H){y=wa.get(y);h.unlock(y,H);return 0}),v=la(function(y,H){y=F(y);wa.set(H,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...wa.entries()].find(u=>u[1]===h);wa.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L;for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]); -var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",ra,sa,ta,ua,va; +this.tb=z(l,"i32");var u=z(e,"i32");if(0===u)return this.Bb(),{done:!0};this.eb=new a(u,this.db);this.db.ob[u]=this.eb;return{value:this.eb,done:!1}}catch(v){throw this.Mb=G(this.tb),this.Bb(),v;}finally{ja(h)}};b.prototype.Bb=function(){ea(this.hb);this.hb=null};b.prototype.getRemainingSQL=function(){return null!==this.Mb?this.Mb:G(this.tb)};"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator&&(b.prototype[Symbol.iterator]=function(){return this});c.prototype.run=function(h,l){if(!this.db)throw"Database closed"; +if(l){h=this.prepare(h,l);try{h.step()}finally{h.free()}}else this.handleError(n(this.db,h,0,0,e));return this};c.prototype.exec=function(h,l,u){if(!this.db)throw"Database closed";var v=fa(),y=null;try{var K=d(h)+1,E=C(K);p(h,D,E,K);var ha=E;var aa=C(4);for(K=[];0!==z(ha,"i8");){ia(e);ia(aa);this.handleError(B(this.db,ha,-1,e,aa));var I=z(e,"i32");ha=z(aa,"i32");if(0!==I){E=null;y=new a(I,this);for(null!=l&&y.bind(l);y.step();)null===E&&(E={columns:y.getColumnNames(),values:[]},K.push(E)),E.values.push(y.get(null, +u));y.free()}}return K}catch(N){throw y&&y.free(),console.log("error when exec sql: "+h+", params: "+JSON.stringify(l)+", error: "+N),N;}finally{ja(v)}};c.prototype.each=function(h,l,u,v,y){"function"===typeof l&&(v=u,u=l,l=void 0);h=this.prepare(h,l);try{for(;h.step();)u(h.getAsObject(null,y))}finally{h.free()}if("function"===typeof v)return v()};c.prototype.prepare=function(h,l){ia(e);this.handleError(m(this.db,h,-1,e,0));h=z(e,"i32");if(0===h)throw"Nothing to prepare";var u=new a(h,this);null!= +l&&u.bind(l);return this.ob[h]=u};c.prototype.iterateStatements=function(h){return new b(h,this)};c.prototype["export"]=function(){Object.values(this.ob).forEach(function(l){l.free()});Object.values(this.Xa).forEach(ka);this.Xa={};this.handleError(k(this.db));var h=x.readFile(this.filename,{encoding:"binary"});this.handleError(g(this.filename,e));this.db=z(e,"i32");return h};c.prototype.close=function(){null!==this.db&&(Object.values(this.ob).forEach(function(h){h.free()}),Object.values(this.Xa).forEach(ka), +this.Xa={},this.handleError(k(this.db)),this.Yc&&x.unlink("/"+this.filename),this.db=null)};c.prototype.handleError=function(h){if(0===h)return null;h=H(this.db);throw Error(h);};c.prototype.getRowsModified=function(){return q(this.db)};c.prototype.create_function=function(h,l){Object.prototype.hasOwnProperty.call(this.Xa,h)&&(ka(this.Xa[h]),delete this.Xa[h]);var u=la(function(v,y,K){for(var E,ha=[],aa=0;aa{let l=la(function(y,K){y=wa.get(y);return h.lock(y,K)?0:5}),u=la(function(y,K){y=wa.get(y);h.unlock(y,K);return 0}),v=la(function(y,K){y=G(y);wa.set(K,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...wa.entries()].find(u=>u[1]===h);wa.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L; +for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]);var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",ra,sa,ta,ua,va; if(qa)M=pa?require("path").dirname(M)+"/":__dirname+"/",ra=function(a,b){var c=xa(a);if(c)return b?c:c.toString();ua||(ua=require("fs"));va||(va=require("path"));a=va.normalize(a);return ua.readFileSync(a,b?null:"utf8")},ta=function(a){a=ra(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},sa=function(a,b,c){var e=xa(a);e&&b(e);ua||(ua=require("fs"));va||(va=require("path"));a=va.normalize(a);ua.readFile(a,function(f,g){f?c(f):b(g.buffer)})},1>0]=0;break;case "i8":D[a>>0]=0;break;case "i16":Ka[a>>1]=0;break;case "i32":R[a>>2]=0;break;case "i64":S=[0,(T=0,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[a>>2]=S[0];R[a+4>>2]=S[1];break;case "float":La[a>>2]=0;break;case "double":Ma[a>>3]=0;break;default:Q("invalid type for setValue: "+b)}} function z(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return Ka[a>>1];case "i32":return R[a>>2];case "i64":return R[a>>2];case "float":return La[a>>2];case "double":return Ma[a>>3];default:Q("invalid type for getValue: "+b)}return null}var Na,Pa=!1;function assert(a,b){a||Q("Assertion failed: "+b)}function Qa(a){var b=Module["_"+a];assert(b,"Cannot call unknown function "+a+", make sure it is exported");return b} -function Ra(a,b,c,e){var f={string:function(m){var r=0;if(null!==m&&void 0!==m&&0!==m){var w=(m.length<<2)+1;r=C(w);p(m,t,r,w)}return r},array:function(m){var r=C(m.length);D.set(m,r);return r}};a=Qa(a);var g=[],k=0;if(e)for(var n=0;n=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function F(a,b){return a?Va(t,a,b):""} +function Va(a,b,c){var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function G(a,b){return a?Va(t,a,b):""} function p(a,b,c,e){if(!(0=k){var n=a.charCodeAt(++g);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f} function d(a){for(var b=0,c=0;c=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function Wa(a){var b=d(a)+1,c=ba(b);c&&p(a,D,c,b);return c}var Xa,D,t,Ka,R,La,Ma; function Ya(a){Xa=a;Module.HEAP8=D=new Int8Array(a);Module.HEAP16=Ka=new Int16Array(a);Module.HEAP32=R=new Int32Array(a);Module.HEAPU8=t=new Uint8Array(a);Module.HEAPU16=new Uint16Array(a);Module.HEAPU32=new Uint32Array(a);Module.HEAPF32=La=new Float32Array(a);Module.HEAPF64=Ma=new Float64Array(a)}var Fa=Module.INITIAL_MEMORY||16777216;Module.wasmMemory?Na=Module.wasmMemory:Na=new Da;Na&&(Xa=Na.buffer);Fa=Xa.byteLength;Ya(Xa);var P,Za=[],$a=[],ab=[]; function bb(){var a=Module.preRun.shift();Za.unshift(a)}var cb=0,db=null,eb=null;function jb(){cb++;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb)}function kb(){cb--;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb);if(0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var a=eb;eb=null;a()}}Module.preloadedImages={};Module.preloadedAudios={}; -function Q(a){if(Module.onAbort)Module.onAbort(a);N(a);Pa=!0;throw new Ja("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",V;V="sql-asm-memory-growth.wasm";if(!V.startsWith(lb)){var mb=V;V=Module.locateFile?Module.locateFile(mb,M):M+mb}function nb(){var a=V;try{if(a==V&&Ca)return new Uint8Array(Ca);var b=xa(a);if(b)return b;if(ta)return ta(a);throw"both async and sync fetching of the wasm failed";}catch(c){Q(c)}} +function Q(a){if(Module.onAbort)Module.onAbort(a);O(a);Pa=!0;throw new Ja("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",V;V="sql-asm-memory-growth.wasm";if(!V.startsWith(lb)){var mb=V;V=Module.locateFile?Module.locateFile(mb,M):M+mb}function nb(){var a=V;try{if(a==V&&Ca)return new Uint8Array(Ca);var b=xa(a);if(b)return b;if(ta)return ta(a);throw"both async and sync fetching of the wasm failed";}catch(c){Q(c)}} function ob(){if(!Ca&&(oa||pa)){if("function"===typeof fetch&&!V.startsWith("file://"))return fetch(V,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+V+"'";return a.arrayBuffer()}).catch(function(){return nb()});if(sa)return new Promise(function(a,b){sa(V,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return nb()})}var T,S; function pb(a){for(;0>2]=60*g;R[tb()>>2]=Number(b!=f);c=a(c);e=a(e);c=Wa(c);e=Wa(e);f>2]=c,R[ub()+4>>2]=e):(R[ub()>>2]=e,R[ub()+4>>2]=c)}var vb; @@ -145,7 +145,7 @@ function Bb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?argum function Cb(a,b){function c(k){for(var n=0;nq?[]:k.slice(n,q-n+1)}a=Bb(a).substr(1);b=Bb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g>8},td:function(a){return a&255},bb:function(a,b){return a<<8|b},Qb:function(a,b){x.Zb[a]={stream_ops:b}},Qc:function(a){return x.Zb[a]},dc:function(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},pc:function(a,b){function c(k){x.ub--;return b(k)}function e(k){if(k){if(!e.Lc)return e.Lc=!0,c(k)}else++g>=f.length&&c(null)} -"function"===typeof a&&(b=a,a=!1);x.ub++;1b)throw new x.ErrnoError(28);a="string"===typeof a?x.lookupPath(a,{Ta:!0}).node: a;if(!a.node_ops.setattr)throw new x.ErrnoError(63);if(x.isDir(a.mode))throw new x.ErrnoError(31);if(!x.isFile(a.mode))throw new x.ErrnoError(28);var c=x.Za(a,"w");if(c)throw new x.ErrnoError(c);a.node_ops.setattr(a,{size:b,timestamp:Date.now()})},Oc:function(a,b){a=x.$a(a);if(!a)throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(28);x.truncate(a.node,b)},ld:function(a,b,c){a=x.lookupPath(a,{Ta:!0}).node;a.node_ops.setattr(a,{timestamp:Math.max(b,c)})},open:function(a,b,c,e, f){if(""===a)throw new x.ErrnoError(44);b="string"===typeof b?x.Zc(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=xb(a);try{g=x.lookupPath(a,{Ta:!(b&131072)}).node}catch(n){}}var k=!1;if(b&64)if(g){if(b&128)throw new x.ErrnoError(20);}else g=x.mknod(a,c,0),k=!0;if(!g)throw new x.ErrnoError(44);x.qb(g.mode)&&(b&=-513);if(b&65536&&!x.isDir(g.mode))throw new x.ErrnoError(54);if(!k&&(c=x.Xc(g,b)))throw new x.ErrnoError(c);b&512&&x.truncate(g,0);b&=-131713; -e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,N("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(n){N("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); +e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,O("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(n){O("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); a.Fb&&(a.Fb=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(b){throw b;}finally{x.Ec(a.fd)}a.fd=null},lb:function(a){return null===a.fd},llseek:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new x.ErrnoError(70);if(0!=c&&1!=c&&2!=c)throw new x.ErrnoError(28);a.position=a.stream_ops.llseek(a,b,c);a.kd=[];return a.position},read:function(a,b,c,e,f){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(1===(a.flags&2097155))throw new x.ErrnoError(8); if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.read)throw new x.ErrnoError(28);var g="undefined"!==typeof f;if(!g)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.read(a,b,c,e,f);g||(a.position+=b);return b},write:function(a,b,c,e,f,g){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(8);if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.write)throw new x.ErrnoError(28); -a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(n){N("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); +a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(n){O("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); if(!x.isFile(a.node.mode)&&!x.isDir(a.node.mode))throw new x.ErrnoError(43);if(!a.stream_ops.allocate)throw new x.ErrnoError(138);a.stream_ops.allocate(a,b,c)},mmap:function(a,b,c,e,f,g){if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new x.ErrnoError(2);if(1===(a.flags&2097155))throw new x.ErrnoError(2);if(!a.stream_ops.mmap)throw new x.ErrnoError(43);return a.stream_ops.mmap(a,b,c,e,f,g)},msync:function(a,b,c,e,f){return a&&a.stream_ops.msync?a.stream_ops.msync(a,b,c,e,f):0},vd:function(){return 0}, lc:function(a,b,c){if(!a.stream_ops.lc)throw new x.ErrnoError(59);return a.stream_ops.lc(a,b,c)},readFile:function(a,b){b=b||{};b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=x.open(a,b.flags);a=x.stat(a).size;var f=new Uint8Array(a);x.read(e,f,0,a,0);"utf8"===b.encoding?c=Va(f,0):"binary"===b.encoding&&(c=f);x.close(e);return c},writeFile:function(a,b,c){c=c||{};c.flags=c.flags||577;a= x.open(a,c.flags,c.mode);if("string"===typeof b){var e=new Uint8Array(d(b)+1);b=p(b,e,0,e.length);x.write(a,e,0,b,void 0,c.Cc)}else if(ArrayBuffer.isView(b))x.write(a,b,0,b.byteLength,void 0,c.Cc);else throw Error("Unsupported data type");x.close(a)},cwd:function(){return x.Yb},chdir:function(a){a=x.lookupPath(a,{Ta:!0});if(null===a.node)throw new x.ErrnoError(44);if(!x.isDir(a.node.mode))throw new x.ErrnoError(54);var b=x.Za(a.node,"x");if(b)throw new x.ErrnoError(b);x.Yb=a.path},Gc:function(){x.mkdir("/tmp"); @@ -190,11 +190,11 @@ try{c=x.lookupPath(a,{parent:!0}),e.bd=!0,e.dd=c.path,e.cd=c.node,e.name=W(a),c= zb("string"===typeof a?a:x.Ya(a),b):a;e=x.Eb(e,f);f=x.create(a,e);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var k=c.length;bthis.length-1||0>m)){var r=m%this.chunkSize;return this.hc(m/this.chunkSize|0)[r]}};g.prototype.sc=function(m){this.hc=m};g.prototype.Wb=function(){var m=new XMLHttpRequest;m.open("HEAD",c,!1);m.send(null);if(!(200<=m.status&&300>m.status||304===m.status))throw Error("Couldn't load "+ -c+". Status: "+m.status);var r=Number(m.getResponseHeader("Content-length")),w,B=(w=m.getResponseHeader("Accept-Ranges"))&&"bytes"===w;m=(w=m.getResponseHeader("Content-Encoding"))&&"gzip"===w;var E=1048576;B||(E=r);var A=this;A.sc(function(J){var Z=J*E,U=(J+1)*E-1;U=Math.min(U,r-1);if("undefined"===typeof A.pb[J]){var Oa=A.pb;if(Z>U)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var G=new XMLHttpRequest;G.open("GET", -c,!1);r!==E&&G.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(G.responseType="arraybuffer");G.overrideMimeType&&G.overrideMimeType("text/plain; charset=x-user-defined");G.send(null);if(!(200<=G.status&&300>G.status||304===G.status))throw Error("Couldn't load "+c+". Status: "+G.status);Z=void 0!==G.response?new Uint8Array(G.response||[]):ca(G.responseText||"",!0);Oa[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m||!r)E=r=1,E=r=this.hc(0).length, -za("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=E;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var n=x.Hc(a,b,k,e, -f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){x.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,w,B,E){x.cc(n);m=m.node.Na;if(E>=m.length)return 0;B=Math.min(m.length-E,B);if(m.slice)for(var A=0;AU)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var H=new XMLHttpRequest;H.open("GET", +c,!1);r!==F&&H.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(H.responseType="arraybuffer");H.overrideMimeType&&H.overrideMimeType("text/plain; charset=x-user-defined");H.send(null);if(!(200<=H.status&&300>H.status||304===H.status))throw Error("Couldn't load "+c+". Status: "+H.status);Z=void 0!==H.response?new Uint8Array(H.response||[]):ca(H.responseText||"",!0);Oa[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m||!r)F=r=1,F=r=this.hc(0).length, +za("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=F;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var n=x.Hc(a,b,k,e, +f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){x.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,w,B,F){x.cc(n);m=m.node.Na;if(F>=m.length)return 0;B=Math.min(m.length-F,B);if(m.slice)for(var A=0;A>2]=e.dev;R[c+4>>2]=0;R[c+8>>2]=e.ino;R[c+12>>2]=e.mode;R[c+16>>2]=e.nlink;R[c+20>>2]=e.uid;R[c+24>>2]=e.gid;R[c+28>>2]=e.rdev;R[c+32>>2]=0;S=[e.size>>>0,(T=e.size,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[c+40>>2]=S[0];R[c+44>>2]=S[1];R[c+48>>2]=4096;R[c+52>>2]=e.blocks;R[c+56>>2]=e.atime.getTime()/1E3|0;R[c+60>> @@ -205,21 +205,21 @@ x.FSNode=pc;x.oc();var gc,ya=!1;function ca(a,b){var c=Array(d(a)+1);a=p(a,c,0,c var qc="function"===typeof atob?atob:function(a){var b="",c=0;a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));e=e<<2|f>>4; f=(f&15)<<4|g>>2;var n=(g&3)<<6|k;b+=String.fromCharCode(e);64!==g&&(b+=String.fromCharCode(f));64!==k&&(b+=String.fromCharCode(n))}while(c>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), -6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=F(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=F(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof -x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=F(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Y(a);switch(b){case 0:var f=kc();return 0>f?-28:x.open(e.path, +var Ha={b:function(a,b,c,e){Q("Assertion failed: "+G(a)+", at: "+[b?G(b):"unknown filename",c,e?G(e):"unknown function"])},u:function(a,b){vb||(vb=!0,rb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=G(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=G(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof +x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=G(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Y(a);switch(b){case 0:var f=kc();return 0>f?-28:x.open(e.path, e.flags,0,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=kc(),e.flags|=f,0;case 12:return f=kc(),Ka[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return R[rc()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},E:function(a,b){try{var c=Y(a);return ic(x.stat,c.path,b)}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},n:function(a,b,c){try{return x.Oc(a,c),0}catch(e){return"undefined"!== -typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},l:function(a,b){try{if(0===b)return-28;var c=x.cwd();if(b=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== -typeof x&&n instanceof x.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=F(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=F(a),ic(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=F(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},v:function(){return 2147483648},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(a){var b= +x.$a(c.fd);if(e&&c.ed&2){var f=c.flags,g=c.offset,k=t.slice(a,a+b);x.msync(e,k,g,b,f)}hc[a]=null;c.wb&&ea(c.Vc)}var n=0}else n=-28;return n}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),-q.Oa}},w:function(a,b,c){jc=c;try{var e=G(a),f=c?kc():0;return x.open(e,b,f).fd}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},K:function(a,b,c){try{a=G(a);if(0>=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== +typeof x&&n instanceof x.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=G(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=G(a),ic(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=G(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},v:function(){return 2147483648},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(a){var b= t.length;a>>>=0;if(2147483648=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);e=Math.max(a,e);0>>16);Ya(Na.buffer);var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},t:function(a){for(var b=lc();lc()-b>2]=g;for(g=0;g>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},s:function(a, b){var c=nc();R[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});R[b>>2]=e;return 0},g:function(a){try{var b=Y(a);x.close(b);return 0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},q:function(a,b){try{var c=Y(a),e=c.tty?2:x.isDir(c.mode)?3:x.fb(c.mode)?7:4;D[b>>0]=e;return 0}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),f.Oa}},j:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],n=x.read(f,D,R[b+8*g>>2], k,void 0);if(0>n){var q=-1;break a}a+=n;if(n>2]=q;return 0}catch(m){return"undefined"!==typeof x&&m instanceof x.ErrnoError||Q(m),m.Oa}},o:function(a,b,c,e,f){try{var g=Y(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;x.llseek(g,a,e);S=[g.position>>>0,(T=g.position,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[f>>2]=S[0];R[f+4>>2]=S[1];g.Fb&&0===a&&0===e&&(g.Fb=null);return 0}catch(k){return"undefined"!== typeof x&&k instanceof x.ErrnoError||Q(k),k.Oa}},k:function(a){try{var b=Y(a);return b.stream_ops&&b.stream_ops.fsync?-b.stream_ops.fsync(b):0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},G:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var n=-1;break a}a+=k}n=a}R[e>>2]=n;return 0}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),q.Oa}},h:function(a){var b=Date.now();R[a>>2]= -b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Na,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=F(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=qb(e);throw f+" : "+e;}e=f.Oa;R[rc()>>2]=e;e=-1}return e}}; -(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ia()}).then(function(g){return g}).then(f,function(g){N("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ha};jb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return N("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ca||"function"!==typeof WebAssembly.instantiateStreaming|| -V.startsWith(lb)||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){N("wasm streaming compile failed: "+g);N("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; +b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Na,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=G(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=qb(e);throw f+" : "+e;}e=f.Oa;R[rc()>>2]=e;e=-1}return e}}; +(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ia()}).then(function(g){return g}).then(f,function(g){O("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ha};jb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return O("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ca||"function"!==typeof WebAssembly.instantiateStreaming|| +V.startsWith(lb)||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){O("wasm streaming compile failed: "+g);O("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; Module._sqlite3_vfs_find=function(){return(Module._sqlite3_vfs_find=Module.asm.N).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.O).apply(null,arguments)};var rc=Module.___errno_location=function(){return(rc=Module.___errno_location=Module.asm.P).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.Q).apply(null,arguments)}; Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.R).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.S).apply(null,arguments)};Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.T).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.U).apply(null,arguments)}; Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.W).apply(null,arguments)};Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.X).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.Y).apply(null,arguments)}; @@ -233,7 +233,7 @@ Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.va).a Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.za).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.Aa).apply(null,arguments)};var ba=Module._malloc=function(){return(ba=Module._malloc=Module.asm.Ba).apply(null,arguments)},ea=Module._free=function(){return(ea=Module._free=Module.asm.Ca).apply(null,arguments)}; Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ea).apply(null,arguments)};Module._register_for_idb=function(){return(Module._register_for_idb=Module.asm.Fa).apply(null,arguments)}; var ub=Module.__get_tzname=function(){return(ub=Module.__get_tzname=Module.asm.Ga).apply(null,arguments)},tb=Module.__get_daylight=function(){return(tb=Module.__get_daylight=Module.asm.Ha).apply(null,arguments)},sb=Module.__get_timezone=function(){return(sb=Module.__get_timezone=Module.asm.Ia).apply(null,arguments)},fa=Module.stackSave=function(){return(fa=Module.stackSave=Module.asm.Ja).apply(null,arguments)},ja=Module.stackRestore=function(){return(ja=Module.stackRestore=Module.asm.Ka).apply(null, -arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Qa(a):function(){return Ra(a,b,c,arguments)}};Module.UTF8ToString=F;Module.FS=x;Module.stackSave=fa;Module.stackRestore=ja;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; +arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Qa(a):function(){return Ra(a,b,c,arguments)}};Module.UTF8ToString=G;Module.FS=x;Module.stackSave=fa;Module.stackRestore=ja;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; function uc(){function a(){if(!sc&&(sc=!0,Module.calledRun=!0,!Pa)){Module.noFSInit||x.kb.Hb||x.kb();x.kc=!1;pb($a);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();ab.unshift(b)}pb(ab)}}if(!(0>>0),this.Yc=!0,null!=h&&w.jb("/",this.filename,h,!0,!0)):"string"===typeof l&&null!=h?(this.filename= l,w.jb("/",this.filename,h,!0,!0)):this.filename=h;this.handleError(g(this.filename,e));this.db=z(e,"i32");Gb(this.db);this.ob={};this.Xa={}}var e=C(4),f=Module.cwrap,g=f("sqlite3_open","number",["string","number"]),k=f("sqlite3_close_v2","number",["number"]),n=f("sqlite3_exec","number",["number","string","number","number","number"]),q=f("sqlite3_changes","number",["number"]),m=f("sqlite3_prepare_v2","number",["number","string","number","number","number"]),r=f("sqlite3_sql","string",["number"]),x= -f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),E=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),aa=f("sqlite3_bind_int","number",["number","number","number"]),V=f("sqlite3_bind_parameter_index","number",["number","string"]),Pa=f("sqlite3_step", -"number",["number"]),G=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),gb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), +f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),F=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),aa=f("sqlite3_bind_int","number",["number","number","number"]),V=f("sqlite3_bind_parameter_index","number",["number","string"]),Pa=f("sqlite3_step", +"number",["number"]),H=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),gb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), Ob=f("sqlite3_reset","number",["number"]),Pb=f("sqlite3_clear_bindings","number",["number"]),Qb=f("sqlite3_finalize","number",["number"]),Rb=f("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Sb=f("sqlite3_value_type","number",["number"]),Tb=f("sqlite3_value_bytes","number",["number"]),Ub=f("sqlite3_value_text","string",["number"]),Vb=f("sqlite3_value_blob","number",["number"]),Wb=f("sqlite3_value_double","number",["number"]),Xb=f("sqlite3_result_double", "",["number","number"]),hb=f("sqlite3_result_null","",["number"]),Yb=f("sqlite3_result_text","",["number","string","number","number"]),Zb=f("sqlite3_result_blob","",["number","number","number","number"]),$b=f("sqlite3_result_int","",["number","number"]),ib=f("sqlite3_result_error","",["number","string","number"]),Gb=f("RegisterExtensionFunctions","number",["number"]);a.prototype.bind=function(h){if(!this.Qa)throw"Statement closed";this.reset();return Array.isArray(h)?this.yc(h):null!=h&&"object"=== typeof h?this.zc(h):!0};a.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Pa=1;var h=Pa(this.Qa);switch(h){case 100:return!0;case 101:return!1;default:throw this.db.handleError(h);}};a.prototype.ec=function(h){null==h&&(h=this.Pa,this.Pa+=1);return Jb(this.Qa,h)};a.prototype.Pc=function(h){null==h&&(h=this.Pa,this.Pa+=1);h=gb(this.Qa,h);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(h)};a.prototype.Rc=function(h){null==h&&(h=this.Pa,this.Pa+= 1);return gb(this.Qa,h)};a.prototype.getBlob=function(h){null==h&&(h=this.Pa,this.Pa+=1);var l=Lb(this.Qa,h);h=Kb(this.Qa,h);for(var u=new Uint8Array(l),v=0;v{let l=ma(function(y,H){y=va.get(y);return h.lock(y,H)?0:5}),u=ma(function(y,H){y=va.get(y);h.unlock(y,H);return 0}),v=ma(function(y,H){y=F(y);va.set(H,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...va.entries()].find(u=>u[1]===h);va.delete(l[0])};Module.reset_filesystem=()=>{w.root=null;w.oc()};Module.createFileData=(h,l)=>{w.jb("/",l,h,!0,!0)}};var na={},L;for(L in Module)Module.hasOwnProperty(L)&&(na[L]=Module[L]); -var oa="./this.program",pa="object"===typeof window,qa="function"===typeof importScripts,ra="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,wa,xa; +this.tb=z(l,"i32");var u=z(e,"i32");if(0===u)return this.Bb(),{done:!0};this.eb=new a(u,this.db);this.db.ob[u]=this.eb;return{value:this.eb,done:!1}}catch(v){throw this.Mb=G(this.tb),this.Bb(),v;}finally{ka(h)}};b.prototype.Bb=function(){fa(this.hb);this.hb=null};b.prototype.getRemainingSQL=function(){return null!==this.Mb?this.Mb:G(this.tb)};"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator&&(b.prototype[Symbol.iterator]=function(){return this});c.prototype.run=function(h,l){if(!this.db)throw"Database closed"; +if(l){h=this.prepare(h,l);try{h.step()}finally{h.free()}}else this.handleError(n(this.db,h,0,0,e));return this};c.prototype.exec=function(h,l,u){if(!this.db)throw"Database closed";var v=ia(),y=null;try{var K=d(h)+1,E=C(K);p(h,D,E,K);var ha=E;var ba=C(4);for(K=[];0!==z(ha,"i8");){ja(e);ja(ba);this.handleError(B(this.db,ha,-1,e,ba));var I=z(e,"i32");ha=z(ba,"i32");if(0!==I){E=null;y=new a(I,this);for(null!=l&&y.bind(l);y.step();)null===E&&(E={columns:y.getColumnNames(),values:[]},K.push(E)),E.values.push(y.get(null, +u));y.free()}}return K}catch(N){throw y&&y.free(),console.log("error when exec sql: "+h+", params: "+JSON.stringify(l)+", error: "+N),N;}finally{ka(v)}};c.prototype.each=function(h,l,u,v,y){"function"===typeof l&&(v=u,u=l,l=void 0);h=this.prepare(h,l);try{for(;h.step();)u(h.getAsObject(null,y))}finally{h.free()}if("function"===typeof v)return v()};c.prototype.prepare=function(h,l){ja(e);this.handleError(m(this.db,h,-1,e,0));h=z(e,"i32");if(0===h)throw"Nothing to prepare";var u=new a(h,this);null!= +l&&u.bind(l);return this.ob[h]=u};c.prototype.iterateStatements=function(h){return new b(h,this)};c.prototype["export"]=function(){Object.values(this.ob).forEach(function(l){l.free()});Object.values(this.Xa).forEach(la);this.Xa={};this.handleError(k(this.db));var h=w.readFile(this.filename,{encoding:"binary"});this.handleError(g(this.filename,e));this.db=z(e,"i32");return h};c.prototype.close=function(){null!==this.db&&(Object.values(this.ob).forEach(function(h){h.free()}),Object.values(this.Xa).forEach(la), +this.Xa={},this.handleError(k(this.db)),this.Yc&&w.unlink("/"+this.filename),this.db=null)};c.prototype.handleError=function(h){if(0===h)return null;h=H(this.db);throw Error(h);};c.prototype.getRowsModified=function(){return q(this.db)};c.prototype.create_function=function(h,l){Object.prototype.hasOwnProperty.call(this.Xa,h)&&(la(this.Xa[h]),delete this.Xa[h]);var u=ma(function(v,y,K){for(var E,ha=[],ba=0;ba{let l=ma(function(y,K){y=va.get(y);return h.lock(y,K)?0:5}),u=ma(function(y,K){y=va.get(y);h.unlock(y,K);return 0}),v=ma(function(y,K){y=G(y);va.set(K,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...va.entries()].find(u=>u[1]===h);va.delete(l[0])};Module.reset_filesystem=()=>{w.root=null;w.oc()};Module.createFileData=(h,l)=>{w.jb("/",l,h,!0,!0)}};var na={},L; +for(L in Module)Module.hasOwnProperty(L)&&(na[L]=Module[L]);var oa="./this.program",pa="object"===typeof window,qa="function"===typeof importScripts,ra="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,wa,xa; if(ra)M=qa?require("path").dirname(M)+"/":__dirname+"/",sa=function(a,b){var c=ya(a);if(c)return b?c:c.toString();wa||(wa=require("fs"));xa||(xa=require("path"));a=xa.normalize(a);return wa.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){var e=ya(a);e&&b(e);wa||(wa=require("fs"));xa||(xa=require("path"));a=xa.normalize(a);wa.readFile(a,function(f,g){f?c(f):b(g.buffer)})},1>0]=0;break;case "i8":D[a>>0]=0;break;case "i16":La[a>>1]=0;break;case "i32":R[a>>2]=0;break;case "i64":S=[0,(T=0,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[a>>2]=S[0];R[a+4>>2]=S[1];break;case "float":Ma[a>>2]=0;break;case "double":Na[a>>3]=0;break;default:Q("invalid type for setValue: "+b)}} function z(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return La[a>>1];case "i32":return R[a>>2];case "i64":return R[a>>2];case "float":return Ma[a>>2];case "double":return Na[a>>3];default:Q("invalid type for getValue: "+b)}return null}var Oa,Qa=!1;function assert(a,b){a||Q("Assertion failed: "+b)}function Ra(a){var b=Module["_"+a];assert(b,"Cannot call unknown function "+a+", make sure it is exported");return b} -function Sa(a,b,c,e){var f={string:function(m){var r=0;if(null!==m&&void 0!==m&&0!==m){var x=(m.length<<2)+1;r=C(x);p(m,t,r,x)}return r},array:function(m){var r=C(m.length);D.set(m,r);return r}};a=Ra(a);var g=[],k=0;if(e)for(var n=0;n=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function F(a,b){return a?Wa(t,a,b):""} +function Wa(a,b,c){var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function G(a,b){return a?Wa(t,a,b):""} function p(a,b,c,e){if(!(0=k){var n=a.charCodeAt(++g);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f} function d(a){for(var b=0,c=0;c=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function Xa(a){var b=d(a)+1,c=ca(b);c&&p(a,D,c,b);return c}var Ya,D,t,La,R,Ma,Na,Ga=Module.INITIAL_MEMORY||16777216;Module.wasmMemory?Oa=Module.wasmMemory:Oa=new Ea;Oa&&(Ya=Oa.buffer);Ga=Ya.byteLength;var U=Ya;Ya=U;Module.HEAP8=D=new Int8Array(U);Module.HEAP16=La=new Int16Array(U);Module.HEAP32=R=new Int32Array(U); Module.HEAPU8=t=new Uint8Array(U);Module.HEAPU16=new Uint16Array(U);Module.HEAPU32=new Uint32Array(U);Module.HEAPF32=Ma=new Float32Array(U);Module.HEAPF64=Na=new Float64Array(U);var P,Za=[],$a=[],ab=[];function bb(){var a=Module.preRun.shift();Za.unshift(a)}var cb=0,db=null,eb=null;function fb(){cb++;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb)} -function kb(){cb--;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb);if(0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var a=eb;eb=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);N(a);Qa=!0;throw new Ka("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",W;W="sql-asm.wasm";if(!W.startsWith(lb)){var mb=W;W=Module.locateFile?Module.locateFile(mb,M):M+mb} +function kb(){cb--;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb);if(0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var a=eb;eb=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);O(a);Qa=!0;throw new Ka("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",W;W="sql-asm.wasm";if(!W.startsWith(lb)){var mb=W;W=Module.locateFile?Module.locateFile(mb,M):M+mb} function nb(){var a=W;try{if(a==W&&Da)return new Uint8Array(Da);var b=ya(a);if(b)return b;if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(c){Q(c)}} function ob(){if(!Da&&(pa||qa)){if("function"===typeof fetch&&!W.startsWith("file://"))return fetch(W,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+W+"'";return a.arrayBuffer()}).catch(function(){return nb()});if(ta)return new Promise(function(a,b){ta(W,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return nb()})}var T,S; function pb(a){for(;0q?[]:k.slice(n,q-n+1)}a=Bb(a).substr(1);b=Bb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g>8},td:function(a){return a&255},bb:function(a,b){return a<<8|b},Qb:function(a,b){w.Zb[a]={stream_ops:b}},Qc:function(a){return w.Zb[a]},dc:function(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},pc:function(a,b){function c(k){w.ub--;return b(k)}function e(k){if(k){if(!e.Lc)return e.Lc=!0,c(k)}else++g>=f.length&&c(null)} -"function"===typeof a&&(b=a,a=!1);w.ub++;1b)throw new w.ErrnoError(28);a="string"===typeof a?w.lookupPath(a,{Ta:!0}).node: a;if(!a.node_ops.setattr)throw new w.ErrnoError(63);if(w.isDir(a.mode))throw new w.ErrnoError(31);if(!w.isFile(a.mode))throw new w.ErrnoError(28);var c=w.Za(a,"w");if(c)throw new w.ErrnoError(c);a.node_ops.setattr(a,{size:b,timestamp:Date.now()})},Oc:function(a,b){a=w.$a(a);if(!a)throw new w.ErrnoError(8);if(0===(a.flags&2097155))throw new w.ErrnoError(28);w.truncate(a.node,b)},ld:function(a,b,c){a=w.lookupPath(a,{Ta:!0}).node;a.node_ops.setattr(a,{timestamp:Math.max(b,c)})},open:function(a,b,c,e, f){if(""===a)throw new w.ErrnoError(44);b="string"===typeof b?w.Zc(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=xb(a);try{g=w.lookupPath(a,{Ta:!(b&131072)}).node}catch(n){}}var k=!1;if(b&64)if(g){if(b&128)throw new w.ErrnoError(20);}else g=w.mknod(a,c,0),k=!0;if(!g)throw new w.ErrnoError(44);w.qb(g.mode)&&(b&=-513);if(b&65536&&!w.isDir(g.mode))throw new w.ErrnoError(54);if(!k&&(c=w.Xc(g,b)))throw new w.ErrnoError(c);b&512&&w.truncate(g,0);b&=-131713; -e=w.Kc({node:g,path:w.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(w.Ob||(w.Ob={}),a in w.Ob||(w.Ob[a]=1,N("FS.trackingDelegate error on read file: "+a)));try{w.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=w.qc.nc.tc),0!==(b&2097155)&&(f|=w.qc.nc.uc),w.Sa.onOpenFile(a,f))}catch(n){N("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(w.lb(a))throw new w.ErrnoError(8); +e=w.Kc({node:g,path:w.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(w.Ob||(w.Ob={}),a in w.Ob||(w.Ob[a]=1,O("FS.trackingDelegate error on read file: "+a)));try{w.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=w.qc.nc.tc),0!==(b&2097155)&&(f|=w.qc.nc.uc),w.Sa.onOpenFile(a,f))}catch(n){O("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(w.lb(a))throw new w.ErrnoError(8); a.Fb&&(a.Fb=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(b){throw b;}finally{w.Ec(a.fd)}a.fd=null},lb:function(a){return null===a.fd},llseek:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new w.ErrnoError(70);if(0!=c&&1!=c&&2!=c)throw new w.ErrnoError(28);a.position=a.stream_ops.llseek(a,b,c);a.kd=[];return a.position},read:function(a,b,c,e,f){if(0>e||0>f)throw new w.ErrnoError(28);if(w.lb(a))throw new w.ErrnoError(8);if(1===(a.flags&2097155))throw new w.ErrnoError(8); if(w.isDir(a.node.mode))throw new w.ErrnoError(31);if(!a.stream_ops.read)throw new w.ErrnoError(28);var g="undefined"!==typeof f;if(!g)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.read(a,b,c,e,f);g||(a.position+=b);return b},write:function(a,b,c,e,f,g){if(0>e||0>f)throw new w.ErrnoError(28);if(w.lb(a))throw new w.ErrnoError(8);if(0===(a.flags&2097155))throw new w.ErrnoError(8);if(w.isDir(a.node.mode))throw new w.ErrnoError(31);if(!a.stream_ops.write)throw new w.ErrnoError(28); -a.seekable&&a.flags&1024&&w.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&w.Sa.onWriteToFile)w.Sa.onWriteToFile(a.path)}catch(n){N("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(0>b||0>=c)throw new w.ErrnoError(28);if(0===(a.flags&2097155))throw new w.ErrnoError(8); +a.seekable&&a.flags&1024&&w.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&w.Sa.onWriteToFile)w.Sa.onWriteToFile(a.path)}catch(n){O("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(0>b||0>=c)throw new w.ErrnoError(28);if(0===(a.flags&2097155))throw new w.ErrnoError(8); if(!w.isFile(a.node.mode)&&!w.isDir(a.node.mode))throw new w.ErrnoError(43);if(!a.stream_ops.allocate)throw new w.ErrnoError(138);a.stream_ops.allocate(a,b,c)},mmap:function(a,b,c,e,f,g){if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new w.ErrnoError(2);if(1===(a.flags&2097155))throw new w.ErrnoError(2);if(!a.stream_ops.mmap)throw new w.ErrnoError(43);return a.stream_ops.mmap(a,b,c,e,f,g)},msync:function(a,b,c,e,f){return a&&a.stream_ops.msync?a.stream_ops.msync(a,b,c,e,f):0},vd:function(){return 0}, lc:function(a,b,c){if(!a.stream_ops.lc)throw new w.ErrnoError(59);return a.stream_ops.lc(a,b,c)},readFile:function(a,b){b=b||{};b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=w.open(a,b.flags);a=w.stat(a).size;var f=new Uint8Array(a);w.read(e,f,0,a,0);"utf8"===b.encoding?c=Wa(f,0):"binary"===b.encoding&&(c=f);w.close(e);return c},writeFile:function(a,b,c){c=c||{};c.flags=c.flags||577;a= w.open(a,c.flags,c.mode);if("string"===typeof b){var e=new Uint8Array(d(b)+1);b=p(b,e,0,e.length);w.write(a,e,0,b,void 0,c.Cc)}else if(ArrayBuffer.isView(b))w.write(a,b,0,b.byteLength,void 0,c.Cc);else throw Error("Unsupported data type");w.close(a)},cwd:function(){return w.Yb},chdir:function(a){a=w.lookupPath(a,{Ta:!0});if(null===a.node)throw new w.ErrnoError(44);if(!w.isDir(a.node.mode))throw new w.ErrnoError(54);var b=w.Za(a.node,"x");if(b)throw new w.ErrnoError(b);w.Yb=a.path},Gc:function(){w.mkdir("/tmp"); @@ -190,11 +190,11 @@ try{c=w.lookupPath(a,{parent:!0}),e.bd=!0,e.dd=c.path,e.cd=c.node,e.name=X(a),c= zb("string"===typeof a?a:w.Ya(a),b):a;e=w.Eb(e,f);f=w.create(a,e);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var k=c.length;bthis.length-1||0>m)){var r=m%this.chunkSize;return this.hc(m/this.chunkSize|0)[r]}};g.prototype.sc=function(m){this.hc=m};g.prototype.Wb=function(){var m=new XMLHttpRequest;m.open("HEAD",c,!1);m.send(null);if(!(200<=m.status&&300>m.status||304===m.status))throw Error("Couldn't load "+ -c+". Status: "+m.status);var r=Number(m.getResponseHeader("Content-length")),x,B=(x=m.getResponseHeader("Accept-Ranges"))&&"bytes"===x;m=(x=m.getResponseHeader("Content-Encoding"))&&"gzip"===x;var E=1048576;B||(E=r);var A=this;A.sc(function(J){var aa=J*E,V=(J+1)*E-1;V=Math.min(V,r-1);if("undefined"===typeof A.pb[J]){var Pa=A.pb;if(aa>V)throw Error("invalid range ("+aa+", "+V+") or no bytes requested!");if(V>r-1)throw Error("only "+r+" bytes available! programmer error!");var G=new XMLHttpRequest; -G.open("GET",c,!1);r!==E&&G.setRequestHeader("Range","bytes="+aa+"-"+V);"undefined"!=typeof Uint8Array&&(G.responseType="arraybuffer");G.overrideMimeType&&G.overrideMimeType("text/plain; charset=x-user-defined");G.send(null);if(!(200<=G.status&&300>G.status||304===G.status))throw Error("Couldn't load "+c+". Status: "+G.status);aa=void 0!==G.response?new Uint8Array(G.response||[]):da(G.responseText||"",!0);Pa[J]=aa}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m|| -!r)E=r=1,E=r=this.hc(0).length,Aa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=E;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!qa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1, -url:c};var n=w.Hc(a,b,k,e,f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){w.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,x,B,E){w.cc(n);m=m.node.Na;if(E>=m.length)return 0;B=Math.min(m.length-E,B);if(m.slice)for(var A=0;AV)throw Error("invalid range ("+aa+", "+V+") or no bytes requested!");if(V>r-1)throw Error("only "+r+" bytes available! programmer error!");var H=new XMLHttpRequest; +H.open("GET",c,!1);r!==F&&H.setRequestHeader("Range","bytes="+aa+"-"+V);"undefined"!=typeof Uint8Array&&(H.responseType="arraybuffer");H.overrideMimeType&&H.overrideMimeType("text/plain; charset=x-user-defined");H.send(null);if(!(200<=H.status&&300>H.status||304===H.status))throw Error("Couldn't load "+c+". Status: "+H.status);aa=void 0!==H.response?new Uint8Array(H.response||[]):da(H.responseText||"",!0);Pa[J]=aa}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m|| +!r)F=r=1,F=r=this.hc(0).length,Aa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=F;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!qa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1, +url:c};var n=w.Hc(a,b,k,e,f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){w.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,x,B,F){w.cc(n);m=m.node.Na;if(F>=m.length)return 0;B=Math.min(m.length-F,B);if(m.slice)for(var A=0;A>4; f=(f&15)<<4|g>>2;var n=(g&3)<<6|k;b+=String.fromCharCode(e);64!==g&&(b+=String.fromCharCode(f));64!==k&&(b+=String.fromCharCode(n))}while(c>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), -6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=F(a);if(b&-8)var c=-28;else{var e;(e=w.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&w.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=F(a),w.chmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof -w.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=F(a),w.chown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return w.fchmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return w.fchown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Z(a);switch(b){case 0:var f=kc();return 0>f?-28:w.open(e.path, +var Ia={b:function(a,b,c,e){Q("Assertion failed: "+G(a)+", at: "+[b?G(b):"unknown filename",c,e?G(e):"unknown function"])},u:function(a,b){vb||(vb=!0,rb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=G(a);if(b&-8)var c=-28;else{var e;(e=w.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&w.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=G(a),w.chmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof +w.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=G(a),w.chown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return w.fchmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return w.fchown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Z(a);switch(b){case 0:var f=kc();return 0>f?-28:w.open(e.path, e.flags,0,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=kc(),e.flags|=f,0;case 12:return f=kc(),La[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return R[rc()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof w&&g instanceof w.ErrnoError||Q(g),-g.Oa}},E:function(a,b){try{var c=Z(a);return ic(w.stat,c.path,b)}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},n:function(a,b,c){try{return w.Oc(a,c),0}catch(e){return"undefined"!== -typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},l:function(a,b){try{if(0===b)return-28;var c=w.cwd();if(b=c)var e=-28;else{var f=w.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== -typeof w&&n instanceof w.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=F(a),w.rmdir(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=F(a),ic(w.stat,a,b)}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=F(a),w.unlink(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},v:function(){return t.length},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(){Q("OOM")}, +w.$a(c.fd);if(e&&c.ed&2){var f=c.flags,g=c.offset,k=t.slice(a,a+b);w.msync(e,k,g,b,f)}hc[a]=null;c.wb&&fa(c.Vc)}var n=0}else n=-28;return n}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),-q.Oa}},w:function(a,b,c){jc=c;try{var e=G(a),f=c?kc():0;return w.open(e,b,f).fd}catch(g){return"undefined"!==typeof w&&g instanceof w.ErrnoError||Q(g),-g.Oa}},K:function(a,b,c){try{a=G(a);if(0>=c)var e=-28;else{var f=w.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== +typeof w&&n instanceof w.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=G(a),w.rmdir(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=G(a),ic(w.stat,a,b)}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=G(a),w.unlink(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},v:function(){return t.length},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(){Q("OOM")}, t:function(a){for(var b=lc();lc()-b>2]=g;for(g=0;g>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},s:function(a,b){var c=nc();R[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});R[b>>2]=e;return 0},g:function(a){try{var b=Z(a);w.close(b);return 0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),c.Oa}},q:function(a,b){try{var c=Z(a),e=c.tty?2:w.isDir(c.mode)?3:w.fb(c.mode)? 7:4;D[b>>0]=e;return 0}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),f.Oa}},j:function(a,b,c,e){try{a:{for(var f=Z(a),g=a=0;g>2],n=w.read(f,D,R[b+8*g>>2],k,void 0);if(0>n){var q=-1;break a}a+=n;if(n>2]=q;return 0}catch(m){return"undefined"!==typeof w&&m instanceof w.ErrnoError||Q(m),m.Oa}},o:function(a,b,c,e,f){try{var g=Z(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;w.llseek(g,a,e);S=[g.position>>> 0,(T=g.position,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[f>>2]=S[0];R[f+4>>2]=S[1];g.Fb&&0===a&&0===e&&(g.Fb=null);return 0}catch(k){return"undefined"!==typeof w&&k instanceof w.ErrnoError||Q(k),k.Oa}},k:function(a){try{var b=Z(a);return b.stream_ops&&b.stream_ops.fsync?-b.stream_ops.fsync(b):0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),c.Oa}},G:function(a,b,c,e){try{a:{for(var f=Z(a),g= -a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var n=-1;break a}a+=k}n=a}R[e>>2]=n;return 0}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),q.Oa}},h:function(a){var b=Date.now();R[a>>2]=b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Oa,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=F(a);try{w.ld(a,b,b);var e=0}catch(f){if(!(f instanceof w.ErrnoError)){b:{e= +a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var n=-1;break a}a+=k}n=a}R[e>>2]=n;return 0}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),q.Oa}},h:function(a){var b=Date.now();R[a>>2]=b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Oa,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=G(a);try{w.ld(a,b,b);var e=0}catch(f){if(!(f instanceof w.ErrnoError)){b:{e= Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=qb(e);throw f+" : "+e;}e=f.Oa;R[rc()>>2]=e;e=-1}return e}}; -(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ja()}).then(function(g){return g}).then(f,function(g){N("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ia};fb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return N("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Da||"function"!==typeof WebAssembly.instantiateStreaming|| -W.startsWith(lb)||W.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){N("wasm streaming compile failed: "+g);N("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; +(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ja()}).then(function(g){return g}).then(f,function(g){O("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ia};fb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return O("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Da||"function"!==typeof WebAssembly.instantiateStreaming|| +W.startsWith(lb)||W.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){O("wasm streaming compile failed: "+g);O("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; Module._sqlite3_vfs_find=function(){return(Module._sqlite3_vfs_find=Module.asm.N).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.O).apply(null,arguments)};var rc=Module.___errno_location=function(){return(rc=Module.___errno_location=Module.asm.P).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.Q).apply(null,arguments)}; Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.R).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.S).apply(null,arguments)};Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.T).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.U).apply(null,arguments)}; Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.W).apply(null,arguments)};Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.X).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.Y).apply(null,arguments)}; @@ -234,7 +234,7 @@ Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.va).a Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.za).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.Aa).apply(null,arguments)};var ca=Module._malloc=function(){return(ca=Module._malloc=Module.asm.Ba).apply(null,arguments)},fa=Module._free=function(){return(fa=Module._free=Module.asm.Ca).apply(null,arguments)}; Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ea).apply(null,arguments)};Module._register_for_idb=function(){return(Module._register_for_idb=Module.asm.Fa).apply(null,arguments)}; var ub=Module.__get_tzname=function(){return(ub=Module.__get_tzname=Module.asm.Ga).apply(null,arguments)},tb=Module.__get_daylight=function(){return(tb=Module.__get_daylight=Module.asm.Ha).apply(null,arguments)},sb=Module.__get_timezone=function(){return(sb=Module.__get_timezone=Module.asm.Ia).apply(null,arguments)},ia=Module.stackSave=function(){return(ia=Module.stackSave=Module.asm.Ja).apply(null,arguments)},ka=Module.stackRestore=function(){return(ka=Module.stackRestore=Module.asm.Ka).apply(null, -arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ra(a):function(){return Sa(a,b,c,arguments)}};Module.UTF8ToString=F;Module.FS=w;Module.stackSave=ia;Module.stackRestore=ka;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; +arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ra(a):function(){return Sa(a,b,c,arguments)}};Module.UTF8ToString=G;Module.FS=w;Module.stackSave=ia;Module.stackRestore=ka;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; function uc(){function a(){if(!sc&&(sc=!0,Module.calledRun=!0,!Qa)){Module.noFSInit||w.kb.Hb||w.kb();w.kc=!1;pb($a);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();ab.unshift(b)}pb(ab)}}if(!(0>>0),this.Yc=!0,null!=h&&x.jb("/",this.filename,h,!0,!0)):"string"===typeof l&&null!=h?(this.filename= l,x.jb("/",this.filename,h,!0,!0)):this.filename=h;this.handleError(g(this.filename,e));this.db=z(e,"i32");Db(this.db);this.ob={};this.Xa={}}var e=C(4),f=Module.cwrap,g=f("sqlite3_open","number",["string","number"]),k=f("sqlite3_close_v2","number",["number"]),m=f("sqlite3_exec","number",["number","string","number","number","number"]),q=f("sqlite3_changes","number",["number"]),n=f("sqlite3_prepare_v2","number",["number","string","number","number","number"]),r=f("sqlite3_sql","string",["number"]),w= -f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),E=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Ka=f("sqlite3_step", -"number",["number"]),G=f("sqlite3_errmsg","string",["number"]),Eb=f("sqlite3_column_count","number",["number"]),Fb=f("sqlite3_data_count","number",["number"]),Gb=f("sqlite3_column_double","number",["number","number"]),db=f("sqlite3_column_text","string",["number","number"]),Hb=f("sqlite3_column_blob","number",["number","number"]),Ib=f("sqlite3_column_bytes","number",["number","number"]),Jb=f("sqlite3_column_type","number",["number","number"]),Kb=f("sqlite3_column_name","string",["number","number"]), +f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),F=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Ka=f("sqlite3_step", +"number",["number"]),H=f("sqlite3_errmsg","string",["number"]),Eb=f("sqlite3_column_count","number",["number"]),Fb=f("sqlite3_data_count","number",["number"]),Gb=f("sqlite3_column_double","number",["number","number"]),db=f("sqlite3_column_text","string",["number","number"]),Hb=f("sqlite3_column_blob","number",["number","number"]),Ib=f("sqlite3_column_bytes","number",["number","number"]),Jb=f("sqlite3_column_type","number",["number","number"]),Kb=f("sqlite3_column_name","string",["number","number"]), Lb=f("sqlite3_reset","number",["number"]),Mb=f("sqlite3_clear_bindings","number",["number"]),Nb=f("sqlite3_finalize","number",["number"]),Ob=f("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Pb=f("sqlite3_value_type","number",["number"]),Qb=f("sqlite3_value_bytes","number",["number"]),Rb=f("sqlite3_value_text","string",["number"]),Sb=f("sqlite3_value_blob","number",["number"]),Tb=f("sqlite3_value_double","number",["number"]),Ub=f("sqlite3_result_double", "",["number","number"]),eb=f("sqlite3_result_null","",["number"]),Vb=f("sqlite3_result_text","",["number","string","number","number"]),Wb=f("sqlite3_result_blob","",["number","number","number","number"]),Xb=f("sqlite3_result_int","",["number","number"]),fb=f("sqlite3_result_error","",["number","string","number"]),Db=f("RegisterExtensionFunctions","number",["number"]);a.prototype.bind=function(h){if(!this.Qa)throw"Statement closed";this.reset();return Array.isArray(h)?this.yc(h):null!=h&&"object"=== typeof h?this.zc(h):!0};a.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Pa=1;var h=Ka(this.Qa);switch(h){case 100:return!0;case 101:return!1;default:throw this.db.handleError(h);}};a.prototype.ec=function(h){null==h&&(h=this.Pa,this.Pa+=1);return Gb(this.Qa,h)};a.prototype.Pc=function(h){null==h&&(h=this.Pa,this.Pa+=1);h=db(this.Qa,h);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(h)};a.prototype.Rc=function(h){null==h&&(h=this.Pa,this.Pa+= 1);return db(this.Qa,h)};a.prototype.getBlob=function(h){null==h&&(h=this.Pa,this.Pa+=1);var l=Ib(this.Qa,h);h=Hb(this.Qa,h);for(var u=new Uint8Array(l),v=0;v{let l=la(function(y,H){y=ra.get(y);return h.lock(y,H)?0:5},"iii"),u=la(function(y,H){y=ra.get(y);h.unlock(y,H);return 0},"iii"),v=la(function(y,H){y=F(y);ra.set(H,y)},"vii");Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...ra.entries()].find(u=>u[1]===h);ra.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L;for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]); -var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,va,wa; -if(qa)M=pa?require("path").dirname(M)+"/":__dirname+"/",sa=function(a,b){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);return va.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);va.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1{let l=la(function(y,K){y=ra.get(y);return h.lock(y,K)?0:5},"iii"),u=la(function(y,K){y=ra.get(y);h.unlock(y,K);return 0},"iii"),v=la(function(y,K){y=G(y);ra.set(K,y)},"vii");Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...ra.entries()].find(u=>u[1]===h);ra.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L; +for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]);var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,N="",sa,ta,ua,va,wa; +if(qa)N=pa?require("path").dirname(N)+"/":__dirname+"/",sa=function(a,b){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);return va.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);va.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1>0]=0;break;case "i8":D[a>>0]=0;break;case "i16":Ca[a>>1]=0;break;case "i32":R[a>>2]=0;break;case "i64":S=[0,(T=0,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[a>>2]=S[0];R[a+4>>2]=S[1];break;case "float":Da[a>>2]=0;break;case "double":Ea[a>>3]=0;break;default:Q("invalid type for setValue: "+b)}} function z(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return Ca[a>>1];case "i32":return R[a>>2];case "i64":return R[a>>2];case "float":return Da[a>>2];case "double":return Ea[a>>3];default:Q("invalid type for getValue: "+b)}return null}var Fa,Ga=!1;function assert(a,b){a||Q("Assertion failed: "+b)}function Ha(a){var b=Module["_"+a];assert(b,"Cannot call unknown function "+a+", make sure it is exported");return b} -function Ia(a,b,c,e){var f={string:function(n){var r=0;if(null!==n&&void 0!==n&&0!==n){var w=(n.length<<2)+1;r=C(w);p(n,t,r,w)}return r},array:function(n){var r=C(n.length);D.set(n,r);return r}};a=Ha(a);var g=[],k=0;if(e)for(var m=0;m=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function F(a,b){return a?Na(t,a,b):""} +function Na(a,b,c){var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function G(a,b){return a?Na(t,a,b):""} function p(a,b,c,e){if(!(0=k){var m=a.charCodeAt(++g);k=65536+((k&1023)<<10)|m&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f} function d(a){for(var b=0,c=0;c=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function Oa(a){var b=d(a)+1,c=ba(b);c&&p(a,D,c,b);return c}var Pa,D,t,Ca,R,Da,Ea; function Qa(){var a=Fa.buffer;Pa=a;Module.HEAP8=D=new Int8Array(a);Module.HEAP16=Ca=new Int16Array(a);Module.HEAP32=R=new Int32Array(a);Module.HEAPU8=t=new Uint8Array(a);Module.HEAPU16=new Uint16Array(a);Module.HEAPU32=new Uint32Array(a);Module.HEAPF32=Da=new Float32Array(a);Module.HEAPF64=Ea=new Float64Array(a)}var P,Ra=[],Sa=[],Ta=[];function Ua(){var a=Module.preRun.shift();Ra.unshift(a)}var Va=0,Wa=null,Xa=null; -function Ya(){Va++;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va)}function Za(){Va--;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va);if(0==Va&&(null!==Wa&&(clearInterval(Wa),Wa=null),Xa)){var a=Xa;Xa=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);N(a);Ga=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");} -function $a(){return V.startsWith("data:application/octet-stream;base64,")}var V;V="sql-wasm.wasm";if(!$a()){var ab=V;V=Module.locateFile?Module.locateFile(ab,M):M+ab}function bb(){var a=V;try{if(a==V&&Ba)return new Uint8Array(Ba);if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(b){Q(b)}} +function Ya(){Va++;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va)}function Za(){Va--;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va);if(0==Va&&(null!==Wa&&(clearInterval(Wa),Wa=null),Xa)){var a=Xa;Xa=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);O(a);Ga=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");} +function $a(){return V.startsWith("data:application/octet-stream;base64,")}var V;V="sql-wasm.wasm";if(!$a()){var ab=V;V=Module.locateFile?Module.locateFile(ab,N):N+ab}function bb(){var a=V;try{if(a==V&&Ba)return new Uint8Array(Ba);if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(b){Q(b)}} function cb(){if(!Ba&&(oa||pa)){if("function"===typeof fetch&&!V.startsWith("file://"))return fetch(V,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+V+"'";return a.arrayBuffer()}).catch(function(){return bb()});if(ta)return new Promise(function(a,b){ta(V,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return bb()})}var T,S; function hb(a){for(;0>2]=60*g;R[lb()>>2]=Number(b!=f);c=a(c);e=a(e);c=Oa(c);e=Oa(e);f>2]=c,R[mb()+4>>2]=e):(R[mb()>>2]=e,R[mb()+4>>2]=c)}var nb; @@ -117,7 +117,7 @@ function tb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?argum function ub(a,b){function c(k){for(var m=0;mq?[]:k.slice(m,q-m+1)}a=tb(a).substr(1);b=tb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g>8},td:function(a){return a&255},bb:function(a,b){return a<<8|b},Qb:function(a,b){x.Zb[a]={stream_ops:b}},Qc:function(a){return x.Zb[a]},dc:function(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},pc:function(a,b){function c(k){x.ub--;return b(k)}function e(k){if(k){if(!e.Lc)return e.Lc=!0,c(k)}else++g>=f.length&&c(null)} -"function"===typeof a&&(b=a,a=!1);x.ub++;1b)throw new x.ErrnoError(28);a="string"===typeof a?x.lookupPath(a,{Ta:!0}).node: a;if(!a.node_ops.setattr)throw new x.ErrnoError(63);if(x.isDir(a.mode))throw new x.ErrnoError(31);if(!x.isFile(a.mode))throw new x.ErrnoError(28);var c=x.Za(a,"w");if(c)throw new x.ErrnoError(c);a.node_ops.setattr(a,{size:b,timestamp:Date.now()})},Oc:function(a,b){a=x.$a(a);if(!a)throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(28);x.truncate(a.node,b)},ld:function(a,b,c){a=x.lookupPath(a,{Ta:!0}).node;a.node_ops.setattr(a,{timestamp:Math.max(b,c)})},open:function(a,b,c,e, f){if(""===a)throw new x.ErrnoError(44);b="string"===typeof b?x.Zc(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=pb(a);try{g=x.lookupPath(a,{Ta:!(b&131072)}).node}catch(m){}}var k=!1;if(b&64)if(g){if(b&128)throw new x.ErrnoError(20);}else g=x.mknod(a,c,0),k=!0;if(!g)throw new x.ErrnoError(44);x.qb(g.mode)&&(b&=-513);if(b&65536&&!x.isDir(g.mode))throw new x.ErrnoError(54);if(!k&&(c=x.Xc(g,b)))throw new x.ErrnoError(c);b&512&&x.truncate(g,0);b&=-131713; -e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,N("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(m){N("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+m.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); +e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,O("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(m){O("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+m.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); a.Fb&&(a.Fb=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(b){throw b;}finally{x.Ec(a.fd)}a.fd=null},lb:function(a){return null===a.fd},llseek:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new x.ErrnoError(70);if(0!=c&&1!=c&&2!=c)throw new x.ErrnoError(28);a.position=a.stream_ops.llseek(a,b,c);a.kd=[];return a.position},read:function(a,b,c,e,f){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(1===(a.flags&2097155))throw new x.ErrnoError(8); if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.read)throw new x.ErrnoError(28);var g="undefined"!==typeof f;if(!g)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.read(a,b,c,e,f);g||(a.position+=b);return b},write:function(a,b,c,e,f,g){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(8);if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.write)throw new x.ErrnoError(28); -a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(m){N("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+m.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); +a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(m){O("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+m.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); if(!x.isFile(a.node.mode)&&!x.isDir(a.node.mode))throw new x.ErrnoError(43);if(!a.stream_ops.allocate)throw new x.ErrnoError(138);a.stream_ops.allocate(a,b,c)},mmap:function(a,b,c,e,f,g){if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new x.ErrnoError(2);if(1===(a.flags&2097155))throw new x.ErrnoError(2);if(!a.stream_ops.mmap)throw new x.ErrnoError(43);return a.stream_ops.mmap(a,b,c,e,f,g)},msync:function(a,b,c,e,f){return a&&a.stream_ops.msync?a.stream_ops.msync(a,b,c,e,f):0},vd:function(){return 0}, lc:function(a,b,c){if(!a.stream_ops.lc)throw new x.ErrnoError(59);return a.stream_ops.lc(a,b,c)},readFile:function(a,b){b=b||{};b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=x.open(a,b.flags);a=x.stat(a).size;var f=new Uint8Array(a);x.read(e,f,0,a,0);"utf8"===b.encoding?c=Na(f,0):"binary"===b.encoding&&(c=f);x.close(e);return c},writeFile:function(a,b,c){c=c||{};c.flags=c.flags||577;a= x.open(a,c.flags,c.mode);if("string"===typeof b){var e=new Uint8Array(d(b)+1);b=p(b,e,0,e.length);x.write(a,e,0,b,void 0,c.Cc)}else if(ArrayBuffer.isView(b))x.write(a,b,0,b.byteLength,void 0,c.Cc);else throw Error("Unsupported data type");x.close(a)},cwd:function(){return x.Yb},chdir:function(a){a=x.lookupPath(a,{Ta:!0});if(null===a.node)throw new x.ErrnoError(44);if(!x.isDir(a.node.mode))throw new x.ErrnoError(54);var b=x.Za(a.node,"x");if(b)throw new x.ErrnoError(b);x.Yb=a.path},Gc:function(){x.mkdir("/tmp"); @@ -162,11 +162,11 @@ try{c=x.lookupPath(a,{parent:!0}),e.bd=!0,e.dd=c.path,e.cd=c.node,e.name=W(a),c= rb("string"===typeof a?a:x.Ya(a),b):a;e=x.Eb(e,f);f=x.create(a,e);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var k=c.length;bthis.length-1||0>n)){var r=n%this.chunkSize;return this.hc(n/this.chunkSize|0)[r]}};g.prototype.sc=function(n){this.hc=n};g.prototype.Wb=function(){var n=new XMLHttpRequest;n.open("HEAD",c,!1);n.send(null);if(!(200<=n.status&&300>n.status||304===n.status))throw Error("Couldn't load "+ -c+". Status: "+n.status);var r=Number(n.getResponseHeader("Content-length")),w,B=(w=n.getResponseHeader("Accept-Ranges"))&&"bytes"===w;n=(w=n.getResponseHeader("Content-Encoding"))&&"gzip"===w;var E=1048576;B||(E=r);var A=this;A.sc(function(J){var Z=J*E,U=(J+1)*E-1;U=Math.min(U,r-1);if("undefined"===typeof A.pb[J]){var Ka=A.pb;if(Z>U)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var G=new XMLHttpRequest;G.open("GET", -c,!1);r!==E&&G.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(G.responseType="arraybuffer");G.overrideMimeType&&G.overrideMimeType("text/plain; charset=x-user-defined");G.send(null);if(!(200<=G.status&&300>G.status||304===G.status))throw Error("Couldn't load "+c+". Status: "+G.status);Z=void 0!==G.response?new Uint8Array(G.response||[]):ca(G.responseText||"",!0);Ka[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(n||!r)E=r=1,E=r=this.hc(0).length, -xa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=E;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var m=x.Hc(a,b,k,e, -f);k.Na?m.Na=k.Na:k.url&&(m.Na=null,m.url=k.url);Object.defineProperties(m,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(m.stream_ops).forEach(function(n){var r=m.stream_ops[n];q[n]=function(){x.cc(m);return r.apply(null,arguments)}});q.read=function(n,r,w,B,E){x.cc(m);n=n.node.Na;if(E>=n.length)return 0;B=Math.min(n.length-E,B);if(n.slice)for(var A=0;AU)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var H=new XMLHttpRequest;H.open("GET", +c,!1);r!==F&&H.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(H.responseType="arraybuffer");H.overrideMimeType&&H.overrideMimeType("text/plain; charset=x-user-defined");H.send(null);if(!(200<=H.status&&300>H.status||304===H.status))throw Error("Couldn't load "+c+". Status: "+H.status);Z=void 0!==H.response?new Uint8Array(H.response||[]):ca(H.responseText||"",!0);Ka[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(n||!r)F=r=1,F=r=this.hc(0).length, +xa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=F;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var m=x.Hc(a,b,k,e, +f);k.Na?m.Na=k.Na:k.url&&(m.Na=null,m.url=k.url);Object.defineProperties(m,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(m.stream_ops).forEach(function(n){var r=m.stream_ops[n];q[n]=function(){x.cc(m);return r.apply(null,arguments)}});q.read=function(n,r,w,B,F){x.cc(m);n=n.node.Na;if(F>=n.length)return 0;B=Math.min(n.length-F,B);if(n.slice)for(var A=0;A>2]=e.dev;R[c+4>>2]=0;R[c+8>>2]=e.ino;R[c+12>>2]=e.mode;R[c+16>>2]=e.nlink;R[c+20>>2]=e.uid;R[c+24>>2]=e.gid;R[c+28>>2]=e.rdev;R[c+32>>2]=0;S=[e.size>>>0,(T=e.size,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[c+40>>2]=S[0];R[c+44>>2]=S[1];R[c+48>>2]=4096;R[c+52>>2]=e.blocks;R[c+56>>2]=e.atime.getTime()/1E3|0;R[c+60>> @@ -174,21 +174,21 @@ function ac(a,b,c){try{var e=a(b)}catch(f){if(f&&f.node&&pb(b)!==pb(x.Ya(f.node) var ec={};function fc(){if(!gc){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",_:na||"./this.program"},b;for(b in ec)void 0===ec[b]?delete a[b]:a[b]=ec[b];var c=[];for(b in a)c.push(b+"="+a[b]);gc=c}return gc}var gc; function hc(a,b,c,e){a||(a=this);this.parent=a;this.mount=a.mount;this.mb=null;this.id=x.$c++;this.name=b;this.mode=c;this.node_ops={};this.stream_ops={};this.rdev=e}Object.defineProperties(hc.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},Tc:{get:function(){return x.isDir(this.mode)}},Ib:{get:function(){return x.qb(this.mode)}}}); x.FSNode=hc;x.oc();var Zb;function ca(a,b){var c=Array(d(a)+1);a=p(a,c,0,c.length);b&&(c.length=a);return c} -var jc={a:function(a,b,c,e){Q("Assertion failed: "+F(a)+", at: "+[b?F(b):"unknown filename",c,e?F(e):"unknown function"])},t:function(a,b){nb||(nb=!0,jb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), -6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[mb()+(a?4:0)>>2];R[b+40>>2]=a;return b},l:function(a,b){try{a=F(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},z:function(a,b){try{return a=F(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof -x.ErrnoError||Q(c),-c.Oa}},H:function(a,b,c){try{return a=F(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},A:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},b:function(a,b,c){bc=c;try{var e=Y(a);switch(b){case 0:var f=cc();return 0>f?-28:x.open(e.path, +var jc={a:function(a,b,c,e){Q("Assertion failed: "+G(a)+", at: "+[b?G(b):"unknown filename",c,e?G(e):"unknown function"])},t:function(a,b){nb||(nb=!0,jb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[mb()+(a?4:0)>>2];R[b+40>>2]=a;return b},l:function(a,b){try{a=G(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},z:function(a,b){try{return a=G(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof +x.ErrnoError||Q(c),-c.Oa}},H:function(a,b,c){try{return a=G(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},A:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},b:function(a,b,c){bc=c;try{var e=Y(a);switch(b){case 0:var f=cc();return 0>f?-28:x.open(e.path, e.flags,0,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=cc(),e.flags|=f,0;case 12:return f=cc(),Ca[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return R[ic()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},D:function(a,b){try{var c=Y(a);return ac(x.stat,c.path,b)}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},m:function(a,b,c){try{return x.Oc(a,c),0}catch(e){return"undefined"!== -typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},k:function(a,b){try{if(0===b)return-28;var c=x.cwd();if(b=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(m){return"undefined"!== -typeof x&&m instanceof x.ErrnoError||Q(m),-m.Oa}},E:function(a){try{return a=F(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},e:function(a,b){try{return a=F(a),ac(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},h:function(a){try{return a=F(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},u:function(){return 2147483648},o:function(a,b,c){t.copyWithin(a,b,b+c)},c:function(a){var b= +x.$a(c.fd);if(e&&c.ed&2){var f=c.flags,g=c.offset,k=t.slice(a,a+b);x.msync(e,k,g,b,f)}$b[a]=null;c.wb&&ea(c.Vc)}var m=0}else m=-28;return m}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),-q.Oa}},v:function(a,b,c){bc=c;try{var e=G(a),f=c?cc():0;return x.open(e,b,f).fd}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},J:function(a,b,c){try{a=G(a);if(0>=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(m){return"undefined"!== +typeof x&&m instanceof x.ErrnoError||Q(m),-m.Oa}},E:function(a){try{return a=G(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},e:function(a,b){try{return a=G(a),ac(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},h:function(a){try{return a=G(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},u:function(){return 2147483648},o:function(a,b,c){t.copyWithin(a,b,b+c)},c:function(a){var b= t.length;a>>>=0;if(2147483648=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);e=Math.max(a,e);0>>16);Qa();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},s:function(a){for(var b=dc();dc()-b>2]=g;for(g=0;g>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},r:function(a,b){var c= fc();R[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});R[b>>2]=e;return 0},f:function(a){try{var b=Y(a);x.close(b);return 0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},p:function(a,b){try{var c=Y(a),e=c.tty?2:x.isDir(c.mode)?3:x.fb(c.mode)?7:4;D[b>>0]=e;return 0}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),f.Oa}},i:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],m=x.read(f,D,R[b+8*g>>2],k,void 0); if(0>m){var q=-1;break a}a+=m;if(m>2]=q;return 0}catch(n){return"undefined"!==typeof x&&n instanceof x.ErrnoError||Q(n),n.Oa}},n:function(a,b,c,e,f){try{var g=Y(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;x.llseek(g,a,e);S=[g.position>>>0,(T=g.position,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[f>>2]=S[0];R[f+4>>2]=S[1];g.Fb&&0===a&&0===e&&(g.Fb=null);return 0}catch(k){return"undefined"!== typeof x&&k instanceof x.ErrnoError||Q(k),k.Oa}},j:function(a){try{var b=Y(a);return b.stream_ops&&b.stream_ops.fsync?-b.stream_ops.fsync(b):0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},F:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var m=-1;break a}a+=k}m=a}R[e>>2]=m;return 0}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),q.Oa}},g:function(a){var b=Date.now();R[a>>2]= -b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},K:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},C:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=F(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=ib(e);throw f+" : "+e;}e=f.Oa;R[ic()>>2]=e;e=-1}return e}}; -(function(){function a(f){Module.asm=f.exports;Fa=Module.asm.L;Qa();P=Module.asm.Da;Sa.unshift(Module.asm.M);Za()}function b(f){a(f.instance)}function c(f){return cb().then(function(g){return WebAssembly.instantiate(g,e)}).then(function(g){return g}).then(f,function(g){N("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:jc};Ya();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return N("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ba|| -"function"!==typeof WebAssembly.instantiateStreaming||$a()||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){N("wasm streaming compile failed: "+g);N("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; +b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},K:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},C:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=G(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=ib(e);throw f+" : "+e;}e=f.Oa;R[ic()>>2]=e;e=-1}return e}}; +(function(){function a(f){Module.asm=f.exports;Fa=Module.asm.L;Qa();P=Module.asm.Da;Sa.unshift(Module.asm.M);Za()}function b(f){a(f.instance)}function c(f){return cb().then(function(g){return WebAssembly.instantiate(g,e)}).then(function(g){return g}).then(f,function(g){O("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:jc};Ya();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return O("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ba|| +"function"!==typeof WebAssembly.instantiateStreaming||$a()||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){O("wasm streaming compile failed: "+g);O("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; Module._sqlite3_vfs_find=function(){return(Module._sqlite3_vfs_find=Module.asm.N).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.O).apply(null,arguments)};var ic=Module.___errno_location=function(){return(ic=Module.___errno_location=Module.asm.P).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.Q).apply(null,arguments)}; Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.R).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.S).apply(null,arguments)};Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.T).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.U).apply(null,arguments)}; Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.W).apply(null,arguments)};Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.X).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.Y).apply(null,arguments)}; @@ -202,7 +202,7 @@ Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.va).a Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.za).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.Aa).apply(null,arguments)};var ba=Module._malloc=function(){return(ba=Module._malloc=Module.asm.Ba).apply(null,arguments)},ea=Module._free=function(){return(ea=Module._free=Module.asm.Ca).apply(null,arguments)}; Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ea).apply(null,arguments)};Module._register_for_idb=function(){return(Module._register_for_idb=Module.asm.Fa).apply(null,arguments)}; var mb=Module.__get_tzname=function(){return(mb=Module.__get_tzname=Module.asm.Ga).apply(null,arguments)},lb=Module.__get_daylight=function(){return(lb=Module.__get_daylight=Module.asm.Ha).apply(null,arguments)},kb=Module.__get_timezone=function(){return(kb=Module.__get_timezone=Module.asm.Ia).apply(null,arguments)},ha=Module.stackSave=function(){return(ha=Module.stackSave=Module.asm.Ja).apply(null,arguments)},ja=Module.stackRestore=function(){return(ja=Module.stackRestore=Module.asm.Ka).apply(null, -arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},Bb=Module._memalign=function(){return(Bb=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ha(a):function(){return Ia(a,b,c,arguments)}};Module.UTF8ToString=F;Module.FS=x;Module.stackSave=ha;Module.stackRestore=ja;Module.stackAlloc=C;var kc;Xa=function lc(){kc||mc();kc||(Xa=lc)}; +arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},Bb=Module._memalign=function(){return(Bb=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ha(a):function(){return Ia(a,b,c,arguments)}};Module.UTF8ToString=G;Module.FS=x;Module.stackSave=ha;Module.stackRestore=ja;Module.stackAlloc=C;var kc;Xa=function lc(){kc||mc();kc||(Xa=lc)}; function mc(){function a(){if(!kc&&(kc=!0,Module.calledRun=!0,!Ga)){Module.noFSInit||x.kb.Hb||x.kb();x.kc=!1;hb(Sa);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();Ta.unshift(b)}hb(Ta)}}if(!(0>>0),this.Yc=!0,null!=h&&w.jb("/",this.filename,h,!0,!0)):"string"===typeof l&&null!=h?(this.filename= l,w.jb("/",this.filename,h,!0,!0)):this.filename=h;this.handleError(g(this.filename,e));this.db=z(e,"i32");Gb(this.db);this.ob={};this.Xa={}}var e=C(4),f=Module.cwrap,g=f("sqlite3_open","number",["string","number"]),k=f("sqlite3_close_v2","number",["number"]),n=f("sqlite3_exec","number",["number","string","number","number","number"]),q=f("sqlite3_changes","number",["number"]),m=f("sqlite3_prepare_v2","number",["number","string","number","number","number"]),r=f("sqlite3_sql","string",["number"]),x= -f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),E=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),aa=f("sqlite3_bind_int","number",["number","number","number"]),V=f("sqlite3_bind_parameter_index","number",["number","string"]),Pa=f("sqlite3_step", -"number",["number"]),G=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),gb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), +f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),F=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),aa=f("sqlite3_bind_int","number",["number","number","number"]),V=f("sqlite3_bind_parameter_index","number",["number","string"]),Pa=f("sqlite3_step", +"number",["number"]),H=f("sqlite3_errmsg","string",["number"]),Hb=f("sqlite3_column_count","number",["number"]),Ib=f("sqlite3_data_count","number",["number"]),Jb=f("sqlite3_column_double","number",["number","number"]),gb=f("sqlite3_column_text","string",["number","number"]),Kb=f("sqlite3_column_blob","number",["number","number"]),Lb=f("sqlite3_column_bytes","number",["number","number"]),Mb=f("sqlite3_column_type","number",["number","number"]),Nb=f("sqlite3_column_name","string",["number","number"]), Ob=f("sqlite3_reset","number",["number"]),Pb=f("sqlite3_clear_bindings","number",["number"]),Qb=f("sqlite3_finalize","number",["number"]),Rb=f("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Sb=f("sqlite3_value_type","number",["number"]),Tb=f("sqlite3_value_bytes","number",["number"]),Ub=f("sqlite3_value_text","string",["number"]),Vb=f("sqlite3_value_blob","number",["number"]),Wb=f("sqlite3_value_double","number",["number"]),Xb=f("sqlite3_result_double", "",["number","number"]),hb=f("sqlite3_result_null","",["number"]),Yb=f("sqlite3_result_text","",["number","string","number","number"]),Zb=f("sqlite3_result_blob","",["number","number","number","number"]),$b=f("sqlite3_result_int","",["number","number"]),ib=f("sqlite3_result_error","",["number","string","number"]),Gb=f("RegisterExtensionFunctions","number",["number"]);a.prototype.bind=function(h){if(!this.Qa)throw"Statement closed";this.reset();return Array.isArray(h)?this.yc(h):null!=h&&"object"=== typeof h?this.zc(h):!0};a.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Pa=1;var h=Pa(this.Qa);switch(h){case 100:return!0;case 101:return!1;default:throw this.db.handleError(h);}};a.prototype.ec=function(h){null==h&&(h=this.Pa,this.Pa+=1);return Jb(this.Qa,h)};a.prototype.Pc=function(h){null==h&&(h=this.Pa,this.Pa+=1);h=gb(this.Qa,h);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(h)};a.prototype.Rc=function(h){null==h&&(h=this.Pa,this.Pa+= 1);return gb(this.Qa,h)};a.prototype.getBlob=function(h){null==h&&(h=this.Pa,this.Pa+=1);var l=Lb(this.Qa,h);h=Kb(this.Qa,h);for(var u=new Uint8Array(l),v=0;v{let l=ma(function(y,H){y=va.get(y);return h.lock(y,H)?0:5}),u=ma(function(y,H){y=va.get(y);h.unlock(y,H);return 0}),v=ma(function(y,H){y=F(y);va.set(H,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...va.entries()].find(u=>u[1]===h);va.delete(l[0])};Module.reset_filesystem=()=>{w.root=null;w.oc()};Module.createFileData=(h,l)=>{w.jb("/",l,h,!0,!0)}};var na={},L;for(L in Module)Module.hasOwnProperty(L)&&(na[L]=Module[L]); -var oa="./this.program",pa="object"===typeof window,qa="function"===typeof importScripts,ra="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,wa,xa; +this.tb=z(l,"i32");var u=z(e,"i32");if(0===u)return this.Bb(),{done:!0};this.eb=new a(u,this.db);this.db.ob[u]=this.eb;return{value:this.eb,done:!1}}catch(v){throw this.Mb=G(this.tb),this.Bb(),v;}finally{ka(h)}};b.prototype.Bb=function(){fa(this.hb);this.hb=null};b.prototype.getRemainingSQL=function(){return null!==this.Mb?this.Mb:G(this.tb)};"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator&&(b.prototype[Symbol.iterator]=function(){return this});c.prototype.run=function(h,l){if(!this.db)throw"Database closed"; +if(l){h=this.prepare(h,l);try{h.step()}finally{h.free()}}else this.handleError(n(this.db,h,0,0,e));return this};c.prototype.exec=function(h,l,u){if(!this.db)throw"Database closed";var v=ia(),y=null;try{var K=d(h)+1,E=C(K);p(h,D,E,K);var ha=E;var ba=C(4);for(K=[];0!==z(ha,"i8");){ja(e);ja(ba);this.handleError(B(this.db,ha,-1,e,ba));var I=z(e,"i32");ha=z(ba,"i32");if(0!==I){E=null;y=new a(I,this);for(null!=l&&y.bind(l);y.step();)null===E&&(E={columns:y.getColumnNames(),values:[]},K.push(E)),E.values.push(y.get(null, +u));y.free()}}return K}catch(N){throw y&&y.free(),console.log("error when exec sql: "+h+", params: "+JSON.stringify(l)+", error: "+N),N;}finally{ka(v)}};c.prototype.each=function(h,l,u,v,y){"function"===typeof l&&(v=u,u=l,l=void 0);h=this.prepare(h,l);try{for(;h.step();)u(h.getAsObject(null,y))}finally{h.free()}if("function"===typeof v)return v()};c.prototype.prepare=function(h,l){ja(e);this.handleError(m(this.db,h,-1,e,0));h=z(e,"i32");if(0===h)throw"Nothing to prepare";var u=new a(h,this);null!= +l&&u.bind(l);return this.ob[h]=u};c.prototype.iterateStatements=function(h){return new b(h,this)};c.prototype["export"]=function(){Object.values(this.ob).forEach(function(l){l.free()});Object.values(this.Xa).forEach(la);this.Xa={};this.handleError(k(this.db));var h=w.readFile(this.filename,{encoding:"binary"});this.handleError(g(this.filename,e));this.db=z(e,"i32");return h};c.prototype.close=function(){null!==this.db&&(Object.values(this.ob).forEach(function(h){h.free()}),Object.values(this.Xa).forEach(la), +this.Xa={},this.handleError(k(this.db)),this.Yc&&w.unlink("/"+this.filename),this.db=null)};c.prototype.handleError=function(h){if(0===h)return null;h=H(this.db);throw Error(h);};c.prototype.getRowsModified=function(){return q(this.db)};c.prototype.create_function=function(h,l){Object.prototype.hasOwnProperty.call(this.Xa,h)&&(la(this.Xa[h]),delete this.Xa[h]);var u=ma(function(v,y,K){for(var E,ha=[],ba=0;ba{let l=ma(function(y,K){y=va.get(y);return h.lock(y,K)?0:5}),u=ma(function(y,K){y=va.get(y);h.unlock(y,K);return 0}),v=ma(function(y,K){y=G(y);va.set(K,y)});Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...va.entries()].find(u=>u[1]===h);va.delete(l[0])};Module.reset_filesystem=()=>{w.root=null;w.oc()};Module.createFileData=(h,l)=>{w.jb("/",l,h,!0,!0)}};var na={},L; +for(L in Module)Module.hasOwnProperty(L)&&(na[L]=Module[L]);var oa="./this.program",pa="object"===typeof window,qa="function"===typeof importScripts,ra="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,wa,xa; if(ra)M=qa?require("path").dirname(M)+"/":__dirname+"/",sa=function(a,b){var c=ya(a);if(c)return b?c:c.toString();wa||(wa=require("fs"));xa||(xa=require("path"));a=xa.normalize(a);return wa.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){var e=ya(a);e&&b(e);wa||(wa=require("fs"));xa||(xa=require("path"));a=xa.normalize(a);wa.readFile(a,function(f,g){f?c(f):b(g.buffer)})},1>0]=0;break;case "i8":D[a>>0]=0;break;case "i16":La[a>>1]=0;break;case "i32":R[a>>2]=0;break;case "i64":S=[0,(T=0,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[a>>2]=S[0];R[a+4>>2]=S[1];break;case "float":Ma[a>>2]=0;break;case "double":Na[a>>3]=0;break;default:Q("invalid type for setValue: "+b)}} function z(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return La[a>>1];case "i32":return R[a>>2];case "i64":return R[a>>2];case "float":return Ma[a>>2];case "double":return Na[a>>3];default:Q("invalid type for getValue: "+b)}return null}var Oa,Qa=!1;function assert(a,b){a||Q("Assertion failed: "+b)}function Ra(a){var b=Module["_"+a];assert(b,"Cannot call unknown function "+a+", make sure it is exported");return b} -function Sa(a,b,c,e){var f={string:function(m){var r=0;if(null!==m&&void 0!==m&&0!==m){var x=(m.length<<2)+1;r=C(x);p(m,t,r,x)}return r},array:function(m){var r=C(m.length);D.set(m,r);return r}};a=Ra(a);var g=[],k=0;if(e)for(var n=0;n=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function F(a,b){return a?Wa(t,a,b):""} +function Wa(a,b,c){var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function G(a,b){return a?Wa(t,a,b):""} function p(a,b,c,e){if(!(0=k){var n=a.charCodeAt(++g);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f} function d(a){for(var b=0,c=0;c=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function Xa(a){var b=d(a)+1,c=ca(b);c&&p(a,D,c,b);return c}var Ya,D,t,La,R,Ma,Na,Ga=Module.INITIAL_MEMORY||16777216;Module.wasmMemory?Oa=Module.wasmMemory:Oa=new Ea;Oa&&(Ya=Oa.buffer);Ga=Ya.byteLength;var U=Ya;Ya=U;Module.HEAP8=D=new Int8Array(U);Module.HEAP16=La=new Int16Array(U);Module.HEAP32=R=new Int32Array(U); Module.HEAPU8=t=new Uint8Array(U);Module.HEAPU16=new Uint16Array(U);Module.HEAPU32=new Uint32Array(U);Module.HEAPF32=Ma=new Float32Array(U);Module.HEAPF64=Na=new Float64Array(U);var P,Za=[],$a=[],ab=[];function bb(){var a=Module.preRun.shift();Za.unshift(a)}var cb=0,db=null,eb=null;function fb(){cb++;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb)} -function kb(){cb--;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb);if(0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var a=eb;eb=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);N(a);Qa=!0;throw new Ka("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",W;W="sql-asm.wasm";if(!W.startsWith(lb)){var mb=W;W=Module.locateFile?Module.locateFile(mb,M):M+mb} +function kb(){cb--;Module.monitorRunDependencies&&Module.monitorRunDependencies(cb);if(0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var a=eb;eb=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);O(a);Qa=!0;throw new Ka("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}var lb="data:application/octet-stream;base64,",W;W="sql-asm.wasm";if(!W.startsWith(lb)){var mb=W;W=Module.locateFile?Module.locateFile(mb,M):M+mb} function nb(){var a=W;try{if(a==W&&Da)return new Uint8Array(Da);var b=ya(a);if(b)return b;if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(c){Q(c)}} function ob(){if(!Da&&(pa||qa)){if("function"===typeof fetch&&!W.startsWith("file://"))return fetch(W,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+W+"'";return a.arrayBuffer()}).catch(function(){return nb()});if(ta)return new Promise(function(a,b){ta(W,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return nb()})}var T,S; function pb(a){for(;0q?[]:k.slice(n,q-n+1)}a=Bb(a).substr(1);b=Bb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g>8},td:function(a){return a&255},bb:function(a,b){return a<<8|b},Qb:function(a,b){w.Zb[a]={stream_ops:b}},Qc:function(a){return w.Zb[a]},dc:function(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},pc:function(a,b){function c(k){w.ub--;return b(k)}function e(k){if(k){if(!e.Lc)return e.Lc=!0,c(k)}else++g>=f.length&&c(null)} -"function"===typeof a&&(b=a,a=!1);w.ub++;1b)throw new w.ErrnoError(28);a="string"===typeof a?w.lookupPath(a,{Ta:!0}).node: a;if(!a.node_ops.setattr)throw new w.ErrnoError(63);if(w.isDir(a.mode))throw new w.ErrnoError(31);if(!w.isFile(a.mode))throw new w.ErrnoError(28);var c=w.Za(a,"w");if(c)throw new w.ErrnoError(c);a.node_ops.setattr(a,{size:b,timestamp:Date.now()})},Oc:function(a,b){a=w.$a(a);if(!a)throw new w.ErrnoError(8);if(0===(a.flags&2097155))throw new w.ErrnoError(28);w.truncate(a.node,b)},ld:function(a,b,c){a=w.lookupPath(a,{Ta:!0}).node;a.node_ops.setattr(a,{timestamp:Math.max(b,c)})},open:function(a,b,c,e, f){if(""===a)throw new w.ErrnoError(44);b="string"===typeof b?w.Zc(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=xb(a);try{g=w.lookupPath(a,{Ta:!(b&131072)}).node}catch(n){}}var k=!1;if(b&64)if(g){if(b&128)throw new w.ErrnoError(20);}else g=w.mknod(a,c,0),k=!0;if(!g)throw new w.ErrnoError(44);w.qb(g.mode)&&(b&=-513);if(b&65536&&!w.isDir(g.mode))throw new w.ErrnoError(54);if(!k&&(c=w.Xc(g,b)))throw new w.ErrnoError(c);b&512&&w.truncate(g,0);b&=-131713; -e=w.Kc({node:g,path:w.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(w.Ob||(w.Ob={}),a in w.Ob||(w.Ob[a]=1,N("FS.trackingDelegate error on read file: "+a)));try{w.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=w.qc.nc.tc),0!==(b&2097155)&&(f|=w.qc.nc.uc),w.Sa.onOpenFile(a,f))}catch(n){N("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(w.lb(a))throw new w.ErrnoError(8); +e=w.Kc({node:g,path:w.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(w.Ob||(w.Ob={}),a in w.Ob||(w.Ob[a]=1,O("FS.trackingDelegate error on read file: "+a)));try{w.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=w.qc.nc.tc),0!==(b&2097155)&&(f|=w.qc.nc.uc),w.Sa.onOpenFile(a,f))}catch(n){O("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+n.message)}return e},close:function(a){if(w.lb(a))throw new w.ErrnoError(8); a.Fb&&(a.Fb=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(b){throw b;}finally{w.Ec(a.fd)}a.fd=null},lb:function(a){return null===a.fd},llseek:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new w.ErrnoError(70);if(0!=c&&1!=c&&2!=c)throw new w.ErrnoError(28);a.position=a.stream_ops.llseek(a,b,c);a.kd=[];return a.position},read:function(a,b,c,e,f){if(0>e||0>f)throw new w.ErrnoError(28);if(w.lb(a))throw new w.ErrnoError(8);if(1===(a.flags&2097155))throw new w.ErrnoError(8); if(w.isDir(a.node.mode))throw new w.ErrnoError(31);if(!a.stream_ops.read)throw new w.ErrnoError(28);var g="undefined"!==typeof f;if(!g)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.read(a,b,c,e,f);g||(a.position+=b);return b},write:function(a,b,c,e,f,g){if(0>e||0>f)throw new w.ErrnoError(28);if(w.lb(a))throw new w.ErrnoError(8);if(0===(a.flags&2097155))throw new w.ErrnoError(8);if(w.isDir(a.node.mode))throw new w.ErrnoError(31);if(!a.stream_ops.write)throw new w.ErrnoError(28); -a.seekable&&a.flags&1024&&w.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&w.Sa.onWriteToFile)w.Sa.onWriteToFile(a.path)}catch(n){N("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(0>b||0>=c)throw new w.ErrnoError(28);if(0===(a.flags&2097155))throw new w.ErrnoError(8); +a.seekable&&a.flags&1024&&w.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new w.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&w.Sa.onWriteToFile)w.Sa.onWriteToFile(a.path)}catch(n){O("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+n.message)}return b},allocate:function(a,b,c){if(w.lb(a))throw new w.ErrnoError(8);if(0>b||0>=c)throw new w.ErrnoError(28);if(0===(a.flags&2097155))throw new w.ErrnoError(8); if(!w.isFile(a.node.mode)&&!w.isDir(a.node.mode))throw new w.ErrnoError(43);if(!a.stream_ops.allocate)throw new w.ErrnoError(138);a.stream_ops.allocate(a,b,c)},mmap:function(a,b,c,e,f,g){if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new w.ErrnoError(2);if(1===(a.flags&2097155))throw new w.ErrnoError(2);if(!a.stream_ops.mmap)throw new w.ErrnoError(43);return a.stream_ops.mmap(a,b,c,e,f,g)},msync:function(a,b,c,e,f){return a&&a.stream_ops.msync?a.stream_ops.msync(a,b,c,e,f):0},vd:function(){return 0}, lc:function(a,b,c){if(!a.stream_ops.lc)throw new w.ErrnoError(59);return a.stream_ops.lc(a,b,c)},readFile:function(a,b){b=b||{};b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=w.open(a,b.flags);a=w.stat(a).size;var f=new Uint8Array(a);w.read(e,f,0,a,0);"utf8"===b.encoding?c=Wa(f,0):"binary"===b.encoding&&(c=f);w.close(e);return c},writeFile:function(a,b,c){c=c||{};c.flags=c.flags||577;a= w.open(a,c.flags,c.mode);if("string"===typeof b){var e=new Uint8Array(d(b)+1);b=p(b,e,0,e.length);w.write(a,e,0,b,void 0,c.Cc)}else if(ArrayBuffer.isView(b))w.write(a,b,0,b.byteLength,void 0,c.Cc);else throw Error("Unsupported data type");w.close(a)},cwd:function(){return w.Yb},chdir:function(a){a=w.lookupPath(a,{Ta:!0});if(null===a.node)throw new w.ErrnoError(44);if(!w.isDir(a.node.mode))throw new w.ErrnoError(54);var b=w.Za(a.node,"x");if(b)throw new w.ErrnoError(b);w.Yb=a.path},Gc:function(){w.mkdir("/tmp"); @@ -190,11 +190,11 @@ try{c=w.lookupPath(a,{parent:!0}),e.bd=!0,e.dd=c.path,e.cd=c.node,e.name=X(a),c= zb("string"===typeof a?a:w.Ya(a),b):a;e=w.Eb(e,f);f=w.create(a,e);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var k=c.length;bthis.length-1||0>m)){var r=m%this.chunkSize;return this.hc(m/this.chunkSize|0)[r]}};g.prototype.sc=function(m){this.hc=m};g.prototype.Wb=function(){var m=new XMLHttpRequest;m.open("HEAD",c,!1);m.send(null);if(!(200<=m.status&&300>m.status||304===m.status))throw Error("Couldn't load "+ -c+". Status: "+m.status);var r=Number(m.getResponseHeader("Content-length")),x,B=(x=m.getResponseHeader("Accept-Ranges"))&&"bytes"===x;m=(x=m.getResponseHeader("Content-Encoding"))&&"gzip"===x;var E=1048576;B||(E=r);var A=this;A.sc(function(J){var aa=J*E,V=(J+1)*E-1;V=Math.min(V,r-1);if("undefined"===typeof A.pb[J]){var Pa=A.pb;if(aa>V)throw Error("invalid range ("+aa+", "+V+") or no bytes requested!");if(V>r-1)throw Error("only "+r+" bytes available! programmer error!");var G=new XMLHttpRequest; -G.open("GET",c,!1);r!==E&&G.setRequestHeader("Range","bytes="+aa+"-"+V);"undefined"!=typeof Uint8Array&&(G.responseType="arraybuffer");G.overrideMimeType&&G.overrideMimeType("text/plain; charset=x-user-defined");G.send(null);if(!(200<=G.status&&300>G.status||304===G.status))throw Error("Couldn't load "+c+". Status: "+G.status);aa=void 0!==G.response?new Uint8Array(G.response||[]):da(G.responseText||"",!0);Pa[J]=aa}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m|| -!r)E=r=1,E=r=this.hc(0).length,Aa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=E;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!qa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1, -url:c};var n=w.Hc(a,b,k,e,f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){w.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,x,B,E){w.cc(n);m=m.node.Na;if(E>=m.length)return 0;B=Math.min(m.length-E,B);if(m.slice)for(var A=0;AV)throw Error("invalid range ("+aa+", "+V+") or no bytes requested!");if(V>r-1)throw Error("only "+r+" bytes available! programmer error!");var H=new XMLHttpRequest; +H.open("GET",c,!1);r!==F&&H.setRequestHeader("Range","bytes="+aa+"-"+V);"undefined"!=typeof Uint8Array&&(H.responseType="arraybuffer");H.overrideMimeType&&H.overrideMimeType("text/plain; charset=x-user-defined");H.send(null);if(!(200<=H.status&&300>H.status||304===H.status))throw Error("Couldn't load "+c+". Status: "+H.status);aa=void 0!==H.response?new Uint8Array(H.response||[]):da(H.responseText||"",!0);Pa[J]=aa}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(m|| +!r)F=r=1,F=r=this.hc(0).length,Aa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=F;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!qa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1, +url:c};var n=w.Hc(a,b,k,e,f);k.Na?n.Na=k.Na:k.url&&(n.Na=null,n.url=k.url);Object.defineProperties(n,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(n.stream_ops).forEach(function(m){var r=n.stream_ops[m];q[m]=function(){w.cc(n);return r.apply(null,arguments)}});q.read=function(m,r,x,B,F){w.cc(n);m=m.node.Na;if(F>=m.length)return 0;B=Math.min(m.length-F,B);if(m.slice)for(var A=0;A>4; f=(f&15)<<4|g>>2;var n=(g&3)<<6|k;b+=String.fromCharCode(e);64!==g&&(b+=String.fromCharCode(f));64!==k&&(b+=String.fromCharCode(n))}while(c>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), -6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=F(a);if(b&-8)var c=-28;else{var e;(e=w.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&w.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=F(a),w.chmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof -w.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=F(a),w.chown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return w.fchmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return w.fchown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Z(a);switch(b){case 0:var f=kc();return 0>f?-28:w.open(e.path, +var Ia={b:function(a,b,c,e){Q("Assertion failed: "+G(a)+", at: "+[b?G(b):"unknown filename",c,e?G(e):"unknown function"])},u:function(a,b){vb||(vb=!0,rb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[ub()+(a?4:0)>>2];R[b+40>>2]=a;return b},m:function(a,b){try{a=G(a);if(b&-8)var c=-28;else{var e;(e=w.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&w.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),-f.Oa}},A:function(a,b){try{return a=G(a),w.chmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof +w.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return a=G(a),w.chown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},B:function(a,b){try{return w.fchmod(a,b),0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},J:function(a,b,c){try{return w.fchown(a,b,c),0}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},c:function(a,b,c){jc=c;try{var e=Z(a);switch(b){case 0:var f=kc();return 0>f?-28:w.open(e.path, e.flags,0,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=kc(),e.flags|=f,0;case 12:return f=kc(),La[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return R[rc()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof w&&g instanceof w.ErrnoError||Q(g),-g.Oa}},E:function(a,b){try{var c=Z(a);return ic(w.stat,c.path,b)}catch(e){return"undefined"!==typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},n:function(a,b,c){try{return w.Oc(a,c),0}catch(e){return"undefined"!== -typeof w&&e instanceof w.ErrnoError||Q(e),-e.Oa}},l:function(a,b){try{if(0===b)return-28;var c=w.cwd();if(b=c)var e=-28;else{var f=w.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== -typeof w&&n instanceof w.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=F(a),w.rmdir(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=F(a),ic(w.stat,a,b)}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=F(a),w.unlink(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},v:function(){return t.length},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(){Q("OOM")}, +w.$a(c.fd);if(e&&c.ed&2){var f=c.flags,g=c.offset,k=t.slice(a,a+b);w.msync(e,k,g,b,f)}hc[a]=null;c.wb&&fa(c.Vc)}var n=0}else n=-28;return n}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),-q.Oa}},w:function(a,b,c){jc=c;try{var e=G(a),f=c?kc():0;return w.open(e,b,f).fd}catch(g){return"undefined"!==typeof w&&g instanceof w.ErrnoError||Q(g),-g.Oa}},K:function(a,b,c){try{a=G(a);if(0>=c)var e=-28;else{var f=w.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(n){return"undefined"!== +typeof w&&n instanceof w.ErrnoError||Q(n),-n.Oa}},F:function(a){try{return a=G(a),w.rmdir(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},f:function(a,b){try{return a=G(a),ic(w.stat,a,b)}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),-c.Oa}},i:function(a){try{return a=G(a),w.unlink(a),0}catch(b){return"undefined"!==typeof w&&b instanceof w.ErrnoError||Q(b),-b.Oa}},v:function(){return t.length},p:function(a,b,c){t.copyWithin(a,b,b+c)},d:function(){Q("OOM")}, t:function(a){for(var b=lc();lc()-b>2]=g;for(g=0;g>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},s:function(a,b){var c=nc();R[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});R[b>>2]=e;return 0},g:function(a){try{var b=Z(a);w.close(b);return 0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),c.Oa}},q:function(a,b){try{var c=Z(a),e=c.tty?2:w.isDir(c.mode)?3:w.fb(c.mode)? 7:4;D[b>>0]=e;return 0}catch(f){return"undefined"!==typeof w&&f instanceof w.ErrnoError||Q(f),f.Oa}},j:function(a,b,c,e){try{a:{for(var f=Z(a),g=a=0;g>2],n=w.read(f,D,R[b+8*g>>2],k,void 0);if(0>n){var q=-1;break a}a+=n;if(n>2]=q;return 0}catch(m){return"undefined"!==typeof w&&m instanceof w.ErrnoError||Q(m),m.Oa}},o:function(a,b,c,e,f){try{var g=Z(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;w.llseek(g,a,e);S=[g.position>>> 0,(T=g.position,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[f>>2]=S[0];R[f+4>>2]=S[1];g.Fb&&0===a&&0===e&&(g.Fb=null);return 0}catch(k){return"undefined"!==typeof w&&k instanceof w.ErrnoError||Q(k),k.Oa}},k:function(a){try{var b=Z(a);return b.stream_ops&&b.stream_ops.fsync?-b.stream_ops.fsync(b):0}catch(c){return"undefined"!==typeof w&&c instanceof w.ErrnoError||Q(c),c.Oa}},G:function(a,b,c,e){try{a:{for(var f=Z(a),g= -a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var n=-1;break a}a+=k}n=a}R[e>>2]=n;return 0}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),q.Oa}},h:function(a){var b=Date.now();R[a>>2]=b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Oa,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=F(a);try{w.ld(a,b,b);var e=0}catch(f){if(!(f instanceof w.ErrnoError)){b:{e= +a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var n=-1;break a}a+=k}n=a}R[e>>2]=n;return 0}catch(q){return"undefined"!==typeof w&&q instanceof w.ErrnoError||Q(q),q.Oa}},h:function(a){var b=Date.now();R[a>>2]=b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},a:Oa,L:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},D:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=G(a);try{w.ld(a,b,b);var e=0}catch(f){if(!(f instanceof w.ErrnoError)){b:{e= Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=qb(e);throw f+" : "+e;}e=f.Oa;R[rc()>>2]=e;e=-1}return e}}; -(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ja()}).then(function(g){return g}).then(f,function(g){N("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ia};fb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return N("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Da||"function"!==typeof WebAssembly.instantiateStreaming|| -W.startsWith(lb)||W.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){N("wasm streaming compile failed: "+g);N("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; +(function(){function a(f){Module.asm=f.exports;P=Module.asm.Da;$a.unshift(Module.asm.M);kb()}function b(f){a(f.instance)}function c(f){return ob().then(function(){return Ja()}).then(function(g){return g}).then(f,function(g){O("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:Ia};fb();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return O("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Da||"function"!==typeof WebAssembly.instantiateStreaming|| +W.startsWith(lb)||W.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){O("wasm streaming compile failed: "+g);O("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; Module._sqlite3_vfs_find=function(){return(Module._sqlite3_vfs_find=Module.asm.N).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.O).apply(null,arguments)};var rc=Module.___errno_location=function(){return(rc=Module.___errno_location=Module.asm.P).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.Q).apply(null,arguments)}; Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.R).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.S).apply(null,arguments)};Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.T).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.U).apply(null,arguments)}; Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.W).apply(null,arguments)};Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.X).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.Y).apply(null,arguments)}; @@ -234,7 +234,7 @@ Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.va).a Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.za).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.Aa).apply(null,arguments)};var ca=Module._malloc=function(){return(ca=Module._malloc=Module.asm.Ba).apply(null,arguments)},fa=Module._free=function(){return(fa=Module._free=Module.asm.Ca).apply(null,arguments)}; Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ea).apply(null,arguments)};Module._register_for_idb=function(){return(Module._register_for_idb=Module.asm.Fa).apply(null,arguments)}; var ub=Module.__get_tzname=function(){return(ub=Module.__get_tzname=Module.asm.Ga).apply(null,arguments)},tb=Module.__get_daylight=function(){return(tb=Module.__get_daylight=Module.asm.Ha).apply(null,arguments)},sb=Module.__get_timezone=function(){return(sb=Module.__get_timezone=Module.asm.Ia).apply(null,arguments)},ia=Module.stackSave=function(){return(ia=Module.stackSave=Module.asm.Ja).apply(null,arguments)},ka=Module.stackRestore=function(){return(ka=Module.stackRestore=Module.asm.Ka).apply(null, -arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ra(a):function(){return Sa(a,b,c,arguments)}};Module.UTF8ToString=F;Module.FS=w;Module.stackSave=ia;Module.stackRestore=ka;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; +arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},ec=Module._memalign=function(){return(ec=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ra(a):function(){return Sa(a,b,c,arguments)}};Module.UTF8ToString=G;Module.FS=w;Module.stackSave=ia;Module.stackRestore=ka;Module.stackAlloc=C;var sc;eb=function tc(){sc||uc();sc||(eb=tc)}; function uc(){function a(){if(!sc&&(sc=!0,Module.calledRun=!0,!Qa)){Module.noFSInit||w.kb.Hb||w.kb();w.kc=!1;pb($a);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();ab.unshift(b)}pb(ab)}}if(!(0>>0),this.Yc=!0,null!=h&&x.jb("/",this.filename,h,!0,!0)):"string"===typeof l&&null!=h?(this.filename= l,x.jb("/",this.filename,h,!0,!0)):this.filename=h;this.handleError(g(this.filename,e));this.db=z(e,"i32");Db(this.db);this.ob={};this.Xa={}}var e=C(4),f=Module.cwrap,g=f("sqlite3_open","number",["string","number"]),k=f("sqlite3_close_v2","number",["number"]),m=f("sqlite3_exec","number",["number","string","number","number","number"]),q=f("sqlite3_changes","number",["number"]),n=f("sqlite3_prepare_v2","number",["number","string","number","number","number"]),r=f("sqlite3_sql","string",["number"]),w= -f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),E=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Ka=f("sqlite3_step", -"number",["number"]),G=f("sqlite3_errmsg","string",["number"]),Eb=f("sqlite3_column_count","number",["number"]),Fb=f("sqlite3_data_count","number",["number"]),Gb=f("sqlite3_column_double","number",["number","number"]),db=f("sqlite3_column_text","string",["number","number"]),Hb=f("sqlite3_column_blob","number",["number","number"]),Ib=f("sqlite3_column_bytes","number",["number","number"]),Jb=f("sqlite3_column_type","number",["number","number"]),Kb=f("sqlite3_column_name","string",["number","number"]), +f("sqlite3_normalized_sql","string",["number"]),B=f("sqlite3_prepare_v2","number",["number","number","number","number","number"]),F=f("sqlite3_bind_text","number",["number","number","number","number","number"]),A=f("sqlite3_bind_blob","number",["number","number","number","number","number"]),J=f("sqlite3_bind_double","number",["number","number","number"]),Z=f("sqlite3_bind_int","number",["number","number","number"]),U=f("sqlite3_bind_parameter_index","number",["number","string"]),Ka=f("sqlite3_step", +"number",["number"]),H=f("sqlite3_errmsg","string",["number"]),Eb=f("sqlite3_column_count","number",["number"]),Fb=f("sqlite3_data_count","number",["number"]),Gb=f("sqlite3_column_double","number",["number","number"]),db=f("sqlite3_column_text","string",["number","number"]),Hb=f("sqlite3_column_blob","number",["number","number"]),Ib=f("sqlite3_column_bytes","number",["number","number"]),Jb=f("sqlite3_column_type","number",["number","number"]),Kb=f("sqlite3_column_name","string",["number","number"]), Lb=f("sqlite3_reset","number",["number"]),Mb=f("sqlite3_clear_bindings","number",["number"]),Nb=f("sqlite3_finalize","number",["number"]),Ob=f("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Pb=f("sqlite3_value_type","number",["number"]),Qb=f("sqlite3_value_bytes","number",["number"]),Rb=f("sqlite3_value_text","string",["number"]),Sb=f("sqlite3_value_blob","number",["number"]),Tb=f("sqlite3_value_double","number",["number"]),Ub=f("sqlite3_result_double", "",["number","number"]),eb=f("sqlite3_result_null","",["number"]),Vb=f("sqlite3_result_text","",["number","string","number","number"]),Wb=f("sqlite3_result_blob","",["number","number","number","number"]),Xb=f("sqlite3_result_int","",["number","number"]),fb=f("sqlite3_result_error","",["number","string","number"]),Db=f("RegisterExtensionFunctions","number",["number"]);a.prototype.bind=function(h){if(!this.Qa)throw"Statement closed";this.reset();return Array.isArray(h)?this.yc(h):null!=h&&"object"=== typeof h?this.zc(h):!0};a.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Pa=1;var h=Ka(this.Qa);switch(h){case 100:return!0;case 101:return!1;default:throw this.db.handleError(h);}};a.prototype.ec=function(h){null==h&&(h=this.Pa,this.Pa+=1);return Gb(this.Qa,h)};a.prototype.Pc=function(h){null==h&&(h=this.Pa,this.Pa+=1);h=db(this.Qa,h);if("function"!==typeof BigInt)throw Error("BigInt is not supported");return BigInt(h)};a.prototype.Rc=function(h){null==h&&(h=this.Pa,this.Pa+= 1);return db(this.Qa,h)};a.prototype.getBlob=function(h){null==h&&(h=this.Pa,this.Pa+=1);var l=Ib(this.Qa,h);h=Hb(this.Qa,h);for(var u=new Uint8Array(l),v=0;v{let l=la(function(y,H){y=ra.get(y);return h.lock(y,H)?0:5},"iii"),u=la(function(y,H){y=ra.get(y);h.unlock(y,H);return 0},"iii"),v=la(function(y,H){y=F(y);ra.set(H,y)},"vii");Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...ra.entries()].find(u=>u[1]===h);ra.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L;for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]); -var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,M="",sa,ta,ua,va,wa; -if(qa)M=pa?require("path").dirname(M)+"/":__dirname+"/",sa=function(a,b){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);return va.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);va.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1{let l=la(function(y,K){y=ra.get(y);return h.lock(y,K)?0:5},"iii"),u=la(function(y,K){y=ra.get(y);h.unlock(y,K);return 0},"iii"),v=la(function(y,K){y=G(y);ra.set(K,y)},"vii");Module._register_for_idb(l,u,v)};Module.cleanup_file=h=>{let l=[...ra.entries()].find(u=>u[1]===h);ra.delete(l[0])};Module.reset_filesystem=()=>{x.root=null;x.oc()};Module.createFileData=(h,l)=>{x.jb("/",l,h,!0,!0)}};var ma={},L; +for(L in Module)Module.hasOwnProperty(L)&&(ma[L]=Module[L]);var na="./this.program",oa="object"===typeof window,pa="function"===typeof importScripts,qa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,N="",sa,ta,ua,va,wa; +if(qa)N=pa?require("path").dirname(N)+"/":__dirname+"/",sa=function(a,b){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);return va.readFileSync(a,b?null:"utf8")},ua=function(a){a=sa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},ta=function(a,b,c){va||(va=require("fs"));wa||(wa=require("path"));a=wa.normalize(a);va.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1>0]=0;break;case "i8":D[a>>0]=0;break;case "i16":Ca[a>>1]=0;break;case "i32":R[a>>2]=0;break;case "i64":S=[0,(T=0,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[a>>2]=S[0];R[a+4>>2]=S[1];break;case "float":Da[a>>2]=0;break;case "double":Ea[a>>3]=0;break;default:Q("invalid type for setValue: "+b)}} function z(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return Ca[a>>1];case "i32":return R[a>>2];case "i64":return R[a>>2];case "float":return Da[a>>2];case "double":return Ea[a>>3];default:Q("invalid type for getValue: "+b)}return null}var Fa,Ga=!1;function assert(a,b){a||Q("Assertion failed: "+b)}function Ha(a){var b=Module["_"+a];assert(b,"Cannot call unknown function "+a+", make sure it is exported");return b} -function Ia(a,b,c,e){var f={string:function(n){var r=0;if(null!==n&&void 0!==n&&0!==n){var w=(n.length<<2)+1;r=C(w);p(n,t,r,w)}return r},array:function(n){var r=C(n.length);D.set(n,r);return r}};a=Ha(a);var g=[],k=0;if(e)for(var m=0;m=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function F(a,b){return a?Na(t,a,b):""} +function Na(a,b,c){var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}function G(a,b){return a?Na(t,a,b):""} function p(a,b,c,e){if(!(0=k){var m=a.charCodeAt(++g);k=65536+((k&1023)<<10)|m&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f} function d(a){for(var b=0,c=0;c=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function Oa(a){var b=d(a)+1,c=ba(b);c&&p(a,D,c,b);return c}var Pa,D,t,Ca,R,Da,Ea; function Qa(){var a=Fa.buffer;Pa=a;Module.HEAP8=D=new Int8Array(a);Module.HEAP16=Ca=new Int16Array(a);Module.HEAP32=R=new Int32Array(a);Module.HEAPU8=t=new Uint8Array(a);Module.HEAPU16=new Uint16Array(a);Module.HEAPU32=new Uint32Array(a);Module.HEAPF32=Da=new Float32Array(a);Module.HEAPF64=Ea=new Float64Array(a)}var P,Ra=[],Sa=[],Ta=[];function Ua(){var a=Module.preRun.shift();Ra.unshift(a)}var Va=0,Wa=null,Xa=null; -function Ya(){Va++;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va)}function Za(){Va--;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va);if(0==Va&&(null!==Wa&&(clearInterval(Wa),Wa=null),Xa)){var a=Xa;Xa=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);N(a);Ga=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");} -function $a(){return V.startsWith("data:application/octet-stream;base64,")}var V;V="sql-wasm.wasm";if(!$a()){var ab=V;V=Module.locateFile?Module.locateFile(ab,M):M+ab}function bb(){var a=V;try{if(a==V&&Ba)return new Uint8Array(Ba);if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(b){Q(b)}} +function Ya(){Va++;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va)}function Za(){Va--;Module.monitorRunDependencies&&Module.monitorRunDependencies(Va);if(0==Va&&(null!==Wa&&(clearInterval(Wa),Wa=null),Xa)){var a=Xa;Xa=null;a()}}Module.preloadedImages={};Module.preloadedAudios={};function Q(a){if(Module.onAbort)Module.onAbort(a);O(a);Ga=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");} +function $a(){return V.startsWith("data:application/octet-stream;base64,")}var V;V="sql-wasm.wasm";if(!$a()){var ab=V;V=Module.locateFile?Module.locateFile(ab,N):N+ab}function bb(){var a=V;try{if(a==V&&Ba)return new Uint8Array(Ba);if(ua)return ua(a);throw"both async and sync fetching of the wasm failed";}catch(b){Q(b)}} function cb(){if(!Ba&&(oa||pa)){if("function"===typeof fetch&&!V.startsWith("file://"))return fetch(V,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+V+"'";return a.arrayBuffer()}).catch(function(){return bb()});if(ta)return new Promise(function(a,b){ta(V,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return bb()})}var T,S; function hb(a){for(;0>2]=60*g;R[lb()>>2]=Number(b!=f);c=a(c);e=a(e);c=Oa(c);e=Oa(e);f>2]=c,R[mb()+4>>2]=e):(R[mb()>>2]=e,R[mb()+4>>2]=c)}var nb; @@ -117,7 +117,7 @@ function tb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?argum function ub(a,b){function c(k){for(var m=0;mq?[]:k.slice(m,q-m+1)}a=tb(a).substr(1);b=tb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g>8},td:function(a){return a&255},bb:function(a,b){return a<<8|b},Qb:function(a,b){x.Zb[a]={stream_ops:b}},Qc:function(a){return x.Zb[a]},dc:function(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},pc:function(a,b){function c(k){x.ub--;return b(k)}function e(k){if(k){if(!e.Lc)return e.Lc=!0,c(k)}else++g>=f.length&&c(null)} -"function"===typeof a&&(b=a,a=!1);x.ub++;1b)throw new x.ErrnoError(28);a="string"===typeof a?x.lookupPath(a,{Ta:!0}).node: a;if(!a.node_ops.setattr)throw new x.ErrnoError(63);if(x.isDir(a.mode))throw new x.ErrnoError(31);if(!x.isFile(a.mode))throw new x.ErrnoError(28);var c=x.Za(a,"w");if(c)throw new x.ErrnoError(c);a.node_ops.setattr(a,{size:b,timestamp:Date.now()})},Oc:function(a,b){a=x.$a(a);if(!a)throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(28);x.truncate(a.node,b)},ld:function(a,b,c){a=x.lookupPath(a,{Ta:!0}).node;a.node_ops.setattr(a,{timestamp:Math.max(b,c)})},open:function(a,b,c,e, f){if(""===a)throw new x.ErrnoError(44);b="string"===typeof b?x.Zc(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=pb(a);try{g=x.lookupPath(a,{Ta:!(b&131072)}).node}catch(m){}}var k=!1;if(b&64)if(g){if(b&128)throw new x.ErrnoError(20);}else g=x.mknod(a,c,0),k=!0;if(!g)throw new x.ErrnoError(44);x.qb(g.mode)&&(b&=-513);if(b&65536&&!x.isDir(g.mode))throw new x.ErrnoError(54);if(!k&&(c=x.Xc(g,b)))throw new x.ErrnoError(c);b&512&&x.truncate(g,0);b&=-131713; -e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,N("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(m){N("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+m.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); +e=x.Kc({node:g,path:x.Ya(g),flags:b,seekable:!0,position:0,stream_ops:g.stream_ops,kd:[],error:!1},e,f);e.stream_ops.open&&e.stream_ops.open(e);!Module.logReadFiles||b&1||(x.Ob||(x.Ob={}),a in x.Ob||(x.Ob[a]=1,O("FS.trackingDelegate error on read file: "+a)));try{x.Sa.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=x.qc.nc.tc),0!==(b&2097155)&&(f|=x.qc.nc.uc),x.Sa.onOpenFile(a,f))}catch(m){O("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+m.message)}return e},close:function(a){if(x.lb(a))throw new x.ErrnoError(8); a.Fb&&(a.Fb=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(b){throw b;}finally{x.Ec(a.fd)}a.fd=null},lb:function(a){return null===a.fd},llseek:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new x.ErrnoError(70);if(0!=c&&1!=c&&2!=c)throw new x.ErrnoError(28);a.position=a.stream_ops.llseek(a,b,c);a.kd=[];return a.position},read:function(a,b,c,e,f){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(1===(a.flags&2097155))throw new x.ErrnoError(8); if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.read)throw new x.ErrnoError(28);var g="undefined"!==typeof f;if(!g)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.read(a,b,c,e,f);g||(a.position+=b);return b},write:function(a,b,c,e,f,g){if(0>e||0>f)throw new x.ErrnoError(28);if(x.lb(a))throw new x.ErrnoError(8);if(0===(a.flags&2097155))throw new x.ErrnoError(8);if(x.isDir(a.node.mode))throw new x.ErrnoError(31);if(!a.stream_ops.write)throw new x.ErrnoError(28); -a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(m){N("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+m.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); +a.seekable&&a.flags&1024&&x.llseek(a,0,2);var k="undefined"!==typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.ErrnoError(70);b=a.stream_ops.write(a,b,c,e,f,g);k||(a.position+=b);try{if(a.path&&x.Sa.onWriteToFile)x.Sa.onWriteToFile(a.path)}catch(m){O("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+m.message)}return b},allocate:function(a,b,c){if(x.lb(a))throw new x.ErrnoError(8);if(0>b||0>=c)throw new x.ErrnoError(28);if(0===(a.flags&2097155))throw new x.ErrnoError(8); if(!x.isFile(a.node.mode)&&!x.isDir(a.node.mode))throw new x.ErrnoError(43);if(!a.stream_ops.allocate)throw new x.ErrnoError(138);a.stream_ops.allocate(a,b,c)},mmap:function(a,b,c,e,f,g){if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new x.ErrnoError(2);if(1===(a.flags&2097155))throw new x.ErrnoError(2);if(!a.stream_ops.mmap)throw new x.ErrnoError(43);return a.stream_ops.mmap(a,b,c,e,f,g)},msync:function(a,b,c,e,f){return a&&a.stream_ops.msync?a.stream_ops.msync(a,b,c,e,f):0},vd:function(){return 0}, lc:function(a,b,c){if(!a.stream_ops.lc)throw new x.ErrnoError(59);return a.stream_ops.lc(a,b,c)},readFile:function(a,b){b=b||{};b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=x.open(a,b.flags);a=x.stat(a).size;var f=new Uint8Array(a);x.read(e,f,0,a,0);"utf8"===b.encoding?c=Na(f,0):"binary"===b.encoding&&(c=f);x.close(e);return c},writeFile:function(a,b,c){c=c||{};c.flags=c.flags||577;a= x.open(a,c.flags,c.mode);if("string"===typeof b){var e=new Uint8Array(d(b)+1);b=p(b,e,0,e.length);x.write(a,e,0,b,void 0,c.Cc)}else if(ArrayBuffer.isView(b))x.write(a,b,0,b.byteLength,void 0,c.Cc);else throw Error("Unsupported data type");x.close(a)},cwd:function(){return x.Yb},chdir:function(a){a=x.lookupPath(a,{Ta:!0});if(null===a.node)throw new x.ErrnoError(44);if(!x.isDir(a.node.mode))throw new x.ErrnoError(54);var b=x.Za(a.node,"x");if(b)throw new x.ErrnoError(b);x.Yb=a.path},Gc:function(){x.mkdir("/tmp"); @@ -162,11 +162,11 @@ try{c=x.lookupPath(a,{parent:!0}),e.bd=!0,e.dd=c.path,e.cd=c.node,e.name=W(a),c= rb("string"===typeof a?a:x.Ya(a),b):a;e=x.Eb(e,f);f=x.create(a,e);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var k=c.length;bthis.length-1||0>n)){var r=n%this.chunkSize;return this.hc(n/this.chunkSize|0)[r]}};g.prototype.sc=function(n){this.hc=n};g.prototype.Wb=function(){var n=new XMLHttpRequest;n.open("HEAD",c,!1);n.send(null);if(!(200<=n.status&&300>n.status||304===n.status))throw Error("Couldn't load "+ -c+". Status: "+n.status);var r=Number(n.getResponseHeader("Content-length")),w,B=(w=n.getResponseHeader("Accept-Ranges"))&&"bytes"===w;n=(w=n.getResponseHeader("Content-Encoding"))&&"gzip"===w;var E=1048576;B||(E=r);var A=this;A.sc(function(J){var Z=J*E,U=(J+1)*E-1;U=Math.min(U,r-1);if("undefined"===typeof A.pb[J]){var Ka=A.pb;if(Z>U)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var G=new XMLHttpRequest;G.open("GET", -c,!1);r!==E&&G.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(G.responseType="arraybuffer");G.overrideMimeType&&G.overrideMimeType("text/plain; charset=x-user-defined");G.send(null);if(!(200<=G.status&&300>G.status||304===G.status))throw Error("Couldn't load "+c+". Status: "+G.status);Z=void 0!==G.response?new Uint8Array(G.response||[]):ca(G.responseText||"",!0);Ka[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(n||!r)E=r=1,E=r=this.hc(0).length, -xa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=E;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var m=x.Hc(a,b,k,e, -f);k.Na?m.Na=k.Na:k.url&&(m.Na=null,m.url=k.url);Object.defineProperties(m,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(m.stream_ops).forEach(function(n){var r=m.stream_ops[n];q[n]=function(){x.cc(m);return r.apply(null,arguments)}});q.read=function(n,r,w,B,E){x.cc(m);n=n.node.Na;if(E>=n.length)return 0;B=Math.min(n.length-E,B);if(n.slice)for(var A=0;AU)throw Error("invalid range ("+Z+", "+U+") or no bytes requested!");if(U>r-1)throw Error("only "+r+" bytes available! programmer error!");var H=new XMLHttpRequest;H.open("GET", +c,!1);r!==F&&H.setRequestHeader("Range","bytes="+Z+"-"+U);"undefined"!=typeof Uint8Array&&(H.responseType="arraybuffer");H.overrideMimeType&&H.overrideMimeType("text/plain; charset=x-user-defined");H.send(null);if(!(200<=H.status&&300>H.status||304===H.status))throw Error("Couldn't load "+c+". Status: "+H.status);Z=void 0!==H.response?new Uint8Array(H.response||[]):ca(H.responseText||"",!0);Ka[J]=Z}if("undefined"===typeof A.pb[J])throw Error("doXHR failed!");return A.pb[J]});if(n||!r)F=r=1,F=r=this.hc(0).length, +xa("LazyFiles on gzip forces download of the whole file when length is accessed");this.wc=r;this.vc=F;this.Jb=!0};if("undefined"!==typeof XMLHttpRequest){if(!pa)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Jb||this.Wb();return this.wc}},chunkSize:{get:function(){this.Jb||this.Wb();return this.vc}}});k={Ib:!1,Na:k}}else k={Ib:!1,url:c};var m=x.Hc(a,b,k,e, +f);k.Na?m.Na=k.Na:k.url&&(m.Na=null,m.url=k.url);Object.defineProperties(m,{Ra:{get:function(){return this.Na.length}}});var q={};Object.keys(m.stream_ops).forEach(function(n){var r=m.stream_ops[n];q[n]=function(){x.cc(m);return r.apply(null,arguments)}});q.read=function(n,r,w,B,F){x.cc(m);n=n.node.Na;if(F>=n.length)return 0;B=Math.min(n.length-F,B);if(n.slice)for(var A=0;A>2]=e.dev;R[c+4>>2]=0;R[c+8>>2]=e.ino;R[c+12>>2]=e.mode;R[c+16>>2]=e.nlink;R[c+20>>2]=e.uid;R[c+24>>2]=e.gid;R[c+28>>2]=e.rdev;R[c+32>>2]=0;S=[e.size>>>0,(T=e.size,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[c+40>>2]=S[0];R[c+44>>2]=S[1];R[c+48>>2]=4096;R[c+52>>2]=e.blocks;R[c+56>>2]=e.atime.getTime()/1E3|0;R[c+60>> @@ -174,21 +174,21 @@ function ac(a,b,c){try{var e=a(b)}catch(f){if(f&&f.node&&pb(b)!==pb(x.Ya(f.node) var ec={};function fc(){if(!gc){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",_:na||"./this.program"},b;for(b in ec)void 0===ec[b]?delete a[b]:a[b]=ec[b];var c=[];for(b in a)c.push(b+"="+a[b]);gc=c}return gc}var gc; function hc(a,b,c,e){a||(a=this);this.parent=a;this.mount=a.mount;this.mb=null;this.id=x.$c++;this.name=b;this.mode=c;this.node_ops={};this.stream_ops={};this.rdev=e}Object.defineProperties(hc.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},Tc:{get:function(){return x.isDir(this.mode)}},Ib:{get:function(){return x.qb(this.mode)}}}); x.FSNode=hc;x.oc();var Zb;function ca(a,b){var c=Array(d(a)+1);a=p(a,c,0,c.length);b&&(c.length=a);return c} -var jc={a:function(a,b,c,e){Q("Assertion failed: "+F(a)+", at: "+[b?F(b):"unknown filename",c,e?F(e):"unknown function"])},t:function(a,b){nb||(nb=!0,jb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), -6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[mb()+(a?4:0)>>2];R[b+40>>2]=a;return b},l:function(a,b){try{a=F(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},z:function(a,b){try{return a=F(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof -x.ErrnoError||Q(c),-c.Oa}},H:function(a,b,c){try{return a=F(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},A:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},b:function(a,b,c){bc=c;try{var e=Y(a);switch(b){case 0:var f=cc();return 0>f?-28:x.open(e.path, +var jc={a:function(a,b,c,e){Q("Assertion failed: "+G(a)+", at: "+[b?G(b):"unknown filename",c,e?G(e):"unknown function"])},t:function(a,b){nb||(nb=!0,jb());a=new Date(1E3*R[a>>2]);R[b>>2]=a.getSeconds();R[b+4>>2]=a.getMinutes();R[b+8>>2]=a.getHours();R[b+12>>2]=a.getDate();R[b+16>>2]=a.getMonth();R[b+20>>2]=a.getFullYear()-1900;R[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);R[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;R[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(), +6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0;R[b+32>>2]=a;a=R[mb()+(a?4:0)>>2];R[b+40>>2]=a;return b},l:function(a,b){try{a=G(a);if(b&-8)var c=-28;else{var e;(e=x.lookupPath(a,{Ta:!0}).node)?(a="",b&4&&(a+="r"),b&2&&(a+="w"),b&1&&(a+="x"),c=a&&x.Za(e,a)?-2:0):c=-44}return c}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),-f.Oa}},z:function(a,b){try{return a=G(a),x.chmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof +x.ErrnoError||Q(c),-c.Oa}},H:function(a,b,c){try{return a=G(a),x.chown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},A:function(a,b){try{return x.fchmod(a,b),0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},I:function(a,b,c){try{return x.fchown(a,b,c),0}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},b:function(a,b,c){bc=c;try{var e=Y(a);switch(b){case 0:var f=cc();return 0>f?-28:x.open(e.path, e.flags,0,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=cc(),e.flags|=f,0;case 12:return f=cc(),Ca[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return R[ic()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},D:function(a,b){try{var c=Y(a);return ac(x.stat,c.path,b)}catch(e){return"undefined"!==typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},m:function(a,b,c){try{return x.Oc(a,c),0}catch(e){return"undefined"!== -typeof x&&e instanceof x.ErrnoError||Q(e),-e.Oa}},k:function(a,b){try{if(0===b)return-28;var c=x.cwd();if(b=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(m){return"undefined"!== -typeof x&&m instanceof x.ErrnoError||Q(m),-m.Oa}},E:function(a){try{return a=F(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},e:function(a,b){try{return a=F(a),ac(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},h:function(a){try{return a=F(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},u:function(){return 2147483648},o:function(a,b,c){t.copyWithin(a,b,b+c)},c:function(a){var b= +x.$a(c.fd);if(e&&c.ed&2){var f=c.flags,g=c.offset,k=t.slice(a,a+b);x.msync(e,k,g,b,f)}$b[a]=null;c.wb&&ea(c.Vc)}var m=0}else m=-28;return m}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),-q.Oa}},v:function(a,b,c){bc=c;try{var e=G(a),f=c?cc():0;return x.open(e,b,f).fd}catch(g){return"undefined"!==typeof x&&g instanceof x.ErrnoError||Q(g),-g.Oa}},J:function(a,b,c){try{a=G(a);if(0>=c)var e=-28;else{var f=x.readlink(a),g=Math.min(c,d(f)),k=D[b+g];p(f,t,b,c+1);D[b+g]=k;e=g}return e}catch(m){return"undefined"!== +typeof x&&m instanceof x.ErrnoError||Q(m),-m.Oa}},E:function(a){try{return a=G(a),x.rmdir(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},e:function(a,b){try{return a=G(a),ac(x.stat,a,b)}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),-c.Oa}},h:function(a){try{return a=G(a),x.unlink(a),0}catch(b){return"undefined"!==typeof x&&b instanceof x.ErrnoError||Q(b),-b.Oa}},u:function(){return 2147483648},o:function(a,b,c){t.copyWithin(a,b,b+c)},c:function(a){var b= t.length;a>>>=0;if(2147483648=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);e=Math.max(a,e);0>>16);Qa();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},s:function(a){for(var b=dc();dc()-b>2]=g;for(g=0;g>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},r:function(a,b){var c= fc();R[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});R[b>>2]=e;return 0},f:function(a){try{var b=Y(a);x.close(b);return 0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},p:function(a,b){try{var c=Y(a),e=c.tty?2:x.isDir(c.mode)?3:x.fb(c.mode)?7:4;D[b>>0]=e;return 0}catch(f){return"undefined"!==typeof x&&f instanceof x.ErrnoError||Q(f),f.Oa}},i:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],m=x.read(f,D,R[b+8*g>>2],k,void 0); if(0>m){var q=-1;break a}a+=m;if(m>2]=q;return 0}catch(n){return"undefined"!==typeof x&&n instanceof x.ErrnoError||Q(n),n.Oa}},n:function(a,b,c,e,f){try{var g=Y(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;x.llseek(g,a,e);S=[g.position>>>0,(T=g.position,1<=+Math.abs(T)?0>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)];R[f>>2]=S[0];R[f+4>>2]=S[1];g.Fb&&0===a&&0===e&&(g.Fb=null);return 0}catch(k){return"undefined"!== typeof x&&k instanceof x.ErrnoError||Q(k),k.Oa}},j:function(a){try{var b=Y(a);return b.stream_ops&&b.stream_ops.fsync?-b.stream_ops.fsync(b):0}catch(c){return"undefined"!==typeof x&&c instanceof x.ErrnoError||Q(c),c.Oa}},F:function(a,b,c,e){try{a:{for(var f=Y(a),g=a=0;g>2],R[b+(8*g+4)>>2],void 0);if(0>k){var m=-1;break a}a+=k}m=a}R[e>>2]=m;return 0}catch(q){return"undefined"!==typeof x&&q instanceof x.ErrnoError||Q(q),q.Oa}},g:function(a){var b=Date.now();R[a>>2]= -b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},K:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},C:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=F(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=ib(e);throw f+" : "+e;}e=f.Oa;R[ic()>>2]=e;e=-1}return e}}; -(function(){function a(f){Module.asm=f.exports;Fa=Module.asm.L;Qa();P=Module.asm.Da;Sa.unshift(Module.asm.M);Za()}function b(f){a(f.instance)}function c(f){return cb().then(function(g){return WebAssembly.instantiate(g,e)}).then(function(g){return g}).then(f,function(g){N("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:jc};Ya();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return N("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ba|| -"function"!==typeof WebAssembly.instantiateStreaming||$a()||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){N("wasm streaming compile failed: "+g);N("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; +b/1E3|0;R[a+4>>2]=b%1E3*1E3|0;return 0},K:function(a){var b=Date.now()/1E3|0;a&&(R[a>>2]=b);return b},C:function(a,b){if(b){var c=b+8;b=1E3*R[c>>2];b+=R[c+4>>2]/1E3}else b=Date.now();a=G(a);try{x.ld(a,b,b);var e=0}catch(f){if(!(f instanceof x.ErrnoError)){b:{e=Error();if(!e.stack){try{throw Error();}catch(g){e=g}if(!e.stack){e="(no stack trace available)";break b}}e=e.stack.toString()}Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace());e=ib(e);throw f+" : "+e;}e=f.Oa;R[ic()>>2]=e;e=-1}return e}}; +(function(){function a(f){Module.asm=f.exports;Fa=Module.asm.L;Qa();P=Module.asm.Da;Sa.unshift(Module.asm.M);Za()}function b(f){a(f.instance)}function c(f){return cb().then(function(g){return WebAssembly.instantiate(g,e)}).then(function(g){return g}).then(f,function(g){O("failed to asynchronously prepare wasm: "+g);Q(g)})}var e={a:jc};Ya();if(Module.instantiateWasm)try{return Module.instantiateWasm(e,a)}catch(f){return O("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ba|| +"function"!==typeof WebAssembly.instantiateStreaming||$a()||V.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(V,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){O("wasm streaming compile failed: "+g);O("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.M).apply(null,arguments)}; Module._sqlite3_vfs_find=function(){return(Module._sqlite3_vfs_find=Module.asm.N).apply(null,arguments)};Module._sqlite3_free=function(){return(Module._sqlite3_free=Module.asm.O).apply(null,arguments)};var ic=Module.___errno_location=function(){return(ic=Module.___errno_location=Module.asm.P).apply(null,arguments)};Module._sqlite3_step=function(){return(Module._sqlite3_step=Module.asm.Q).apply(null,arguments)}; Module._sqlite3_finalize=function(){return(Module._sqlite3_finalize=Module.asm.R).apply(null,arguments)};Module._sqlite3_prepare_v2=function(){return(Module._sqlite3_prepare_v2=Module.asm.S).apply(null,arguments)};Module._sqlite3_reset=function(){return(Module._sqlite3_reset=Module.asm.T).apply(null,arguments)};Module._sqlite3_clear_bindings=function(){return(Module._sqlite3_clear_bindings=Module.asm.U).apply(null,arguments)}; Module._sqlite3_value_blob=function(){return(Module._sqlite3_value_blob=Module.asm.V).apply(null,arguments)};Module._sqlite3_value_text=function(){return(Module._sqlite3_value_text=Module.asm.W).apply(null,arguments)};Module._sqlite3_value_bytes=function(){return(Module._sqlite3_value_bytes=Module.asm.X).apply(null,arguments)};Module._sqlite3_value_double=function(){return(Module._sqlite3_value_double=Module.asm.Y).apply(null,arguments)}; @@ -202,7 +202,7 @@ Module._sqlite3_errmsg=function(){return(Module._sqlite3_errmsg=Module.asm.va).a Module._sqlite3_create_function_v2=function(){return(Module._sqlite3_create_function_v2=Module.asm.za).apply(null,arguments)};Module._sqlite3_open=function(){return(Module._sqlite3_open=Module.asm.Aa).apply(null,arguments)};var ba=Module._malloc=function(){return(ba=Module._malloc=Module.asm.Ba).apply(null,arguments)},ea=Module._free=function(){return(ea=Module._free=Module.asm.Ca).apply(null,arguments)}; Module._RegisterExtensionFunctions=function(){return(Module._RegisterExtensionFunctions=Module.asm.Ea).apply(null,arguments)};Module._register_for_idb=function(){return(Module._register_for_idb=Module.asm.Fa).apply(null,arguments)}; var mb=Module.__get_tzname=function(){return(mb=Module.__get_tzname=Module.asm.Ga).apply(null,arguments)},lb=Module.__get_daylight=function(){return(lb=Module.__get_daylight=Module.asm.Ha).apply(null,arguments)},kb=Module.__get_timezone=function(){return(kb=Module.__get_timezone=Module.asm.Ia).apply(null,arguments)},ha=Module.stackSave=function(){return(ha=Module.stackSave=Module.asm.Ja).apply(null,arguments)},ja=Module.stackRestore=function(){return(ja=Module.stackRestore=Module.asm.Ka).apply(null, -arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},Bb=Module._memalign=function(){return(Bb=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ha(a):function(){return Ia(a,b,c,arguments)}};Module.UTF8ToString=F;Module.FS=x;Module.stackSave=ha;Module.stackRestore=ja;Module.stackAlloc=C;var kc;Xa=function lc(){kc||mc();kc||(Xa=lc)}; +arguments)},C=Module.stackAlloc=function(){return(C=Module.stackAlloc=Module.asm.La).apply(null,arguments)},Bb=Module._memalign=function(){return(Bb=Module._memalign=Module.asm.Ma).apply(null,arguments)};Module.cwrap=function(a,b,c,e){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!e?Ha(a):function(){return Ia(a,b,c,arguments)}};Module.UTF8ToString=G;Module.FS=x;Module.stackSave=ha;Module.stackRestore=ja;Module.stackAlloc=C;var kc;Xa=function lc(){kc||mc();kc||(Xa=lc)}; function mc(){function a(){if(!kc&&(kc=!0,Module.calledRun=!0,!Ga)){Module.noFSInit||x.kb.Hb||x.kb();x.kc=!1;hb(Sa);if(Module.onRuntimeInitialized)Module.onRuntimeInitialized();if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;){var b=Module.postRun.shift();Ta.unshift(b)}hb(Ta)}}if(!(0