scanbot-web-sdk 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/ui2/document/model/document-detection-ui-result.d.ts +1 -0
- package/bundle/ScanbotSDK.min.js +3 -3
- package/bundle/ScanbotSDK.ui2.min.js +2 -2
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var initModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e={}){function t(){return $.buffer!=P.buffer&&N(),P}function n(){return $.buffer!=P.buffer&&N(),M}function o(){return $.buffer!=P.buffer&&N(),D}function a(){return $.buffer!=P.buffer&&N(),A}function i(){return $.buffer!=P.buffer&&N(),F}function s(){return $.buffer!=P.buffer&&N(),j}function u(){return $.buffer!=P.buffer&&N(),O}var c,l,d=e;d.ready=new Promise(((r,e)=>{c=r,l=e}));var f,h,p,m=Object.assign({},d),v="./this.program",y=(r,e)=>{throw e},g=d.ENVIRONMENT_IS_PTHREAD||!1,w="";function b(r){return d.locateFile?d.locateFile(r,w):w+r}w=self.location.href,r&&(w=r),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"",f=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},p=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)},h=(r,e,t)=>{var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var _,E=d.print||console.log.bind(console),k=d.printErr||console.error.bind(console);Object.assign(d,m),m=null,d.arguments&&d.arguments,d.thisProgram&&(v=d.thisProgram),d.quit&&(y=d.quit),d.wasmBinary&&(_=d.wasmBinary);var $,T,C=d.noExitRuntime||!0;"object"!=typeof WebAssembly&&Q("no native wasm support detected");var S,P,M,D,A,F,j,W,O,x=!1;function R(r,e){r||Q(e)}function N(){var r=$.buffer;d.HEAP8=P=new Int8Array(r),d.HEAP16=D=new Int16Array(r),d.HEAPU8=M=new Uint8Array(r),d.HEAPU16=A=new Uint16Array(r),d.HEAP32=F=new Int32Array(r),d.HEAPU32=j=new Uint32Array(r),d.HEAPF32=W=new Float32Array(r),d.HEAPF64=O=new Float64Array(r)}var I,U=d.INITIAL_MEMORY||67108864;if(R(U>=4194304,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+U+"! (STACK_SIZE=4194304)"),g)$=d.wasmMemory;else if(d.wasmMemory)$=d.wasmMemory;else if(!(($=new WebAssembly.Memory({initial:U/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw k("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");N(),U=$.buffer.byteLength;var z=[],H=[],L=[],B=0;function Y(){return C||B>0}function V(){!0,g||(d.noFSInit||Tr.init.initialized||Tr.init(),Tr.ignorePermissions=!1,br.init(),Fr(H))}function q(r){z.unshift(r)}var G=0,K=null,J=null;function X(r){G++,d.monitorRunDependencies&&d.monitorRunDependencies(G)}function Z(r){if(G--,d.monitorRunDependencies&&d.monitorRunDependencies(G),0==G&&(null!==K&&(clearInterval(K),K=null),J)){var e=J;J=null,e()}}function Q(r){d.onAbort&&d.onAbort(r),k(r="Aborted("+r+")"),x=!0,S=1,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw l(e),e}var rr,er,tr;function nr(r){return r.startsWith("data:application/octet-stream;base64,")}function or(r){if(r==rr&&_)return new Uint8Array(_);if(p)return p(r);throw"both async and sync fetching of the wasm failed"}function ar(r,e,t){return function(r){return _||"function"!=typeof fetch?Promise.resolve().then((()=>or(r))):fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+r+"'";return e.arrayBuffer()})).catch((()=>or(r)))}(r).then((r=>WebAssembly.instantiate(r,e))).then((r=>r)).then(t,(r=>{k(`failed to asynchronously prepare wasm: ${r}`),Q(r)}))}nr(rr="ScanbotSDK.Asm-simd-threads.wasm")||(rr=b(rr));var ir={1584524:r=>mn(function(){return this[Cr(r)].toString()}.apply(function(){return this}.call(void 0)))};function sr(r){this.name="ExitStatus",this.message=`Program terminated with exit(${r})`,this.status=r}var ur=r=>{r.terminate(),r.onmessage=r=>{}},cr=r=>{var e=Ar.pthreads[r];R(e),Ar.returnWorkerToPool(e)},lr=r=>{var e=Ar.getNewWorker();if(!e)return 6;Ar.runningWorkers.push(e),Ar.pthreads[r.pthread_ptr]=e,e.pthread_ptr=r.pthread_ptr;var t={cmd:"run",start_routine:r.startRoutine,arg:r.arg,pthread_ptr:r.pthread_ptr};return e.postMessage(t,r.transferList),0},dr={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=dr.isAbs(r),t="/"===r.substr(-1);return(r=dr.normalizeArray(r.split("/").filter((r=>!!r)),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=dr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:r=>{if("/"===r)return"/";var e=(r=(r=dr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?r:r.substr(e+1)},join:function(){var r=Array.prototype.slice.call(arguments);return dr.normalize(r.join("/"))},join2:(r,e)=>dr.normalize(r+"/"+e)},fr=r=>(fr=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return r=>(r.set(crypto.getRandomValues(new Uint8Array(r.byteLength))),r);Q("initRandomDevice")})())(r),hr={resolve:function(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:Tr.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";r=n+"/"+r,e=dr.isAbs(n)}return(e?"/":"")+(r=dr.normalizeArray(r.split("/").filter((r=>!!r)),!e).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=hr.resolve(r).substr(1),e=hr.resolve(e).substr(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},pr="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,mr=(r,e,t)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&pr)return pr.decode(r.buffer instanceof SharedArrayBuffer?r.slice(e,o):r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},vr=[],yr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o};function wr(r,e,t){var n=t>0?t:yr(r)+1,o=new Array(n),a=gr(r,o,0,o.length);return e&&(o.length=a),o}var br={ttys:[],init(){},shutdown(){},register(r,e){br.ttys[r]={input:[],output:[],ops:e},Tr.registerDevice(r,br.stream_ops)},stream_ops:{open(r){var e=br.ttys[r.node.rdev];if(!e)throw new Tr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new Tr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new Tr.ErrnoError(29)}if(void 0===s&&0===a)throw new Tr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.timestamp=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new Tr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new Tr.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!vr.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n"),!r)return null;vr=wr(r,!0)}return vr.shift()})(),put_char(r,e){null===e||10===e?(E(mr(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(E(mr(r.output,0)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(mr(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(k(mr(r.output,0)),r.output=[])}}},_r=r=>{r=((r,e)=>Math.ceil(r/e)*e)(r,65536);var e=An(65536,r);return e?((r,e)=>(n().fill(0,r,r+e),r))(e,r):0},Er={ops_table:null,mount:r=>Er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(Tr.isBlkdev(t)||Tr.isFIFO(t))throw new Tr.ErrnoError(63);Er.ops_table||(Er.ops_table={dir:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr,lookup:Er.node_ops.lookup,mknod:Er.node_ops.mknod,rename:Er.node_ops.rename,unlink:Er.node_ops.unlink,rmdir:Er.node_ops.rmdir,readdir:Er.node_ops.readdir,symlink:Er.node_ops.symlink},stream:{llseek:Er.stream_ops.llseek}},file:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr},stream:{llseek:Er.stream_ops.llseek,read:Er.stream_ops.read,write:Er.stream_ops.write,allocate:Er.stream_ops.allocate,mmap:Er.stream_ops.mmap,msync:Er.stream_ops.msync}},link:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr,readlink:Er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr},stream:Tr.chrdev_stream_ops}});var o=Tr.createNode(r,e,t,n);return Tr.isDir(o.mode)?(o.node_ops=Er.ops_table.dir.node,o.stream_ops=Er.ops_table.dir.stream,o.contents={}):Tr.isFile(o.mode)?(o.node_ops=Er.ops_table.file.node,o.stream_ops=Er.ops_table.file.stream,o.usedBytes=0,o.contents=null):Tr.isLink(o.mode)?(o.node_ops=Er.ops_table.link.node,o.stream_ops=Er.ops_table.link.stream):Tr.isChrdev(o.mode)&&(o.node_ops=Er.ops_table.chrdev.node,o.stream_ops=Er.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=Tr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,Tr.isDir(r.mode)?e.size=4096:Tr.isFile(r.mode)?e.size=r.usedBytes:Tr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&Er.resizeFileStorage(r,e.size)},lookup(r,e){throw Tr.genericErrors[44]},mknod:(r,e,t,n)=>Er.createNode(r,e,t,n),rename(r,e,t){if(Tr.isDir(r.mode)){var n;try{n=Tr.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new Tr.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir(r,e){var t=Tr.lookupNode(r,e);for(var n in t.contents)throw new Tr.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir(r){var e=[".",".."];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink(r,e,t){var n=Er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!Tr.isLink(r.mode))throw new Tr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,n,o,a,i){if(e.buffer===t().buffer&&(i=!1),!o)return 0;var s=r.node;if(s.timestamp=Date.now(),e.subarray&&(!s.contents||s.contents.subarray)){if(i)return s.contents=e.subarray(n,n+o),s.usedBytes=o,o;if(0===s.usedBytes&&0===a)return s.contents=e.slice(n,n+o),s.usedBytes=o,o;if(a+o<=s.usedBytes)return s.contents.set(e.subarray(n,n+o),a),o}if(Er.expandFileStorage(s,a+o),s.contents.subarray&&e.subarray)s.contents.set(e.subarray(n,n+o),a);else for(var u=0;u<o;u++)s.contents[a+u]=e[n+u];return s.usedBytes=Math.max(s.usedBytes,a+o),o},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&Tr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new Tr.ErrnoError(28);return n},allocate(r,e,t){Er.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap(r,e,n,o,a){if(!Tr.isFile(r.node.mode))throw new Tr.ErrnoError(43);var i,s,u=r.node.contents;if(2&a||u.buffer!==t().buffer){if((n>0||n+e<u.length)&&(u=u.subarray?u.subarray(n,n+e):Array.prototype.slice.call(u,n,n+e)),s=!0,!(i=_r(e)))throw new Tr.ErrnoError(48);t().set(u,i)}else s=!1,i=u.byteOffset;return{ptr:i,allocated:s}},msync:(r,e,t,n,o)=>(Er.stream_ops.write(r,e,0,n,t,!1),0)}},kr=d.preloadPlugins||[],$r=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},Tr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(r,e={}){if(!(r=hr.resolve(r)))return{path:"",node:null};if((e=Object.assign({follow_mount:!0,recurse_count:0},e)).recurse_count>8)throw new Tr.ErrnoError(32);for(var t=r.split("/").filter((r=>!!r)),n=Tr.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&e.parent)break;if(n=Tr.lookupNode(n,t[a]),o=dr.join2(o,t[a]),Tr.isMountpoint(n)&&(!i||i&&e.follow_mount)&&(n=n.mounted.root),!i||e.follow)for(var s=0;Tr.isLink(n.mode);){var u=Tr.readlink(o);if(o=hr.resolve(dr.dirname(o),u),n=Tr.lookupPath(o,{recurse_count:e.recurse_count+1}).node,s++>40)throw new Tr.ErrnoError(32)}}return{path:o,node:n}},getPath(r){for(var e;;){if(Tr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%Tr.nameTable.length},hashAddNode(r){var e=Tr.hashName(r.parent.id,r.name);r.name_next=Tr.nameTable[e],Tr.nameTable[e]=r},hashRemoveNode(r){var e=Tr.hashName(r.parent.id,r.name);if(Tr.nameTable[e]===r)Tr.nameTable[e]=r.name_next;else for(var t=Tr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=Tr.mayLookup(r);if(t)throw new Tr.ErrnoError(t,r);for(var n=Tr.hashName(r.id,e),o=Tr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return Tr.lookup(r,e)},createNode(r,e,t,n){var o=new Tr.FSNode(r,e,t,n);return Tr.hashAddNode(o),o},destroyNode(r){Tr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>49152==(49152&r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>Tr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup(r){var e=Tr.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate(r,e){try{Tr.lookupNode(r,e);return 20}catch(r){}return Tr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=Tr.lookupNode(r,e)}catch(r){return r.errno}var o=Tr.nodePermissions(r,"wx");if(o)return o;if(t){if(!Tr.isDir(n.mode))return 54;if(Tr.isRoot(n)||Tr.getPath(n)===Tr.cwd())return 10}else if(Tr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?Tr.isLink(r.mode)?32:Tr.isDir(r.mode)&&("r"!==Tr.flagsToPermissionString(e)||512&e)?31:Tr.nodePermissions(r,Tr.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=Tr.MAX_OPEN_FDS;r++)if(!Tr.streams[r])return r;throw new Tr.ErrnoError(33)},getStreamChecked(r){var e=Tr.getStream(r);if(!e)throw new Tr.ErrnoError(8);return e},getStream:r=>Tr.streams[r],createStream:(r,e=-1)=>(Tr.FSStream||(Tr.FSStream=function(){this.shared={}},Tr.FSStream.prototype={},Object.defineProperties(Tr.FSStream.prototype,{object:{get(){return this.node},set(r){this.node=r}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(r){this.shared.flags=r}},position:{get(){return this.shared.position},set(r){this.shared.position=r}}})),r=Object.assign(new Tr.FSStream,r),-1==e&&(e=Tr.nextfd()),r.fd=e,Tr.streams[e]=r,r),closeStream(r){Tr.streams[r]=null},chrdev_stream_ops:{open(r){var e=Tr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek(){throw new Tr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){Tr.devices[r]={stream_ops:e}},getDevice:r=>Tr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),Tr.syncFSRequests++,Tr.syncFSRequests>1&&k(`warning: ${Tr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=Tr.getMounts(Tr.root.mount),n=0;function o(r){return Tr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)}))},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&Tr.root)throw new Tr.ErrnoError(10);if(!o&&!a){var i=Tr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,Tr.isMountpoint(n))throw new Tr.ErrnoError(10);if(!Tr.isDir(n.mode))throw new Tr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?Tr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=Tr.lookupPath(r,{follow_mount:!1});if(!Tr.isMountpoint(e.node))throw new Tr.ErrnoError(28);var t=e.node,n=t.mounted,o=Tr.getMounts(n);Object.keys(Tr.nameTable).forEach((r=>{for(var e=Tr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&Tr.destroyNode(e),e=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=Tr.lookupPath(r,{parent:!0}).node,o=dr.basename(r);if(!o||"."===o||".."===o)throw new Tr.ErrnoError(28);var a=Tr.mayCreate(n,o);if(a)throw new Tr.ErrnoError(a);if(!n.node_ops.mknod)throw new Tr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:(r,e)=>(e=void 0!==e?e:438,e&=4095,e|=32768,Tr.mknod(r,e,0)),mkdir:(r,e)=>(e=void 0!==e?e:511,e&=1023,e|=16384,Tr.mknod(r,e,0)),mkdirTree(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{Tr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>("undefined"==typeof t&&(t=e,e=438),e|=8192,Tr.mknod(r,e,t)),symlink(r,e){if(!hr.resolve(r))throw new Tr.ErrnoError(44);var t=Tr.lookupPath(e,{parent:!0}).node;if(!t)throw new Tr.ErrnoError(44);var n=dr.basename(e),o=Tr.mayCreate(t,n);if(o)throw new Tr.ErrnoError(o);if(!t.node_ops.symlink)throw new Tr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=dr.dirname(r),a=dr.dirname(e),i=dr.basename(r),s=dr.basename(e);if(t=Tr.lookupPath(r,{parent:!0}).node,n=Tr.lookupPath(e,{parent:!0}).node,!t||!n)throw new Tr.ErrnoError(44);if(t.mount!==n.mount)throw new Tr.ErrnoError(75);var u,c=Tr.lookupNode(t,i),l=hr.relative(r,a);if("."!==l.charAt(0))throw new Tr.ErrnoError(28);if("."!==(l=hr.relative(e,o)).charAt(0))throw new Tr.ErrnoError(55);try{u=Tr.lookupNode(n,s)}catch(r){}if(c!==u){var d=Tr.isDir(c.mode),f=Tr.mayDelete(t,i,d);if(f)throw new Tr.ErrnoError(f);if(f=u?Tr.mayDelete(n,s,d):Tr.mayCreate(n,s))throw new Tr.ErrnoError(f);if(!t.node_ops.rename)throw new Tr.ErrnoError(63);if(Tr.isMountpoint(c)||u&&Tr.isMountpoint(u))throw new Tr.ErrnoError(10);if(n!==t&&(f=Tr.nodePermissions(t,"w")))throw new Tr.ErrnoError(f);Tr.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{Tr.hashAddNode(c)}}},rmdir(r){var e=Tr.lookupPath(r,{parent:!0}).node,t=dr.basename(r),n=Tr.lookupNode(e,t),o=Tr.mayDelete(e,t,!0);if(o)throw new Tr.ErrnoError(o);if(!e.node_ops.rmdir)throw new Tr.ErrnoError(63);if(Tr.isMountpoint(n))throw new Tr.ErrnoError(10);e.node_ops.rmdir(e,t),Tr.destroyNode(n)},readdir(r){var e=Tr.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new Tr.ErrnoError(54);return e.node_ops.readdir(e)},unlink(r){var e=Tr.lookupPath(r,{parent:!0}).node;if(!e)throw new Tr.ErrnoError(44);var t=dr.basename(r),n=Tr.lookupNode(e,t),o=Tr.mayDelete(e,t,!1);if(o)throw new Tr.ErrnoError(o);if(!e.node_ops.unlink)throw new Tr.ErrnoError(63);if(Tr.isMountpoint(n))throw new Tr.ErrnoError(10);e.node_ops.unlink(e,t),Tr.destroyNode(n)},readlink(r){var e=Tr.lookupPath(r).node;if(!e)throw new Tr.ErrnoError(44);if(!e.node_ops.readlink)throw new Tr.ErrnoError(28);return hr.resolve(Tr.getPath(e.parent),e.node_ops.readlink(e))},stat(r,e){var t=Tr.lookupPath(r,{follow:!e}).node;if(!t)throw new Tr.ErrnoError(44);if(!t.node_ops.getattr)throw new Tr.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>Tr.stat(r,!0),chmod(r,e,t){var n;"string"==typeof r?n=Tr.lookupPath(r,{follow:!t}).node:n=r;if(!n.node_ops.setattr)throw new Tr.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod(r,e){Tr.chmod(r,e,!0)},fchmod(r,e){var t=Tr.getStreamChecked(r);Tr.chmod(t.node,e)},chown(r,e,t,n){var o;"string"==typeof r?o=Tr.lookupPath(r,{follow:!n}).node:o=r;if(!o.node_ops.setattr)throw new Tr.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(r,e,t){Tr.chown(r,e,t,!0)},fchown(r,e,t){var n=Tr.getStreamChecked(r);Tr.chown(n.node,e,t)},truncate(r,e){if(e<0)throw new Tr.ErrnoError(28);var t;"string"==typeof r?t=Tr.lookupPath(r,{follow:!0}).node:t=r;if(!t.node_ops.setattr)throw new Tr.ErrnoError(63);if(Tr.isDir(t.mode))throw new Tr.ErrnoError(31);if(!Tr.isFile(t.mode))throw new Tr.ErrnoError(28);var n=Tr.nodePermissions(t,"w");if(n)throw new Tr.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate(r,e){var t=Tr.getStreamChecked(r);if(0==(2097155&t.flags))throw new Tr.ErrnoError(28);Tr.truncate(t.node,e)},utime(r,e,t){var n=Tr.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open(r,e,t){if(""===r)throw new Tr.ErrnoError(44);var n;if(t="undefined"==typeof t?438:t,t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if("undefined"==typeof e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)n=r;else{r=dr.normalize(r);try{n=Tr.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var o=!1;if(64&e)if(n){if(128&e)throw new Tr.ErrnoError(20)}else n=Tr.mknod(r,t,0),o=!0;if(!n)throw new Tr.ErrnoError(44);if(Tr.isChrdev(n.mode)&&(e&=-513),65536&e&&!Tr.isDir(n.mode))throw new Tr.ErrnoError(54);if(!o){var a=Tr.mayOpen(n,e);if(a)throw new Tr.ErrnoError(a)}512&e&&!o&&Tr.truncate(n,0),e&=-131713;var i=Tr.createStream({node:n,path:Tr.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!d.logReadFiles||1&e||(Tr.readFiles||(Tr.readFiles={}),r in Tr.readFiles||(Tr.readFiles[r]=1)),i},close(r){if(Tr.isClosed(r))throw new Tr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{Tr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(Tr.isClosed(r))throw new Tr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new Tr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Tr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new Tr.ErrnoError(28);if(Tr.isClosed(r))throw new Tr.ErrnoError(8);if(1==(2097155&r.flags))throw new Tr.ErrnoError(8);if(Tr.isDir(r.node.mode))throw new Tr.ErrnoError(31);if(!r.stream_ops.read)throw new Tr.ErrnoError(28);var a="undefined"!=typeof o;if(a){if(!r.seekable)throw new Tr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new Tr.ErrnoError(28);if(Tr.isClosed(r))throw new Tr.ErrnoError(8);if(0==(2097155&r.flags))throw new Tr.ErrnoError(8);if(Tr.isDir(r.node.mode))throw new Tr.ErrnoError(31);if(!r.stream_ops.write)throw new Tr.ErrnoError(28);r.seekable&&1024&r.flags&&Tr.llseek(r,0,2);var i="undefined"!=typeof o;if(i){if(!r.seekable)throw new Tr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},allocate(r,e,t){if(Tr.isClosed(r))throw new Tr.ErrnoError(8);if(e<0||t<=0)throw new Tr.ErrnoError(28);if(0==(2097155&r.flags))throw new Tr.ErrnoError(8);if(!Tr.isFile(r.node.mode)&&!Tr.isDir(r.node.mode))throw new Tr.ErrnoError(43);if(!r.stream_ops.allocate)throw new Tr.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap(r,e,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&r.flags))throw new Tr.ErrnoError(2);if(1==(2097155&r.flags))throw new Tr.ErrnoError(2);if(!r.stream_ops.mmap)throw new Tr.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,munmap:r=>0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new Tr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t,n=Tr.open(r,e.flags),o=Tr.stat(r).size,a=new Uint8Array(o);return Tr.read(n,a,0,o,0),"utf8"===e.encoding?t=mr(a,0):"binary"===e.encoding&&(t=a),Tr.close(n),t},writeFile(r,e,t={}){t.flags=t.flags||577;var n=Tr.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(yr(e)+1),a=gr(e,o,0,o.length);Tr.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");Tr.write(n,e,0,e.byteLength,void 0,t.canOwn)}Tr.close(n)},cwd:()=>Tr.currentPath,chdir(r){var e=Tr.lookupPath(r,{follow:!0});if(null===e.node)throw new Tr.ErrnoError(44);if(!Tr.isDir(e.node.mode))throw new Tr.ErrnoError(54);var t=Tr.nodePermissions(e.node,"x");if(t)throw new Tr.ErrnoError(t);Tr.currentPath=e.path},createDefaultDirectories(){Tr.mkdir("/tmp"),Tr.mkdir("/home"),Tr.mkdir("/home/web_user")},createDefaultDevices(){Tr.mkdir("/dev"),Tr.registerDevice(Tr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n}),Tr.mkdev("/dev/null",Tr.makedev(1,3)),br.register(Tr.makedev(5,0),br.default_tty_ops),br.register(Tr.makedev(6,0),br.default_tty1_ops),Tr.mkdev("/dev/tty",Tr.makedev(5,0)),Tr.mkdev("/dev/tty1",Tr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(e=fr(r).byteLength),r[--e]);Tr.createDevice("/dev","random",t),Tr.createDevice("/dev","urandom",t),Tr.mkdir("/dev/shm"),Tr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Tr.mkdir("/proc");var r=Tr.mkdir("/proc/self");Tr.mkdir("/proc/self/fd"),Tr.mount({mount(){var e=Tr.createNode(r,"fd",16895,73);return e.node_ops={lookup(r,e){var t=+e,n=Tr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},e}},{},"/proc/self/fd")},createStandardStreams(){d.stdin?Tr.createDevice("/dev","stdin",d.stdin):Tr.symlink("/dev/tty","/dev/stdin"),d.stdout?Tr.createDevice("/dev","stdout",null,d.stdout):Tr.symlink("/dev/tty","/dev/stdout"),d.stderr?Tr.createDevice("/dev","stderr",null,d.stderr):Tr.symlink("/dev/tty1","/dev/stderr");Tr.open("/dev/stdin",0),Tr.open("/dev/stdout",1),Tr.open("/dev/stderr",1)},ensureErrnoError(){Tr.ErrnoError||(Tr.ErrnoError=function(r,e){this.name="ErrnoError",this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message="FS error"},Tr.ErrnoError.prototype=new Error,Tr.ErrnoError.prototype.constructor=Tr.ErrnoError,[44].forEach((r=>{Tr.genericErrors[r]=new Tr.ErrnoError(r),Tr.genericErrors[r].stack="<generic error, no stack>"})))},staticInit(){Tr.ensureErrnoError(),Tr.nameTable=new Array(4096),Tr.mount(Er,{},"/"),Tr.createDefaultDirectories(),Tr.createDefaultDevices(),Tr.createSpecialDirectories(),Tr.filesystems={MEMFS:Er}},init(r,e,t){Tr.init.initialized=!0,Tr.ensureErrnoError(),d.stdin=r||d.stdin,d.stdout=e||d.stdout,d.stderr=t||d.stderr,Tr.createStandardStreams()},quit(){Tr.init.initialized=!1;for(var r=0;r<Tr.streams.length;r++){var e=Tr.streams[r];e&&Tr.close(e)}},findObject(r,e){var t=Tr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=Tr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Tr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=dr.basename(r),n=Tr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:Tr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=dr.join2(r,a);try{Tr.mkdir(i)}catch(r){}r=i}}return i},createFile(r,e,t,n,o){var a=dr.join2("string"==typeof r?r:Tr.getPath(r),e),i=$r(n,o);return Tr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:Tr.getPath(r),i=e?dr.join2(r,e):r);var s=$r(n,o),u=Tr.create(i,s);if(t){if("string"==typeof t){for(var c=new Array(t.length),l=0,d=t.length;l<d;++l)c[l]=t.charCodeAt(l);t=c}Tr.chmod(u,146|s);var f=Tr.open(u,577);Tr.write(f,t,0,t.length,0,a),Tr.close(f),Tr.chmod(u,s)}return u},createDevice(r,e,t,n){var o=dr.join2("string"==typeof r?r:Tr.getPath(r),e),a=$r(!!t,!!n);Tr.createDevice.major||(Tr.createDevice.major=64);var i=Tr.makedev(Tr.createDevice.major++,0);return Tr.registerDevice(i,{open(r){r.seekable=!1},close(r){n&&n.buffer&&n.buffer.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new Tr.ErrnoError(29)}if(void 0===u&&0===i)throw new Tr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.timestamp=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new Tr.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),i}}),Tr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!f)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=wr(f(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new Tr.ErrnoError(29)}},createLazyFile(r,e,n,o,a){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open("HEAD",n,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error("Couldn't load "+n+". Status: "+r.status);var e,t=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=t);var s=this;s.setDataGetter((r=>{var e=r*i,o=(r+1)*i-1;if(o=Math.min(o,t-1),"undefined"==typeof s.chunks[r]&&(s.chunks[r]=((r,e)=>{if(r>e)throw new Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>t-1)throw new Error("only "+t+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",n,!1),t!==i&&o.setRequestHeader("Range","bytes="+r+"-"+e),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+n+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):wr(o.responseText||"",!0)})(e,o)),"undefined"==typeof s.chunks[r])throw new Error("doXHR failed!");return s.chunks[r]})),!a&&t||(i=t=1,t=this.getter(0).length,i=t,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){0;var s=new i;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var u={isDevice:!1,contents:s}}else u={isDevice:!1,url:n};var c=Tr.createFile(r,e,u,o,a);u.contents?c.contents=u.contents:u.url&&(c.contents=null,c.url=u.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(c.stream_ops).forEach((r=>{var e=c.stream_ops[r];l[r]=function(){return Tr.forceLoadFile(c),e.apply(null,arguments)}})),l.read=(r,e,t,n,o)=>(Tr.forceLoadFile(c),d(r,e,t,n,o)),l.mmap=(r,e,n,o,a)=>{Tr.forceLoadFile(c);var i=_r(e);if(!i)throw new Tr.ErrnoError(48);return d(r,t(),i,e,n),{ptr:i,allocated:!0}},c.stream_ops=l,c}},Cr=(r,e)=>r?mr(n(),r,e):"",Sr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(dr.isAbs(e))return e;var n;-100===r?n=Tr.cwd():n=Sr.getStreamFromFD(r).path;if(0==e.length){if(!t)throw new Tr.ErrnoError(44);return n}return dr.join2(n,e)},doStat(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&dr.normalize(e)!==dr.normalize(Tr.getPath(r.node)))return-54;throw r}i()[t>>2]=n.dev,i()[t+4>>2]=n.mode,s()[t+8>>2]=n.nlink,i()[t+12>>2]=n.uid,i()[t+16>>2]=n.gid,i()[t+20>>2]=n.rdev,tr=[n.size>>>0,(er=n.size,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+24>>2]=tr[0],i()[t+28>>2]=tr[1],i()[t+32>>2]=4096,i()[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),u=n.ctime.getTime();return tr=[Math.floor(o/1e3)>>>0,(er=Math.floor(o/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+40>>2]=tr[0],i()[t+44>>2]=tr[1],s()[t+48>>2]=o%1e3*1e3,tr=[Math.floor(a/1e3)>>>0,(er=Math.floor(a/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+56>>2]=tr[0],i()[t+60>>2]=tr[1],s()[t+64>>2]=a%1e3*1e3,tr=[Math.floor(u/1e3)>>>0,(er=Math.floor(u/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+72>>2]=tr[0],i()[t+76>>2]=tr[1],s()[t+80>>2]=u%1e3*1e3,tr=[n.ino>>>0,(er=n.ino,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+88>>2]=tr[0],i()[t+92>>2]=tr[1],0},doMsync(r,e,t,o,a){if(!Tr.isFile(e.node.mode))throw new Tr.ErrnoError(43);if(2&o)return 0;var i=n().slice(r,r+t);Tr.msync(e,i,a,t,o)},varargs:void 0,get(){var r=i()[Sr.varargs>>2];return Sr.varargs+=4,r},getp:()=>Sr.get(),getStr:r=>Cr(r),getStreamFromFD:r=>Tr.getStreamChecked(r)};function Pr(r){if(g)return jt(0,1,r);S=r,Y()||(Ar.terminateAllThreads(),d.onExit&&d.onExit(r),x=!0),y(r,new sr(r))}var Mr=(r,e)=>{if(S=r,g)throw jr(r),"unwind";Pr(r)},Dr=r=>{if(r instanceof sr||"unwind"==r)return S;y(1,r)},Ar={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){g?Ar.initWorker():Ar.initMainThread()},initMainThread(){for(var r=Math.min(4,Math.max(1,navigator.hardwareConcurrency-1));r--;)Ar.allocateUnusedWorker();q((()=>{X(),Ar.loadWasmModuleToAllWorkers((()=>Z()))}))},initWorker(){C=!1},setExitStatus:r=>{S=r},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var r of Ar.runningWorkers)ur(r);for(var r of Ar.unusedWorkers)ur(r);Ar.unusedWorkers=[],Ar.runningWorkers=[],Ar.pthreads=[]},returnWorkerToPool:r=>{var e=r.pthread_ptr;delete Ar.pthreads[e],Ar.unusedWorkers.push(r),Ar.runningWorkers.splice(Ar.runningWorkers.indexOf(r),1),r.pthread_ptr=0,On(e)},receiveObjectTransfer(r){},threadInitTLS(){Ar.tlsInitFunctions.forEach((r=>r()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var n=r.data,o=n.cmd;if(n.targetThread&&n.targetThread!=Mn()){var a=Ar.pthreads[n.targetThread];a?a.postMessage(n,n.transferList):k(`Internal error! Worker sent a message "${o}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var i;"checkMailbox"===o?At():"spawnThread"===o?lr(n):"cleanupThread"===o?cr(n.thread):"killThread"===o?(r=>{var e=Ar.pthreads[r];delete Ar.pthreads[r],ur(e),On(r),Ar.runningWorkers.splice(Ar.runningWorkers.indexOf(e),1),e.pthread_ptr=0})(n.thread):"cancelThread"===o?(i=n.thread,Ar.pthreads[i].postMessage({cmd:"cancel"})):"loaded"===o?(e.loaded=!0,t(e)):"alert"===o?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===o?d[n.handler](...n.args):o&&k(`worker sent an unknown command ${o}`)}},e.onerror=r=>{throw k(`worker sent an error! ${r.filename}:${r.lineno}: ${r.message}`),r};var n=[];for(var o of["onExit","onAbort","print","printErr"])d.hasOwnProperty(o)&&n.push(o);e.postMessage({cmd:"load",handlers:n,urlOrBlob:d.mainScriptUrlOrBlob||r,wasmMemory:$,wasmModule:T})})),loadWasmModuleToAllWorkers(r){if(g)return r();Promise.all(Ar.unusedWorkers.map(Ar.loadWasmModuleToWorker)).then(r)},allocateUnusedWorker(){var r,e=b("ScanbotSDK.Asm-simd-threads.worker.js");r=new Worker(e),Ar.unusedWorkers.push(r)},getNewWorker:()=>(0==Ar.unusedWorkers.length&&(Ar.allocateUnusedWorker(),Ar.loadWasmModuleToWorker(Ar.unusedWorkers[0])),Ar.unusedWorkers.pop())};d.PThread=Ar;var Fr=r=>{for(;r.length>0;)r.shift()(d)};function jr(r){if(g)return jt(1,0,r);Mr(r)}d.establishStackSpace=()=>{var r=Mn(),e=i()[r+52>>2],t=i()[r+56>>2];In(e,e-t),zn(e)};var Wr=r=>I.get(r);d.invokeEntryPoint=(r,e)=>{!function(r){Y()?Ar.setExitStatus(r):xn(r)}(Wr(r)(e))};var Or=r=>{Ar.tlsInitFunctions.push(r)},xr=[],Rr=0,Nr=0;function Ir(r){this.excPtr=r,this.ptr=r-24,this.set_type=function(r){s()[this.ptr+4>>2]=r},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(r){s()[this.ptr+8>>2]=r},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,t()[this.ptr+12>>0]=r},this.get_caught=function(){return 0!=t()[this.ptr+12>>0]},this.set_rethrown=function(r){r=r?1:0,t()[this.ptr+13>>0]=r},this.get_rethrown=function(){return 0!=t()[this.ptr+13>>0]},this.init=function(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)},this.set_adjusted_ptr=function(r){s()[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Vn(this.get_type()))return s()[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var Ur=r=>{var e=Nr;if(!e)return Dn(0),0;var t=new Ir(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Dn(0),e;for(var o in r){var a=r[o];if(0===a||a===n)break;var i=t.ptr+16;if(Yn(a,n,i))return Dn(a),e}return Dn(n),e},zr=()=>{var r=xr.pop();r||Q("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(xr.push(r),r.set_rethrown(!0),r.set_caught(!1),Rr++),Nr=e};function Hr(r,e,t,n){return g?jt(2,1,r,e,t,n):Lr(r,e,t,n)}var Lr=(r,e,t,n)=>{if("undefined"==typeof SharedArrayBuffer)return k("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(g&&0===o.length)return Hr(r,e,t,n);var a={startRoutine:t,pthread_ptr:r,arg:n,transferList:o};return g?(a.cmd="spawnThread",postMessage(a,o),0):lr(a)};function Br(r,e,t,n,o){if(g)return jt(3,1,r,e,t,n,o);try{for(var a=0,s=e?i()[e>>2]:0,u=e?i()[e+4>>2]:0,c=t?i()[t>>2]:0,l=t?i()[t+4>>2]:0,d=n?i()[n>>2]:0,f=n?i()[n+4>>2]:0,h=0,p=0,m=0,v=0,y=0,w=0,b=(e?i()[e>>2]:0)|(t?i()[t>>2]:0)|(n?i()[n>>2]:0),_=(e?i()[e+4>>2]:0)|(t?i()[t+4>>2]:0)|(n?i()[n+4>>2]:0),E=function(r,e,t,n){return r<32?e&n:t&n},k=0;k<r;k++){var $=1<<k%32;if(E(k,b,_,$)){var T=Sr.getStreamFromFD(k),C=Sr.DEFAULT_POLLMASK;if(T.stream_ops.poll){var S=-1;if(o)S=1e3*((e?i()[o>>2]:0)+(e?i()[o+8>>2]:0)/1e6);C=T.stream_ops.poll(T,S)}1&C&&E(k,s,u,$)&&(k<32?h|=$:p|=$,a++),4&C&&E(k,c,l,$)&&(k<32?m|=$:v|=$,a++),2&C&&E(k,d,f,$)&&(k<32?y|=$:w|=$,a++)}}return e&&(i()[e>>2]=h,i()[e+4>>2]=p),t&&(i()[t>>2]=m,i()[t+4>>2]=v),n&&(i()[n>>2]=y,i()[n+4>>2]=w),a}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Yr(r,e){if(g)return jt(4,1,r,e);try{return r=Sr.getStr(r),Tr.chmod(r,e),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Vr(r,e){if(g)return jt(5,1,r,e);try{return Tr.fchmod(r,e),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function qr(r,e,t){if(g)return jt(6,1,r,e,t);Sr.varargs=t;try{var n=Sr.getStreamFromFD(r);switch(e){case 0:if((a=Sr.get())<0)return-28;for(;Tr.streams[a];)a++;return Tr.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=Sr.get();return n.flags|=a,0;case 5:a=Sr.getp();return o()[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return s=28,i()[Pn()>>2]=s,-1}}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}var s}function Gr(r,e){if(g)return jt(7,1,r,e);try{var t=Sr.getStreamFromFD(r);return Sr.doStat(Tr.stat,t.path,e)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}var Kr=(r,e)=>e+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*e:NaN;function Jr(r,e,t){if(g)return jt(8,1,r,e,t);var n=Kr(e,t);try{return isNaN(n)?61:(Tr.ftruncate(r,n),0)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}var Xr=(r,e,t)=>gr(r,n(),e,t);function Zr(r,e){if(g)return jt(9,1,r,e);try{if(0===e)return-28;var t=Tr.cwd(),n=yr(t)+1;return e<n?-68:(Xr(t,r,e),n)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Qr(r,e,n){if(g)return jt(10,1,r,e,n);try{var a=Sr.getStreamFromFD(r);a.getdents||(a.getdents=Tr.readdir(a.path));for(var s=280,u=0,c=Tr.llseek(a,0,1),l=Math.floor(c/s);l<a.getdents.length&&u+s<=n;){var d,f,h=a.getdents[l];if("."===h)d=a.node.id,f=4;else if(".."===h){d=Tr.lookupPath(a.path,{parent:!0}).node.id,f=4}else{var p=Tr.lookupNode(a.node,h);d=p.id,f=Tr.isChrdev(p.mode)?2:Tr.isDir(p.mode)?4:Tr.isLink(p.mode)?10:8}tr=[d>>>0,(er=d,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+u>>2]=tr[0],i()[e+u+4>>2]=tr[1],tr=[(l+1)*s>>>0,(er=(l+1)*s,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+u+8>>2]=tr[0],i()[e+u+12>>2]=tr[1],o()[e+u+16>>1]=280,t()[e+u+18>>0]=f,Xr(h,e+u+19,256),u+=s,l+=1}return Tr.llseek(a,l*s,0),u}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function re(r,e,n){if(g)return jt(11,1,r,e,n);Sr.varargs=n;try{var a=Sr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.tty?0:-59;case 21505:if(!a.tty)return-59;if(a.tty.ops.ioctl_tcgets){var s=a.tty.ops.ioctl_tcgets(a),u=Sr.getp();i()[u>>2]=s.c_iflag||0,i()[u+4>>2]=s.c_oflag||0,i()[u+8>>2]=s.c_cflag||0,i()[u+12>>2]=s.c_lflag||0;for(var c=0;c<32;c++)t()[u+c+17>>0]=s.c_cc[c]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!a.tty)return-59;if(a.tty.ops.ioctl_tcsets){u=Sr.getp();var l=i()[u>>2],d=i()[u+4>>2],f=i()[u+8>>2],h=i()[u+12>>2],p=[];for(c=0;c<32;c++)p.push(t()[u+c+17>>0]);return a.tty.ops.ioctl_tcsets(a.tty,e,{c_iflag:l,c_oflag:d,c_cflag:f,c_lflag:h,c_cc:p})}return 0;case 21519:if(!a.tty)return-59;u=Sr.getp();return i()[u>>2]=0,0;case 21520:return a.tty?-28:-59;case 21531:u=Sr.getp();return Tr.ioctl(a,e,u);case 21523:if(!a.tty)return-59;if(a.tty.ops.ioctl_tiocgwinsz){var m=a.tty.ops.ioctl_tiocgwinsz(a.tty);u=Sr.getp();o()[u>>1]=m[0],o()[u+2>>1]=m[1]}return 0;default:return-28}}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ee(r,e){if(g)return jt(12,1,r,e);try{return r=Sr.getStr(r),Sr.doStat(Tr.lstat,r,e)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function te(r,e,t){if(g)return jt(13,1,r,e,t);try{return e=Sr.getStr(e),e=Sr.calculateAt(r,e),"/"===(e=dr.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),Tr.mkdir(e,t,0),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ne(r,e,t,n){if(g)return jt(14,1,r,e,t,n);try{e=Sr.getStr(e);var o=256&n,a=4096&n;return n&=-6401,e=Sr.calculateAt(r,e,a),Sr.doStat(o?Tr.lstat:Tr.stat,e,t)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function oe(r,e,t,n){if(g)return jt(15,1,r,e,t,n);Sr.varargs=n;try{e=Sr.getStr(e),e=Sr.calculateAt(r,e);var o=n?Sr.get():0;return Tr.open(e,t,o).fd}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ae(r,e,n,o){if(g)return jt(16,1,r,e,n,o);try{if(e=Sr.getStr(e),e=Sr.calculateAt(r,e),o<=0)return-28;var a=Tr.readlink(e),i=Math.min(o,yr(a)),s=t()[n+i];return Xr(a,n,o+1),t()[n+i]=s,i}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ie(r){if(g)return jt(17,1,r);try{return r=Sr.getStr(r),Tr.rmdir(r),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function se(r,e){if(g)return jt(18,1,r,e);try{return r=Sr.getStr(r),Sr.doStat(Tr.stat,r,e)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ue(r,e){if(g)return jt(19,1,r,e);try{return r=Sr.getStr(r),e=Sr.getStr(e),Tr.symlink(r,e),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ce(r,e,t){if(g)return jt(20,1,r,e,t);try{return e=Sr.getStr(e),e=Sr.calculateAt(r,e),0===t?Tr.unlink(e):512===t?Tr.rmdir(e):Q("Invalid flags passed to unlinkat"),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}var le=void 0,de=r=>{for(var e="",t=r;n()[t];)e+=le[n()[t++]];return e},fe={},he={},pe={},me=void 0,ve=r=>{throw new me(r)},ye=void 0,ge=r=>{throw new ye(r)},we=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&ge("Mismatched type converter count");for(var o=0;o<r.length;++o)be(r[o],n[o])}r.forEach((function(r){pe[r]=e}));var o=new Array(e.length),a=[],i=0;e.forEach(((r,e)=>{he.hasOwnProperty(r)?o[e]=he[r]:(a.push(r),fe.hasOwnProperty(r)||(fe[r]=[]),fe[r].push((()=>{o[e]=he[r],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function be(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||ve(`type "${n}" must have a positive integer typeid pointer`),he.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;ve(`Cannot register type '${n}' twice`)}if(he[r]=e,delete pe[r],fe.hasOwnProperty(r)){var o=fe[r];delete fe[r],o.forEach((r=>r()))}}(r,e,t)}function _e(r){if(!(this instanceof Le))return!1;if(!(r instanceof Le))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o}var Ee=r=>{ve(r.$$.ptrType.registeredClass.name+" instance already deleted")},ke=!1,$e=r=>{},Te=r=>{r.count.value-=1,0===r.count.value&&(r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)})(r)},Ce=(r,e,t)=>{if(e===t)return r;if(void 0===t.baseClass)return null;var n=Ce(r,e,t.baseClass);return null===n?null:t.downcast(n)},Se={},Pe=()=>Object.keys(We).length,Me=()=>{var r=[];for(var e in We)We.hasOwnProperty(e)&&r.push(We[e]);return r},De=[],Ae=()=>{for(;De.length;){var r=De.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe=void 0,je=r=>{Fe=r,De.length&&Fe&&Fe(Ae)},We={},Oe=(r,e)=>(e=((r,e)=>{for(void 0===e&&ve("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e})(r,e),We[e]),xe=(r,e)=>(e.ptrType&&e.ptr||ge("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!==!!e.smartPtr&&ge("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Ne(Object.create(r,{$$:{value:e}})));function Re(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=Oe(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?xe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):xe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a,i=this.registeredClass.getActualType(e),s=Se[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=Ce(e,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:r}):xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}var Ne=r=>"undefined"==typeof FinalizationRegistry?(Ne=r=>r,r):(ke=new FinalizationRegistry((r=>{Te(r.$$)})),Ne=r=>{var e=r.$$;if(!!e.smartPtr){var t={$$:e};ke.register(r,t,r)}return r},$e=r=>ke.unregister(r),Ne(r));function Ie(){if(this.$$.ptr||Ee(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r,e=Ne(Object.create(Object.getPrototypeOf(this),{$$:{value:(r=this.$$,{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ue(){this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ve("Object already scheduled for deletion"),$e(this),Te(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function ze(){return!this.$$.ptr}function He(){return this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ve("Object already scheduled for deletion"),De.push(this),1===De.length&&Fe&&Fe(Ae),this.$$.deleteScheduled=!0,this}function Le(){}var Be=r=>{if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${r}`:r};function Ye(r,e){return{[r=Be(r)]:function(){return e.apply(this,arguments)}}[r]}var Ve=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||ve(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{d.hasOwnProperty(r)?((void 0===t||void 0!==d[r].overloadTable&&void 0!==d[r].overloadTable[t])&&ve(`Cannot register public name '${r}' twice`),Ve(d,r,r),d.hasOwnProperty(t)&&ve(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),d[r].overloadTable[t]=e):(d[r]=e,void 0!==t&&(d[r].numArguments=t))};function Ge(r,e,t,n,o,a,i,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Ke=(r,e,t)=>{for(;e!==t;)e.upcast||ve(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Je(r,e){if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass;return Ke(e.$$.ptr,t,this.registeredClass)}function Xe(r,e){var t;if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&ve(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Ke(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&ve("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:ve(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,yt.toHandle((()=>o.delete()))),null!==r&&r.push(this.rawDestructor,t)}break;default:ve("Unsupporting sharing policy")}return t}function Ze(r,e){if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&ve(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass;return Ke(e.$$.ptr,t,this.registeredClass)}function Qe(r){return this.fromWireType(s()[r>>2])}function rt(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r}function et(r){this.rawDestructor&&this.rawDestructor(r)}var tt=r=>{null!==r&&r.delete()};function nt(r,e,t,n,o,a,i,s,u,c,l){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,o||void 0!==e.baseClass?this.toWireType=Xe:n?(this.toWireType=Je,this.destructorFunction=null):(this.toWireType=Ze,this.destructorFunction=null)}var ot=(r,e,t)=>{d.hasOwnProperty(r)||ge("Replacing nonexistant public symbol"),void 0!==d[r].overloadTable&&void 0!==t?d[r].overloadTable[t]=e:(d[r]=e,d[r].argCount=t)},at=(r,e,t)=>r.includes("j")?((r,e,t)=>{var n=d["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)})(r,e,t):Wr(e).apply(null,t),it=(r,e)=>{var t,n,o,a=(r=de(r)).includes("j")?(t=r,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),at(t,n,o)}):Wr(e);return"function"!=typeof a&&ve(`unknown function pointer with signature ${r}: ${e}`),a},st=void 0,ut=r=>{var e=Fn(r),t=de(e);return Sn(e),t},ct=(r,e)=>{var t=[],n={};throw e.forEach((function r(e){n[e]||he[e]||(pe[e]?pe[e].forEach(r):(t.push(e),n[e]=!0))})),new st(`${r}: `+t.map(ut).join([", "]))},lt=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function dt(r,e,t,n,o,a){var i=e.length;i<2&&ve("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&null!==t,u=!1,c=1;c<e.length;++c)if(null!==e[c]&&void 0===e[c].destructorFunction){u=!0;break}var l="void"!==e[0].name,d=i-2,f=new Array(d),h=[],p=[];return function(){var t;arguments.length!==d&&ve(`function ${r} called with ${arguments.length} arguments, expected ${d}`),p.length=0,h.length=s?2:1,h[0]=o,s&&(t=e[1].toWireType(p,this),h[1]=t);for(var a=0;a<d;++a)f[a]=e[a+2].toWireType(p,arguments[a]),h.push(f[a]);var i=n.apply(null,h);function c(r){if(u)lt(p);else for(var n=s?1:2;n<e.length;n++){var o=1===n?t:f[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(o)}if(l)return e[0].fromWireType(r)}return c(i)}}var ft=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(s()[e+4*n>>2]);return t};function ht(){this.allocated=[void 0],this.freelist=[]}var pt=new ht,mt=r=>{r>=pt.reserved&&0==--pt.get(r).refcount&&pt.free(r)},vt=()=>{for(var r=0,e=pt.reserved;e<pt.allocated.length;++e)void 0!==pt.allocated[e]&&++r;return r},yt={toValue:r=>(r||ve("Cannot use deleted val. handle = "+r),pt.get(r).value),toHandle:r=>{switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return pt.allocate({refcount:1,value:r})}}};function gt(r){return this.fromWireType(i()[r>>2])}var wt=r=>{if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r},bt=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(($.buffer!=P.buffer&&N(),W)[r>>2])};case 8:return function(r){return this.fromWireType(u()[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},_t=(r,e,u)=>{switch(e){case 1:return u?r=>t()[r>>0]:r=>n()[r>>0];case 2:return u?r=>o()[r>>1]:r=>a()[r>>1];case 4:return u?r=>i()[r>>2]:r=>s()[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Et="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,kt=(r,e)=>{for(var t=r,i=t>>1,s=i+e/2;!(i>=s)&&a()[i];)++i;if((t=i<<1)-r>32&&Et)return Et.decode(n().slice(r,t));for(var u="",c=0;!(c>=e/2);++c){var l=o()[r+2*c>>1];if(0==l)break;u+=String.fromCharCode(l)}return u},$t=(r,e,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,i=0;i<a;++i){var s=r.charCodeAt(i);o()[e>>1]=s,e+=2}return o()[e>>1]=0,e-n},Tt=r=>2*r.length,Ct=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var o=i()[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},St=(r,e,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a);if(i()[e>>2]=s,(e+=4)+4>o)break}return i()[e>>2]=0,e-n},Pt=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Mt=r=>{if(!x)try{r(),(()=>{if(!Y())try{g?xn(S):Mr(S)}catch(r){Dr(r)}})()}catch(r){Dr(r)}},Dt=r=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(i(),r>>2,r).value.then(At);var e=r+128;Atomics.store(i(),e>>2,1)}};d.__emscripten_thread_mailbox_await=Dt;var At=()=>{var r=Mn();r&&(Dt(r),Mt((()=>Rn())))};d.checkMailbox=At;var Ft=r=>{var e=Un(),t=r();return zn(e),t},jt=function(r,e){var t=arguments.length-2,n=arguments;return Ft((()=>{for(var o=t,a=Hn(8*o),i=a>>3,s=0;s<t;s++){var c=n[2+s];u()[i+s]=c}return Wn(r,o,a,e)}))},Wt=[],Ot=(r,e)=>{var t=he[r];return void 0===t&&ve(e+" has unknown type "+ut(r)),t},xt={},Rt=r=>{var e=xt[r];return void 0===e?de(r):e},Nt=[],It=()=>{if("object"==typeof globalThis)return globalThis;function r(r){r.$$$embind_global$$$=r;var e="object"==typeof $$$embind_global$$$&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof global&&r(global)?$$$embind_global$$$=global:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},Ut=[];var zt=r=>r%4==0&&(r%100!=0||r%400==0),Ht=[0,31,60,91,121,152,182,213,244,274,305,335],Lt=[0,31,59,90,120,151,181,212,243,273,304,334],Bt=r=>(zt(r.getFullYear())?Ht:Lt)[r.getMonth()]+r.getDate()-1;function Yt(r,e,t,n,o,a,u,c){if(g)return jt(21,1,r,e,t,n,o,a,u,c);var l=Kr(o,a);try{if(isNaN(l))return 61;var d=Sr.getStreamFromFD(n),f=Tr.mmap(d,r,l,e,t),h=f.ptr;return i()[u>>2]=f.allocated,s()[c>>2]=h,0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Vt(r,e,t,n,o,a,i){if(g)return jt(22,1,r,e,t,n,o,a,i);var s=Kr(a,i);try{if(isNaN(s))return 61;var u=Sr.getStreamFromFD(o);2&t&&Sr.doMsync(r,u,e,n,s),Tr.munmap(u)}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return-r.errno}}var qt,Gt=r=>{var e=yr(r)+1,t=Cn(e);return t&&Xr(r,t,e),t},Kt=[],Jt=(r,e,t)=>{var o=((r,e)=>{var t;for(Kt.length=0;t=n()[r++];)e+=105!=t&&e%8?4:0,Kt.push(105==t?i()[e>>2]:u()[e>>3]),e+=105==t?4:8;return Kt})(e,t);return ir[r].apply(null,o)};qt=()=>performance.timeOrigin+performance.now();var Xt=r=>{Q("OOM")},Zt=r=>{var e=(r-$.buffer.byteLength+65535)/65536;try{return $.grow(e),N(),1}catch(r){}},Qt={},rn=()=>{if(!rn.strings){var r={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",_:v||"./this.program"};for(var e in Qt)void 0===Qt[e]?delete r[e]:r[e]=Qt[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);rn.strings=t}return rn.strings},en=function(r,e){if(g)return jt(23,1,r,e);var n=0;return rn().forEach(((o,a)=>{var i=e+n;s()[r+4*a>>2]=i,((r,e)=>{for(var n=0;n<r.length;++n)t()[e++>>0]=r.charCodeAt(n);t()[e>>0]=0})(o,i),n+=o.length+1})),0},tn=function(r,e){if(g)return jt(24,1,r,e);var t=rn();s()[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),s()[e>>2]=n,0};function nn(r){if(g)return jt(25,1,r);try{var e=Sr.getStreamFromFD(r);return Tr.close(e),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return r.errno}}function on(r,e){if(g)return jt(26,1,r,e);try{var n=Sr.getStreamFromFD(r),a=n.tty?2:Tr.isDir(n.mode)?3:Tr.isLink(n.mode)?7:4;return t()[e>>0]=a,o()[e+2>>1]=0,tr=[0,(er=0,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+8>>2]=tr[0],i()[e+12>>2]=tr[1],tr=[0,(er=0,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+16>>2]=tr[0],i()[e+20>>2]=tr[1],0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return r.errno}}function an(r,e,n,o){if(g)return jt(27,1,r,e,n,o);try{var a=((r,e,n,o)=>{for(var a=0,i=0;i<n;i++){var u=s()[e>>2],c=s()[e+4>>2];e+=8;var l=Tr.read(r,t(),u,c,o);if(l<0)return-1;if(a+=l,l<c)break;"undefined"!=typeof o&&(o+=l)}return a})(Sr.getStreamFromFD(r),e,n);return s()[o>>2]=a,0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return r.errno}}function sn(r,e,t,n,o){if(g)return jt(28,1,r,e,t,n,o);var a=Kr(e,t);try{if(isNaN(a))return 61;var s=Sr.getStreamFromFD(r);return Tr.llseek(s,a,n),tr=[s.position>>>0,(er=s.position,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[o>>2]=tr[0],i()[o+4>>2]=tr[1],s.getdents&&0===a&&0===n&&(s.getdents=null),0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return r.errno}}function un(r,e,n,o){if(g)return jt(29,1,r,e,n,o);try{var a=((r,e,n,o)=>{for(var a=0,i=0;i<n;i++){var u=s()[e>>2],c=s()[e+4>>2];e+=8;var l=Tr.write(r,t(),u,c,o);if(l<0)return-1;a+=l,"undefined"!=typeof o&&(o+=l)}return a})(Sr.getStreamFromFD(r),e,n);return s()[o>>2]=a,0}catch(r){if("undefined"==typeof Tr||"ErrnoError"!==r.name)throw r;return r.errno}}var cn=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},ln=[31,29,31,30,31,30,31,31,30,31,30,31],dn=[31,28,31,30,31,30,31,31,30,31,30,31],fn=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=zt(t.getFullYear()),o=t.getMonth(),a=(n?ln:dn)[o];if(!(e>a-t.getDate()))return t.setDate(t.getDate()+e),t;e-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t},hn=(r,e,n,o)=>{var a=s()[o+40>>2],u={tm_sec:i()[o>>2],tm_min:i()[o+4>>2],tm_hour:i()[o+8>>2],tm_mday:i()[o+12>>2],tm_mon:i()[o+16>>2],tm_year:i()[o+20>>2],tm_wday:i()[o+24>>2],tm_yday:i()[o+28>>2],tm_isdst:i()[o+32>>2],tm_gmtoff:i()[o+36>>2],tm_zone:a?Cr(a):""},c=Cr(n),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var d in l)c=c.replace(new RegExp(d,"g"),l[d]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function m(r,e){return p(r,e,"0")}function v(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function y(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function g(r){var e=fn(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),o=y(t),a=y(n);return v(o,e)<=0?v(a,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var w={"%a":r=>f[r.tm_wday].substring(0,3),"%A":r=>f[r.tm_wday],"%b":r=>h[r.tm_mon].substring(0,3),"%B":r=>h[r.tm_mon],"%C":r=>m((r.tm_year+1900)/100|0,2),"%d":r=>m(r.tm_mday,2),"%e":r=>p(r.tm_mday,2," "),"%g":r=>g(r).toString().substring(2),"%G":r=>g(r),"%H":r=>m(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),m(e,2)},"%j":r=>m(r.tm_mday+cn(zt(r.tm_year+1900)?ln:dn,r.tm_mon-1),3),"%m":r=>m(r.tm_mon+1,2),"%M":r=>m(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>m(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return m(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&zt(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&zt(r.tm_year%400-1))&&e++}return m(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return m(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var d in c=c.replace(/%%/g,"\0\0"),w)c.includes(d)&&(c=c.replace(new RegExp(d,"g"),w[d](u)));var b,_,E=wr(c=c.replace(/\0\0/g,"%"),!1);return E.length>e?0:(b=E,_=r,t().set(b,_),E.length-1)},pn=r=>parseInt(r),mn=Gt;Ar.init();var vn,yn,gn,wn=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=Tr.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},bn=365,_n=146;Object.defineProperties(wn.prototype,{read:{get:function(){return(this.mode&bn)===bn},set:function(r){r?this.mode|=bn:this.mode&=-366}},write:{get:function(){return(this.mode&_n)===_n},set:function(r){r?this.mode|=_n:this.mode&=-147}},isFolder:{get:function(){return Tr.isDir(this.mode)}},isDevice:{get:function(){return Tr.isChrdev(this.mode)}}}),Tr.FSNode=wn,Tr.createPreloadedFile=(r,e,t,n,o,a,i,s,u,c)=>{var l=e?hr.resolve(dr.join2(r,e)):r;function d(t){function d(t){c&&c(),s||Tr.createDataFile(r,e,t,n,o,u),a&&a(),Z()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return kr.forEach((a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)})),o})(t,l,d,(()=>{i&&i(),Z()}))||d(t)}X(),"string"==typeof t?((r,e,t,n)=>{var o=n?"":`al ${r}`;h(r,(t=>{R(t,`Loading data file "${r}" failed (no arrayBuffer).`),e(new Uint8Array(t)),o&&Z()}),(e=>{if(!t)throw`Loading data file "${r}" failed.`;t()})),o&&X()})(t,(r=>d(r)),i):d(t)},Tr.staticInit(),(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);le=r})(),me=d.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},ye=d.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},Le.prototype.isAliasOf=_e,Le.prototype.clone=Ie,Le.prototype.delete=Ue,Le.prototype.isDeleted=ze,Le.prototype.deleteLater=He,d.getInheritedInstanceCount=Pe,d.getLiveInheritedInstances=Me,d.flushPendingDeletes=Ae,d.setDelayFunction=je,nt.prototype.getPointee=rt,nt.prototype.destructor=et,nt.prototype.argPackAdvance=8,nt.prototype.readValueFromPointer=Qe,nt.prototype.deleteObject=tt,nt.prototype.fromWireType=Re,st=d.UnboundTypeError=(vn=Error,(gn=Ye(yn="UnboundTypeError",(function(r){this.name=yn,this.message=r;var e=new Error(r).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(vn.prototype),gn.prototype.constructor=gn,gn.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},gn),Object.assign(ht.prototype,{get(r){return this.allocated[r]},has(r){return void 0!==this.allocated[r]},allocate(r){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=r,e},free(r){this.allocated[r]=void 0,this.freelist.push(r)}}),pt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),pt.reserved=pt.allocated.length,d.count_emval_handles=vt;var En,kn=[Pr,jr,Hr,Br,Yr,Vr,qr,Gr,Jr,Zr,Qr,re,ee,te,ne,oe,ae,ie,se,ue,ce,Yt,Vt,en,tn,nn,on,an,sn,un],$n={t:r=>{var e=new Ir(r);return e.get_caught()||(e.set_caught(!0),Rr--),e.set_rethrown(!1),xr.push(e),Bn(e.excPtr),e.get_exception_ptr()},Sb:()=>{if(!xr.length)return 0;var r=xr[xr.length-1];return Bn(r.excPtr),r.excPtr},A:()=>{Nn(0,0);var r=xr.pop();Ln(r.excPtr),Nr=0},b:()=>Ur([]),j:r=>Ur([r]),B:(r,e)=>Ur([r,e]),za:zr,Rb:r=>{if(r){var e=new Ir(r);xr.push(e),e.set_rethrown(!0),zr()}},p:(r,e,t)=>{throw new Ir(r).init(e,t),Rr++,Nr=r},Tb:()=>Rr,ec:r=>{jn(r,!1,1,!0,4194304,!1),Ar.threadInitTLS()},Pa:r=>{g?postMessage({cmd:"cleanupThread",thread:r}):cr(r)},ac:Lr,d:r=>{throw Nr||(Nr=r),Nr},Zb:Br,Mb:Yr,Nb:Vr,Ta:qr,lc:Gr,tb:Jr,Qb:Zr,Ob:Qr,mc:re,ic:ee,cc:te,jc:ne,Ua:oe,Pb:ae,_b:ie,kc:se,Lb:ue,$b:ce,Eb:(r,e,t,n,o)=>{},sc:(r,e,t,o)=>{be(r,{name:e=de(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:o},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(n()[r])},destructorFunction:null})},Ca:(r,e,t,n,o,a,i,s,u,c,l,d,f)=>{l=de(l),a=it(o,a),s&&(s=it(i,s)),c&&(c=it(u,c)),f=it(d,f);var h=Be(l);qe(h,(function(){ct(`Cannot construct ${l} due to unbound types`,[n])})),we([r,e,t],n?[n]:[],(function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:Le.prototype;var i=Ye(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new me("Use 'new' to construct "+l);if(void 0===d.constructor_body)throw new me(l+" has no accessible constructor");var r=d.constructor_body[arguments.length];if(void 0===r)throw new me(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return r.apply(this,arguments)})),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var d=new Ge(l,i,u,f,t,a,s,c);d.baseClass&&(void 0===d.baseClass.__derivedClasses&&(d.baseClass.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d));var p=new nt(l,d,!0,!1,!1),m=new nt(l+"*",d,!1,!1,!1),v=new nt(l+" const*",d,!1,!0,!1);return Se[r]={pointerType:m,constPointerType:v},ot(h,i),[p,m,v]}))},Ba:(r,e,t,n,o,a,i,s)=>{var u=ft(t,n);e=de(e),a=it(o,a),we([],[r],(function(r){var n=`${(r=r[0]).name}.${e}`;function o(){ct(`Cannot call ${n} due to unbound types`,u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var s=r.registeredClass.constructor;return void 0===s[e]?(o.argCount=t-1,s[e]=o):(Ve(s,e,n),s[e].overloadTable[t-1]=o),we([],u,(function(o){var u=[o[0],null].concat(o.slice(1)),c=dt(n,u,null,a,i);if(void 0===s[e].overloadTable?(c.argCount=t-1,s[e]=c):s[e].overloadTable[t-1]=c,r.registeredClass.__derivedClasses)for(const t of r.registeredClass.__derivedClasses)t.constructor.hasOwnProperty(e)||(t.constructor[e]=c);return[]})),[]}))},fa:(r,e,t,n,o,a,i,s,u)=>{var c=ft(t,n);e=de(e),a=it(o,a),we([],[r],(function(r){var n=`${(r=r[0]).name}.${e}`;function o(){ct(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&r.registeredClass.pureVirtualFunctions.push(e);var u=r.registeredClass.instancePrototype,l=u[e];return void 0===l||void 0===l.overloadTable&&l.className!==r.name&&l.argCount===t-2?(o.argCount=t-2,o.className=r.name,u[e]=o):(Ve(u,e,n),u[e].overloadTable[t-2]=o),we([],c,(function(o){var s=dt(n,o,r,a,i);return void 0===u[e].overloadTable?(s.argCount=t-2,u[e]=s):u[e].overloadTable[t-2]=s,[]})),[]}))},qc:(r,e)=>{be(r,{name:e=de(e),fromWireType:r=>{var e=yt.toValue(r);return mt(r),e},toWireType:(r,e)=>yt.toHandle(e),argPackAdvance:8,readValueFromPointer:gt,destructorFunction:null})},Wa:(r,e,t)=>{be(r,{name:e=de(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:bt(e,t),destructorFunction:null})},ja:(r,e,t,n,o,a,i)=>{var s=ft(e,t);r=de(r),o=it(n,o),qe(r,(function(){ct(`Cannot call ${r} due to unbound types`,s)}),e-1),we([],s,(function(t){var n=[t[0],null].concat(t.slice(1));return ot(r,dt(r,n,null,o,a),e-1),[]}))},aa:(r,e,t,n,o)=>{e=de(e),-1===o&&(o=4294967295);var a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i}var s=e.includes("unsigned");be(r,{name:e,fromWireType:a,toWireType:s?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:_t(e,t,0!==n),destructorFunction:null})},L:(r,e,n)=>{var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=s()[r>>2],n=s()[r+4>>2];return new o(t().buffer,n,e)}be(r,{name:n=de(n),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Va:(r,e)=>{var t="std::string"===(e=de(e));be(r,{name:e,fromWireType:r=>{var e,o=s()[r>>2],a=r+4;if(t)for(var i=a,u=0;u<=o;++u){var c=a+u;if(u==o||0==n()[c]){var l=Cr(i,c-i);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),i=c+1}}else{var d=new Array(o);for(u=0;u<o;++u)d[u]=String.fromCharCode(n()[a+u]);e=d.join("")}return Sn(r),e},toWireType:(r,e)=>{var o;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||ve("Cannot pass non-string to std::string"),o=t&&a?yr(e):e.length;var i=Cn(4+o+1),u=i+4;if(s()[i>>2]=o,t&&a)Xr(e,u,o+1);else if(a)for(var c=0;c<o;++c){var l=e.charCodeAt(c);l>255&&(Sn(u),ve("String has UTF-16 code units that do not fit in 8 bits")),n()[u+c]=l}else for(c=0;c<o;++c)n()[u+c]=e[c];return null!==r&&r.push(Sn,i),i},argPackAdvance:8,readValueFromPointer:Qe,destructorFunction:r=>Sn(r)})},Ha:(r,e,t)=>{var n,o,i,u,c;t=de(t),2===e?(n=kt,o=$t,u=Tt,i=()=>a(),c=1):4===e&&(n=Ct,o=St,u=Pt,i=()=>s(),c=2),be(r,{name:t,fromWireType:r=>{for(var t,o=s()[r>>2],a=i(),u=r+4,l=0;l<=o;++l){var d=r+4+l*e;if(l==o||0==a[d>>c]){var f=n(u,d-u);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),u=d+e}}return Sn(r),t},toWireType:(r,n)=>{"string"!=typeof n&&ve(`Cannot pass non-string to C++ string type ${t}`);var a=u(n),i=Cn(4+a+e);return s()[i>>2]=a>>c,o(n,i+4,a+e),null!==r&&r.push(Sn,i),i},argPackAdvance:8,readValueFromPointer:gt,destructorFunction:r=>Sn(r)})},tc:(r,e)=>{be(r,{isVoid:!0,name:e=de(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},pc:()=>true,Xb:(r,e,t)=>{if(r==e)setTimeout((()=>At()));else if(g)postMessage({targetThread:r,cmd:"checkMailbox"});else{var n=Ar.pthreads[r];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},bc:(r,e,t,n)=>{Wt.length=t;for(var o=n>>3,a=0;a<t;a++)Wt[a]=u()[o+a];var i=r<0?ir[-r-1]:kn[r];Ar.currentProxiedOperationCallerThread=e;var s=i.apply(null,Wt);return Ar.currentProxiedOperationCallerThread=0,s},dc:Dt,oc:r=>{},Ub:()=>{throw 1/0},ka:(r,e,t)=>{r=yt.toValue(r),e=Ot(e,"emval::as");var n=[],o=yt.toHandle(n);return s()[t>>2]=o,e.toWireType(n,r)},ra:(r,e,t,n,o)=>(r=Nt[r])(e=yt.toValue(e),t=Rt(t),(r=>{var e=[];return s()[r>>2]=yt.toHandle(e),e})(n),o),Da:(r,e,t,n)=>{(r=Nt[r])(e=yt.toValue(e),t=Rt(t),null,n)},hc:mt,Ea:r=>0===r?yt.toHandle(It()):(r=Rt(r),yt.toHandle(It()[r])),ga:(r,e)=>{var t=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Ot(s()[e+4*n>>2],"parameter "+n);return t})(r,e),n=t[0],o=n.name+"_$"+t.slice(1).map((function(r){return r.name})).join("_")+"$",a=Ut[o];if(void 0!==a)return a;var i,u,c=new Array(r-1);return i=(e,o,a,i)=>{for(var s=0,u=0;u<r-1;++u)c[u]=t[u+1].readValueFromPointer(i+s),s+=t[u+1].argPackAdvance;var l=e[o].apply(e,c);for(u=0;u<r-1;++u)t[u+1].deleteObject&&t[u+1].deleteObject(c[u]);if(!n.isVoid)return n.toWireType(a,l)},u=Nt.length,Nt.push(i),a=u,Ut[o]=a,a},sb:(r,e)=>(r=yt.toValue(r),e=yt.toValue(e),yt.toHandle(r[e])),y:r=>{r>4&&(pt.get(r).refcount+=1)},qb:(r,e)=>(r=yt.toValue(r))instanceof(e=yt.toValue(e)),la:r=>"number"==typeof(r=yt.toValue(r)),S:r=>"string"==typeof(r=yt.toValue(r)),T:()=>yt.toHandle([]),_:r=>yt.toHandle(Rt(r)),H:()=>yt.toHandle({}),rb:r=>{var e=yt.toValue(r);lt(e),mt(r)},rc:(r,e,t)=>{r=yt.toValue(r),e=yt.toValue(e),t=yt.toValue(t),r[e]=t},$:(r,e)=>{var t=(r=Ot(r,"_emval_take_value")).readValueFromPointer(e);return yt.toHandle(t)},J:r=>(r=yt.toValue(r),yt.toHandle(typeof r)),Ab:function(r,e,t){var n=Kr(r,e),o=new Date(1e3*n);i()[t>>2]=o.getUTCSeconds(),i()[t+4>>2]=o.getUTCMinutes(),i()[t+8>>2]=o.getUTCHours(),i()[t+12>>2]=o.getUTCDate(),i()[t+16>>2]=o.getUTCMonth(),i()[t+20>>2]=o.getUTCFullYear()-1900,i()[t+24>>2]=o.getUTCDay();var a=Date.UTC(o.getUTCFullYear(),0,1,0,0,0,0),s=(o.getTime()-a)/864e5|0;i()[t+28>>2]=s},Bb:function(r,e,t){var n=Kr(r,e),o=new Date(1e3*n);i()[t>>2]=o.getSeconds(),i()[t+4>>2]=o.getMinutes(),i()[t+8>>2]=o.getHours(),i()[t+12>>2]=o.getDate(),i()[t+16>>2]=o.getMonth(),i()[t+20>>2]=o.getFullYear()-1900,i()[t+24>>2]=o.getDay();var a=0|Bt(o);i()[t+28>>2]=a,i()[t+36>>2]=-60*o.getTimezoneOffset();var s=new Date(o.getFullYear(),0,1),u=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=s.getTimezoneOffset(),l=0|(u!=c&&o.getTimezoneOffset()==Math.min(c,u));i()[t+32>>2]=l},Cb:function(r){var e=(()=>{var e=new Date(i()[r+20>>2]+1900,i()[r+16>>2],i()[r+12>>2],i()[r+8>>2],i()[r+4>>2],i()[r>>2],0),t=i()[r+32>>2],n=e.getTimezoneOffset(),o=new Date(e.getFullYear(),0,1),a=new Date(e.getFullYear(),6,1).getTimezoneOffset(),s=o.getTimezoneOffset(),u=Math.min(s,a);if(t<0)i()[r+32>>2]=Number(a!=s&&u==n);else if(t>0!=(u==n)){var c=Math.max(s,a),l=t>0?u:c;e.setTime(e.getTime()+6e4*(l-n))}i()[r+24>>2]=e.getDay();var d=0|Bt(e);return i()[r+28>>2]=d,i()[r>>2]=e.getSeconds(),i()[r+4>>2]=e.getMinutes(),i()[r+8>>2]=e.getHours(),i()[r+12>>2]=e.getDate(),i()[r+16>>2]=e.getMonth(),i()[r+20>>2]=e.getYear(),e.getTime()/1e3})();return Dn((er=e,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)),e>>>0},yb:Yt,zb:Vt,Wb:(r,e,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),u=o.getTimezoneOffset(),c=a.getTimezoneOffset(),l=Math.max(u,c);function d(r){var e=r.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}s()[r>>2]=60*l,i()[e>>2]=Number(u!=c);var f=d(o),h=d(a),p=Gt(f),m=Gt(h);c<u?(s()[t>>2]=p,s()[t+4>>2]=m):(s()[t>>2]=m,s()[t+4>>2]=p)},E:()=>{Q("")},nb:(r,e,t)=>Jt(r,e,t),Qa:()=>{},Ga:()=>Date.now(),nc:()=>{throw B+=1,"unwind"},Yb:()=>2147483648,U:qt,Za:()=>navigator.hardwareConcurrency,Vb:r=>{var e=n().length;if((r>>>=0)<=e)return!1;var t=2147483648;r>t&&Xt();for(var o,a,i=1;i<=4;i*=2){var s=e*(1+.2/i);s=Math.min(s,r+100663296);var u=Math.min(t,(o=Math.max(r,s))+((a=65536)-o%a)%a);if(Zt(u))return!0}Xt()},fc:en,gc:tn,Xa:Mr,ua:nn,Ra:on,Sa:an,Db:sn,Fa:un,pb:function(){return mn(location.toString())},Kb:(r,e)=>(fr(n().subarray(r,r+e)),0),ob:function(){return mn((r=no,self[r(505,"4yGf")][r(513,"1NNl")]()));var r},Ac:function(r,e){var t=Un();try{return Wr(r)(e)}catch(r){if(zn(t),r!==r+0)throw r;Nn(1,0)}},pa:function(r,e,t){var n=Un();try{return Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},xa:function(r,e,t,n,o,a){var i=Un();try{return Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},G:function(r,e,t,n){var o=Un();try{return Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},r:function(r,e){var t=Un();try{return Wr(r)(e)}catch(r){if(zn(t),r!==r+0)throw r;Nn(1,0)}},x:function(r,e,t){var n=Un();try{return Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},Y:function(r,e,t,n){var o=Un();try{return Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},oa:function(r,e,t,n,o){var a=Un();try{return Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},u:function(r){var e=Un();try{return Wr(r)()}catch(r){if(zn(e),r!==r+0)throw r;Nn(1,0)}},h:function(r,e){var t=Un();try{return Wr(r)(e)}catch(r){if(zn(t),r!==r+0)throw r;Nn(1,0)}},hb:function(r,e,t){var n=Un();try{return Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},gb:function(r,e,t,n,o,a,i,s,u){var c=Un();try{return Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},c:function(r,e,t){var n=Un();try{return Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},vc:function(r,e,t,n){var o=Un();try{return Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},i:function(r,e,t,n){var o=Un();try{return Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},Ka:function(r,e,t,n,o){var a=Un();try{return Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},l:function(r,e,t,n,o){var a=Un();try{return Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},Oa:function(r,e,t,n,o,a){var i=Un();try{return Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},o:function(r,e,t,n,o,a){var i=Un();try{return Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},xc:function(r,e,t,n,o,a,i){var s=Un();try{return Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},C:function(r,e,t,n,o,a,i){var s=Un();try{return Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},X:function(r,e,t,n,o,a,i,s){var u=Un();try{return Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},wa:function(r,e,t,n,o,a,i,s,u){var c=Un();try{return Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},z:function(r,e,t,n,o,a,i,s,u,c){var l=Un();try{return Wr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(zn(l),r!==r+0)throw r;Nn(1,0)}},ta:function(r,e,t,n,o,a,i,s,u,c,l,d){var f=Un();try{return Wr(r)(e,t,n,o,a,i,s,u,c,l,d)}catch(r){if(zn(f),r!==r+0)throw r;Nn(1,0)}},vb:function(r,e,t,n,o,a,i){var s=Un();try{return ro(r,e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},Ib:function(r,e,t,n){var o=Un();try{return Gn(r,e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},Gb:function(r,e,t,n){var o=Un();try{return Jn(r,e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},xb:function(r){var e=Un();try{return Zn(r)}catch(r){if(zn(e),r!==r+0)throw r;Nn(1,0)}},Jb:function(r,e){var t=Un();try{return qn(r,e)}catch(r){if(zn(t),r!==r+0)throw r;Nn(1,0)}},wb:function(r,e,t){var n=Un();try{return Qn(r,e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},Hb:function(r,e,t,n){var o=Un();try{return Kn(r,e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},ub:function(r,e,t,n,o){var a=Un();try{return eo(r,e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},m:function(r){var e=Un();try{Wr(r)()}catch(r){if(zn(e),r!==r+0)throw r;Nn(1,0)}},g:function(r,e){var t=Un();try{Wr(r)(e)}catch(r){if(zn(t),r!==r+0)throw r;Nn(1,0)}},Na:function(r,e,t){var n=Un();try{Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},Bc:function(r,e,t,n){var o=Un();try{Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},qa:function(r,e,t){var n=Un();try{Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},Ja:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},e:function(r,e,t){var n=Un();try{Wr(r)(e,t)}catch(r){if(zn(n),r!==r+0)throw r;Nn(1,0)}},R:function(r,e,t,n){var o=Un();try{Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},mb:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},bb:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},va:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},Z:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},La:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},jb:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},I:function(r,e,t,n){var o=Un();try{Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},ca:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},zc:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},fb:function(r,e,t,n,o,a,i,s,u){var c=Un();try{Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},ab:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},ha:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},_a:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},Ia:function(r,e,t,n,o,a,i,s,u){var c=Un();try{Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},f:function(r,e,t,n){var o=Un();try{Wr(r)(e,t,n)}catch(r){if(zn(o),r!==r+0)throw r;Nn(1,0)}},F:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},Aa:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},eb:function(r,e,t,n,o,a,i,s,u,c,l){var d=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(zn(d),r!==r+0)throw r;Nn(1,0)}},M:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},D:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},ia:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},kb:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},W:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},lb:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},$a:function(r,e,t,n,o,a,i,s,u,c){var l=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(zn(l),r!==r+0)throw r;Nn(1,0)}},wc:function(r,e,t,n,o,a,i,s,u,c,l){var d=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(zn(d),r!==r+0)throw r;Nn(1,0)}},k:function(r,e,t,n,o){var a=Un();try{Wr(r)(e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},ya:function(r,e,t,n,o,a,i,s,u){var c=Un();try{Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},Q:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},ba:function(r,e,t,n,o,a,i,s,u,c){var l=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(zn(l),r!==r+0)throw r;Nn(1,0)}},P:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},n:function(r,e,t,n,o,a){var i=Un();try{Wr(r)(e,t,n,o,a)}catch(r){if(zn(i),r!==r+0)throw r;Nn(1,0)}},ib:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},v:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},V:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},q:function(r,e,t,n,o,a,i){var s=Un();try{Wr(r)(e,t,n,o,a,i)}catch(r){if(zn(s),r!==r+0)throw r;Nn(1,0)}},Ma:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},yc:function(r,e,t,n,o,a,i,s,u,c){var l=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(zn(l),r!==r+0)throw r;Nn(1,0)}},ma:function(r,e,t,n,o,a,i,s,u,c,l){var d=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(zn(d),r!==r+0)throw r;Nn(1,0)}},s:function(r,e,t,n,o,a,i,s){var u=Un();try{Wr(r)(e,t,n,o,a,i,s)}catch(r){if(zn(u),r!==r+0)throw r;Nn(1,0)}},w:function(r,e,t,n,o,a,i,s,u){var c=Un();try{Wr(r)(e,t,n,o,a,i,s,u)}catch(r){if(zn(c),r!==r+0)throw r;Nn(1,0)}},N:function(r,e,t,n,o,a,i,s,u,c){var l=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(zn(l),r!==r+0)throw r;Nn(1,0)}},da:function(r,e,t,n,o,a,i,s,u,c,l){var d=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(zn(d),r!==r+0)throw r;Nn(1,0)}},db:function(r,e,t,n,o,a,i,s,u,c,l,d){var f=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l,d)}catch(r){if(zn(f),r!==r+0)throw r;Nn(1,0)}},na:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p){var m=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p)}catch(r){if(zn(m),r!==r+0)throw r;Nn(1,0)}},cb:function(r,e,t,n,o,a,i,s,u,c,l,d,f){var h=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l,d,f)}catch(r){if(zn(h),r!==r+0)throw r;Nn(1,0)}},ea:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p){var m=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p)}catch(r){if(zn(m),r!==r+0)throw r;Nn(1,0)}},sa:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p,m){var v=Un();try{Wr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p,m)}catch(r){if(zn(v),r!==r+0)throw r;Nn(1,0)}},Fb:function(r,e,t,n,o){var a=Un();try{Xn(r,e,t,n,o)}catch(r){if(zn(a),r!==r+0)throw r;Nn(1,0)}},K:r=>r,a:$||d.wasmMemory,Ya:hn,O:(r,e,t,n,o)=>hn(r,e,t,n),uc:(r,e,t)=>{for(var n=Cr(e),o="\\!@#$^&*()+=-[]/{}|:<>?,.",a=0,s=o.length;a<s;++a)n=n.replace(new RegExp("\\"+o[a],"g"),"\\"+o[a]);var u={"%A":"%a","%B":"%b","%c":"%a %b %d %H:%M:%S %Y","%D":"%m\\/%d\\/%y","%e":"%d","%F":"%Y-%m-%d","%h":"%b","%R":"%H\\:%M","%r":"%I\\:%M\\:%S\\s%p","%T":"%H\\:%M\\:%S","%x":"%m\\/%d\\/(?:%y|%Y)","%X":"%H\\:%M\\:%S"};for(var c in u)n=n.replace(c,u[c]);var l={"%a":"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)","%b":"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)","%C":"\\d\\d","%d":"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31","%H":"\\d(?!\\d)|[0,1]\\d|20|21|22|23","%I":"\\d(?!\\d)|0\\d|10|11|12","%j":"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d","%m":"0[1-9]|[1-9](?!\\d)|10|11|12","%M":"0\\d|\\d(?!\\d)|[1-5]\\d","%n":"\\s","%p":"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.","%S":"0\\d|\\d(?!\\d)|[1-5]\\d|60","%U":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%W":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%w":"[0-6]","%y":"\\d\\d","%Y":"\\d\\d\\d\\d","%%":"%","%t":"\\s"};for(var d in l)n=n.replace(d,"("+d+l[d]+")");var f=[];for(a=n.indexOf("%");a>=0;a=n.indexOf("%"))f.push(n[a+1]),n=n.replace(new RegExp("\\%"+n[a+1],"g"),"");var h=new RegExp("^"+n,"i").exec(Cr(r));if(h){var p,m=function(){function r(r,e,t){return"number"!=typeof r||isNaN(r)?e:r>=e?r<=t?r:t:e}return{year:r(i()[t+20>>2]+1900,1970,9999),month:r(i()[t+16>>2],0,11),day:r(i()[t+12>>2],1,31),hour:r(i()[t+8>>2],0,23),min:r(i()[t+4>>2],0,59),sec:r(i()[t>>2],0,59)}}(),v=r=>{var e=f.indexOf(r);if(e>=0)return h[e+1]};if((p=v("S"))&&(m.sec=pn(p)),(p=v("M"))&&(m.min=pn(p)),p=v("H"))m.hour=pn(p);else if(p=v("I")){var y=pn(p);(p=v("p"))&&(y+="P"===p.toUpperCase()[0]?12:0),m.hour=y}if(p=v("Y"))m.year=pn(p);else if(p=v("y")){var g=pn(p);(p=v("C"))?g+=100*pn(p):g+=g<69?2e3:1900,m.year=g}if((p=v("m"))?m.month=pn(p)-1:(p=v("b"))&&(m.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[p.substring(0,3).toUpperCase()]||0),p=v("d"))m.day=pn(p);else if(p=v("j"))for(var w=pn(p),b=zt(m.year),_=0;_<12;++_){var E=cn(b?ln:dn,_-1);w<=E+(b?ln:dn)[_]&&(m.day=w-E)}else if(p=v("a")){var k=p.substring(0,3).toUpperCase();if(p=v("U")){var $={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[k],T=pn(p);S=0===(C=new Date(m.year,0,1)).getDay()?fn(C,$+7*(T-1)):fn(C,7-C.getDay()+$+7*(T-1)),m.day=S.getDate(),m.month=S.getMonth()}else if(p=v("W")){var C,S;$={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[k],T=pn(p);S=1===(C=new Date(m.year,0,1)).getDay()?fn(C,$+7*(T-1)):fn(C,7-C.getDay()+1+$+7*(T-1)),m.day=S.getDate(),m.month=S.getMonth()}}var P=new Date(m.year,m.month,m.day,m.hour,m.min,m.sec,0);return i()[t>>2]=P.getSeconds(),i()[t+4>>2]=P.getMinutes(),i()[t+8>>2]=P.getHours(),i()[t+12>>2]=P.getDate(),i()[t+16>>2]=P.getMonth(),i()[t+20>>2]=P.getFullYear()-1900,i()[t+24>>2]=P.getDay(),i()[t+28>>2]=cn(zt(P.getFullYear())?ln:dn,P.getMonth()-1)+P.getDate()-1,i()[t+32>>2]=0,r+wr(h[0]).length-1}return 0}},Tn=function(){var r,e,t,n,o={a:$n};function a(r,e){var t,n=r.exports;return Or((Tn=n).Jc),I=Tn.Ec,t=Tn.Cc,H.unshift(t),T=e,Z(),n}if(X(),d.instantiateWasm)try{return d.instantiateWasm(o,a)}catch(r){k(`Module.instantiateWasm callback failed with error: ${r}`),l(r)}return(r=_,e=rr,t=o,n=function(r){a(r.instance,r.module)},r||"function"!=typeof WebAssembly.instantiateStreaming||nr(e)||"function"!=typeof fetch?ar(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation"),ar(e,t,n)}))))).catch(l),{}}(),Cn=d._malloc=r=>(Cn=d._malloc=Tn.Dc)(r),Sn=d._free=r=>(Sn=d._free=Tn.Fc)(r),Pn=()=>(Pn=Tn.Gc)(),Mn=d._pthread_self=()=>(Mn=d._pthread_self=Tn.Hc)(),Dn=r=>(Dn=Tn.Ic)(r),An=(d.__emscripten_tls_init=()=>(d.__emscripten_tls_init=Tn.Jc)(),(r,e)=>(An=Tn.Kc)(r,e)),Fn=r=>(Fn=Tn.Lc)(r),jn=(d.__embind_initialize_bindings=()=>(d.__embind_initialize_bindings=Tn.Mc)(),d.__emscripten_thread_init=(r,e,t,n,o,a)=>(jn=d.__emscripten_thread_init=Tn.Nc)(r,e,t,n,o,a)),Wn=(d.__emscripten_thread_crashed=()=>(d.__emscripten_thread_crashed=Tn.Oc)(),(r,e,t,n)=>(Wn=Tn.Pc)(r,e,t,n)),On=r=>(On=Tn.Qc)(r),xn=d.__emscripten_thread_exit=r=>(xn=d.__emscripten_thread_exit=Tn.Rc)(r),Rn=d.__emscripten_check_mailbox=()=>(Rn=d.__emscripten_check_mailbox=Tn.Sc)(),Nn=(r,e)=>(Nn=Tn.Tc)(r,e),In=(r,e)=>(In=Tn.Uc)(r,e),Un=()=>(Un=Tn.Vc)(),zn=r=>(zn=Tn.Wc)(r),Hn=r=>(Hn=Tn.Xc)(r),Ln=r=>(Ln=Tn.Yc)(r),Bn=r=>(Bn=Tn.Zc)(r),Yn=(r,e,t)=>(Yn=Tn._c)(r,e,t),Vn=r=>(Vn=Tn.$c)(r),qn=d.dynCall_ji=(r,e)=>(qn=d.dynCall_ji=Tn.ad)(r,e),Gn=d.dynCall_iij=(r,e,t,n)=>(Gn=d.dynCall_iij=Tn.bd)(r,e,t,n),Kn=d.dynCall_jiii=(r,e,t,n)=>(Kn=d.dynCall_jiii=Tn.cd)(r,e,t,n),Jn=(d.dynCall_viijii=(r,e,t,n,o,a,i)=>(d.dynCall_viijii=Tn.dd)(r,e,t,n,o,a,i),d.dynCall_jjj=(r,e,t,n,o)=>(d.dynCall_jjj=Tn.ed)(r,e,t,n,o),d.dynCall_iiiijj=(r,e,t,n,o,a,i,s)=>(d.dynCall_iiiijj=Tn.fd)(r,e,t,n,o,a,i,s),d.dynCall_viijj=(r,e,t,n,o,a,i)=>(d.dynCall_viijj=Tn.gd)(r,e,t,n,o,a,i),d.dynCall_viiijjj=(r,e,t,n,o,a,i,s,u,c)=>(d.dynCall_viiijjj=Tn.hd)(r,e,t,n,o,a,i,s,u,c),d.dynCall_iji=(r,e,t,n)=>(Jn=d.dynCall_iji=Tn.id)(r,e,t,n)),Xn=d.dynCall_viji=(r,e,t,n,o)=>(Xn=d.dynCall_viji=Tn.jd)(r,e,t,n,o),Zn=(d.dynCall_vij=(r,e,t,n)=>(d.dynCall_vij=Tn.kd)(r,e,t,n),d.dynCall_jiji=(r,e,t,n,o)=>(d.dynCall_jiji=Tn.ld)(r,e,t,n,o),d.dynCall_j=r=>(Zn=d.dynCall_j=Tn.md)(r)),Qn=d.dynCall_jii=(r,e,t)=>(Qn=d.dynCall_jii=Tn.nd)(r,e,t),ro=d.dynCall_iiiiij=(r,e,t,n,o,a,i)=>(ro=d.dynCall_iiiiij=Tn.od)(r,e,t,n,o,a,i),eo=d.dynCall_jiiii=(r,e,t,n,o)=>(eo=d.dynCall_jiiii=Tn.pd)(r,e,t,n,o);d.dynCall_iiiiijj=(r,e,t,n,o,a,i,s,u)=>(d.dynCall_iiiiijj=Tn.qd)(r,e,t,n,o,a,i,s,u),d.dynCall_iiiiiijj=(r,e,t,n,o,a,i,s,u,c)=>(d.dynCall_iiiiiijj=Tn.rd)(r,e,t,n,o,a,i,s,u,c),d.___start_em_js=1584416,d.___stop_em_js=1584524;function to(){if(!(G>0)){if(g)return c(d),V(),void startWorker(d);!function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)q(d.preRun.shift());Fr(z)}(),G>0||(d.setStatus?(d.setStatus("Running..."),setTimeout((function(){setTimeout((function(){d.setStatus("")}),1),r()}),1)):r())}function r(){En||(En=!0,d.calledRun=!0,x||(V(),c(d),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(!g){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)r=d.postRun.shift(),L.unshift(r);var r;Fr(L)}}()))}}if(d.keepRuntimeAlive=Y,d.wasmMemory=$,d.UTF8ToString=Cr,d.stringToUTF8=Xr,d.lengthBytesUTF8=yr,d.ExitStatus=sr,d.allocateUTF8=mn,d.PThread=Ar,J=function r(){En||to(),En||(J=r)},d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();function no(r,e){var t=oo();return no=function(e,n){var o=t[e-=496];if(void 0===no.LsicjK){var a=function(r){for(var e,t,n="",o="",a=0,i=0;t=r.charAt(i++);~t&&(e=a%4?64*e+t:t,a++%4)?n+=String.fromCharCode(255&e>>(-2*a&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var s=0,u=n.length;s<u;s++)o+="%"+("00"+n.charCodeAt(s).toString(16)).slice(-2);return decodeURIComponent(o)},i=function(r,e){var t,n,o=[],i=0,s="";for(r=a(r),n=0;n<256;n++)o[n]=n;for(n=0;n<256;n++)i=(i+o[n]+e.charCodeAt(n%e.length))%256,t=o[n],o[n]=o[i],o[i]=t;n=0,i=0;for(var u=0;u<r.length;u++)i=(i+o[n=(n+1)%256])%256,t=o[n],o[n]=o[i],o[i]=t,s+=String.fromCharCode(r.charCodeAt(u)^o[(o[n]+o[i])%256]);return s};no.KNhFnI=i,r=arguments,no.LsicjK=!0}var s=t[0],u=e+s,c=r[u];return c?o=c:(void 0===no.coaaxF&&(no.coaaxF=!0),o=no.KNhFnI(o,n),r[u]=o),o},no(r,e)}function oo(){var r=["WQixw041xSowcN7dVhiP","rthdQZrvW7NdRmkvWO7cHSkSW5ZcKq","vvTwrG0xW4TSW7D6pCkvWRG","dSkPyuRdU8o/W4zyowRdPhD9","WR/cO8oxutFdS8k5v8o8W6isW5pcVG","zSoKo0PHWR1tWQFcSSksWP9lya","wmohW6PAW67dG3zZ","hmoytXJcRCoyArhcUL4rWOtcTq","WOZdVKNdGKTWBa","W5isWPRcSMjAj2hdJGhcUmkGW6O","WOpcOb7cNHe2zHldTSkEzmkW","WRlcS8kZWRldRWHa","WR7cQCoxxJNdTmk5sSowW4qqW4ZcRG","W7RcM8kPW6Hrr0u8W6KgcCkLaa","ifFcUCofr33dMxFcKcBdKdJdQa","W7bbW6yymJ5m","W4JdS2hdOtRdTCos","WPpcGZOCWOv6uJpdOXKQACk8","W7a8W7inW77dNXGi","xgSQBMbejJflWOO7WRjd"];return(oo=function(){return r})()}to(),function(r,e){for(var t=no,n=r();;)try{if(803267===-parseInt(t(502,"*kQb"))/1*(-parseInt(t(509,"Cgqv"))/2)+-parseInt(t(497,"dY2["))/3+parseInt(t(512,"jig@"))/4+-parseInt(t(508,"nTJ$"))/5+-parseInt(t(499,"myYP"))/6+parseInt(t(515,"dY2["))/7*(parseInt(t(514,"bgsj"))/8)+-parseInt(t(500,"VyGv"))/9)break;n.push(n.shift())}catch(r){n.push(n.shift())}}(oo);var ighnua,ao=(ighnua=!0,function(ovjrup,Euvnak){var Ovjrup=ighnua?function(){if(Euvnak){var Ighnua=Euvnak.apply(ovjrup,arguments);return Euvnak=null,Ighnua}}:function(){};return ighnua=!1,Ovjrup}),io=ao(this,(function(){return!/" + this + "/.constructor("^([^ ]+( +[^ ]+)+)+[^ ]}").test(io)}));return io(),e.ready}})();"object"==typeof exports&&"object"==typeof module?module.exports=initModule:"function"==typeof define&&define.amd&&define([],(()=>initModule));
|
|
1
|
+
var initModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e={}){function t(){return $.buffer!=P.buffer&&I(),P}function n(){return $.buffer!=P.buffer&&I(),M}function o(){return $.buffer!=P.buffer&&I(),D}function a(){return $.buffer!=P.buffer&&I(),A}function i(){return $.buffer!=P.buffer&&I(),F}function s(){return $.buffer!=P.buffer&&I(),W}function u(){return $.buffer!=P.buffer&&I(),O}var c,l,d=e;d.ready=new Promise(((r,e)=>{c=r,l=e}));var f,h,p,m=Object.assign({},d),v="./this.program",y=(r,e)=>{throw e},g=d.ENVIRONMENT_IS_PTHREAD||!1,w="";function b(r){return d.locateFile?d.locateFile(r,w):w+r}w=self.location.href,r&&(w=r),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"",f=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},p=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)},h=(r,e,t)=>{var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var _,E=d.print||console.log.bind(console),k=d.printErr||console.error.bind(console);Object.assign(d,m),m=null,d.arguments&&d.arguments,d.thisProgram&&(v=d.thisProgram),d.quit&&(y=d.quit),d.wasmBinary&&(_=d.wasmBinary);var $,C,T=d.noExitRuntime||!0;"object"!=typeof WebAssembly&&X("no native wasm support detected");var S,P,M,D,A,F,W,j,O,x=!1;function R(r,e){r||X(e)}function I(){var r=$.buffer;d.HEAP8=P=new Int8Array(r),d.HEAP16=D=new Int16Array(r),d.HEAPU8=M=new Uint8Array(r),d.HEAPU16=A=new Uint16Array(r),d.HEAP32=F=new Int32Array(r),d.HEAPU32=W=new Uint32Array(r),d.HEAPF32=j=new Float32Array(r),d.HEAPF64=O=new Float64Array(r)}var U,N=d.INITIAL_MEMORY||67108864;if(R(N>=4194304,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+N+"! (STACK_SIZE=4194304)"),g)$=d.wasmMemory;else if(d.wasmMemory)$=d.wasmMemory;else if(!(($=new WebAssembly.Memory({initial:N/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw k("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");I(),N=$.buffer.byteLength;var H=[],z=[],L=[],B=0;function V(){return T||B>0}function Y(){!0,g||(d.noFSInit||Cr.init.initialized||Cr.init(),Cr.ignorePermissions=!1,br.init(),Fr(z))}function q(r){H.unshift(r)}var G=0,J=null,K=null;function Q(r){G++,d.monitorRunDependencies&&d.monitorRunDependencies(G)}function Z(r){if(G--,d.monitorRunDependencies&&d.monitorRunDependencies(G),0==G&&(null!==J&&(clearInterval(J),J=null),K)){var e=K;K=null,e()}}function X(r){d.onAbort&&d.onAbort(r),k(r="Aborted("+r+")"),x=!0,S=1,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw l(e),e}var rr,er,tr;function nr(r){return r.startsWith("data:application/octet-stream;base64,")}function or(r){if(r==rr&&_)return new Uint8Array(_);if(p)return p(r);throw"both async and sync fetching of the wasm failed"}function ar(r,e,t){return function(r){return _||"function"!=typeof fetch?Promise.resolve().then((()=>or(r))):fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+r+"'";return e.arrayBuffer()})).catch((()=>or(r)))}(r).then((r=>WebAssembly.instantiate(r,e))).then((r=>r)).then(t,(r=>{k(`failed to asynchronously prepare wasm: ${r}`),X(r)}))}nr(rr="ScanbotSDK.Asm-simd-threads.wasm")||(rr=b(rr));var ir={1584524:r=>mn(function(){return this[Tr(r)].toString()}.apply(function(){return this}.call(void 0)))};function sr(r){this.name="ExitStatus",this.message=`Program terminated with exit(${r})`,this.status=r}var ur=r=>{r.terminate(),r.onmessage=r=>{}},cr=r=>{var e=Ar.pthreads[r];R(e),Ar.returnWorkerToPool(e)},lr=r=>{var e=Ar.getNewWorker();if(!e)return 6;Ar.runningWorkers.push(e),Ar.pthreads[r.pthread_ptr]=e,e.pthread_ptr=r.pthread_ptr;var t={cmd:"run",start_routine:r.startRoutine,arg:r.arg,pthread_ptr:r.pthread_ptr};return e.postMessage(t,r.transferList),0},dr={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=dr.isAbs(r),t="/"===r.substr(-1);return(r=dr.normalizeArray(r.split("/").filter((r=>!!r)),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=dr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:r=>{if("/"===r)return"/";var e=(r=(r=dr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?r:r.substr(e+1)},join:function(){var r=Array.prototype.slice.call(arguments);return dr.normalize(r.join("/"))},join2:(r,e)=>dr.normalize(r+"/"+e)},fr=r=>(fr=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return r=>(r.set(crypto.getRandomValues(new Uint8Array(r.byteLength))),r);X("initRandomDevice")})())(r),hr={resolve:function(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:Cr.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";r=n+"/"+r,e=dr.isAbs(n)}return(e?"/":"")+(r=dr.normalizeArray(r.split("/").filter((r=>!!r)),!e).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=hr.resolve(r).substr(1),e=hr.resolve(e).substr(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},pr="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,mr=(r,e,t)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&pr)return pr.decode(r.buffer instanceof SharedArrayBuffer?r.slice(e,o):r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},vr=[],yr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o};function wr(r,e,t){var n=t>0?t:yr(r)+1,o=new Array(n),a=gr(r,o,0,o.length);return e&&(o.length=a),o}var br={ttys:[],init(){},shutdown(){},register(r,e){br.ttys[r]={input:[],output:[],ops:e},Cr.registerDevice(r,br.stream_ops)},stream_ops:{open(r){var e=br.ttys[r.node.rdev];if(!e)throw new Cr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new Cr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new Cr.ErrnoError(29)}if(void 0===s&&0===a)throw new Cr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.timestamp=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new Cr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new Cr.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!vr.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n"),!r)return null;vr=wr(r,!0)}return vr.shift()})(),put_char(r,e){null===e||10===e?(E(mr(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(E(mr(r.output,0)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(mr(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(k(mr(r.output,0)),r.output=[])}}},_r=r=>{r=((r,e)=>Math.ceil(r/e)*e)(r,65536);var e=An(65536,r);return e?((r,e)=>(n().fill(0,r,r+e),r))(e,r):0},Er={ops_table:null,mount:r=>Er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(Cr.isBlkdev(t)||Cr.isFIFO(t))throw new Cr.ErrnoError(63);Er.ops_table||(Er.ops_table={dir:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr,lookup:Er.node_ops.lookup,mknod:Er.node_ops.mknod,rename:Er.node_ops.rename,unlink:Er.node_ops.unlink,rmdir:Er.node_ops.rmdir,readdir:Er.node_ops.readdir,symlink:Er.node_ops.symlink},stream:{llseek:Er.stream_ops.llseek}},file:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr},stream:{llseek:Er.stream_ops.llseek,read:Er.stream_ops.read,write:Er.stream_ops.write,allocate:Er.stream_ops.allocate,mmap:Er.stream_ops.mmap,msync:Er.stream_ops.msync}},link:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr,readlink:Er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Er.node_ops.getattr,setattr:Er.node_ops.setattr},stream:Cr.chrdev_stream_ops}});var o=Cr.createNode(r,e,t,n);return Cr.isDir(o.mode)?(o.node_ops=Er.ops_table.dir.node,o.stream_ops=Er.ops_table.dir.stream,o.contents={}):Cr.isFile(o.mode)?(o.node_ops=Er.ops_table.file.node,o.stream_ops=Er.ops_table.file.stream,o.usedBytes=0,o.contents=null):Cr.isLink(o.mode)?(o.node_ops=Er.ops_table.link.node,o.stream_ops=Er.ops_table.link.stream):Cr.isChrdev(o.mode)&&(o.node_ops=Er.ops_table.chrdev.node,o.stream_ops=Er.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=Cr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,Cr.isDir(r.mode)?e.size=4096:Cr.isFile(r.mode)?e.size=r.usedBytes:Cr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&Er.resizeFileStorage(r,e.size)},lookup(r,e){throw Cr.genericErrors[44]},mknod:(r,e,t,n)=>Er.createNode(r,e,t,n),rename(r,e,t){if(Cr.isDir(r.mode)){var n;try{n=Cr.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new Cr.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir(r,e){var t=Cr.lookupNode(r,e);for(var n in t.contents)throw new Cr.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir(r){var e=[".",".."];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink(r,e,t){var n=Er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!Cr.isLink(r.mode))throw new Cr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,n,o,a,i){if(e.buffer===t().buffer&&(i=!1),!o)return 0;var s=r.node;if(s.timestamp=Date.now(),e.subarray&&(!s.contents||s.contents.subarray)){if(i)return s.contents=e.subarray(n,n+o),s.usedBytes=o,o;if(0===s.usedBytes&&0===a)return s.contents=e.slice(n,n+o),s.usedBytes=o,o;if(a+o<=s.usedBytes)return s.contents.set(e.subarray(n,n+o),a),o}if(Er.expandFileStorage(s,a+o),s.contents.subarray&&e.subarray)s.contents.set(e.subarray(n,n+o),a);else for(var u=0;u<o;u++)s.contents[a+u]=e[n+u];return s.usedBytes=Math.max(s.usedBytes,a+o),o},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&Cr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new Cr.ErrnoError(28);return n},allocate(r,e,t){Er.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap(r,e,n,o,a){if(!Cr.isFile(r.node.mode))throw new Cr.ErrnoError(43);var i,s,u=r.node.contents;if(2&a||u.buffer!==t().buffer){if((n>0||n+e<u.length)&&(u=u.subarray?u.subarray(n,n+e):Array.prototype.slice.call(u,n,n+e)),s=!0,!(i=_r(e)))throw new Cr.ErrnoError(48);t().set(u,i)}else s=!1,i=u.byteOffset;return{ptr:i,allocated:s}},msync:(r,e,t,n,o)=>(Er.stream_ops.write(r,e,0,n,t,!1),0)}},kr=d.preloadPlugins||[],$r=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},Cr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(r,e={}){if(!(r=hr.resolve(r)))return{path:"",node:null};if((e=Object.assign({follow_mount:!0,recurse_count:0},e)).recurse_count>8)throw new Cr.ErrnoError(32);for(var t=r.split("/").filter((r=>!!r)),n=Cr.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&e.parent)break;if(n=Cr.lookupNode(n,t[a]),o=dr.join2(o,t[a]),Cr.isMountpoint(n)&&(!i||i&&e.follow_mount)&&(n=n.mounted.root),!i||e.follow)for(var s=0;Cr.isLink(n.mode);){var u=Cr.readlink(o);if(o=hr.resolve(dr.dirname(o),u),n=Cr.lookupPath(o,{recurse_count:e.recurse_count+1}).node,s++>40)throw new Cr.ErrnoError(32)}}return{path:o,node:n}},getPath(r){for(var e;;){if(Cr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%Cr.nameTable.length},hashAddNode(r){var e=Cr.hashName(r.parent.id,r.name);r.name_next=Cr.nameTable[e],Cr.nameTable[e]=r},hashRemoveNode(r){var e=Cr.hashName(r.parent.id,r.name);if(Cr.nameTable[e]===r)Cr.nameTable[e]=r.name_next;else for(var t=Cr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=Cr.mayLookup(r);if(t)throw new Cr.ErrnoError(t,r);for(var n=Cr.hashName(r.id,e),o=Cr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return Cr.lookup(r,e)},createNode(r,e,t,n){var o=new Cr.FSNode(r,e,t,n);return Cr.hashAddNode(o),o},destroyNode(r){Cr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>49152==(49152&r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>Cr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup(r){var e=Cr.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate(r,e){try{Cr.lookupNode(r,e);return 20}catch(r){}return Cr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=Cr.lookupNode(r,e)}catch(r){return r.errno}var o=Cr.nodePermissions(r,"wx");if(o)return o;if(t){if(!Cr.isDir(n.mode))return 54;if(Cr.isRoot(n)||Cr.getPath(n)===Cr.cwd())return 10}else if(Cr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?Cr.isLink(r.mode)?32:Cr.isDir(r.mode)&&("r"!==Cr.flagsToPermissionString(e)||512&e)?31:Cr.nodePermissions(r,Cr.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=Cr.MAX_OPEN_FDS;r++)if(!Cr.streams[r])return r;throw new Cr.ErrnoError(33)},getStreamChecked(r){var e=Cr.getStream(r);if(!e)throw new Cr.ErrnoError(8);return e},getStream:r=>Cr.streams[r],createStream:(r,e=-1)=>(Cr.FSStream||(Cr.FSStream=function(){this.shared={}},Cr.FSStream.prototype={},Object.defineProperties(Cr.FSStream.prototype,{object:{get(){return this.node},set(r){this.node=r}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(r){this.shared.flags=r}},position:{get(){return this.shared.position},set(r){this.shared.position=r}}})),r=Object.assign(new Cr.FSStream,r),-1==e&&(e=Cr.nextfd()),r.fd=e,Cr.streams[e]=r,r),closeStream(r){Cr.streams[r]=null},chrdev_stream_ops:{open(r){var e=Cr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek(){throw new Cr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){Cr.devices[r]={stream_ops:e}},getDevice:r=>Cr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),Cr.syncFSRequests++,Cr.syncFSRequests>1&&k(`warning: ${Cr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=Cr.getMounts(Cr.root.mount),n=0;function o(r){return Cr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)}))},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&Cr.root)throw new Cr.ErrnoError(10);if(!o&&!a){var i=Cr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,Cr.isMountpoint(n))throw new Cr.ErrnoError(10);if(!Cr.isDir(n.mode))throw new Cr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?Cr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=Cr.lookupPath(r,{follow_mount:!1});if(!Cr.isMountpoint(e.node))throw new Cr.ErrnoError(28);var t=e.node,n=t.mounted,o=Cr.getMounts(n);Object.keys(Cr.nameTable).forEach((r=>{for(var e=Cr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&Cr.destroyNode(e),e=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=Cr.lookupPath(r,{parent:!0}).node,o=dr.basename(r);if(!o||"."===o||".."===o)throw new Cr.ErrnoError(28);var a=Cr.mayCreate(n,o);if(a)throw new Cr.ErrnoError(a);if(!n.node_ops.mknod)throw new Cr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:(r,e)=>(e=void 0!==e?e:438,e&=4095,e|=32768,Cr.mknod(r,e,0)),mkdir:(r,e)=>(e=void 0!==e?e:511,e&=1023,e|=16384,Cr.mknod(r,e,0)),mkdirTree(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{Cr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>("undefined"==typeof t&&(t=e,e=438),e|=8192,Cr.mknod(r,e,t)),symlink(r,e){if(!hr.resolve(r))throw new Cr.ErrnoError(44);var t=Cr.lookupPath(e,{parent:!0}).node;if(!t)throw new Cr.ErrnoError(44);var n=dr.basename(e),o=Cr.mayCreate(t,n);if(o)throw new Cr.ErrnoError(o);if(!t.node_ops.symlink)throw new Cr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=dr.dirname(r),a=dr.dirname(e),i=dr.basename(r),s=dr.basename(e);if(t=Cr.lookupPath(r,{parent:!0}).node,n=Cr.lookupPath(e,{parent:!0}).node,!t||!n)throw new Cr.ErrnoError(44);if(t.mount!==n.mount)throw new Cr.ErrnoError(75);var u,c=Cr.lookupNode(t,i),l=hr.relative(r,a);if("."!==l.charAt(0))throw new Cr.ErrnoError(28);if("."!==(l=hr.relative(e,o)).charAt(0))throw new Cr.ErrnoError(55);try{u=Cr.lookupNode(n,s)}catch(r){}if(c!==u){var d=Cr.isDir(c.mode),f=Cr.mayDelete(t,i,d);if(f)throw new Cr.ErrnoError(f);if(f=u?Cr.mayDelete(n,s,d):Cr.mayCreate(n,s))throw new Cr.ErrnoError(f);if(!t.node_ops.rename)throw new Cr.ErrnoError(63);if(Cr.isMountpoint(c)||u&&Cr.isMountpoint(u))throw new Cr.ErrnoError(10);if(n!==t&&(f=Cr.nodePermissions(t,"w")))throw new Cr.ErrnoError(f);Cr.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{Cr.hashAddNode(c)}}},rmdir(r){var e=Cr.lookupPath(r,{parent:!0}).node,t=dr.basename(r),n=Cr.lookupNode(e,t),o=Cr.mayDelete(e,t,!0);if(o)throw new Cr.ErrnoError(o);if(!e.node_ops.rmdir)throw new Cr.ErrnoError(63);if(Cr.isMountpoint(n))throw new Cr.ErrnoError(10);e.node_ops.rmdir(e,t),Cr.destroyNode(n)},readdir(r){var e=Cr.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new Cr.ErrnoError(54);return e.node_ops.readdir(e)},unlink(r){var e=Cr.lookupPath(r,{parent:!0}).node;if(!e)throw new Cr.ErrnoError(44);var t=dr.basename(r),n=Cr.lookupNode(e,t),o=Cr.mayDelete(e,t,!1);if(o)throw new Cr.ErrnoError(o);if(!e.node_ops.unlink)throw new Cr.ErrnoError(63);if(Cr.isMountpoint(n))throw new Cr.ErrnoError(10);e.node_ops.unlink(e,t),Cr.destroyNode(n)},readlink(r){var e=Cr.lookupPath(r).node;if(!e)throw new Cr.ErrnoError(44);if(!e.node_ops.readlink)throw new Cr.ErrnoError(28);return hr.resolve(Cr.getPath(e.parent),e.node_ops.readlink(e))},stat(r,e){var t=Cr.lookupPath(r,{follow:!e}).node;if(!t)throw new Cr.ErrnoError(44);if(!t.node_ops.getattr)throw new Cr.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>Cr.stat(r,!0),chmod(r,e,t){var n;"string"==typeof r?n=Cr.lookupPath(r,{follow:!t}).node:n=r;if(!n.node_ops.setattr)throw new Cr.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod(r,e){Cr.chmod(r,e,!0)},fchmod(r,e){var t=Cr.getStreamChecked(r);Cr.chmod(t.node,e)},chown(r,e,t,n){var o;"string"==typeof r?o=Cr.lookupPath(r,{follow:!n}).node:o=r;if(!o.node_ops.setattr)throw new Cr.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(r,e,t){Cr.chown(r,e,t,!0)},fchown(r,e,t){var n=Cr.getStreamChecked(r);Cr.chown(n.node,e,t)},truncate(r,e){if(e<0)throw new Cr.ErrnoError(28);var t;"string"==typeof r?t=Cr.lookupPath(r,{follow:!0}).node:t=r;if(!t.node_ops.setattr)throw new Cr.ErrnoError(63);if(Cr.isDir(t.mode))throw new Cr.ErrnoError(31);if(!Cr.isFile(t.mode))throw new Cr.ErrnoError(28);var n=Cr.nodePermissions(t,"w");if(n)throw new Cr.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate(r,e){var t=Cr.getStreamChecked(r);if(0==(2097155&t.flags))throw new Cr.ErrnoError(28);Cr.truncate(t.node,e)},utime(r,e,t){var n=Cr.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open(r,e,t){if(""===r)throw new Cr.ErrnoError(44);var n;if(t="undefined"==typeof t?438:t,t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if("undefined"==typeof e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)n=r;else{r=dr.normalize(r);try{n=Cr.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var o=!1;if(64&e)if(n){if(128&e)throw new Cr.ErrnoError(20)}else n=Cr.mknod(r,t,0),o=!0;if(!n)throw new Cr.ErrnoError(44);if(Cr.isChrdev(n.mode)&&(e&=-513),65536&e&&!Cr.isDir(n.mode))throw new Cr.ErrnoError(54);if(!o){var a=Cr.mayOpen(n,e);if(a)throw new Cr.ErrnoError(a)}512&e&&!o&&Cr.truncate(n,0),e&=-131713;var i=Cr.createStream({node:n,path:Cr.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!d.logReadFiles||1&e||(Cr.readFiles||(Cr.readFiles={}),r in Cr.readFiles||(Cr.readFiles[r]=1)),i},close(r){if(Cr.isClosed(r))throw new Cr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{Cr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(Cr.isClosed(r))throw new Cr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new Cr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Cr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new Cr.ErrnoError(28);if(Cr.isClosed(r))throw new Cr.ErrnoError(8);if(1==(2097155&r.flags))throw new Cr.ErrnoError(8);if(Cr.isDir(r.node.mode))throw new Cr.ErrnoError(31);if(!r.stream_ops.read)throw new Cr.ErrnoError(28);var a="undefined"!=typeof o;if(a){if(!r.seekable)throw new Cr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new Cr.ErrnoError(28);if(Cr.isClosed(r))throw new Cr.ErrnoError(8);if(0==(2097155&r.flags))throw new Cr.ErrnoError(8);if(Cr.isDir(r.node.mode))throw new Cr.ErrnoError(31);if(!r.stream_ops.write)throw new Cr.ErrnoError(28);r.seekable&&1024&r.flags&&Cr.llseek(r,0,2);var i="undefined"!=typeof o;if(i){if(!r.seekable)throw new Cr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},allocate(r,e,t){if(Cr.isClosed(r))throw new Cr.ErrnoError(8);if(e<0||t<=0)throw new Cr.ErrnoError(28);if(0==(2097155&r.flags))throw new Cr.ErrnoError(8);if(!Cr.isFile(r.node.mode)&&!Cr.isDir(r.node.mode))throw new Cr.ErrnoError(43);if(!r.stream_ops.allocate)throw new Cr.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap(r,e,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&r.flags))throw new Cr.ErrnoError(2);if(1==(2097155&r.flags))throw new Cr.ErrnoError(2);if(!r.stream_ops.mmap)throw new Cr.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,munmap:r=>0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new Cr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t,n=Cr.open(r,e.flags),o=Cr.stat(r).size,a=new Uint8Array(o);return Cr.read(n,a,0,o,0),"utf8"===e.encoding?t=mr(a,0):"binary"===e.encoding&&(t=a),Cr.close(n),t},writeFile(r,e,t={}){t.flags=t.flags||577;var n=Cr.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(yr(e)+1),a=gr(e,o,0,o.length);Cr.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");Cr.write(n,e,0,e.byteLength,void 0,t.canOwn)}Cr.close(n)},cwd:()=>Cr.currentPath,chdir(r){var e=Cr.lookupPath(r,{follow:!0});if(null===e.node)throw new Cr.ErrnoError(44);if(!Cr.isDir(e.node.mode))throw new Cr.ErrnoError(54);var t=Cr.nodePermissions(e.node,"x");if(t)throw new Cr.ErrnoError(t);Cr.currentPath=e.path},createDefaultDirectories(){Cr.mkdir("/tmp"),Cr.mkdir("/home"),Cr.mkdir("/home/web_user")},createDefaultDevices(){Cr.mkdir("/dev"),Cr.registerDevice(Cr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n}),Cr.mkdev("/dev/null",Cr.makedev(1,3)),br.register(Cr.makedev(5,0),br.default_tty_ops),br.register(Cr.makedev(6,0),br.default_tty1_ops),Cr.mkdev("/dev/tty",Cr.makedev(5,0)),Cr.mkdev("/dev/tty1",Cr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(e=fr(r).byteLength),r[--e]);Cr.createDevice("/dev","random",t),Cr.createDevice("/dev","urandom",t),Cr.mkdir("/dev/shm"),Cr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Cr.mkdir("/proc");var r=Cr.mkdir("/proc/self");Cr.mkdir("/proc/self/fd"),Cr.mount({mount(){var e=Cr.createNode(r,"fd",16895,73);return e.node_ops={lookup(r,e){var t=+e,n=Cr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},e}},{},"/proc/self/fd")},createStandardStreams(){d.stdin?Cr.createDevice("/dev","stdin",d.stdin):Cr.symlink("/dev/tty","/dev/stdin"),d.stdout?Cr.createDevice("/dev","stdout",null,d.stdout):Cr.symlink("/dev/tty","/dev/stdout"),d.stderr?Cr.createDevice("/dev","stderr",null,d.stderr):Cr.symlink("/dev/tty1","/dev/stderr");Cr.open("/dev/stdin",0),Cr.open("/dev/stdout",1),Cr.open("/dev/stderr",1)},ensureErrnoError(){Cr.ErrnoError||(Cr.ErrnoError=function(r,e){this.name="ErrnoError",this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message="FS error"},Cr.ErrnoError.prototype=new Error,Cr.ErrnoError.prototype.constructor=Cr.ErrnoError,[44].forEach((r=>{Cr.genericErrors[r]=new Cr.ErrnoError(r),Cr.genericErrors[r].stack="<generic error, no stack>"})))},staticInit(){Cr.ensureErrnoError(),Cr.nameTable=new Array(4096),Cr.mount(Er,{},"/"),Cr.createDefaultDirectories(),Cr.createDefaultDevices(),Cr.createSpecialDirectories(),Cr.filesystems={MEMFS:Er}},init(r,e,t){Cr.init.initialized=!0,Cr.ensureErrnoError(),d.stdin=r||d.stdin,d.stdout=e||d.stdout,d.stderr=t||d.stderr,Cr.createStandardStreams()},quit(){Cr.init.initialized=!1;for(var r=0;r<Cr.streams.length;r++){var e=Cr.streams[r];e&&Cr.close(e)}},findObject(r,e){var t=Cr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=Cr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Cr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=dr.basename(r),n=Cr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:Cr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=dr.join2(r,a);try{Cr.mkdir(i)}catch(r){}r=i}}return i},createFile(r,e,t,n,o){var a=dr.join2("string"==typeof r?r:Cr.getPath(r),e),i=$r(n,o);return Cr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:Cr.getPath(r),i=e?dr.join2(r,e):r);var s=$r(n,o),u=Cr.create(i,s);if(t){if("string"==typeof t){for(var c=new Array(t.length),l=0,d=t.length;l<d;++l)c[l]=t.charCodeAt(l);t=c}Cr.chmod(u,146|s);var f=Cr.open(u,577);Cr.write(f,t,0,t.length,0,a),Cr.close(f),Cr.chmod(u,s)}return u},createDevice(r,e,t,n){var o=dr.join2("string"==typeof r?r:Cr.getPath(r),e),a=$r(!!t,!!n);Cr.createDevice.major||(Cr.createDevice.major=64);var i=Cr.makedev(Cr.createDevice.major++,0);return Cr.registerDevice(i,{open(r){r.seekable=!1},close(r){n&&n.buffer&&n.buffer.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new Cr.ErrnoError(29)}if(void 0===u&&0===i)throw new Cr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.timestamp=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new Cr.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),i}}),Cr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!f)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=wr(f(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new Cr.ErrnoError(29)}},createLazyFile(r,e,n,o,a){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open("HEAD",n,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error("Couldn't load "+n+". Status: "+r.status);var e,t=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=t);var s=this;s.setDataGetter((r=>{var e=r*i,o=(r+1)*i-1;if(o=Math.min(o,t-1),"undefined"==typeof s.chunks[r]&&(s.chunks[r]=((r,e)=>{if(r>e)throw new Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>t-1)throw new Error("only "+t+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",n,!1),t!==i&&o.setRequestHeader("Range","bytes="+r+"-"+e),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+n+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):wr(o.responseText||"",!0)})(e,o)),"undefined"==typeof s.chunks[r])throw new Error("doXHR failed!");return s.chunks[r]})),!a&&t||(i=t=1,t=this.getter(0).length,i=t,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){0;var s=new i;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var u={isDevice:!1,contents:s}}else u={isDevice:!1,url:n};var c=Cr.createFile(r,e,u,o,a);u.contents?c.contents=u.contents:u.url&&(c.contents=null,c.url=u.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(c.stream_ops).forEach((r=>{var e=c.stream_ops[r];l[r]=function(){return Cr.forceLoadFile(c),e.apply(null,arguments)}})),l.read=(r,e,t,n,o)=>(Cr.forceLoadFile(c),d(r,e,t,n,o)),l.mmap=(r,e,n,o,a)=>{Cr.forceLoadFile(c);var i=_r(e);if(!i)throw new Cr.ErrnoError(48);return d(r,t(),i,e,n),{ptr:i,allocated:!0}},c.stream_ops=l,c}},Tr=(r,e)=>r?mr(n(),r,e):"",Sr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(dr.isAbs(e))return e;var n;-100===r?n=Cr.cwd():n=Sr.getStreamFromFD(r).path;if(0==e.length){if(!t)throw new Cr.ErrnoError(44);return n}return dr.join2(n,e)},doStat(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&dr.normalize(e)!==dr.normalize(Cr.getPath(r.node)))return-54;throw r}i()[t>>2]=n.dev,i()[t+4>>2]=n.mode,s()[t+8>>2]=n.nlink,i()[t+12>>2]=n.uid,i()[t+16>>2]=n.gid,i()[t+20>>2]=n.rdev,tr=[n.size>>>0,(er=n.size,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+24>>2]=tr[0],i()[t+28>>2]=tr[1],i()[t+32>>2]=4096,i()[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),u=n.ctime.getTime();return tr=[Math.floor(o/1e3)>>>0,(er=Math.floor(o/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+40>>2]=tr[0],i()[t+44>>2]=tr[1],s()[t+48>>2]=o%1e3*1e3,tr=[Math.floor(a/1e3)>>>0,(er=Math.floor(a/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+56>>2]=tr[0],i()[t+60>>2]=tr[1],s()[t+64>>2]=a%1e3*1e3,tr=[Math.floor(u/1e3)>>>0,(er=Math.floor(u/1e3),+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+72>>2]=tr[0],i()[t+76>>2]=tr[1],s()[t+80>>2]=u%1e3*1e3,tr=[n.ino>>>0,(er=n.ino,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[t+88>>2]=tr[0],i()[t+92>>2]=tr[1],0},doMsync(r,e,t,o,a){if(!Cr.isFile(e.node.mode))throw new Cr.ErrnoError(43);if(2&o)return 0;var i=n().slice(r,r+t);Cr.msync(e,i,a,t,o)},varargs:void 0,get(){var r=i()[Sr.varargs>>2];return Sr.varargs+=4,r},getp:()=>Sr.get(),getStr:r=>Tr(r),getStreamFromFD:r=>Cr.getStreamChecked(r)};function Pr(r){if(g)return Wt(0,1,r);S=r,V()||(Ar.terminateAllThreads(),d.onExit&&d.onExit(r),x=!0),y(r,new sr(r))}var Mr=(r,e)=>{if(S=r,g)throw Wr(r),"unwind";Pr(r)},Dr=r=>{if(r instanceof sr||"unwind"==r)return S;y(1,r)},Ar={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){g?Ar.initWorker():Ar.initMainThread()},initMainThread(){for(var r=Math.min(4,Math.max(1,navigator.hardwareConcurrency-1));r--;)Ar.allocateUnusedWorker();q((()=>{Q(),Ar.loadWasmModuleToAllWorkers((()=>Z()))}))},initWorker(){T=!1},setExitStatus:r=>{S=r},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var r of Ar.runningWorkers)ur(r);for(var r of Ar.unusedWorkers)ur(r);Ar.unusedWorkers=[],Ar.runningWorkers=[],Ar.pthreads=[]},returnWorkerToPool:r=>{var e=r.pthread_ptr;delete Ar.pthreads[e],Ar.unusedWorkers.push(r),Ar.runningWorkers.splice(Ar.runningWorkers.indexOf(r),1),r.pthread_ptr=0,On(e)},receiveObjectTransfer(r){},threadInitTLS(){Ar.tlsInitFunctions.forEach((r=>r()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var n=r.data,o=n.cmd;if(n.targetThread&&n.targetThread!=Mn()){var a=Ar.pthreads[n.targetThread];a?a.postMessage(n,n.transferList):k(`Internal error! Worker sent a message "${o}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var i;"checkMailbox"===o?At():"spawnThread"===o?lr(n):"cleanupThread"===o?cr(n.thread):"killThread"===o?(r=>{var e=Ar.pthreads[r];delete Ar.pthreads[r],ur(e),On(r),Ar.runningWorkers.splice(Ar.runningWorkers.indexOf(e),1),e.pthread_ptr=0})(n.thread):"cancelThread"===o?(i=n.thread,Ar.pthreads[i].postMessage({cmd:"cancel"})):"loaded"===o?(e.loaded=!0,t(e)):"alert"===o?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===o?d[n.handler](...n.args):o&&k(`worker sent an unknown command ${o}`)}},e.onerror=r=>{throw k(`worker sent an error! ${r.filename}:${r.lineno}: ${r.message}`),r};var n=[];for(var o of["onExit","onAbort","print","printErr"])d.hasOwnProperty(o)&&n.push(o);e.postMessage({cmd:"load",handlers:n,urlOrBlob:d.mainScriptUrlOrBlob||r,wasmMemory:$,wasmModule:C})})),loadWasmModuleToAllWorkers(r){if(g)return r();Promise.all(Ar.unusedWorkers.map(Ar.loadWasmModuleToWorker)).then(r)},allocateUnusedWorker(){var r,e=b("ScanbotSDK.Asm-simd-threads.worker.js");r=new Worker(e),Ar.unusedWorkers.push(r)},getNewWorker:()=>(0==Ar.unusedWorkers.length&&(Ar.allocateUnusedWorker(),Ar.loadWasmModuleToWorker(Ar.unusedWorkers[0])),Ar.unusedWorkers.pop())};d.PThread=Ar;var Fr=r=>{for(;r.length>0;)r.shift()(d)};function Wr(r){if(g)return Wt(1,0,r);Mr(r)}d.establishStackSpace=()=>{var r=Mn(),e=i()[r+52>>2],t=i()[r+56>>2];Un(e,e-t),Hn(e)};var jr=r=>U.get(r);d.invokeEntryPoint=(r,e)=>{!function(r){V()?Ar.setExitStatus(r):xn(r)}(jr(r)(e))};var Or=r=>{Ar.tlsInitFunctions.push(r)},xr=[],Rr=0,Ir=0;function Ur(r){this.excPtr=r,this.ptr=r-24,this.set_type=function(r){s()[this.ptr+4>>2]=r},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(r){s()[this.ptr+8>>2]=r},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,t()[this.ptr+12>>0]=r},this.get_caught=function(){return 0!=t()[this.ptr+12>>0]},this.set_rethrown=function(r){r=r?1:0,t()[this.ptr+13>>0]=r},this.get_rethrown=function(){return 0!=t()[this.ptr+13>>0]},this.init=function(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)},this.set_adjusted_ptr=function(r){s()[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Yn(this.get_type()))return s()[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var Nr=r=>{var e=Ir;if(!e)return Dn(0),0;var t=new Ur(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Dn(0),e;for(var o in r){var a=r[o];if(0===a||a===n)break;var i=t.ptr+16;if(Vn(a,n,i))return Dn(a),e}return Dn(n),e},Hr=()=>{var r=xr.pop();r||X("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(xr.push(r),r.set_rethrown(!0),r.set_caught(!1),Rr++),Ir=e};function zr(r,e,t,n){return g?Wt(2,1,r,e,t,n):Lr(r,e,t,n)}var Lr=(r,e,t,n)=>{if("undefined"==typeof SharedArrayBuffer)return k("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(g&&0===o.length)return zr(r,e,t,n);var a={startRoutine:t,pthread_ptr:r,arg:n,transferList:o};return g?(a.cmd="spawnThread",postMessage(a,o),0):lr(a)};function Br(r,e,t,n,o){if(g)return Wt(3,1,r,e,t,n,o);try{for(var a=0,s=e?i()[e>>2]:0,u=e?i()[e+4>>2]:0,c=t?i()[t>>2]:0,l=t?i()[t+4>>2]:0,d=n?i()[n>>2]:0,f=n?i()[n+4>>2]:0,h=0,p=0,m=0,v=0,y=0,w=0,b=(e?i()[e>>2]:0)|(t?i()[t>>2]:0)|(n?i()[n>>2]:0),_=(e?i()[e+4>>2]:0)|(t?i()[t+4>>2]:0)|(n?i()[n+4>>2]:0),E=function(r,e,t,n){return r<32?e&n:t&n},k=0;k<r;k++){var $=1<<k%32;if(E(k,b,_,$)){var C=Sr.getStreamFromFD(k),T=Sr.DEFAULT_POLLMASK;if(C.stream_ops.poll){var S=-1;if(o)S=1e3*((e?i()[o>>2]:0)+(e?i()[o+8>>2]:0)/1e6);T=C.stream_ops.poll(C,S)}1&T&&E(k,s,u,$)&&(k<32?h|=$:p|=$,a++),4&T&&E(k,c,l,$)&&(k<32?m|=$:v|=$,a++),2&T&&E(k,d,f,$)&&(k<32?y|=$:w|=$,a++)}}return e&&(i()[e>>2]=h,i()[e+4>>2]=p),t&&(i()[t>>2]=m,i()[t+4>>2]=v),n&&(i()[n>>2]=y,i()[n+4>>2]=w),a}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Vr(r,e){if(g)return Wt(4,1,r,e);try{return r=Sr.getStr(r),Cr.chmod(r,e),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Yr(r,e){if(g)return Wt(5,1,r,e);try{return Cr.fchmod(r,e),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function qr(r,e,t){if(g)return Wt(6,1,r,e,t);Sr.varargs=t;try{var n=Sr.getStreamFromFD(r);switch(e){case 0:if((a=Sr.get())<0)return-28;for(;Cr.streams[a];)a++;return Cr.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=Sr.get();return n.flags|=a,0;case 5:a=Sr.getp();return o()[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return s=28,i()[Pn()>>2]=s,-1}}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}var s}function Gr(r,e){if(g)return Wt(7,1,r,e);try{var t=Sr.getStreamFromFD(r);return Sr.doStat(Cr.stat,t.path,e)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}var Jr=(r,e)=>e+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*e:NaN;function Kr(r,e,t){if(g)return Wt(8,1,r,e,t);var n=Jr(e,t);try{return isNaN(n)?61:(Cr.ftruncate(r,n),0)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}var Qr=(r,e,t)=>gr(r,n(),e,t);function Zr(r,e){if(g)return Wt(9,1,r,e);try{if(0===e)return-28;var t=Cr.cwd(),n=yr(t)+1;return e<n?-68:(Qr(t,r,e),n)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Xr(r,e,n){if(g)return Wt(10,1,r,e,n);try{var a=Sr.getStreamFromFD(r);a.getdents||(a.getdents=Cr.readdir(a.path));for(var s=280,u=0,c=Cr.llseek(a,0,1),l=Math.floor(c/s);l<a.getdents.length&&u+s<=n;){var d,f,h=a.getdents[l];if("."===h)d=a.node.id,f=4;else if(".."===h){d=Cr.lookupPath(a.path,{parent:!0}).node.id,f=4}else{var p=Cr.lookupNode(a.node,h);d=p.id,f=Cr.isChrdev(p.mode)?2:Cr.isDir(p.mode)?4:Cr.isLink(p.mode)?10:8}tr=[d>>>0,(er=d,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+u>>2]=tr[0],i()[e+u+4>>2]=tr[1],tr=[(l+1)*s>>>0,(er=(l+1)*s,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+u+8>>2]=tr[0],i()[e+u+12>>2]=tr[1],o()[e+u+16>>1]=280,t()[e+u+18>>0]=f,Qr(h,e+u+19,256),u+=s,l+=1}return Cr.llseek(a,l*s,0),u}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function re(r,e,n){if(g)return Wt(11,1,r,e,n);Sr.varargs=n;try{var a=Sr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.tty?0:-59;case 21505:if(!a.tty)return-59;if(a.tty.ops.ioctl_tcgets){var s=a.tty.ops.ioctl_tcgets(a),u=Sr.getp();i()[u>>2]=s.c_iflag||0,i()[u+4>>2]=s.c_oflag||0,i()[u+8>>2]=s.c_cflag||0,i()[u+12>>2]=s.c_lflag||0;for(var c=0;c<32;c++)t()[u+c+17>>0]=s.c_cc[c]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!a.tty)return-59;if(a.tty.ops.ioctl_tcsets){u=Sr.getp();var l=i()[u>>2],d=i()[u+4>>2],f=i()[u+8>>2],h=i()[u+12>>2],p=[];for(c=0;c<32;c++)p.push(t()[u+c+17>>0]);return a.tty.ops.ioctl_tcsets(a.tty,e,{c_iflag:l,c_oflag:d,c_cflag:f,c_lflag:h,c_cc:p})}return 0;case 21519:if(!a.tty)return-59;u=Sr.getp();return i()[u>>2]=0,0;case 21520:return a.tty?-28:-59;case 21531:u=Sr.getp();return Cr.ioctl(a,e,u);case 21523:if(!a.tty)return-59;if(a.tty.ops.ioctl_tiocgwinsz){var m=a.tty.ops.ioctl_tiocgwinsz(a.tty);u=Sr.getp();o()[u>>1]=m[0],o()[u+2>>1]=m[1]}return 0;default:return-28}}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ee(r,e){if(g)return Wt(12,1,r,e);try{return r=Sr.getStr(r),Sr.doStat(Cr.lstat,r,e)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function te(r,e,t){if(g)return Wt(13,1,r,e,t);try{return e=Sr.getStr(e),e=Sr.calculateAt(r,e),"/"===(e=dr.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),Cr.mkdir(e,t,0),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ne(r,e,t,n){if(g)return Wt(14,1,r,e,t,n);try{e=Sr.getStr(e);var o=256&n,a=4096&n;return n&=-6401,e=Sr.calculateAt(r,e,a),Sr.doStat(o?Cr.lstat:Cr.stat,e,t)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function oe(r,e,t,n){if(g)return Wt(15,1,r,e,t,n);Sr.varargs=n;try{e=Sr.getStr(e),e=Sr.calculateAt(r,e);var o=n?Sr.get():0;return Cr.open(e,t,o).fd}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ae(r,e,n,o){if(g)return Wt(16,1,r,e,n,o);try{if(e=Sr.getStr(e),e=Sr.calculateAt(r,e),o<=0)return-28;var a=Cr.readlink(e),i=Math.min(o,yr(a)),s=t()[n+i];return Qr(a,n,o+1),t()[n+i]=s,i}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ie(r){if(g)return Wt(17,1,r);try{return r=Sr.getStr(r),Cr.rmdir(r),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function se(r,e){if(g)return Wt(18,1,r,e);try{return r=Sr.getStr(r),Sr.doStat(Cr.stat,r,e)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ue(r,e){if(g)return Wt(19,1,r,e);try{return r=Sr.getStr(r),e=Sr.getStr(e),Cr.symlink(r,e),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function ce(r,e,t){if(g)return Wt(20,1,r,e,t);try{return e=Sr.getStr(e),e=Sr.calculateAt(r,e),0===t?Cr.unlink(e):512===t?Cr.rmdir(e):X("Invalid flags passed to unlinkat"),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}var le=void 0,de=r=>{for(var e="",t=r;n()[t];)e+=le[n()[t++]];return e},fe={},he={},pe={},me=void 0,ve=r=>{throw new me(r)},ye=void 0,ge=r=>{throw new ye(r)},we=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&ge("Mismatched type converter count");for(var o=0;o<r.length;++o)be(r[o],n[o])}r.forEach((function(r){pe[r]=e}));var o=new Array(e.length),a=[],i=0;e.forEach(((r,e)=>{he.hasOwnProperty(r)?o[e]=he[r]:(a.push(r),fe.hasOwnProperty(r)||(fe[r]=[]),fe[r].push((()=>{o[e]=he[r],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function be(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||ve(`type "${n}" must have a positive integer typeid pointer`),he.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;ve(`Cannot register type '${n}' twice`)}if(he[r]=e,delete pe[r],fe.hasOwnProperty(r)){var o=fe[r];delete fe[r],o.forEach((r=>r()))}}(r,e,t)}function _e(r){if(!(this instanceof Le))return!1;if(!(r instanceof Le))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o}var Ee=r=>{ve(r.$$.ptrType.registeredClass.name+" instance already deleted")},ke=!1,$e=r=>{},Ce=r=>{r.count.value-=1,0===r.count.value&&(r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)})(r)},Te=(r,e,t)=>{if(e===t)return r;if(void 0===t.baseClass)return null;var n=Te(r,e,t.baseClass);return null===n?null:t.downcast(n)},Se={},Pe=()=>Object.keys(je).length,Me=()=>{var r=[];for(var e in je)je.hasOwnProperty(e)&&r.push(je[e]);return r},De=[],Ae=()=>{for(;De.length;){var r=De.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe=void 0,We=r=>{Fe=r,De.length&&Fe&&Fe(Ae)},je={},Oe=(r,e)=>(e=((r,e)=>{for(void 0===e&&ve("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e})(r,e),je[e]),xe=(r,e)=>(e.ptrType&&e.ptr||ge("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!==!!e.smartPtr&&ge("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Ie(Object.create(r,{$$:{value:e}})));function Re(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=Oe(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?xe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):xe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a,i=this.registeredClass.getActualType(e),s=Se[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=Te(e,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:r}):xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}var Ie=r=>"undefined"==typeof FinalizationRegistry?(Ie=r=>r,r):(ke=new FinalizationRegistry((r=>{Ce(r.$$)})),Ie=r=>{var e=r.$$;if(!!e.smartPtr){var t={$$:e};ke.register(r,t,r)}return r},$e=r=>ke.unregister(r),Ie(r));function Ue(){if(this.$$.ptr||Ee(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r,e=Ie(Object.create(Object.getPrototypeOf(this),{$$:{value:(r=this.$$,{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ne(){this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ve("Object already scheduled for deletion"),$e(this),Ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function He(){return!this.$$.ptr}function ze(){return this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ve("Object already scheduled for deletion"),De.push(this),1===De.length&&Fe&&Fe(Ae),this.$$.deleteScheduled=!0,this}function Le(){}var Be=r=>{if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${r}`:r};function Ve(r,e){return{[r=Be(r)]:function(){return e.apply(this,arguments)}}[r]}var Ye=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||ve(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{d.hasOwnProperty(r)?((void 0===t||void 0!==d[r].overloadTable&&void 0!==d[r].overloadTable[t])&&ve(`Cannot register public name '${r}' twice`),Ye(d,r,r),d.hasOwnProperty(t)&&ve(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),d[r].overloadTable[t]=e):(d[r]=e,void 0!==t&&(d[r].numArguments=t))};function Ge(r,e,t,n,o,a,i,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||ve(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Ke(r,e){if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass;return Je(e.$$.ptr,t,this.registeredClass)}function Qe(r,e){var t;if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&ve(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&ve("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:ve(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,yt.toHandle((()=>o.delete()))),null!==r&&r.push(this.rawDestructor,t)}break;default:ve("Unsupporting sharing policy")}return t}function Ze(r,e){if(null===e)return this.isReference&&ve(`null is not a valid ${this.name}`),0;e.$$||ve(`Cannot pass "${wt(e)}" as a ${this.name}`),e.$$.ptr||ve(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&ve(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass;return Je(e.$$.ptr,t,this.registeredClass)}function Xe(r){return this.fromWireType(s()[r>>2])}function rt(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r}function et(r){this.rawDestructor&&this.rawDestructor(r)}var tt=r=>{null!==r&&r.delete()};function nt(r,e,t,n,o,a,i,s,u,c,l){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,o||void 0!==e.baseClass?this.toWireType=Qe:n?(this.toWireType=Ke,this.destructorFunction=null):(this.toWireType=Ze,this.destructorFunction=null)}var ot=(r,e,t)=>{d.hasOwnProperty(r)||ge("Replacing nonexistant public symbol"),void 0!==d[r].overloadTable&&void 0!==t?d[r].overloadTable[t]=e:(d[r]=e,d[r].argCount=t)},at=(r,e,t)=>r.includes("j")?((r,e,t)=>{var n=d["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)})(r,e,t):jr(e).apply(null,t),it=(r,e)=>{var t,n,o,a=(r=de(r)).includes("j")?(t=r,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),at(t,n,o)}):jr(e);return"function"!=typeof a&&ve(`unknown function pointer with signature ${r}: ${e}`),a},st=void 0,ut=r=>{var e=Fn(r),t=de(e);return Sn(e),t},ct=(r,e)=>{var t=[],n={};throw e.forEach((function r(e){n[e]||he[e]||(pe[e]?pe[e].forEach(r):(t.push(e),n[e]=!0))})),new st(`${r}: `+t.map(ut).join([", "]))},lt=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function dt(r,e,t,n,o,a){var i=e.length;i<2&&ve("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&null!==t,u=!1,c=1;c<e.length;++c)if(null!==e[c]&&void 0===e[c].destructorFunction){u=!0;break}var l="void"!==e[0].name,d=i-2,f=new Array(d),h=[],p=[];return function(){var t;arguments.length!==d&&ve(`function ${r} called with ${arguments.length} arguments, expected ${d}`),p.length=0,h.length=s?2:1,h[0]=o,s&&(t=e[1].toWireType(p,this),h[1]=t);for(var a=0;a<d;++a)f[a]=e[a+2].toWireType(p,arguments[a]),h.push(f[a]);var i=n.apply(null,h);function c(r){if(u)lt(p);else for(var n=s?1:2;n<e.length;n++){var o=1===n?t:f[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(o)}if(l)return e[0].fromWireType(r)}return c(i)}}var ft=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(s()[e+4*n>>2]);return t};function ht(){this.allocated=[void 0],this.freelist=[]}var pt=new ht,mt=r=>{r>=pt.reserved&&0==--pt.get(r).refcount&&pt.free(r)},vt=()=>{for(var r=0,e=pt.reserved;e<pt.allocated.length;++e)void 0!==pt.allocated[e]&&++r;return r},yt={toValue:r=>(r||ve("Cannot use deleted val. handle = "+r),pt.get(r).value),toHandle:r=>{switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return pt.allocate({refcount:1,value:r})}}};function gt(r){return this.fromWireType(i()[r>>2])}var wt=r=>{if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r},bt=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(($.buffer!=P.buffer&&I(),j)[r>>2])};case 8:return function(r){return this.fromWireType(u()[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},_t=(r,e,u)=>{switch(e){case 1:return u?r=>t()[r>>0]:r=>n()[r>>0];case 2:return u?r=>o()[r>>1]:r=>a()[r>>1];case 4:return u?r=>i()[r>>2]:r=>s()[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Et="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,kt=(r,e)=>{for(var t=r,i=t>>1,s=i+e/2;!(i>=s)&&a()[i];)++i;if((t=i<<1)-r>32&&Et)return Et.decode(n().slice(r,t));for(var u="",c=0;!(c>=e/2);++c){var l=o()[r+2*c>>1];if(0==l)break;u+=String.fromCharCode(l)}return u},$t=(r,e,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,i=0;i<a;++i){var s=r.charCodeAt(i);o()[e>>1]=s,e+=2}return o()[e>>1]=0,e-n},Ct=r=>2*r.length,Tt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var o=i()[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},St=(r,e,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a);if(i()[e>>2]=s,(e+=4)+4>o)break}return i()[e>>2]=0,e-n},Pt=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Mt=r=>{if(!x)try{r(),(()=>{if(!V())try{g?xn(S):Mr(S)}catch(r){Dr(r)}})()}catch(r){Dr(r)}},Dt=r=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(i(),r>>2,r).value.then(At);var e=r+128;Atomics.store(i(),e>>2,1)}};d.__emscripten_thread_mailbox_await=Dt;var At=()=>{var r=Mn();r&&(Dt(r),Mt((()=>Rn())))};d.checkMailbox=At;var Ft=r=>{var e=Nn(),t=r();return Hn(e),t},Wt=function(r,e){var t=arguments.length-2,n=arguments;return Ft((()=>{for(var o=t,a=zn(8*o),i=a>>3,s=0;s<t;s++){var c=n[2+s];u()[i+s]=c}return jn(r,o,a,e)}))},jt=[],Ot=(r,e)=>{var t=he[r];return void 0===t&&ve(e+" has unknown type "+ut(r)),t},xt={},Rt=r=>{var e=xt[r];return void 0===e?de(r):e},It=[],Ut=()=>{if("object"==typeof globalThis)return globalThis;function r(r){r.$$$embind_global$$$=r;var e="object"==typeof $$$embind_global$$$&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof global&&r(global)?$$$embind_global$$$=global:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},Nt=[];var Ht=r=>r%4==0&&(r%100!=0||r%400==0),zt=[0,31,60,91,121,152,182,213,244,274,305,335],Lt=[0,31,59,90,120,151,181,212,243,273,304,334],Bt=r=>(Ht(r.getFullYear())?zt:Lt)[r.getMonth()]+r.getDate()-1;function Vt(r,e,t,n,o,a,u,c){if(g)return Wt(21,1,r,e,t,n,o,a,u,c);var l=Jr(o,a);try{if(isNaN(l))return 61;var d=Sr.getStreamFromFD(n),f=Cr.mmap(d,r,l,e,t),h=f.ptr;return i()[u>>2]=f.allocated,s()[c>>2]=h,0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}function Yt(r,e,t,n,o,a,i){if(g)return Wt(22,1,r,e,t,n,o,a,i);var s=Jr(a,i);try{if(isNaN(s))return 61;var u=Sr.getStreamFromFD(o);2&t&&Sr.doMsync(r,u,e,n,s),Cr.munmap(u)}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return-r.errno}}var qt,Gt=r=>{var e=yr(r)+1,t=Tn(e);return t&&Qr(r,t,e),t},Jt=[],Kt=(r,e,t)=>{var o=((r,e)=>{var t;for(Jt.length=0;t=n()[r++];)e+=105!=t&&e%8?4:0,Jt.push(105==t?i()[e>>2]:u()[e>>3]),e+=105==t?4:8;return Jt})(e,t);return ir[r].apply(null,o)};qt=()=>performance.timeOrigin+performance.now();var Qt=r=>{X("OOM")},Zt=r=>{var e=(r-$.buffer.byteLength+65535)/65536;try{return $.grow(e),I(),1}catch(r){}},Xt={},rn=()=>{if(!rn.strings){var r={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",_:v||"./this.program"};for(var e in Xt)void 0===Xt[e]?delete r[e]:r[e]=Xt[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);rn.strings=t}return rn.strings},en=function(r,e){if(g)return Wt(23,1,r,e);var n=0;return rn().forEach(((o,a)=>{var i=e+n;s()[r+4*a>>2]=i,((r,e)=>{for(var n=0;n<r.length;++n)t()[e++>>0]=r.charCodeAt(n);t()[e>>0]=0})(o,i),n+=o.length+1})),0},tn=function(r,e){if(g)return Wt(24,1,r,e);var t=rn();s()[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),s()[e>>2]=n,0};function nn(r){if(g)return Wt(25,1,r);try{var e=Sr.getStreamFromFD(r);return Cr.close(e),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return r.errno}}function on(r,e){if(g)return Wt(26,1,r,e);try{var n=Sr.getStreamFromFD(r),a=n.tty?2:Cr.isDir(n.mode)?3:Cr.isLink(n.mode)?7:4;return t()[e>>0]=a,o()[e+2>>1]=0,tr=[0,(er=0,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+8>>2]=tr[0],i()[e+12>>2]=tr[1],tr=[0,(er=0,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[e+16>>2]=tr[0],i()[e+20>>2]=tr[1],0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return r.errno}}function an(r,e,n,o){if(g)return Wt(27,1,r,e,n,o);try{var a=((r,e,n,o)=>{for(var a=0,i=0;i<n;i++){var u=s()[e>>2],c=s()[e+4>>2];e+=8;var l=Cr.read(r,t(),u,c,o);if(l<0)return-1;if(a+=l,l<c)break;"undefined"!=typeof o&&(o+=l)}return a})(Sr.getStreamFromFD(r),e,n);return s()[o>>2]=a,0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return r.errno}}function sn(r,e,t,n,o){if(g)return Wt(28,1,r,e,t,n,o);var a=Jr(e,t);try{if(isNaN(a))return 61;var s=Sr.getStreamFromFD(r);return Cr.llseek(s,a,n),tr=[s.position>>>0,(er=s.position,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)],i()[o>>2]=tr[0],i()[o+4>>2]=tr[1],s.getdents&&0===a&&0===n&&(s.getdents=null),0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return r.errno}}function un(r,e,n,o){if(g)return Wt(29,1,r,e,n,o);try{var a=((r,e,n,o)=>{for(var a=0,i=0;i<n;i++){var u=s()[e>>2],c=s()[e+4>>2];e+=8;var l=Cr.write(r,t(),u,c,o);if(l<0)return-1;a+=l,"undefined"!=typeof o&&(o+=l)}return a})(Sr.getStreamFromFD(r),e,n);return s()[o>>2]=a,0}catch(r){if("undefined"==typeof Cr||"ErrnoError"!==r.name)throw r;return r.errno}}var cn=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},ln=[31,29,31,30,31,30,31,31,30,31,30,31],dn=[31,28,31,30,31,30,31,31,30,31,30,31],fn=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Ht(t.getFullYear()),o=t.getMonth(),a=(n?ln:dn)[o];if(!(e>a-t.getDate()))return t.setDate(t.getDate()+e),t;e-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t},hn=(r,e,n,o)=>{var a=s()[o+40>>2],u={tm_sec:i()[o>>2],tm_min:i()[o+4>>2],tm_hour:i()[o+8>>2],tm_mday:i()[o+12>>2],tm_mon:i()[o+16>>2],tm_year:i()[o+20>>2],tm_wday:i()[o+24>>2],tm_yday:i()[o+28>>2],tm_isdst:i()[o+32>>2],tm_gmtoff:i()[o+36>>2],tm_zone:a?Tr(a):""},c=Tr(n),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var d in l)c=c.replace(new RegExp(d,"g"),l[d]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function m(r,e){return p(r,e,"0")}function v(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function y(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function g(r){var e=fn(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),o=y(t),a=y(n);return v(o,e)<=0?v(a,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var w={"%a":r=>f[r.tm_wday].substring(0,3),"%A":r=>f[r.tm_wday],"%b":r=>h[r.tm_mon].substring(0,3),"%B":r=>h[r.tm_mon],"%C":r=>m((r.tm_year+1900)/100|0,2),"%d":r=>m(r.tm_mday,2),"%e":r=>p(r.tm_mday,2," "),"%g":r=>g(r).toString().substring(2),"%G":r=>g(r),"%H":r=>m(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),m(e,2)},"%j":r=>m(r.tm_mday+cn(Ht(r.tm_year+1900)?ln:dn,r.tm_mon-1),3),"%m":r=>m(r.tm_mon+1,2),"%M":r=>m(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>m(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return m(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&Ht(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&Ht(r.tm_year%400-1))&&e++}return m(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return m(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var d in c=c.replace(/%%/g,"\0\0"),w)c.includes(d)&&(c=c.replace(new RegExp(d,"g"),w[d](u)));var b,_,E=wr(c=c.replace(/\0\0/g,"%"),!1);return E.length>e?0:(b=E,_=r,t().set(b,_),E.length-1)},pn=r=>parseInt(r),mn=Gt;Ar.init();var vn,yn,gn,wn=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=Cr.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},bn=365,_n=146;Object.defineProperties(wn.prototype,{read:{get:function(){return(this.mode&bn)===bn},set:function(r){r?this.mode|=bn:this.mode&=-366}},write:{get:function(){return(this.mode&_n)===_n},set:function(r){r?this.mode|=_n:this.mode&=-147}},isFolder:{get:function(){return Cr.isDir(this.mode)}},isDevice:{get:function(){return Cr.isChrdev(this.mode)}}}),Cr.FSNode=wn,Cr.createPreloadedFile=(r,e,t,n,o,a,i,s,u,c)=>{var l=e?hr.resolve(dr.join2(r,e)):r;function d(t){function d(t){c&&c(),s||Cr.createDataFile(r,e,t,n,o,u),a&&a(),Z()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return kr.forEach((a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)})),o})(t,l,d,(()=>{i&&i(),Z()}))||d(t)}Q(),"string"==typeof t?((r,e,t,n)=>{var o=n?"":`al ${r}`;h(r,(t=>{R(t,`Loading data file "${r}" failed (no arrayBuffer).`),e(new Uint8Array(t)),o&&Z()}),(e=>{if(!t)throw`Loading data file "${r}" failed.`;t()})),o&&Q()})(t,(r=>d(r)),i):d(t)},Cr.staticInit(),(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);le=r})(),me=d.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},ye=d.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},Le.prototype.isAliasOf=_e,Le.prototype.clone=Ue,Le.prototype.delete=Ne,Le.prototype.isDeleted=He,Le.prototype.deleteLater=ze,d.getInheritedInstanceCount=Pe,d.getLiveInheritedInstances=Me,d.flushPendingDeletes=Ae,d.setDelayFunction=We,nt.prototype.getPointee=rt,nt.prototype.destructor=et,nt.prototype.argPackAdvance=8,nt.prototype.readValueFromPointer=Xe,nt.prototype.deleteObject=tt,nt.prototype.fromWireType=Re,st=d.UnboundTypeError=(vn=Error,(gn=Ve(yn="UnboundTypeError",(function(r){this.name=yn,this.message=r;var e=new Error(r).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(vn.prototype),gn.prototype.constructor=gn,gn.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},gn),Object.assign(ht.prototype,{get(r){return this.allocated[r]},has(r){return void 0!==this.allocated[r]},allocate(r){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=r,e},free(r){this.allocated[r]=void 0,this.freelist.push(r)}}),pt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),pt.reserved=pt.allocated.length,d.count_emval_handles=vt;var En,kn=[Pr,Wr,zr,Br,Vr,Yr,qr,Gr,Kr,Zr,Xr,re,ee,te,ne,oe,ae,ie,se,ue,ce,Vt,Yt,en,tn,nn,on,an,sn,un],$n={t:r=>{var e=new Ur(r);return e.get_caught()||(e.set_caught(!0),Rr--),e.set_rethrown(!1),xr.push(e),Bn(e.excPtr),e.get_exception_ptr()},Sb:()=>{if(!xr.length)return 0;var r=xr[xr.length-1];return Bn(r.excPtr),r.excPtr},A:()=>{In(0,0);var r=xr.pop();Ln(r.excPtr),Ir=0},b:()=>Nr([]),j:r=>Nr([r]),B:(r,e)=>Nr([r,e]),za:Hr,Rb:r=>{if(r){var e=new Ur(r);xr.push(e),e.set_rethrown(!0),Hr()}},p:(r,e,t)=>{throw new Ur(r).init(e,t),Rr++,Ir=r},Tb:()=>Rr,ec:r=>{Wn(r,!1,1,!0,4194304,!1),Ar.threadInitTLS()},Pa:r=>{g?postMessage({cmd:"cleanupThread",thread:r}):cr(r)},ac:Lr,d:r=>{throw Ir||(Ir=r),Ir},Zb:Br,Mb:Vr,Nb:Yr,Ta:qr,lc:Gr,tb:Kr,Qb:Zr,Ob:Xr,mc:re,ic:ee,cc:te,jc:ne,Ua:oe,Pb:ae,_b:ie,kc:se,Lb:ue,$b:ce,Eb:(r,e,t,n,o)=>{},sc:(r,e,t,o)=>{be(r,{name:e=de(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:o},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(n()[r])},destructorFunction:null})},Ca:(r,e,t,n,o,a,i,s,u,c,l,d,f)=>{l=de(l),a=it(o,a),s&&(s=it(i,s)),c&&(c=it(u,c)),f=it(d,f);var h=Be(l);qe(h,(function(){ct(`Cannot construct ${l} due to unbound types`,[n])})),we([r,e,t],n?[n]:[],(function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:Le.prototype;var i=Ve(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new me("Use 'new' to construct "+l);if(void 0===d.constructor_body)throw new me(l+" has no accessible constructor");var r=d.constructor_body[arguments.length];if(void 0===r)throw new me(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return r.apply(this,arguments)})),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var d=new Ge(l,i,u,f,t,a,s,c);d.baseClass&&(void 0===d.baseClass.__derivedClasses&&(d.baseClass.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d));var p=new nt(l,d,!0,!1,!1),m=new nt(l+"*",d,!1,!1,!1),v=new nt(l+" const*",d,!1,!0,!1);return Se[r]={pointerType:m,constPointerType:v},ot(h,i),[p,m,v]}))},Ba:(r,e,t,n,o,a,i,s)=>{var u=ft(t,n);e=de(e),a=it(o,a),we([],[r],(function(r){var n=`${(r=r[0]).name}.${e}`;function o(){ct(`Cannot call ${n} due to unbound types`,u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var s=r.registeredClass.constructor;return void 0===s[e]?(o.argCount=t-1,s[e]=o):(Ye(s,e,n),s[e].overloadTable[t-1]=o),we([],u,(function(o){var u=[o[0],null].concat(o.slice(1)),c=dt(n,u,null,a,i);if(void 0===s[e].overloadTable?(c.argCount=t-1,s[e]=c):s[e].overloadTable[t-1]=c,r.registeredClass.__derivedClasses)for(const t of r.registeredClass.__derivedClasses)t.constructor.hasOwnProperty(e)||(t.constructor[e]=c);return[]})),[]}))},fa:(r,e,t,n,o,a,i,s,u)=>{var c=ft(t,n);e=de(e),a=it(o,a),we([],[r],(function(r){var n=`${(r=r[0]).name}.${e}`;function o(){ct(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&r.registeredClass.pureVirtualFunctions.push(e);var u=r.registeredClass.instancePrototype,l=u[e];return void 0===l||void 0===l.overloadTable&&l.className!==r.name&&l.argCount===t-2?(o.argCount=t-2,o.className=r.name,u[e]=o):(Ye(u,e,n),u[e].overloadTable[t-2]=o),we([],c,(function(o){var s=dt(n,o,r,a,i);return void 0===u[e].overloadTable?(s.argCount=t-2,u[e]=s):u[e].overloadTable[t-2]=s,[]})),[]}))},qc:(r,e)=>{be(r,{name:e=de(e),fromWireType:r=>{var e=yt.toValue(r);return mt(r),e},toWireType:(r,e)=>yt.toHandle(e),argPackAdvance:8,readValueFromPointer:gt,destructorFunction:null})},Wa:(r,e,t)=>{be(r,{name:e=de(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:bt(e,t),destructorFunction:null})},ja:(r,e,t,n,o,a,i)=>{var s=ft(e,t);r=de(r),o=it(n,o),qe(r,(function(){ct(`Cannot call ${r} due to unbound types`,s)}),e-1),we([],s,(function(t){var n=[t[0],null].concat(t.slice(1));return ot(r,dt(r,n,null,o,a),e-1),[]}))},aa:(r,e,t,n,o)=>{e=de(e),-1===o&&(o=4294967295);var a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i}var s=e.includes("unsigned");be(r,{name:e,fromWireType:a,toWireType:s?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:_t(e,t,0!==n),destructorFunction:null})},L:(r,e,n)=>{var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=s()[r>>2],n=s()[r+4>>2];return new o(t().buffer,n,e)}be(r,{name:n=de(n),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Va:(r,e)=>{var t="std::string"===(e=de(e));be(r,{name:e,fromWireType:r=>{var e,o=s()[r>>2],a=r+4;if(t)for(var i=a,u=0;u<=o;++u){var c=a+u;if(u==o||0==n()[c]){var l=Tr(i,c-i);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),i=c+1}}else{var d=new Array(o);for(u=0;u<o;++u)d[u]=String.fromCharCode(n()[a+u]);e=d.join("")}return Sn(r),e},toWireType:(r,e)=>{var o;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||ve("Cannot pass non-string to std::string"),o=t&&a?yr(e):e.length;var i=Tn(4+o+1),u=i+4;if(s()[i>>2]=o,t&&a)Qr(e,u,o+1);else if(a)for(var c=0;c<o;++c){var l=e.charCodeAt(c);l>255&&(Sn(u),ve("String has UTF-16 code units that do not fit in 8 bits")),n()[u+c]=l}else for(c=0;c<o;++c)n()[u+c]=e[c];return null!==r&&r.push(Sn,i),i},argPackAdvance:8,readValueFromPointer:Xe,destructorFunction:r=>Sn(r)})},Ha:(r,e,t)=>{var n,o,i,u,c;t=de(t),2===e?(n=kt,o=$t,u=Ct,i=()=>a(),c=1):4===e&&(n=Tt,o=St,u=Pt,i=()=>s(),c=2),be(r,{name:t,fromWireType:r=>{for(var t,o=s()[r>>2],a=i(),u=r+4,l=0;l<=o;++l){var d=r+4+l*e;if(l==o||0==a[d>>c]){var f=n(u,d-u);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),u=d+e}}return Sn(r),t},toWireType:(r,n)=>{"string"!=typeof n&&ve(`Cannot pass non-string to C++ string type ${t}`);var a=u(n),i=Tn(4+a+e);return s()[i>>2]=a>>c,o(n,i+4,a+e),null!==r&&r.push(Sn,i),i},argPackAdvance:8,readValueFromPointer:gt,destructorFunction:r=>Sn(r)})},tc:(r,e)=>{be(r,{isVoid:!0,name:e=de(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},pc:()=>true,Xb:(r,e,t)=>{if(r==e)setTimeout((()=>At()));else if(g)postMessage({targetThread:r,cmd:"checkMailbox"});else{var n=Ar.pthreads[r];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},bc:(r,e,t,n)=>{jt.length=t;for(var o=n>>3,a=0;a<t;a++)jt[a]=u()[o+a];var i=r<0?ir[-r-1]:kn[r];Ar.currentProxiedOperationCallerThread=e;var s=i.apply(null,jt);return Ar.currentProxiedOperationCallerThread=0,s},dc:Dt,oc:r=>{},Ub:()=>{throw 1/0},ka:(r,e,t)=>{r=yt.toValue(r),e=Ot(e,"emval::as");var n=[],o=yt.toHandle(n);return s()[t>>2]=o,e.toWireType(n,r)},ra:(r,e,t,n,o)=>(r=It[r])(e=yt.toValue(e),t=Rt(t),(r=>{var e=[];return s()[r>>2]=yt.toHandle(e),e})(n),o),Da:(r,e,t,n)=>{(r=It[r])(e=yt.toValue(e),t=Rt(t),null,n)},hc:mt,Ea:r=>0===r?yt.toHandle(Ut()):(r=Rt(r),yt.toHandle(Ut()[r])),ga:(r,e)=>{var t=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Ot(s()[e+4*n>>2],"parameter "+n);return t})(r,e),n=t[0],o=n.name+"_$"+t.slice(1).map((function(r){return r.name})).join("_")+"$",a=Nt[o];if(void 0!==a)return a;var i,u,c=new Array(r-1);return i=(e,o,a,i)=>{for(var s=0,u=0;u<r-1;++u)c[u]=t[u+1].readValueFromPointer(i+s),s+=t[u+1].argPackAdvance;var l=e[o].apply(e,c);for(u=0;u<r-1;++u)t[u+1].deleteObject&&t[u+1].deleteObject(c[u]);if(!n.isVoid)return n.toWireType(a,l)},u=It.length,It.push(i),a=u,Nt[o]=a,a},sb:(r,e)=>(r=yt.toValue(r),e=yt.toValue(e),yt.toHandle(r[e])),y:r=>{r>4&&(pt.get(r).refcount+=1)},qb:(r,e)=>(r=yt.toValue(r))instanceof(e=yt.toValue(e)),la:r=>"number"==typeof(r=yt.toValue(r)),S:r=>"string"==typeof(r=yt.toValue(r)),T:()=>yt.toHandle([]),_:r=>yt.toHandle(Rt(r)),H:()=>yt.toHandle({}),rb:r=>{var e=yt.toValue(r);lt(e),mt(r)},rc:(r,e,t)=>{r=yt.toValue(r),e=yt.toValue(e),t=yt.toValue(t),r[e]=t},$:(r,e)=>{var t=(r=Ot(r,"_emval_take_value")).readValueFromPointer(e);return yt.toHandle(t)},J:r=>(r=yt.toValue(r),yt.toHandle(typeof r)),Ab:function(r,e,t){var n=Jr(r,e),o=new Date(1e3*n);i()[t>>2]=o.getUTCSeconds(),i()[t+4>>2]=o.getUTCMinutes(),i()[t+8>>2]=o.getUTCHours(),i()[t+12>>2]=o.getUTCDate(),i()[t+16>>2]=o.getUTCMonth(),i()[t+20>>2]=o.getUTCFullYear()-1900,i()[t+24>>2]=o.getUTCDay();var a=Date.UTC(o.getUTCFullYear(),0,1,0,0,0,0),s=(o.getTime()-a)/864e5|0;i()[t+28>>2]=s},Bb:function(r,e,t){var n=Jr(r,e),o=new Date(1e3*n);i()[t>>2]=o.getSeconds(),i()[t+4>>2]=o.getMinutes(),i()[t+8>>2]=o.getHours(),i()[t+12>>2]=o.getDate(),i()[t+16>>2]=o.getMonth(),i()[t+20>>2]=o.getFullYear()-1900,i()[t+24>>2]=o.getDay();var a=0|Bt(o);i()[t+28>>2]=a,i()[t+36>>2]=-60*o.getTimezoneOffset();var s=new Date(o.getFullYear(),0,1),u=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=s.getTimezoneOffset(),l=0|(u!=c&&o.getTimezoneOffset()==Math.min(c,u));i()[t+32>>2]=l},Cb:function(r){var e=(()=>{var e=new Date(i()[r+20>>2]+1900,i()[r+16>>2],i()[r+12>>2],i()[r+8>>2],i()[r+4>>2],i()[r>>2],0),t=i()[r+32>>2],n=e.getTimezoneOffset(),o=new Date(e.getFullYear(),0,1),a=new Date(e.getFullYear(),6,1).getTimezoneOffset(),s=o.getTimezoneOffset(),u=Math.min(s,a);if(t<0)i()[r+32>>2]=Number(a!=s&&u==n);else if(t>0!=(u==n)){var c=Math.max(s,a),l=t>0?u:c;e.setTime(e.getTime()+6e4*(l-n))}i()[r+24>>2]=e.getDay();var d=0|Bt(e);return i()[r+28>>2]=d,i()[r>>2]=e.getSeconds(),i()[r+4>>2]=e.getMinutes(),i()[r+8>>2]=e.getHours(),i()[r+12>>2]=e.getDate(),i()[r+16>>2]=e.getMonth(),i()[r+20>>2]=e.getYear(),e.getTime()/1e3})();return Dn((er=e,+Math.abs(er)>=1?er>0?+Math.floor(er/4294967296)>>>0:~~+Math.ceil((er-+(~~er>>>0))/4294967296)>>>0:0)),e>>>0},yb:Vt,zb:Yt,Wb:(r,e,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),u=o.getTimezoneOffset(),c=a.getTimezoneOffset(),l=Math.max(u,c);function d(r){var e=r.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}s()[r>>2]=60*l,i()[e>>2]=Number(u!=c);var f=d(o),h=d(a),p=Gt(f),m=Gt(h);c<u?(s()[t>>2]=p,s()[t+4>>2]=m):(s()[t>>2]=m,s()[t+4>>2]=p)},E:()=>{X("")},nb:(r,e,t)=>Kt(r,e,t),Qa:()=>{},Ga:()=>Date.now(),nc:()=>{throw B+=1,"unwind"},Yb:()=>2147483648,U:qt,Za:()=>navigator.hardwareConcurrency,Vb:r=>{var e=n().length;if((r>>>=0)<=e)return!1;var t=2147483648;r>t&&Qt();for(var o,a,i=1;i<=4;i*=2){var s=e*(1+.2/i);s=Math.min(s,r+100663296);var u=Math.min(t,(o=Math.max(r,s))+((a=65536)-o%a)%a);if(Zt(u))return!0}Qt()},fc:en,gc:tn,Xa:Mr,ua:nn,Ra:on,Sa:an,Db:sn,Fa:un,pb:function(){return mn(location.toString())},Kb:(r,e)=>(fr(n().subarray(r,r+e)),0),ob:function(){return mn((r=no,self[r(231,"mBYV")][r(241,"vCNw")]()));var r},Ac:function(r,e){var t=Nn();try{return jr(r)(e)}catch(r){if(Hn(t),r!==r+0)throw r;In(1,0)}},pa:function(r,e,t){var n=Nn();try{return jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},xa:function(r,e,t,n,o,a){var i=Nn();try{return jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},G:function(r,e,t,n){var o=Nn();try{return jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},r:function(r,e){var t=Nn();try{return jr(r)(e)}catch(r){if(Hn(t),r!==r+0)throw r;In(1,0)}},x:function(r,e,t){var n=Nn();try{return jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},Y:function(r,e,t,n){var o=Nn();try{return jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},oa:function(r,e,t,n,o){var a=Nn();try{return jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},u:function(r){var e=Nn();try{return jr(r)()}catch(r){if(Hn(e),r!==r+0)throw r;In(1,0)}},h:function(r,e){var t=Nn();try{return jr(r)(e)}catch(r){if(Hn(t),r!==r+0)throw r;In(1,0)}},hb:function(r,e,t){var n=Nn();try{return jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},gb:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{return jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},c:function(r,e,t){var n=Nn();try{return jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},vc:function(r,e,t,n){var o=Nn();try{return jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},i:function(r,e,t,n){var o=Nn();try{return jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},Ka:function(r,e,t,n,o){var a=Nn();try{return jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},l:function(r,e,t,n,o){var a=Nn();try{return jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},Oa:function(r,e,t,n,o,a){var i=Nn();try{return jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},o:function(r,e,t,n,o,a){var i=Nn();try{return jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},xc:function(r,e,t,n,o,a,i){var s=Nn();try{return jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},C:function(r,e,t,n,o,a,i){var s=Nn();try{return jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},X:function(r,e,t,n,o,a,i,s){var u=Nn();try{return jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},wa:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{return jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},z:function(r,e,t,n,o,a,i,s,u,c){var l=Nn();try{return jr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(Hn(l),r!==r+0)throw r;In(1,0)}},ta:function(r,e,t,n,o,a,i,s,u,c,l,d){var f=Nn();try{return jr(r)(e,t,n,o,a,i,s,u,c,l,d)}catch(r){if(Hn(f),r!==r+0)throw r;In(1,0)}},vb:function(r,e,t,n,o,a,i){var s=Nn();try{return ro(r,e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},Ib:function(r,e,t,n){var o=Nn();try{return Gn(r,e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},Gb:function(r,e,t,n){var o=Nn();try{return Kn(r,e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},xb:function(r){var e=Nn();try{return Zn(r)}catch(r){if(Hn(e),r!==r+0)throw r;In(1,0)}},Jb:function(r,e){var t=Nn();try{return qn(r,e)}catch(r){if(Hn(t),r!==r+0)throw r;In(1,0)}},wb:function(r,e,t){var n=Nn();try{return Xn(r,e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},Hb:function(r,e,t,n){var o=Nn();try{return Jn(r,e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},ub:function(r,e,t,n,o){var a=Nn();try{return eo(r,e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},m:function(r){var e=Nn();try{jr(r)()}catch(r){if(Hn(e),r!==r+0)throw r;In(1,0)}},g:function(r,e){var t=Nn();try{jr(r)(e)}catch(r){if(Hn(t),r!==r+0)throw r;In(1,0)}},Na:function(r,e,t){var n=Nn();try{jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},Bc:function(r,e,t,n){var o=Nn();try{jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},qa:function(r,e,t){var n=Nn();try{jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},Ja:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},e:function(r,e,t){var n=Nn();try{jr(r)(e,t)}catch(r){if(Hn(n),r!==r+0)throw r;In(1,0)}},R:function(r,e,t,n){var o=Nn();try{jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},mb:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},bb:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},va:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},Z:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},La:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},jb:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},I:function(r,e,t,n){var o=Nn();try{jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},ca:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},zc:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},fb:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},ab:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},ha:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},_a:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},Ia:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},f:function(r,e,t,n){var o=Nn();try{jr(r)(e,t,n)}catch(r){if(Hn(o),r!==r+0)throw r;In(1,0)}},F:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},Aa:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},eb:function(r,e,t,n,o,a,i,s,u,c,l){var d=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(Hn(d),r!==r+0)throw r;In(1,0)}},M:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},D:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},ia:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},kb:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},W:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},lb:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},$a:function(r,e,t,n,o,a,i,s,u,c){var l=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(Hn(l),r!==r+0)throw r;In(1,0)}},wc:function(r,e,t,n,o,a,i,s,u,c,l){var d=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(Hn(d),r!==r+0)throw r;In(1,0)}},k:function(r,e,t,n,o){var a=Nn();try{jr(r)(e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},ya:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},Q:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},ba:function(r,e,t,n,o,a,i,s,u,c){var l=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(Hn(l),r!==r+0)throw r;In(1,0)}},P:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},n:function(r,e,t,n,o,a){var i=Nn();try{jr(r)(e,t,n,o,a)}catch(r){if(Hn(i),r!==r+0)throw r;In(1,0)}},ib:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},v:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},V:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},q:function(r,e,t,n,o,a,i){var s=Nn();try{jr(r)(e,t,n,o,a,i)}catch(r){if(Hn(s),r!==r+0)throw r;In(1,0)}},Ma:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},yc:function(r,e,t,n,o,a,i,s,u,c){var l=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(Hn(l),r!==r+0)throw r;In(1,0)}},ma:function(r,e,t,n,o,a,i,s,u,c,l){var d=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(Hn(d),r!==r+0)throw r;In(1,0)}},s:function(r,e,t,n,o,a,i,s){var u=Nn();try{jr(r)(e,t,n,o,a,i,s)}catch(r){if(Hn(u),r!==r+0)throw r;In(1,0)}},w:function(r,e,t,n,o,a,i,s,u){var c=Nn();try{jr(r)(e,t,n,o,a,i,s,u)}catch(r){if(Hn(c),r!==r+0)throw r;In(1,0)}},N:function(r,e,t,n,o,a,i,s,u,c){var l=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c)}catch(r){if(Hn(l),r!==r+0)throw r;In(1,0)}},da:function(r,e,t,n,o,a,i,s,u,c,l){var d=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l)}catch(r){if(Hn(d),r!==r+0)throw r;In(1,0)}},db:function(r,e,t,n,o,a,i,s,u,c,l,d){var f=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l,d)}catch(r){if(Hn(f),r!==r+0)throw r;In(1,0)}},na:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p){var m=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p)}catch(r){if(Hn(m),r!==r+0)throw r;In(1,0)}},cb:function(r,e,t,n,o,a,i,s,u,c,l,d,f){var h=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l,d,f)}catch(r){if(Hn(h),r!==r+0)throw r;In(1,0)}},ea:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p){var m=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p)}catch(r){if(Hn(m),r!==r+0)throw r;In(1,0)}},sa:function(r,e,t,n,o,a,i,s,u,c,l,d,f,h,p,m){var v=Nn();try{jr(r)(e,t,n,o,a,i,s,u,c,l,d,f,h,p,m)}catch(r){if(Hn(v),r!==r+0)throw r;In(1,0)}},Fb:function(r,e,t,n,o){var a=Nn();try{Qn(r,e,t,n,o)}catch(r){if(Hn(a),r!==r+0)throw r;In(1,0)}},K:r=>r,a:$||d.wasmMemory,Ya:hn,O:(r,e,t,n,o)=>hn(r,e,t,n),uc:(r,e,t)=>{for(var n=Tr(e),o="\\!@#$^&*()+=-[]/{}|:<>?,.",a=0,s=o.length;a<s;++a)n=n.replace(new RegExp("\\"+o[a],"g"),"\\"+o[a]);var u={"%A":"%a","%B":"%b","%c":"%a %b %d %H:%M:%S %Y","%D":"%m\\/%d\\/%y","%e":"%d","%F":"%Y-%m-%d","%h":"%b","%R":"%H\\:%M","%r":"%I\\:%M\\:%S\\s%p","%T":"%H\\:%M\\:%S","%x":"%m\\/%d\\/(?:%y|%Y)","%X":"%H\\:%M\\:%S"};for(var c in u)n=n.replace(c,u[c]);var l={"%a":"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)","%b":"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)","%C":"\\d\\d","%d":"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31","%H":"\\d(?!\\d)|[0,1]\\d|20|21|22|23","%I":"\\d(?!\\d)|0\\d|10|11|12","%j":"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d","%m":"0[1-9]|[1-9](?!\\d)|10|11|12","%M":"0\\d|\\d(?!\\d)|[1-5]\\d","%n":"\\s","%p":"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.","%S":"0\\d|\\d(?!\\d)|[1-5]\\d|60","%U":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%W":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%w":"[0-6]","%y":"\\d\\d","%Y":"\\d\\d\\d\\d","%%":"%","%t":"\\s"};for(var d in l)n=n.replace(d,"("+d+l[d]+")");var f=[];for(a=n.indexOf("%");a>=0;a=n.indexOf("%"))f.push(n[a+1]),n=n.replace(new RegExp("\\%"+n[a+1],"g"),"");var h=new RegExp("^"+n,"i").exec(Tr(r));if(h){var p,m=function(){function r(r,e,t){return"number"!=typeof r||isNaN(r)?e:r>=e?r<=t?r:t:e}return{year:r(i()[t+20>>2]+1900,1970,9999),month:r(i()[t+16>>2],0,11),day:r(i()[t+12>>2],1,31),hour:r(i()[t+8>>2],0,23),min:r(i()[t+4>>2],0,59),sec:r(i()[t>>2],0,59)}}(),v=r=>{var e=f.indexOf(r);if(e>=0)return h[e+1]};if((p=v("S"))&&(m.sec=pn(p)),(p=v("M"))&&(m.min=pn(p)),p=v("H"))m.hour=pn(p);else if(p=v("I")){var y=pn(p);(p=v("p"))&&(y+="P"===p.toUpperCase()[0]?12:0),m.hour=y}if(p=v("Y"))m.year=pn(p);else if(p=v("y")){var g=pn(p);(p=v("C"))?g+=100*pn(p):g+=g<69?2e3:1900,m.year=g}if((p=v("m"))?m.month=pn(p)-1:(p=v("b"))&&(m.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[p.substring(0,3).toUpperCase()]||0),p=v("d"))m.day=pn(p);else if(p=v("j"))for(var w=pn(p),b=Ht(m.year),_=0;_<12;++_){var E=cn(b?ln:dn,_-1);w<=E+(b?ln:dn)[_]&&(m.day=w-E)}else if(p=v("a")){var k=p.substring(0,3).toUpperCase();if(p=v("U")){var $={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[k],C=pn(p);S=0===(T=new Date(m.year,0,1)).getDay()?fn(T,$+7*(C-1)):fn(T,7-T.getDay()+$+7*(C-1)),m.day=S.getDate(),m.month=S.getMonth()}else if(p=v("W")){var T,S;$={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[k],C=pn(p);S=1===(T=new Date(m.year,0,1)).getDay()?fn(T,$+7*(C-1)):fn(T,7-T.getDay()+1+$+7*(C-1)),m.day=S.getDate(),m.month=S.getMonth()}}var P=new Date(m.year,m.month,m.day,m.hour,m.min,m.sec,0);return i()[t>>2]=P.getSeconds(),i()[t+4>>2]=P.getMinutes(),i()[t+8>>2]=P.getHours(),i()[t+12>>2]=P.getDate(),i()[t+16>>2]=P.getMonth(),i()[t+20>>2]=P.getFullYear()-1900,i()[t+24>>2]=P.getDay(),i()[t+28>>2]=cn(Ht(P.getFullYear())?ln:dn,P.getMonth()-1)+P.getDate()-1,i()[t+32>>2]=0,r+wr(h[0]).length-1}return 0}},Cn=function(){var r,e,t,n,o={a:$n};function a(r,e){var t,n=r.exports;return Or((Cn=n).Jc),U=Cn.Ec,t=Cn.Cc,z.unshift(t),C=e,Z(),n}if(Q(),d.instantiateWasm)try{return d.instantiateWasm(o,a)}catch(r){k(`Module.instantiateWasm callback failed with error: ${r}`),l(r)}return(r=_,e=rr,t=o,n=function(r){a(r.instance,r.module)},r||"function"!=typeof WebAssembly.instantiateStreaming||nr(e)||"function"!=typeof fetch?ar(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation"),ar(e,t,n)}))))).catch(l),{}}(),Tn=d._malloc=r=>(Tn=d._malloc=Cn.Dc)(r),Sn=d._free=r=>(Sn=d._free=Cn.Fc)(r),Pn=()=>(Pn=Cn.Gc)(),Mn=d._pthread_self=()=>(Mn=d._pthread_self=Cn.Hc)(),Dn=r=>(Dn=Cn.Ic)(r),An=(d.__emscripten_tls_init=()=>(d.__emscripten_tls_init=Cn.Jc)(),(r,e)=>(An=Cn.Kc)(r,e)),Fn=r=>(Fn=Cn.Lc)(r),Wn=(d.__embind_initialize_bindings=()=>(d.__embind_initialize_bindings=Cn.Mc)(),d.__emscripten_thread_init=(r,e,t,n,o,a)=>(Wn=d.__emscripten_thread_init=Cn.Nc)(r,e,t,n,o,a)),jn=(d.__emscripten_thread_crashed=()=>(d.__emscripten_thread_crashed=Cn.Oc)(),(r,e,t,n)=>(jn=Cn.Pc)(r,e,t,n)),On=r=>(On=Cn.Qc)(r),xn=d.__emscripten_thread_exit=r=>(xn=d.__emscripten_thread_exit=Cn.Rc)(r),Rn=d.__emscripten_check_mailbox=()=>(Rn=d.__emscripten_check_mailbox=Cn.Sc)(),In=(r,e)=>(In=Cn.Tc)(r,e),Un=(r,e)=>(Un=Cn.Uc)(r,e),Nn=()=>(Nn=Cn.Vc)(),Hn=r=>(Hn=Cn.Wc)(r),zn=r=>(zn=Cn.Xc)(r),Ln=r=>(Ln=Cn.Yc)(r),Bn=r=>(Bn=Cn.Zc)(r),Vn=(r,e,t)=>(Vn=Cn._c)(r,e,t),Yn=r=>(Yn=Cn.$c)(r),qn=d.dynCall_ji=(r,e)=>(qn=d.dynCall_ji=Cn.ad)(r,e),Gn=d.dynCall_iij=(r,e,t,n)=>(Gn=d.dynCall_iij=Cn.bd)(r,e,t,n),Jn=d.dynCall_jiii=(r,e,t,n)=>(Jn=d.dynCall_jiii=Cn.cd)(r,e,t,n),Kn=(d.dynCall_viijii=(r,e,t,n,o,a,i)=>(d.dynCall_viijii=Cn.dd)(r,e,t,n,o,a,i),d.dynCall_jjj=(r,e,t,n,o)=>(d.dynCall_jjj=Cn.ed)(r,e,t,n,o),d.dynCall_iiiijj=(r,e,t,n,o,a,i,s)=>(d.dynCall_iiiijj=Cn.fd)(r,e,t,n,o,a,i,s),d.dynCall_viijj=(r,e,t,n,o,a,i)=>(d.dynCall_viijj=Cn.gd)(r,e,t,n,o,a,i),d.dynCall_viiijjj=(r,e,t,n,o,a,i,s,u,c)=>(d.dynCall_viiijjj=Cn.hd)(r,e,t,n,o,a,i,s,u,c),d.dynCall_iji=(r,e,t,n)=>(Kn=d.dynCall_iji=Cn.id)(r,e,t,n)),Qn=d.dynCall_viji=(r,e,t,n,o)=>(Qn=d.dynCall_viji=Cn.jd)(r,e,t,n,o),Zn=(d.dynCall_vij=(r,e,t,n)=>(d.dynCall_vij=Cn.kd)(r,e,t,n),d.dynCall_jiji=(r,e,t,n,o)=>(d.dynCall_jiji=Cn.ld)(r,e,t,n,o),d.dynCall_j=r=>(Zn=d.dynCall_j=Cn.md)(r)),Xn=d.dynCall_jii=(r,e,t)=>(Xn=d.dynCall_jii=Cn.nd)(r,e,t),ro=d.dynCall_iiiiij=(r,e,t,n,o,a,i)=>(ro=d.dynCall_iiiiij=Cn.od)(r,e,t,n,o,a,i),eo=d.dynCall_jiiii=(r,e,t,n,o)=>(eo=d.dynCall_jiiii=Cn.pd)(r,e,t,n,o);d.dynCall_iiiiijj=(r,e,t,n,o,a,i,s,u)=>(d.dynCall_iiiiijj=Cn.qd)(r,e,t,n,o,a,i,s,u),d.dynCall_iiiiiijj=(r,e,t,n,o,a,i,s,u,c)=>(d.dynCall_iiiiiijj=Cn.rd)(r,e,t,n,o,a,i,s,u,c),d.___start_em_js=1584416,d.___stop_em_js=1584524;function to(){if(!(G>0)){if(g)return c(d),Y(),void startWorker(d);!function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)q(d.preRun.shift());Fr(H)}(),G>0||(d.setStatus?(d.setStatus("Running..."),setTimeout((function(){setTimeout((function(){d.setStatus("")}),1),r()}),1)):r())}function r(){En||(En=!0,d.calledRun=!0,x||(Y(),c(d),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(!g){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)r=d.postRun.shift(),L.unshift(r);var r;Fr(L)}}()))}}if(d.keepRuntimeAlive=V,d.wasmMemory=$,d.UTF8ToString=Tr,d.stringToUTF8=Qr,d.lengthBytesUTF8=yr,d.ExitStatus=sr,d.allocateUTF8=mn,d.PThread=Ar,K=function r(){En||to(),En||(K=r)},d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();function no(r,e){var t=oo();return no=function(e,n){var o=t[e-=220];if(void 0===no.dUNgIo){var a=function(r){for(var e,t,n="",o="",a=0,i=0;t=r.charAt(i++);~t&&(e=a%4?64*e+t:t,a++%4)?n+=String.fromCharCode(255&e>>(-2*a&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var s=0,u=n.length;s<u;s++)o+="%"+("00"+n.charCodeAt(s).toString(16)).slice(-2);return decodeURIComponent(o)},i=function(r,e){var t,n,o=[],i=0,s="";for(r=a(r),n=0;n<256;n++)o[n]=n;for(n=0;n<256;n++)i=(i+o[n]+e.charCodeAt(n%e.length))%256,t=o[n],o[n]=o[i],o[i]=t;n=0,i=0;for(var u=0;u<r.length;u++)i=(i+o[n=(n+1)%256])%256,t=o[n],o[n]=o[i],o[i]=t,s+=String.fromCharCode(r.charCodeAt(u)^o[(o[n]+o[i])%256]);return s};no.CDmDcU=i,r=arguments,no.dUNgIo=!0}var s=t[0],u=e+s,c=r[u];return c?o=c:(void 0===no.IlyjoF&&(no.IlyjoF=!0),o=no.CDmDcU(o,n),r[u]=o),o},no(r,e)}function oo(){var r=["WRZcVM3cQCoqhsNdPSopW7hdNG","W4KMoSocFmktkW","r8kycSoxW4ZdRSotuCoMWRWaW70","W5q1rCkfjmkZWOhdJ8kf","WQBdUsa8o1K7WQ3cTCk4cmkR","j8o0WOHNbcehvq","hL5fW6BdPvCDWOVdHCoiW5C","u8oybhaOWQmks8kJ","t1W8sCowWQWZW67dImoKFW","WRZcU2BdLmkfaGFdVCoV","rCoeCCkZWQBcQmoV","W5aYWOuaW4xdIfJdVuTHuJ7dGG","WRRcU27cPCoxxZNdPCoCW7RdQ8kQ","gf5aW6hdOHi6WOJdR8oMW6SY","WRf5W5BdV2JcKblcJK7dHCkWWQpcVG","emkLrCksW6ddQGre","Bc8ysHPKW411c8oUWQu","W5VcVSovW5ldRCoEpCovW6JdHH0","u8oEcvGEWPW1sCkU","W4JdJ13dUMKIWRdcRSkQW5BdPCo7WQ8","v8kdFu4IWOqP","W47dGvRdUwSRWRZcHmkmW4ZdK8o+WPS","vSo7jCoFWQldSdnTWO8LoG"];return(oo=function(){return r})()}to(),function(r,e){for(var t=no,n=r();;)try{if(278716===-parseInt(t(238,"cv8T"))/1*(parseInt(t(227,"7yhn"))/2)+-parseInt(t(242,"zl%a"))/3+parseInt(t(235,"cv8T"))/4*(parseInt(t(226,"cv8T"))/5)+-parseInt(t(236,"g!L9"))/6*(parseInt(t(237,"3W)P"))/7)+-parseInt(t(228,"g!L9"))/8+parseInt(t(229,"q&Z%"))/9*(parseInt(t(220,"h48x"))/10)+parseInt(t(240,"hJLI"))/11)break;n.push(n.shift())}catch(r){n.push(n.shift())}}(oo);var ighnua,ao=(ighnua=!0,function(ovjrup,Euvnak){var Ovjrup=ighnua?function(){if(Euvnak){var Ighnua=Euvnak.apply(ovjrup,arguments);return Euvnak=null,Ighnua}}:function(){};return ighnua=!1,Ovjrup}),io=ao(this,(function(){return!/" + this + "/.constructor("^([^ ]+( +[^ ]+)+)+[^ ]}").test(io)}));return io(),e.ready}})();"object"==typeof exports&&"object"==typeof module?module.exports=initModule:"function"==typeof define&&define.amd&&define([],(()=>initModule));
|
|
Binary file
|
|
Binary file
|
|
Binary file
|