dynamsoft-barcode-reader-bundle 11.4.2001 → 11.4.3000

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.
@@ -1 +1 @@
1
- var read_,readAsync,readBinary,Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!0,ENVIRONMENT_IS_NODE=!1,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;t.open("GET",e,!1),t.responseType="arraybuffer";let r=Date.now();return t.onloadstart=()=>{postMessage({type:"event",id:-3,body:{loaded:0,total:pe.lengthComputable?pe.total:0,tag:"starting",resourcesPath:e}})},t.onprogress=t=>{const n=Date.now();r+500<n&&(postMessage({type:"event",id:-3,body:{total:t.lengthComputable?t.total:0,loaded:t.loaded,tag:"in progress",resourcesPath:e}}),r=n)},t.onloadend=()=>{postMessage({type:"event",id:-3,body:{loaded:pe.lengthComputable?pe.total:0,total:pe.lengthComputable?pe.total:0,tag:"completed",resourcesPath:e}})},t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,ABORT=!1;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,Module.noFSInit||FS.init.initialized||FS.init(),FS.ignorePermissions=!1,TTY.init(),SOCKFS.root=FS.mount(SOCKFS,{},null),callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var wasmBinaryFile,tempDouble,tempI64,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return e.startsWith(dataURIPrefix)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then(()=>getBinarySync(e)):fetch(e,{credentials:"same-origin"}).then(async t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";postMessage({type:"event",id:-3,body:{total:0,loaded:0,tag:"starting",resourcesPath:e}});const r=+t.headers.get("Content-Length"),n=t.body.getReader();let o=0,a=Date.now();const i=[];for(;;){const{done:t,value:s}=await n.read();if(t)break;if(i.push(s),o+=s.length,r){const t=Date.now();a+500<t&&(postMessage({type:"event",id:-3,body:{total:r,loaded:o,tag:"in progress",resourcesPath:e}}),a=t)}}const s=new Uint8Array(o);let l=0;for(const e of i)s.set(e,l),l+=e.length;return postMessage({type:"event",id:-3,body:{total:r,loaded:r,tag:"completed",resourcesPath:e}}),s}).catch(()=>getBinarySync(e))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)})}function instantiateAsync(e,t,r,n){return instantiateArrayBuffer(t,r,n)}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports};function t(e,t){return wasmExports=e.exports,wasmMemory=wasmExports.memory,updateMemoryViews(),wasmTable=wasmExports.__indirect_function_table,addOnInit(wasmExports.__wasm_call_ctors),exportWasmSymbols(wasmExports),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return instantiateAsync(wasmBinary,wasmBinaryFile,e,function(e){t(e.instance)}),{}}isDataURI(wasmBinaryFile="dynamsoft-barcode-reader-bundle.wasm")||(wasmBinaryFile=locateFile(wasmBinaryFile));var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e),exportWasmSymbols=e=>{for(var t in e){var r=asmjsMangle(t);this[r]=Module[r]=e[t]}};function _CreateDirectoryFetcher(){abort("missing function: CreateDirectoryFetcher")}function _DDN_ConvertElement(){abort("missing function: DDN_ConvertElement")}function _DDN_CreateDDNResult(){abort("missing function: DDN_CreateDDNResult")}function _DDN_CreateDDNResultItem(){abort("missing function: DDN_CreateDDNResultItem")}function _DDN_CreateIntermediateResultUnits(){abort("missing function: DDN_CreateIntermediateResultUnits")}function _DDN_CreateParameters(){abort("missing function: DDN_CreateParameters")}function _DDN_CreateTargetRoiDefConditionFilter(){abort("missing function: DDN_CreateTargetRoiDefConditionFilter")}function _DDN_CreateTaskAlgEntity(){abort("missing function: DDN_CreateTaskAlgEntity")}function _DDN_HasSection(){abort("missing function: DDN_HasSection")}function _DDN_ReadTaskSetting(){abort("missing function: DDN_ReadTaskSetting")}function _DLR_ConvertElement(){abort("missing function: DLR_ConvertElement")}function _DLR_CreateBufferedCharacterItemSet(){abort("missing function: DLR_CreateBufferedCharacterItemSet")}function _DLR_CreateIntermediateResultUnits(){abort("missing function: DLR_CreateIntermediateResultUnits")}function _DLR_CreateParameters(){abort("missing function: DLR_CreateParameters")}function _DLR_CreateRecognizedTextLinesResult(){abort("missing function: DLR_CreateRecognizedTextLinesResult")}function _DLR_CreateTargetRoiDefConditionFilter(){abort("missing function: DLR_CreateTargetRoiDefConditionFilter")}function _DLR_CreateTaskAlgEntity(){abort("missing function: DLR_CreateTaskAlgEntity")}function _DLR_CreateTextLineResultItem(){abort("missing function: DLR_CreateTextLineResultItem")}function _DLR_ReadTaskSetting(){abort("missing function: DLR_ReadTaskSetting")}function _DMImage_GetDIB(){abort("missing function: DMImage_GetDIB")}function _DMImage_GetOrientation(){abort("missing function: DMImage_GetOrientation")}function _DeleteDirectoryFetcher(){abort("missing function: DeleteDirectoryFetcher")}function __ZN19LabelRecognizerWasm10getVersionEv(){abort("missing function: _ZN19LabelRecognizerWasm10getVersionEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi")}function __ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb")}function __ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii")}function __ZN19LabelRecognizerWasm12DlrWasmClassC1Ev(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClassC1Ev")}function __ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE(){abort("missing function: _ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE")}function __ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE(){abort("missing function: _ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE")}function __ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE(){abort("missing function: _ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE")}function __ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE")}function __ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE")}function __ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE(){abort("missing function: _ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE")}function __ZN22DocumentNormalizerWasm10getVersionEv(){abort("missing function: _ZN22DocumentNormalizerWasm10getVersionEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii")}function __ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE")}function __ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii")}function __ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev")}function __ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE(){abort("missing function: _ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE")}function __ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE")}function __ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE")}function __ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE")}function __ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE")}function __ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv")}function __ZN9dynamsoft7utility14CUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft7utility14CUtilityModule10GetVersionEv")}_CreateDirectoryFetcher.stub=!0,_DDN_ConvertElement.stub=!0,_DDN_CreateDDNResult.stub=!0,_DDN_CreateDDNResultItem.stub=!0,_DDN_CreateIntermediateResultUnits.stub=!0,_DDN_CreateParameters.stub=!0,_DDN_CreateTargetRoiDefConditionFilter.stub=!0,_DDN_CreateTaskAlgEntity.stub=!0,_DDN_HasSection.stub=!0,_DDN_ReadTaskSetting.stub=!0,_DLR_ConvertElement.stub=!0,_DLR_CreateBufferedCharacterItemSet.stub=!0,_DLR_CreateIntermediateResultUnits.stub=!0,_DLR_CreateParameters.stub=!0,_DLR_CreateRecognizedTextLinesResult.stub=!0,_DLR_CreateTargetRoiDefConditionFilter.stub=!0,_DLR_CreateTaskAlgEntity.stub=!0,_DLR_CreateTextLineResultItem.stub=!0,_DLR_ReadTaskSetting.stub=!0,_DMImage_GetDIB.stub=!0,_DMImage_GetOrientation.stub=!0,_DeleteDirectoryFetcher.stub=!0,__ZN19LabelRecognizerWasm10getVersionEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev.stub=!0,__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE.stub=!0,__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE.stub=!0,__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE.stub=!0,__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE.stub=!0,__ZN22DocumentNormalizerWasm10getVersionEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev.stub=!0,__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE.stub=!0,__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE.stub=!0,__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv.stub=!0,__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv.stub=!0;var UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<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},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",___assert_fail=(e,t,r,n)=>{abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])},exceptionCaught=[],uncaughtExceptionCount=0,___cxa_begin_catch=e=>{var t=new ExceptionInfo(e);return t.get_caught()||(t.set_caught(!0),uncaughtExceptionCount--),t.set_rethrown(!1),exceptionCaught.push(t),___cxa_increment_exception_refcount(t.excPtr),t.get_exception_ptr()},exceptionLast=0,___cxa_end_catch=()=>{_setThrew(0,0);var e=exceptionCaught.pop();___cxa_decrement_exception_refcount(e.excPtr),exceptionLast=0};function ExceptionInfo(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){HEAPU32[this.ptr+4>>2]=e},this.get_type=function(){return HEAPU32[this.ptr+4>>2]},this.set_destructor=function(e){HEAPU32[this.ptr+8>>2]=e},this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,HEAP8[this.ptr+12|0]=e},this.get_caught=function(){return 0!=HEAP8[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,HEAP8[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=HEAP8[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){HEAPU32[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_type()))return HEAPU32[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ___resumeException=e=>{throw exceptionLast||(exceptionLast=e),exceptionLast},findMatchingCatch=e=>{var t=exceptionLast;if(!t)return setTempRet0(0),0;var r=new ExceptionInfo(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return setTempRet0(0),t;for(var o in e){var a=e[o];if(0===a||a===n)break;var i=r.ptr+16;if(___cxa_can_catch(a,n,i))return setTempRet0(a),t}return setTempRet0(n),t},___cxa_find_matching_catch_2=()=>findMatchingCatch([]),___cxa_find_matching_catch_3=e=>findMatchingCatch([e]),___cxa_rethrow=()=>{var e=exceptionCaught.pop();e||abort("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(exceptionCaught.push(e),e.set_rethrown(!0),e.set_caught(!1),uncaughtExceptionCount++),exceptionLast=t},___cxa_rethrow_primary_exception=e=>{if(e){var t=new ExceptionInfo(e);exceptionCaught.push(t),t.set_rethrown(!0),___cxa_rethrow()}},___cxa_throw=(e,t,r)=>{throw new ExceptionInfo(e).init(t,r),uncaughtExceptionCount++,exceptionLast=e},___cxa_uncaught_exceptions=()=>uncaughtExceptionCount,PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return PATH.normalize(e.join("/"))},join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=PATH.isAbs(n)}return(t?"/":"")+(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},FS_stdin_getChar_buffer=[],lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,o=new Array(n),a=stringToUTF8Array(e,o,0,o.length);return t&&(o.length=a),o}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new FS.ErrnoError(29)}if(void 0===s&&0===a)throw new FS.ErrnoError(6);if(null==s)break;a++,t[r+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,t[r+a])}catch(e){throw new FS.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>FS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output,0)),e.output=[])},ioctl_tcgets:e=>({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:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},mmapAlloc=e=>{abort()},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var o=FS.createNode(e,t,r,n);return FS.isDir(o.mode)?(o.node_ops=MEMFS.ops_table.dir.node,o.stream_ops=MEMFS.ops_table.dir.stream,o.contents={}):FS.isFile(o.mode)?(o.node_ops=MEMFS.ops_table.file.node,o.stream_ops=MEMFS.ops_table.file.stream,o.usedBytes=0,o.contents=null):FS.isLink(o.mode)?(o.node_ops=MEMFS.ops_table.link.node,o.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(o.mode)&&(o.node_ops=MEMFS.ops_table.chrdev.node,o.stream_ops=MEMFS.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var n=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)t.set(a.subarray(o,o+i),r);else for(var s=0;s<i;s++)t[r+s]=a[o+s];return i},write(e,t,r,n,o,a){if(t.buffer===HEAP8.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),o),n}if(MEMFS.expandFileStorage(i,o+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&FS.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new FS.ErrnoError(28);return n},allocate(e,t,r){MEMFS.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,o){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==HEAP8.buffer){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),i=!0,!(a=mmapAlloc(t)))throw new FS.ErrnoError(48);HEAP8.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,t,r,n,o)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},asyncLoad=(e,t,r,n)=>{var o=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e,r=>{assert(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),o&&removeRunDependency(o)},t=>{if(!r)throw`Loading data file "${e}" failed.`;r()}),o&&addRunDependency(o)},FS_createDataFile=(e,t,r,n,o,a)=>FS.createDataFile(e,t,r,n,o,a),preloadPlugins=Module.preloadPlugins||[],FS_handledByPreloadPlugin=(e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return preloadPlugins.forEach(a=>{o||a.canHandle(t)&&(a.handle(e,t,r,n),o=!0)}),o},FS_createPreloadedFile=(e,t,r,n,o,a,i,s,l,c)=>{var u=t?PATH_FS.resolve(PATH.join2(e,t)):e,m=getUniqueRunDependency(`cp ${u}`);function d(r){function d(r){c&&c(),s||FS_createDataFile(e,t,r,n,o,l),a&&a(),removeRunDependency(m)}FS_handledByPreloadPlugin(r,u,d,()=>{i&&i(),removeRunDependency(m)})||d(r)}addRunDependency(m),"string"==typeof r?asyncLoad(r,e=>d(e),i):d(r)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter(e=>!!e),n=FS.root,o="/",a=0;a<r.length;a++){var i=a===r.length-1;if(i&&t.parent)break;if(n=FS.lookupNode(n,r[a]),o=PATH.join2(o,r[a]),FS.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;FS.isLink(n.mode);){var l=FS.readlink(o);if(o=PATH_FS.resolve(PATH.dirname(o),l),n=FS.lookupPath(o,{recurse_count:t.recurse_count+1}).node,s++>40)throw new FS.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var t;;){if(FS.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r,e);for(var n=FS.hashName(e.id,t),o=FS.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===t)return o}return FS.lookup(e,t)},createNode(e,t,r,n){var o=new FS.FSNode(e,t,r,n);return FS.hashAddNode(o),o},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{FS.lookupNode(e,t);return 20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var o=FS.nodePermissions(e,"wx");if(o)return o;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(FS.FSStream||(FS.FSStream=function(){this.shared={}},FS.FSStream.prototype={},Object.defineProperties(FS.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},chrdev_stream_ops:{open(e){var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=FS.getMounts(FS.root.mount),n=0;function o(e){return FS.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach(t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)})},mount(e,t,r){var n,o="/"===r,a=!r;if(o&&FS.root)throw new FS.ErrnoError(10);if(!o&&!a){var i=FS.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?FS.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,o=FS.getMounts(n);Object.keys(FS.nameTable).forEach(e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&FS.destroyNode(t),t=r}}),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,o=PATH.basename(e);if(!o||"."===o||".."===o)throw new FS.ErrnoError(28);var a=FS.mayCreate(n,o);if(a)throw new FS.ErrnoError(a);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{FS.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),o=FS.mayCreate(r,n);if(o)throw new FS.ErrnoError(o);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,o=PATH.dirname(e),a=PATH.dirname(t),i=PATH.basename(e),s=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var l,c=FS.lookupNode(r,i),u=PATH_FS.relative(e,a);if("."!==u.charAt(0))throw new FS.ErrnoError(28);if("."!==(u=PATH_FS.relative(t,o)).charAt(0))throw new FS.ErrnoError(55);try{l=FS.lookupNode(n,s)}catch(e){}if(c!==l){var m=FS.isDir(c.mode),d=FS.mayDelete(r,i,m);if(d)throw new FS.ErrnoError(d);if(d=l?FS.mayDelete(n,s,m):FS.mayCreate(n,s))throw new FS.ErrnoError(d);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(c)||l&&FS.isMountpoint(l))throw new FS.ErrnoError(10);if(n!==r&&(d=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(c);try{r.node_ops.rename(c,n,s)}catch(e){throw e}finally{FS.hashAddNode(c)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),o=FS.mayDelete(t,r,!0);if(o)throw new FS.ErrnoError(o);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),o=FS.mayDelete(t,r,!1);if(o)throw new FS.ErrnoError(o);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;"string"==typeof e?n=FS.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var o;"string"==typeof e?o=FS.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new FS.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;"string"==typeof e?r=FS.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var o=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),o=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!o){var a=FS.mayOpen(n,t);if(a)throw new FS.ErrnoError(a)}512&t&&!o&&FS.truncate(n,0),t&=-131713;var i=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!Module.logReadFiles||1&t||(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),i},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,o){if(n<0||o<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new FS.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,t,r,n,o);return a||(e.position+=i),i},write(e,t,r,n,o,a){if(n<0||o<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new FS.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,a);return i||(e.position+=s),s},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=FS.open(e,t.flags),o=FS.stat(e).size,a=new Uint8Array(o);return FS.read(n,a,0,o,0),"utf8"===t.encoding?r=UTF8ArrayToString(a,0):"binary"===t.encoding&&(r=a),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(lengthBytesUTF8(t)+1),a=stringToUTF8Array(t,o,0,o.length);FS.write(n,o,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr");FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},ensureErrnoError(){FS.ErrnoError||(FS.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},FS.ErrnoError.prototype=new Error,FS.ErrnoError.prototype.constructor=FS.ErrnoError,[44].forEach(e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS:MEMFS}},init(e,t,r){FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=t||Module.stdout,Module.stderr=r||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1;for(var e=0;e<FS.streams.length;e++){var t=FS.streams[e];t&&FS.close(t)}},findObject(e,t){var r=FS.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=FS.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=FS.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=PATH.basename(e),n=FS.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:FS.getPath(e);for(var o=t.split("/").reverse();o.length;){var a=o.pop();if(a){var i=PATH.join2(e,a);try{FS.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,o){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),t),i=FS_getMode(n,o);return FS.create(a,i)},createDataFile(e,t,r,n,o,a){var i=t;e&&(e="string"==typeof e?e:FS.getPath(e),i=t?PATH.join2(e,t):e);var s=FS_getMode(n,o),l=FS.create(i,s);if(r){if("string"==typeof r){for(var c=new Array(r.length),u=0,m=r.length;u<m;++u)c[u]=r.charCodeAt(u);r=c}FS.chmod(l,146|s);var d=FS.open(l,577);FS.write(d,r,0,r.length,0,a),FS.close(d),FS.chmod(l,s)}return l},createDevice(e,t,r,n){var o=PATH.join2("string"==typeof e?e:FS.getPath(e),t),a=FS_getMode(!!r,!!n);FS.createDevice.major||(FS.createDevice.major=64);var i=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,o,a){for(var i=0,s=0;s<o;s++){var l;try{l=r()}catch(e){throw new FS.ErrnoError(29)}if(void 0===l&&0===i)throw new FS.ErrnoError(6);if(null==l)break;i++,t[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,o,a){for(var i=0;i<o;i++)try{n(t[r+i])}catch(e){throw new FS.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),FS.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.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(!read_)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=intArrayFromString(read_(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new FS.ErrnoError(29)}},createLazyFile(e,t,r,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;o||(i=n);var s=this;s.setDataGetter(e=>{var t=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+t),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 "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):intArrayFromString(o.responseText||"",!0)})(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:r};var l=FS.createFile(e,t,s,n,o);s.contents?l.contents=s.contents:s.url&&(l.contents=null,l.url=s.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var c={};function u(e,t,r,n,o){var a=e.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++)t[r+s]=a[o+s];else for(s=0;s<i;s++)t[r+s]=a.get(o+s);return i}return Object.keys(l.stream_ops).forEach(e=>{var t=l.stream_ops[e];c[e]=function(){return FS.forceLoadFile(l),t.apply(null,arguments)}}),c.read=(e,t,r,n,o)=>(FS.forceLoadFile(l),u(e,t,r,n,o)),c.mmap=(e,t,r,n,o)=>{FS.forceLoadFile(l);var a=mmapAlloc(t);if(!a)throw new FS.ErrnoError(48);return u(e,HEAP8,a,t,r),{ptr:a,allocated:!0}},l.stream_ops=c,l}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;-100===e?n=FS.cwd():n=SYSCALLS.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=n.dev,HEAP32[r+4>>2]=n.mode,HEAPU32[r+8>>2]=n.nlink,HEAP32[r+12>>2]=n.uid,HEAP32[r+16>>2]=n.gid,HEAP32[r+20>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+24>>2]=tempI64[0],HEAP32[r+28>>2]=tempI64[1],HEAP32[r+32>>2]=4096,HEAP32[r+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAPU32[r+48>>2]=o%1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=a%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=i%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],0},doMsync(e,t,r,n,o){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var a=HEAPU8.slice(e,e+r);FS.msync(t,a,o,r,n)},varargs:void 0,get(){var e=HEAP32[+SYSCALLS.varargs>>2];return SYSCALLS.varargs+=4,e},getp:()=>SYSCALLS.get(),getStr:e=>UTF8ToString(e),getStreamFromFD:e=>FS.getStreamChecked(e)};function ___syscall__newselect(e,t,r,n,o){try{for(var a=0,i=t?HEAP32[t>>2]:0,s=t?HEAP32[t+4>>2]:0,l=r?HEAP32[r>>2]:0,c=r?HEAP32[r+4>>2]:0,u=n?HEAP32[n>>2]:0,m=n?HEAP32[n+4>>2]:0,d=0,_=0,f=0,g=0,E=0,p=0,S=(t?HEAP32[t>>2]:0)|(r?HEAP32[r>>2]:0)|(n?HEAP32[n>>2]:0),h=(t?HEAP32[t+4>>2]:0)|(r?HEAP32[r+4>>2]:0)|(n?HEAP32[n+4>>2]:0),v=function(e,t,r,n){return e<32?t&n:r&n},F=0;F<e;F++){var y=1<<F%32;if(v(F,S,h,y)){var w=SYSCALLS.getStreamFromFD(F),D=SYSCALLS.DEFAULT_POLLMASK;if(w.stream_ops.poll){var b=-1;if(o)b=1e3*((t?HEAP32[o>>2]:0)+(t?HEAP32[o+8>>2]:0)/1e6);D=w.stream_ops.poll(w,b)}1&D&&v(F,i,s,y)&&(F<32?d|=y:_|=y,a++),4&D&&v(F,l,c,y)&&(F<32?f|=y:g|=y,a++),2&D&&v(F,u,m,y)&&(F<32?E|=y:p|=y,a++)}}return t&&(HEAP32[t>>2]=d,HEAP32[t+4>>2]=_),r&&(HEAP32[r>>2]=f,HEAP32[r+4>>2]=g),n&&(HEAP32[n>>2]=E,HEAP32[n+4>>2]=p),a}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var SOCKFS={mount:e=>(Module.websocket=Module.websocket&&"object"==typeof Module.websocket?Module.websocket:{},Module.websocket._callbacks={},Module.websocket.on=function(e,t){return"function"==typeof t&&(this._callbacks[e]=t),this},Module.websocket.emit=function(e,t){"function"==typeof this._callbacks[e]&&this._callbacks[e].call(this,t)},FS.createNode(null,"/",16895,0)),createSocket(e,t,r){if(1==(t&=-526337)&&r&&6!=r)throw new FS.ErrnoError(66);var n={family:e,type:t,protocol:r,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},o=SOCKFS.nextname(),a=FS.createNode(SOCKFS.root,o,49152,0);a.sock=n;var i=FS.createStream({path:o,node:a,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return n.stream=i,n},getSocket(e){var t=FS.getStream(e);return t&&FS.isSocket(t.node.mode)?t.node.sock:null},stream_ops:{poll(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl(e,t,r){var n=e.node.sock;return n.sock_ops.ioctl(n,t,r)},read(e,t,r,n,o){var a=e.node.sock,i=a.sock_ops.recvmsg(a,n);return i?(t.set(i.buffer,r),i.buffer.length):0},write(e,t,r,n,o){var a=e.node.sock;return a.sock_ops.sendmsg(a,t,r,n)},close(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname:()=>(SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current+++"]"),websocket_sock_ops:{createPeer(e,t,r){var n;if("object"==typeof t&&(n=t,t=null,r=null),n)if(n._socket)t=n._socket.remoteAddress,r=n._socket.remotePort;else{var o=/ws[s]?:\/\/([^:]+):(\d+)/.exec(n.url);if(!o)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=o[1],r=parseInt(o[2],10)}else try{var a=Module.websocket&&"object"==typeof Module.websocket,i="ws:#".replace("#","//");if(a&&"string"==typeof Module.websocket.url&&(i=Module.websocket.url),"ws://"===i||"wss://"===i){var s=t.split("/");i=i+s[0]+":"+r+"/"+s.slice(1).join("/")}var l="binary";a&&"string"==typeof Module.websocket.subprotocol&&(l=Module.websocket.subprotocol);var c=void 0;"null"!==l&&(c=l=l.replace(/^ +| +$/g,"").split(/ *, */)),a&&null===Module.websocket.subprotocol&&(l="null",c=void 0),(n=new WebSocket(i,c)).binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}var u={addr:t,port:r,socket:n,dgram_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,u),SOCKFS.websocket_sock_ops.handlePeerEvents(e,u),2===e.type&&void 0!==e.sport&&u.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(65280&e.sport)>>8,255&e.sport])),u},getPeer:(e,t,r)=>e.peers[t+":"+r],addPeer(e,t){e.peers[t.addr+":"+t.port]=t},removePeer(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents(e,t){var r=!0,n=function(){Module.websocket.emit("open",e.stream.fd);try{for(var r=t.dgram_send_queue.shift();r;)t.socket.send(r),r=t.dgram_send_queue.shift()}catch(e){t.socket.close()}};function o(n){if("string"==typeof n){n=(new TextEncoder).encode(n)}else{if(assert(void 0!==n.byteLength),0==n.byteLength)return;n=new Uint8Array(n)}var o=r;if(r=!1,o&&10===n.length&&255===n[0]&&255===n[1]&&255===n[2]&&255===n[3]&&n[4]==="p".charCodeAt(0)&&n[5]==="o".charCodeAt(0)&&n[6]==="r".charCodeAt(0)&&n[7]==="t".charCodeAt(0)){var a=n[8]<<8|n[9];return SOCKFS.websocket_sock_ops.removePeer(e,t),t.port=a,void SOCKFS.websocket_sock_ops.addPeer(e,t)}e.recv_queue.push({addr:t.addr,port:t.port,data:n}),Module.websocket.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(t.socket.on("open",n),t.socket.on("message",function(e,t){t&&o(new Uint8Array(e).buffer)}),t.socket.on("close",function(){Module.websocket.emit("close",e.stream.fd)}),t.socket.on("error",function(t){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})):(t.socket.onopen=n,t.socket.onclose=function(){Module.websocket.emit("close",e.stream.fd)},t.socket.onmessage=function(e){o(e.data)},t.socket.onerror=function(t){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(1===e.type&&e.server)return e.pending.length?65:0;var t=0,r=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!r||r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=65),(!r||r&&r.socket.readyState===r.socket.OPEN)&&(t|=4),(r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=16),t},ioctl(e,t,r){if(21531===t){var n=0;return e.recv_queue.length&&(n=e.recv_queue[0].data.length),HEAP32[r>>2]=n,0}return 28},close(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var t=Object.keys(e.peers),r=0;r<t.length;r++){var n=e.peers[t[r]];try{n.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(e,n)}return 0},bind(e,t,r){if(void 0!==e.saddr||void 0!==e.sport)throw new FS.ErrnoError(28);if(e.saddr=t,e.sport=r,2===e.type){e.server&&(e.server.close(),e.server=null);try{e.sock_ops.listen(e,0)}catch(e){if("ErrnoError"!==e.name)throw e;if(138!==e.errno)throw e}}},connect(e,t,r){if(e.server)throw new FS.ErrnoError(138);if(void 0!==e.daddr&&void 0!==e.dport){var n=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(n)throw n.socket.readyState===n.socket.CONNECTING?new FS.ErrnoError(7):new FS.ErrnoError(30)}var o=SOCKFS.websocket_sock_ops.createPeer(e,t,r);throw e.daddr=o.addr,e.dport=o.port,new FS.ErrnoError(26)},listen(e,t){if(!ENVIRONMENT_IS_NODE)throw new FS.ErrnoError(138)},accept(e){if(!e.server||!e.pending.length)throw new FS.ErrnoError(28);var t=e.pending.shift();return t.stream.flags=e.stream.flags,t},getname(e,t){var r,n;if(t){if(void 0===e.daddr||void 0===e.dport)throw new FS.ErrnoError(53);r=e.daddr,n=e.dport}else r=e.saddr||0,n=e.sport||0;return{addr:r,port:n}},sendmsg(e,t,r,n,o,a){if(2===e.type){if(void 0!==o&&void 0!==a||(o=e.daddr,a=e.dport),void 0===o||void 0===a)throw new FS.ErrnoError(17)}else o=e.daddr,a=e.dport;var i,s=SOCKFS.websocket_sock_ops.getPeer(e,o,a);if(1===e.type){if(!s||s.socket.readyState===s.socket.CLOSING||s.socket.readyState===s.socket.CLOSED)throw new FS.ErrnoError(53);if(s.socket.readyState===s.socket.CONNECTING)throw new FS.ErrnoError(6)}if(ArrayBuffer.isView(t)&&(r+=t.byteOffset,t=t.buffer),i=t.slice(r,r+n),2===e.type&&(!s||s.socket.readyState!==s.socket.OPEN))return s&&s.socket.readyState!==s.socket.CLOSING&&s.socket.readyState!==s.socket.CLOSED||(s=SOCKFS.websocket_sock_ops.createPeer(e,o,a)),s.dgram_send_queue.push(i),n;try{return s.socket.send(i),n}catch(e){throw new FS.ErrnoError(28)}},recvmsg(e,t){if(1===e.type&&e.server)throw new FS.ErrnoError(53);var r=e.recv_queue.shift();if(!r){if(1===e.type){var n=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(!n)throw new FS.ErrnoError(53);if(n.socket.readyState===n.socket.CLOSING||n.socket.readyState===n.socket.CLOSED)return null;throw new FS.ErrnoError(6)}throw new FS.ErrnoError(6)}var o=r.data.byteLength||r.data.length,a=r.data.byteOffset||0,i=r.data.buffer||r.data,s=Math.min(t,o),l={buffer:new Uint8Array(i,a,s),addr:r.addr,port:r.port};if(1===e.type&&s<o){var c=o-s;r.data=new Uint8Array(i,a+s,c),e.recv_queue.unshift(r)}return l}}},getSocketFromFD=e=>{var t=SOCKFS.getSocket(e);if(!t)throw new FS.ErrnoError(8);return t},setErrNo=e=>(HEAP32[___errno_location()>>2]=e,e),inetNtop4=e=>(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var t="",r=0,n=0,o=0,a=0,i=0,s=0,l=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],c=!0,u="";for(s=0;s<5;s++)if(0!==l[s]){c=!1;break}if(c){if(u=inetNtop4(l[6]|l[7]<<16),-1===l[5])return t="::ffff:",t+=u;if(0===l[5])return t="::","0.0.0.0"===u&&(u=""),"0.0.0.1"===u&&(u="1"),t+=u}for(r=0;r<8;r++)0===l[r]&&(r-o>1&&(i=0),o=r,i++),i>n&&(a=r-(n=i)+1);for(r=0;r<8;r++)n>1&&0===l[r]&&r>=a&&r<a+n?r===a&&(t+=":",0===a&&(t+=":")):(t+=Number(_ntohs(65535&l[r])).toString(16),t+=r<7?":":"");return t},readSockaddr=(e,t)=>{var r,n=HEAP16[e>>1],o=_ntohs(HEAPU16[e+2>>1]);switch(n){case 2:if(16!==t)return{errno:28};r=HEAP32[e+4>>2],r=inetNtop4(r);break;case 10:if(28!==t)return{errno:28};r=[HEAP32[e+8>>2],HEAP32[e+12>>2],HEAP32[e+16>>2],HEAP32[e+20>>2]],r=inetNtop6(r);break;default:return{errno:5}}return{family:n,addr:r,port:o}},inetPton4=e=>{for(var t=e.split("."),r=0;r<4;r++){var n=Number(t[r]);if(isNaN(n))return null;t[r]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var t,r,n,o,a=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=jstoi_q(t[t.length-4])+256*jstoi_q(t[t.length-3]),t[t.length-3]=jstoi_q(t[t.length-2])+256*jstoi_q(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),n=0,o=0,r=0;r<t.length;r++)if("string"==typeof t[r])if("Z"===t[r]){for(o=0;o<8-t.length+1;o++)a[r+o]=0;n=o-1}else a[r+n]=_htons(parseInt(t[r],16));else a[r+n]=t[r];return[a[1]<<16|a[0],a[3]<<16|a[2],a[5]<<16|a[4],a[7]<<16|a[6]]},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t,r=inetPton4(e);if(null!==r)return e;if(null!==(r=inetPton6(e)))return e;if(DNS.address_map.addrs[e])t=DNS.address_map.addrs[e];else{var n=DNS.address_map.id++;assert(n<65535,"exceeded max address mappings of 65535"),t="172.29."+(255&n)+"."+(65280&n),DNS.address_map.names[t]=e,DNS.address_map.addrs[e]=t}return t},lookup_addr:e=>DNS.address_map.names[e]?DNS.address_map.names[e]:null},getSocketAddress=(e,t,r)=>{if(r&&0===e)return null;var n=readSockaddr(e,t);if(n.errno)throw new FS.ErrnoError(n.errno);return n.addr=DNS.lookup_addr(n.addr)||n.addr,n};function ___syscall_connect(e,t,r,n,o,a){try{var i=getSocketFromFD(e),s=getSocketAddress(t,r);return i.sock_ops.connect(i,s.addr,s.port),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_faccessat(e,t,r,n){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var o=FS.lookupPath(t,{follow:!0}).node;if(!o)return-44;var a="";return 4&r&&(a+="r"),2&r&&(a+="w"),1&r&&(a+="x"),a&&FS.nodePermissions(o,a)?-2:0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fcntl64(e,t,r){SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((o=SYSCALLS.get())<0)return-28;for(;FS.streams[o];)o++;return FS.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=SYSCALLS.get();return n.flags|=o,0;case 5:o=SYSCALLS.getp();return HEAP16[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return setErrNo(28),-1}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=SYSCALLS.getp();HEAP32[a>>2]=o.c_iflag||0,HEAP32[a+4>>2]=o.c_oflag||0,HEAP32[a+8>>2]=o.c_cflag||0,HEAP32[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)HEAP8[a+i+17|0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=SYSCALLS.getp();var s=HEAP32[a>>2],l=HEAP32[a+4>>2],c=HEAP32[a+8>>2],u=HEAP32[a+12>>2],m=[];for(i=0;i<32;i++)m.push(HEAP8[a+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:l,c_cflag:c,c_lflag:u,c_cc:m})}return 0;case 21519:if(!n.tty)return-59;a=SYSCALLS.getp();return HEAP32[a>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:a=SYSCALLS.getp();return FS.ioctl(n,t,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=SYSCALLS.getp();HEAP16[a>>1]=d[0],HEAP16[a+2>>1]=d[1]}return 0;default:return-28}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,n){try{t=SYSCALLS.getStr(t);var o=256&n,a=4096&n;return n&=-6401,t=SYSCALLS.calculateAt(e,t,a),SYSCALLS.doStat(o?FS.lstat:FS.stat,t,r)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var o=n?SYSCALLS.get():0;return FS.open(t,r,o).fd}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r);function ___syscall_readlinkat(e,t,r,n){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var o=FS.readlink(t),a=Math.min(n,lengthBytesUTF8(o)),i=HEAP8[r+a];return stringToUTF8(o,r,n+1),HEAP8[r+a]=i,a}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_socket(e,t,r){try{return SOCKFS.createSocket(e,t,r).stream.fd}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var nowIsMonotonic=!0,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic,convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),o=new Date(1e3*n);HEAP32[r>>2]=o.getUTCSeconds(),HEAP32[r+4>>2]=o.getUTCMinutes(),HEAP32[r+8>>2]=o.getUTCHours(),HEAP32[r+12>>2]=o.getUTCDate(),HEAP32[r+16>>2]=o.getUTCMonth(),HEAP32[r+20>>2]=o.getUTCFullYear()-1900,HEAP32[r+24>>2]=o.getUTCDay();var a=Date.UTC(o.getUTCFullYear(),0,1,0,0,0,0),i=(o.getTime()-a)/864e5|0;HEAP32[r+28>>2]=i}var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),o=new Date(1e3*n);HEAP32[r>>2]=o.getSeconds(),HEAP32[r+4>>2]=o.getMinutes(),HEAP32[r+8>>2]=o.getHours(),HEAP32[r+12>>2]=o.getDate(),HEAP32[r+16>>2]=o.getMonth(),HEAP32[r+20>>2]=o.getFullYear()-1900,HEAP32[r+24>>2]=o.getDay();var a=0|ydayFromDate(o);HEAP32[r+28>>2]=a,HEAP32[r+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),l=i.getTimezoneOffset(),c=0|(s!=l&&o.getTimezoneOffset()==Math.min(l,s));HEAP32[r+32>>2]=c}var _emscripten_get_now,stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r},__tzset_js=(e,t,r)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),l=Math.max(i,s);function c(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}HEAPU32[e>>2]=60*l,HEAP32[t>>2]=Number(i!=s);var u=c(o),m=c(a),d=stringToNewUTF8(u),_=stringToNewUTF8(m);s<i?(HEAPU32[r>>2]=d,HEAPU32[r+4>>2]=_):(HEAPU32[r>>2]=_,HEAPU32[r+4>>2]=d)},_abort=()=>{abort("")},_emscripten_date_now=()=>Date.now(),getHeapMax=()=>2147483648,_emscripten_get_heap_max=()=>getHeapMax();_emscripten_get_now=()=>performance.now();var reallyNegative=e=>e<0||0===e&&1/e==-1/0,convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<<t-1):Math.pow(2,t-1);return e>=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<<t-1)+e:Math.pow(2,t)+e,strLen=e=>{for(var t=e;HEAPU8[t];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function o(e){var t;return n=function(e,t){return"double"!==t&&"i64"!==t||7&e&&(e+=4),e}(n,e),"double"===e?(t=HEAPF64[n>>3],n+=8):"i64"==e?(t=[HEAP32[n>>2],HEAP32[n+4>>2]],n+=8):(e="i32",t=HEAP32[n>>2],n+=4),t}for(var a,i,s,l=[];;){var c=r;if(0===(a=HEAP8[r|0]))break;if(i=HEAP8[r+1|0],37==a){var u=!1,m=!1,d=!1,_=!1,f=!1;e:for(;;){switch(i){case 43:u=!0;break;case 45:m=!0;break;case 35:d=!0;break;case 48:if(_)break e;_=!0;break;case 32:f=!0;break;default:break e}r++,i=HEAP8[r+1|0]}var g=0;if(42==i)g=o("i32"),r++,i=HEAP8[r+1|0];else for(;i>=48&&i<=57;)g=10*g+(i-48),r++,i=HEAP8[r+1|0];var E,p=!1,S=-1;if(46==i){if(S=0,p=!0,r++,42==(i=HEAP8[r+1|0]))S=o("i32"),r++;else for(;;){var h=HEAP8[r+1|0];if(h<48||h>57)break;S=10*S+(h-48),r++}i=HEAP8[r+1|0]}switch(S<0&&(S=6,p=!1),String.fromCharCode(i)){case"h":104==HEAP8[r+2|0]?(r++,E=1):E=2;break;case"l":108==HEAP8[r+2|0]?(r++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}switch(E&&r++,i=HEAP8[r+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var v=100==i||105==i;if(s=o("i"+8*(E=E||4)),8==E&&(s=117==i?convertU32PairToI53(s[0],s[1]):convertI32PairToI53(s[0],s[1])),E<=4){var F=Math.pow(256,E)-1;s=(v?reSign:unSign)(s&F,8*E)}var y=Math.abs(s),w="";if(100==i||105==i)k=reSign(s,8*E).toString(10);else if(117==i)k=unSign(s,8*E).toString(10),s=Math.abs(s);else if(111==i)k=(d?"0":"")+y.toString(8);else if(120==i||88==i){if(w=d&&0!=s?"0x":"",s<0){s=-s,k=(y-1).toString(16);for(var D=[],b=0;b<k.length;b++)D.push((15-parseInt(k[b],16)).toString(16));for(k=D.join("");k.length<2*E;)k="f"+k}else k=y.toString(16);88==i&&(w=w.toUpperCase(),k=k.toUpperCase())}else 112==i&&(0===y?k="(nil)":(w="0x",k=y.toString(16)));if(p)for(;k.length<S;)k="0"+k;for(s>=0&&(u?w="+"+w:f&&(w=" "+w)),"-"==k.charAt(0)&&(w="-"+w,k=k.substr(1));w.length+k.length<g;)m?k+=" ":_?k="0"+k:w=" "+w;(k=w+k).split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":var k;if(s=o("double"),isNaN(s))k="nan",_=!1;else if(isFinite(s)){var C=!1,N=Math.min(S,20);if(103==i||71==i){C=!0,S=S||1;var R=parseInt(s.toExponential(N).split("e")[1],10);S>R&&R>=-4?(i=(103==i?"f":"F").charCodeAt(0),S-=R+1):(i=(103==i?"e":"E").charCodeAt(0),S--),N=Math.min(S,20)}101==i||69==i?(k=s.toExponential(N),/[eE][-+]\d$/.test(k)&&(k=k.slice(0,-1)+"0"+k.slice(-1))):102!=i&&70!=i||(k=s.toFixed(N),0===s&&reallyNegative(s)&&(k="-"+k));var T=k.split("e");if(C&&!d)for(;T[0].length>1&&T[0].includes(".")&&("0"==T[0].slice(-1)||"."==T[0].slice(-1));)T[0]=T[0].slice(0,-1);else for(d&&-1==k.indexOf(".")&&(T[0]+=".");S>N++;)T[0]+="0";k=T[0]+(T.length>1?"e"+T[1]:""),69==i&&(k=k.toUpperCase()),s>=0&&(u?k="+"+k:f&&(k=" "+k))}else k=(s<0?"-":"")+"inf",_=!1;for(;k.length<g;)m?k+=" ":k=!_||"-"!=k[0]&&"+"!=k[0]?(_?"0":" ")+k:k[0]+"0"+k.slice(1);i<97&&(k=k.toUpperCase()),k.split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"s":var A=o("i8*"),P=A?strLen(A):6;if(p&&(P=Math.min(P,S)),!m)for(;P<g--;)l.push(32);if(A)for(b=0;b<P;b++)l.push(HEAPU8[A++|0]);else l=l.concat(intArrayFromString("(null)".substr(0,P),!0));if(m)for(;P<g--;)l.push(32);break;case"c":for(m&&l.push(o("i8"));--g>0;)l.push(32);m||l.push(o("i8"));break;case"n":var M=o("i32*");HEAP32[M>>2]=l.length;break;case"%":l.push(a);break;default:for(b=c;b<r+2;b++)l.push(HEAP8[b|0])}r+=2}else l.push(a),r+=1}return l};function jsStackTrace(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}var warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,err(e))};function getCallstack(e){var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),o=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(o),8&e&&"undefined"==typeof emscripten_source_map&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var a=t.split("\n");t="";var i=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),s=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),l=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var c in a){var u=a[c],m="",d="",_=0,f=0,g=l.exec(u);if(g&&5==g.length)m=g[1],d=g[2],_=g[3],f=g[4];else{if((g=i.exec(u))||(g=s.exec(u)),!(g&&g.length>=4)){t+=u+"\n";continue}m=g[1],d=g[2],_=g[3],f=0|g[4]}var E=!1;if(8&e){var p=emscripten_source_map.originalPositionFor({line:_,column:f});(E=p&&p.source)&&(64&e&&(p.source=p.source.substring(p.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=` at ${m} (${p.source}:${p.line}:${p.column})\n`)}(16&e||!E)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(E?` = ${m}`:` at ${m}`)+` (${d}:${_}:${f})\n`)}return t=t.replace(/\s+$/,"")}var emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e||2&e?err(t):out(t):6&e?err(t):out(t)},_emscripten_log=(e,t,r)=>{var n=formatString(t,r),o=UTF8ArrayToString(n,0);emscriptenLog(e,o)},growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var i=Math.min(r,n(Math.max(e,a),65536));if(growMemory(i))return!0}return!1},ENV={},getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.strings){var e={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",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r<e.length;++r)HEAP8[t++|0]=e.charCodeAt(r);HEAP8[t|0]=0},_environ_get=(e,t)=>{var r=0;return getEnvStrings().forEach((n,o)=>{var a=t+r;HEAPU32[e+4*o>>2]=a,stringToAscii(n,a),r+=n.length+1}),0},_environ_sizes_get=(e,t)=>{var r=getEnvStrings();HEAPU32[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),HEAPU32[t>>2]=n,0};function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doReadv=(e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=HEAPU32[t>>2],s=HEAPU32[t+4>>2];t+=8;var l=FS.read(e,HEAP8,i,s,n);if(l<0)return-1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o};function _fd_read(e,t,r,n){try{var o=SYSCALLS.getStreamFromFD(e),a=doReadv(o,t,r);return HEAPU32[n>>2]=a,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,o){var a=convertI32PairToI53Checked(t,r);try{if(isNaN(a))return 61;var i=SYSCALLS.getStreamFromFD(e);return FS.llseek(i,a,n),tempI64=[i.position>>>0,(tempDouble=i.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[o>>2]=tempI64[0],HEAP32[o+4>>2]=tempI64[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doWritev=(e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=HEAPU32[t>>2],s=HEAPU32[t+4>>2];t+=8;var l=FS.write(e,HEAP8,i,s,n);if(l<0)return-1;o+=l,void 0!==n&&(n+=l)}return o};function _fd_write(e,t,r,n){try{var o=SYSCALLS.getStreamFromFD(e),a=doWritev(o,t,r);return HEAPU32[n>>2]=a,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var wasmTable,functionsInTableMap,arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),o=r.getMonth(),a=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[o];if(!(t>a-r.getDate()))return r.setDate(r.getDate()+t),r;t-=a-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},writeArrayToMemory=(e,t)=>{HEAP8.set(e,t)},_strftime=(e,t,r,n)=>{var o=HEAPU32[n+40>>2],a={tm_sec:HEAP32[n>>2],tm_min:HEAP32[n+4>>2],tm_hour:HEAP32[n+8>>2],tm_mday:HEAP32[n+12>>2],tm_mon:HEAP32[n+16>>2],tm_year:HEAP32[n+20>>2],tm_wday:HEAP32[n+24>>2],tm_yday:HEAP32[n+28>>2],tm_isdst:HEAP32[n+32>>2],tm_gmtoff:HEAP32[n+36>>2],tm_zone:o?UTF8ToString(o):""},i=UTF8ToString(r),s={"%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 l in s)i=i.replace(new RegExp(l,"g"),s[l]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function m(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function d(e,t){return m(e,t,"0")}function _(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function f(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var t=addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=f(r),a=f(n);return _(o,t)<=0?_(a,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var E={"%a":e=>c[e.tm_wday].substring(0,3),"%A":e=>c[e.tm_wday],"%b":e=>u[e.tm_mon].substring(0,3),"%B":e=>u[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>m(e.tm_mday,2," "),"%g":e=>g(e).toString().substring(2),"%G":e=>g(e),"%H":e=>d(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),d(t,2)},"%j":e=>d(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return d(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&isLeapYear(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&t++}return d(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in i=i.replace(/%%/g,"\0\0"),E)i.includes(l)&&(i=i.replace(new RegExp(l,"g"),E[l](a)));var p=intArrayFromString(i=i.replace(/\0\0/g,"%"),!1);return p.length>t?0:(writeArrayToMemory(p,e),p.length-1)},_strftime_l=(e,t,r,n,o)=>_strftime(e,t,r,n),getWasmTableEntry=e=>wasmTable.get(e),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),o={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var a=0;a<n.length;++a)t.push(o[n[a]]);"v"==r?t.push(0):t.push(1,o[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:e}}).exports.f},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var o=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,o)}return functionsInTableMap.set(e,n),n},stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},FSNode=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},readMode=365,writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(e){e?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(e){e?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}),FS.FSNode=FSNode,FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit();var calledRun,wasmImports={CreateDirectoryFetcher:_CreateDirectoryFetcher,DDN_ConvertElement:_DDN_ConvertElement,DDN_CreateDDNResult:_DDN_CreateDDNResult,DDN_CreateDDNResultItem:_DDN_CreateDDNResultItem,DDN_CreateIntermediateResultUnits:_DDN_CreateIntermediateResultUnits,DDN_CreateParameters:_DDN_CreateParameters,DDN_CreateTargetRoiDefConditionFilter:_DDN_CreateTargetRoiDefConditionFilter,DDN_CreateTaskAlgEntity:_DDN_CreateTaskAlgEntity,DDN_HasSection:_DDN_HasSection,DDN_ReadTaskSetting:_DDN_ReadTaskSetting,DLR_ConvertElement:_DLR_ConvertElement,DLR_CreateBufferedCharacterItemSet:_DLR_CreateBufferedCharacterItemSet,DLR_CreateIntermediateResultUnits:_DLR_CreateIntermediateResultUnits,DLR_CreateParameters:_DLR_CreateParameters,DLR_CreateRecognizedTextLinesResult:_DLR_CreateRecognizedTextLinesResult,DLR_CreateTargetRoiDefConditionFilter:_DLR_CreateTargetRoiDefConditionFilter,DLR_CreateTaskAlgEntity:_DLR_CreateTaskAlgEntity,DLR_CreateTextLineResultItem:_DLR_CreateTextLineResultItem,DLR_ReadTaskSetting:_DLR_ReadTaskSetting,DMImage_GetDIB:_DMImage_GetDIB,DMImage_GetOrientation:_DMImage_GetOrientation,DeleteDirectoryFetcher:_DeleteDirectoryFetcher,_ZN19LabelRecognizerWasm10getVersionEv:__ZN19LabelRecognizerWasm10getVersionEv,_ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv:__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv,_ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv:__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv,_ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi:__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi,_ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb:__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb,_ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb:__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb,_ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb:__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb,_ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii:__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii,_ZN19LabelRecognizerWasm12DlrWasmClassC1Ev:__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev,_ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE:__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE,_ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE:__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE,_ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE:__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE,_ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE:__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE,_ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE:__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE,_ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE:__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE,_ZN22DocumentNormalizerWasm10getVersionEv:__ZN22DocumentNormalizerWasm10getVersionEv,_ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv:__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv,_ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi:__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi,_ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii:__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii,_ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE,_ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii:__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii,_ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev:__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev,_ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE:__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE,_ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE:__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE,_ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE:__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE,_ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE:__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE,_ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE:__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE,_ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv:__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv,_ZN9dynamsoft7utility14CUtilityModule10GetVersionEv:__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv,__assert_fail:___assert_fail,__cxa_begin_catch:___cxa_begin_catch,__cxa_end_catch:___cxa_end_catch,__cxa_find_matching_catch_2:___cxa_find_matching_catch_2,__cxa_find_matching_catch_3:___cxa_find_matching_catch_3,__cxa_rethrow:___cxa_rethrow,__cxa_rethrow_primary_exception:___cxa_rethrow_primary_exception,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__resumeException:___resumeException,__syscall__newselect:___syscall__newselect,__syscall_connect:___syscall_connect,__syscall_faccessat:___syscall_faccessat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fstat64:___syscall_fstat64,__syscall_ioctl:___syscall_ioctl,__syscall_mkdirat:___syscall_mkdirat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_readlinkat:___syscall_readlinkat,__syscall_rmdir:___syscall_rmdir,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_unlinkat:___syscall_unlinkat,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_tzset_js:__tzset_js,abort:_abort,emscripten_date_now:_emscripten_date_now,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_now:_emscripten_get_now,emscripten_log:_emscripten_log,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,fd_close:_fd_close,fd_read:_fd_read,fd_seek:_fd_seek,fd_write:_fd_write,invoke_diii:invoke_diii,invoke_fiii:invoke_fiii,invoke_i:invoke_i,invoke_ii:invoke_ii,invoke_iii:invoke_iii,invoke_iiii:invoke_iiii,invoke_iiiii:invoke_iiiii,invoke_iiiiid:invoke_iiiiid,invoke_iiiiii:invoke_iiiiii,invoke_iiiiiii:invoke_iiiiiii,invoke_iiiiiiii:invoke_iiiiiiii,invoke_iiiiiiiiiiii:invoke_iiiiiiiiiiii,invoke_iiiiij:invoke_iiiiij,invoke_j:invoke_j,invoke_ji:invoke_ji,invoke_jii:invoke_jii,invoke_jiiii:invoke_jiiii,invoke_v:invoke_v,invoke_vi:invoke_vi,invoke_vii:invoke_vii,invoke_viid:invoke_viid,invoke_viii:invoke_viii,invoke_viiii:invoke_viiii,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiiiiiii:invoke_viiiiiiiiii,invoke_viiiiiiiiiiiiiii:invoke_viiiiiiiiiiiiiii,strftime:_strftime,strftime_l:_strftime_l},wasmExports=createWasm();function invoke_iiii(e,t,r,n){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(e,t,r){var n=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(e,t,r){var n=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(e,t){var r=stackSave();try{getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,t,r,n,o,a,i){var s=stackSave();try{return getWasmTableEntry(e)(t,r,n,o,a,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(e,t,r,n,o){var a=stackSave();try{getWasmTableEntry(e)(t,r,n,o)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,t,r,n,o,a){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,o,a)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,t,r,n,o,a){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,o,a)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(e,t,r,n){var o=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,r,n,o,a,i,s){var l=stackSave();try{return getWasmTableEntry(e)(t,r,n,o,a,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(e,t,r,n,o){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n,o)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(e,t,r,n){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(e,t,r,n){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,t,r,n,o,a,i,s){var l=stackSave();try{getWasmTableEntry(e)(t,r,n,o,a,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,t,r,n,o,a,i,s,l,c,u,m){var d=stackSave();try{return getWasmTableEntry(e)(t,r,n,o,a,i,s,l,c,u,m)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,t,r,n,o,a,i,s,l,c,u){var m=stackSave();try{getWasmTableEntry(e)(t,r,n,o,a,i,s,l,c,u)}catch(e){if(stackRestore(m),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,t,r,n,o,a,i,s,l,c,u,m,d,_,f,g){var E=stackSave();try{getWasmTableEntry(e)(t,r,n,o,a,i,s,l,c,u,m,d,_,f,g)}catch(e){if(stackRestore(E),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(e,t,r,n){var o=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_j(e){var t=stackSave();try{return dynCall_j(e)}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ji(e,t){var r=stackSave();try{return dynCall_ji(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(e,t,r){var n=stackSave();try{return dynCall_jii(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiij(e,t,r,n,o,a,i){var s=stackSave();try{return dynCall_iiiiij(e,t,r,n,o,a,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(e,t,r,n,o){var a=stackSave();try{return dynCall_jiiii(e,t,r,n,o)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function run(){function e(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)]()[UTF8ToString(r)]()),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack((new(self[UTF8ToString(e)]))[UTF8ToString(t)](UTF8ToString(r))),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>{self[UTF8ToString(e)](null,JSON.stringify(JSON.parse(UTF8ToString(t))),UTF8ToString(r),n)},"viiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)][UTF8ToString(r)](UTF8ToString(n))?"":self[UTF8ToString(e)][UTF8ToString(t)]),"iiiii")),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),e()},1)):e()))}if(Module.addFunction=addFunction,Module.stringToUTF8OnStack=stringToUTF8OnStack,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();run();
1
+ var read_,readAsync,readBinary,Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!0,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;t.open("GET",e,!1),t.responseType="arraybuffer";let r=Date.now();return t.onloadstart=()=>{postMessage({type:"event",id:-3,body:{loaded:0,total:pe.lengthComputable?pe.total:0,tag:"starting",resourcesPath:e}})},t.onprogress=t=>{const n=Date.now();r+500<n&&(postMessage({type:"event",id:-3,body:{total:t.lengthComputable?t.total:0,loaded:t.loaded,tag:"in progress",resourcesPath:e}}),r=n)},t.onloadend=()=>{postMessage({type:"event",id:-3,body:{loaded:pe.lengthComputable?pe.total:0,total:pe.lengthComputable?pe.total:0,tag:"completed",resourcesPath:e}})},t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,ABORT=!1;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,Module.noFSInit||FS.init.initialized||FS.init(),FS.ignorePermissions=!1,TTY.init(),callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var wasmBinaryFile,tempDouble,tempI64,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return e.startsWith(dataURIPrefix)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then(()=>getBinarySync(e)):fetch(e,{credentials:"same-origin"}).then(async t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";postMessage({type:"event",id:-3,body:{total:0,loaded:0,tag:"starting",resourcesPath:e}});const r=+t.headers.get("Content-Length"),n=t.body.getReader();let a=0,o=Date.now();const i=[];for(;;){const{done:t,value:s}=await n.read();if(t)break;if(i.push(s),a+=s.length,r){const t=Date.now();o+500<t&&(postMessage({type:"event",id:-3,body:{total:r,loaded:a,tag:"in progress",resourcesPath:e}}),o=t)}}const s=new Uint8Array(a);let l=0;for(const e of i)s.set(e,l),l+=e.length;return postMessage({type:"event",id:-3,body:{total:r,loaded:r,tag:"completed",resourcesPath:e}}),s}).catch(()=>getBinarySync(e))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)})}function instantiateAsync(e,t,r,n){return instantiateArrayBuffer(t,r,n)}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports};function t(e,t){return wasmExports=e.exports,wasmMemory=wasmExports.memory,updateMemoryViews(),wasmTable=wasmExports.__indirect_function_table,addOnInit(wasmExports.__wasm_call_ctors),exportWasmSymbols(wasmExports),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return instantiateAsync(wasmBinary,wasmBinaryFile,e,function(e){t(e.instance)}),{}}isDataURI(wasmBinaryFile="dynamsoft-barcode-reader-bundle.wasm")||(wasmBinaryFile=locateFile(wasmBinaryFile));var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e),exportWasmSymbols=e=>{for(var t in e){var r=asmjsMangle(t);this[r]=Module[r]=e[t]}};function _CreateDirectoryFetcher(){abort("missing function: CreateDirectoryFetcher")}function _DDN_ConvertElement(){abort("missing function: DDN_ConvertElement")}function _DDN_CreateDDNResult(){abort("missing function: DDN_CreateDDNResult")}function _DDN_CreateDDNResultItem(){abort("missing function: DDN_CreateDDNResultItem")}function _DDN_CreateIntermediateResultUnits(){abort("missing function: DDN_CreateIntermediateResultUnits")}function _DDN_CreateParameters(){abort("missing function: DDN_CreateParameters")}function _DDN_CreateTargetRoiDefConditionFilter(){abort("missing function: DDN_CreateTargetRoiDefConditionFilter")}function _DDN_CreateTaskAlgEntity(){abort("missing function: DDN_CreateTaskAlgEntity")}function _DDN_HasSection(){abort("missing function: DDN_HasSection")}function _DDN_ReadTaskSetting(){abort("missing function: DDN_ReadTaskSetting")}function _DLR_ConvertElement(){abort("missing function: DLR_ConvertElement")}function _DLR_CreateBufferedCharacterItemSet(){abort("missing function: DLR_CreateBufferedCharacterItemSet")}function _DLR_CreateIntermediateResultUnits(){abort("missing function: DLR_CreateIntermediateResultUnits")}function _DLR_CreateParameters(){abort("missing function: DLR_CreateParameters")}function _DLR_CreateRecognizedTextLinesResult(){abort("missing function: DLR_CreateRecognizedTextLinesResult")}function _DLR_CreateTargetRoiDefConditionFilter(){abort("missing function: DLR_CreateTargetRoiDefConditionFilter")}function _DLR_CreateTaskAlgEntity(){abort("missing function: DLR_CreateTaskAlgEntity")}function _DLR_CreateTextLineResultItem(){abort("missing function: DLR_CreateTextLineResultItem")}function _DLR_ReadTaskSetting(){abort("missing function: DLR_ReadTaskSetting")}function _DMImage_GetDIB(){abort("missing function: DMImage_GetDIB")}function _DMImage_GetOrientation(){abort("missing function: DMImage_GetOrientation")}function _DeleteDirectoryFetcher(){abort("missing function: DeleteDirectoryFetcher")}function __ZN19LabelRecognizerWasm10getVersionEv(){abort("missing function: _ZN19LabelRecognizerWasm10getVersionEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi")}function __ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb")}function __ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii")}function __ZN19LabelRecognizerWasm12DlrWasmClassC1Ev(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClassC1Ev")}function __ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE(){abort("missing function: _ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE")}function __ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE(){abort("missing function: _ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE")}function __ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE(){abort("missing function: _ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE")}function __ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE")}function __ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE")}function __ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE(){abort("missing function: _ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE")}function __ZN22DocumentNormalizerWasm10getVersionEv(){abort("missing function: _ZN22DocumentNormalizerWasm10getVersionEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii")}function __ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE")}function __ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii")}function __ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev")}function __ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE(){abort("missing function: _ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE")}function __ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE")}function __ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE")}function __ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE")}function __ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE")}function __ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv")}function __ZN9dynamsoft7utility14CUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft7utility14CUtilityModule10GetVersionEv")}_CreateDirectoryFetcher.stub=!0,_DDN_ConvertElement.stub=!0,_DDN_CreateDDNResult.stub=!0,_DDN_CreateDDNResultItem.stub=!0,_DDN_CreateIntermediateResultUnits.stub=!0,_DDN_CreateParameters.stub=!0,_DDN_CreateTargetRoiDefConditionFilter.stub=!0,_DDN_CreateTaskAlgEntity.stub=!0,_DDN_HasSection.stub=!0,_DDN_ReadTaskSetting.stub=!0,_DLR_ConvertElement.stub=!0,_DLR_CreateBufferedCharacterItemSet.stub=!0,_DLR_CreateIntermediateResultUnits.stub=!0,_DLR_CreateParameters.stub=!0,_DLR_CreateRecognizedTextLinesResult.stub=!0,_DLR_CreateTargetRoiDefConditionFilter.stub=!0,_DLR_CreateTaskAlgEntity.stub=!0,_DLR_CreateTextLineResultItem.stub=!0,_DLR_ReadTaskSetting.stub=!0,_DMImage_GetDIB.stub=!0,_DMImage_GetOrientation.stub=!0,_DeleteDirectoryFetcher.stub=!0,__ZN19LabelRecognizerWasm10getVersionEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev.stub=!0,__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE.stub=!0,__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE.stub=!0,__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE.stub=!0,__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE.stub=!0,__ZN22DocumentNormalizerWasm10getVersionEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev.stub=!0,__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE.stub=!0,__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE.stub=!0,__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv.stub=!0,__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv.stub=!0;var UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,a));for(var o="";t<a;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var m=i-65536;o+=String.fromCharCode(55296|m>>10,56320|1023&m)}}else o+=String.fromCharCode((31&i)<<6|s)}else o+=String.fromCharCode(i)}return o},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",___assert_fail=(e,t,r,n)=>{abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])},exceptionCaught=[],uncaughtExceptionCount=0,___cxa_begin_catch=e=>{var t=new ExceptionInfo(e);return t.get_caught()||(t.set_caught(!0),uncaughtExceptionCount--),t.set_rethrown(!1),exceptionCaught.push(t),___cxa_increment_exception_refcount(t.excPtr),t.get_exception_ptr()},exceptionLast=0,___cxa_end_catch=()=>{_setThrew(0,0);var e=exceptionCaught.pop();___cxa_decrement_exception_refcount(e.excPtr),exceptionLast=0};function ExceptionInfo(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){HEAPU32[this.ptr+4>>2]=e},this.get_type=function(){return HEAPU32[this.ptr+4>>2]},this.set_destructor=function(e){HEAPU32[this.ptr+8>>2]=e},this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,HEAP8[this.ptr+12|0]=e},this.get_caught=function(){return 0!=HEAP8[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,HEAP8[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=HEAP8[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){HEAPU32[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_type()))return HEAPU32[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ___resumeException=e=>{throw exceptionLast||(exceptionLast=e),exceptionLast},findMatchingCatch=e=>{var t=exceptionLast;if(!t)return setTempRet0(0),0;var r=new ExceptionInfo(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return setTempRet0(0),t;for(var a in e){var o=e[a];if(0===o||o===n)break;var i=r.ptr+16;if(___cxa_can_catch(o,n,i))return setTempRet0(o),t}return setTempRet0(n),t},___cxa_find_matching_catch_2=()=>findMatchingCatch([]),___cxa_find_matching_catch_3=e=>findMatchingCatch([e]),___cxa_rethrow=()=>{var e=exceptionCaught.pop();e||abort("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(exceptionCaught.push(e),e.set_rethrown(!0),e.set_caught(!1),uncaughtExceptionCount++),exceptionLast=t},___cxa_rethrow_primary_exception=e=>{if(e){var t=new ExceptionInfo(e);exceptionCaught.push(t),t.set_rethrown(!0),___cxa_rethrow()}},___cxa_throw=(e,t,r)=>{throw new ExceptionInfo(e).init(t,r),uncaughtExceptionCount++,exceptionLast=e},___cxa_uncaught_exceptions=()=>uncaughtExceptionCount,PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return PATH.normalize(e.join("/"))},join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=PATH.isAbs(n)}return(t?"/":"")+(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),a=r(t.split("/")),o=Math.min(n.length,a.length),i=o,s=0;s<o;s++)if(n[s]!==a[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(a.slice(i))).join("/")}},FS_stdin_getChar_buffer=[],lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,a=new Array(n),o=stringToUTF8Array(e,a,0,a.length);return t&&(a.length=o),a}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,a){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var o=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new FS.ErrnoError(29)}if(void 0===s&&0===o)throw new FS.ErrnoError(6);if(null==s)break;o++,t[r+i]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,n,a){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new FS.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>FS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output,0)),e.output=[])},ioctl_tcgets:e=>({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:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},mmapAlloc=e=>{abort()},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var a=FS.createNode(e,t,r,n);return FS.isDir(a.mode)?(a.node_ops=MEMFS.ops_table.dir.node,a.stream_ops=MEMFS.ops_table.dir.stream,a.contents={}):FS.isFile(a.mode)?(a.node_ops=MEMFS.ops_table.file.node,a.stream_ops=MEMFS.ops_table.file.stream,a.usedBytes=0,a.contents=null):FS.isLink(a.mode)?(a.node_ops=MEMFS.ops_table.link.node,a.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(a.mode)&&(a.node_ops=MEMFS.ops_table.chrdev.node,a.stream_ops=MEMFS.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[t]=a,e.timestamp=a.timestamp),a},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var a in n.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var n=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,a){var o=e.node.contents;if(a>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-a,n);if(i>8&&o.subarray)t.set(o.subarray(a,a+i),r);else for(var s=0;s<i;s++)t[r+s]=o[a+s];return i},write(e,t,r,n,a,o){if(t.buffer===HEAP8.buffer&&(o=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(o)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===a)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(a+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),a),n}if(MEMFS.expandFileStorage(i,a+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),a);else for(var s=0;s<n;s++)i.contents[a+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,a+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&FS.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new FS.ErrnoError(28);return n},allocate(e,t,r){MEMFS.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,a){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var o,i,s=e.node.contents;if(2&a||s.buffer!==HEAP8.buffer){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),i=!0,!(o=mmapAlloc(t)))throw new FS.ErrnoError(48);HEAP8.set(s,o)}else i=!1,o=s.byteOffset;return{ptr:o,allocated:i}},msync:(e,t,r,n,a)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},asyncLoad=(e,t,r,n)=>{var a=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e,r=>{assert(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),a&&removeRunDependency(a)},t=>{if(!r)throw`Loading data file "${e}" failed.`;r()}),a&&addRunDependency(a)},FS_createDataFile=(e,t,r,n,a,o)=>FS.createDataFile(e,t,r,n,a,o),preloadPlugins=Module.preloadPlugins||[],FS_handledByPreloadPlugin=(e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var a=!1;return preloadPlugins.forEach(o=>{a||o.canHandle(t)&&(o.handle(e,t,r,n),a=!0)}),a},FS_createPreloadedFile=(e,t,r,n,a,o,i,s,l,m)=>{var u=t?PATH_FS.resolve(PATH.join2(e,t)):e,c=getUniqueRunDependency(`cp ${u}`);function d(r){function d(r){m&&m(),s||FS_createDataFile(e,t,r,n,a,l),o&&o(),removeRunDependency(c)}FS_handledByPreloadPlugin(r,u,d,()=>{i&&i(),removeRunDependency(c)})||d(r)}addRunDependency(c),"string"==typeof r?asyncLoad(r,e=>d(e),i):d(r)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter(e=>!!e),n=FS.root,a="/",o=0;o<r.length;o++){var i=o===r.length-1;if(i&&t.parent)break;if(n=FS.lookupNode(n,r[o]),a=PATH.join2(a,r[o]),FS.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;FS.isLink(n.mode);){var l=FS.readlink(a);if(a=PATH_FS.resolve(PATH.dirname(a),l),n=FS.lookupPath(a,{recurse_count:t.recurse_count+1}).node,s++>40)throw new FS.ErrnoError(32)}}return{path:a,node:n}},getPath(e){for(var t;;){if(FS.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r,e);for(var n=FS.hashName(e.id,t),a=FS.nameTable[n];a;a=a.name_next){var o=a.name;if(a.parent.id===e.id&&o===t)return a}return FS.lookup(e,t)},createNode(e,t,r,n){var a=new FS.FSNode(e,t,r,n);return FS.hashAddNode(a),a},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{FS.lookupNode(e,t);return 20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var a=FS.nodePermissions(e,"wx");if(a)return a;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(FS.FSStream||(FS.FSStream=function(){this.shared={}},FS.FSStream.prototype={},Object.defineProperties(FS.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},chrdev_stream_ops:{open(e){var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=FS.getMounts(FS.root.mount),n=0;function a(e){return FS.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,a(e));++n>=r.length&&a(null)}r.forEach(t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)})},mount(e,t,r){var n,a="/"===r,o=!r;if(a&&FS.root)throw new FS.ErrnoError(10);if(!a&&!o){var i=FS.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,a?FS.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,a=FS.getMounts(n);Object.keys(FS.nameTable).forEach(e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;a.includes(t.mount)&&FS.destroyNode(t),t=r}}),r.mounted=null;var o=r.mount.mounts.indexOf(n);r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,a=PATH.basename(e);if(!a||"."===a||".."===a)throw new FS.ErrnoError(28);var o=FS.mayCreate(n,a);if(o)throw new FS.ErrnoError(o);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,a,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",a=0;a<r.length;++a)if(r[a]){n+="/"+r[a];try{FS.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),a=FS.mayCreate(r,n);if(a)throw new FS.ErrnoError(a);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,a=PATH.dirname(e),o=PATH.dirname(t),i=PATH.basename(e),s=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var l,m=FS.lookupNode(r,i),u=PATH_FS.relative(e,o);if("."!==u.charAt(0))throw new FS.ErrnoError(28);if("."!==(u=PATH_FS.relative(t,a)).charAt(0))throw new FS.ErrnoError(55);try{l=FS.lookupNode(n,s)}catch(e){}if(m!==l){var c=FS.isDir(m.mode),d=FS.mayDelete(r,i,c);if(d)throw new FS.ErrnoError(d);if(d=l?FS.mayDelete(n,s,c):FS.mayCreate(n,s))throw new FS.ErrnoError(d);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(m)||l&&FS.isMountpoint(l))throw new FS.ErrnoError(10);if(n!==r&&(d=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(m);try{r.node_ops.rename(m,n,s)}catch(e){throw e}finally{FS.hashAddNode(m)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!0);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!1);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;"string"==typeof e?n=FS.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var a;"string"==typeof e?a=FS.lookupPath(e,{follow:!n}).node:a=e;if(!a.node_ops.setattr)throw new FS.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;"string"==typeof e?r=FS.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),a=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!a){var o=FS.mayOpen(n,t);if(o)throw new FS.ErrnoError(o)}512&t&&!a&&FS.truncate(n,0),t&=-131713;var i=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!Module.logReadFiles||1&t||(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),i},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,a){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var o=void 0!==a;if(o){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var i=e.stream_ops.read(e,t,r,n,a);return o||(e.position+=i),i},write(e,t,r,n,a,o){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var i=void 0!==a;if(i){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var s=e.stream_ops.write(e,t,r,n,a,o);return i||(e.position+=s),s},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,a){if(2&n&&!(2&a)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,a)},msync:(e,t,r,n,a)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,a):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=FS.open(e,t.flags),a=FS.stat(e).size,o=new Uint8Array(a);return FS.read(n,o,0,a,0),"utf8"===t.encoding?r=UTF8ArrayToString(o,0):"binary"===t.encoding&&(r=o),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var a=new Uint8Array(lengthBytesUTF8(t)+1),o=stringToUTF8Array(t,a,0,a.length);FS.write(n,a,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,a)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),a={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return a.parent=a,a}},t}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr");FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},ensureErrnoError(){FS.ErrnoError||(FS.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},FS.ErrnoError.prototype=new Error,FS.ErrnoError.prototype.constructor=FS.ErrnoError,[44].forEach(e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS:MEMFS}},init(e,t,r){FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=t||Module.stdout,Module.stderr=r||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1;for(var e=0;e<FS.streams.length;e++){var t=FS.streams[e];t&&FS.close(t)}},findObject(e,t){var r=FS.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=FS.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=FS.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=PATH.basename(e),n=FS.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:FS.getPath(e);for(var a=t.split("/").reverse();a.length;){var o=a.pop();if(o){var i=PATH.join2(e,o);try{FS.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,a){var o=PATH.join2("string"==typeof e?e:FS.getPath(e),t),i=FS_getMode(n,a);return FS.create(o,i)},createDataFile(e,t,r,n,a,o){var i=t;e&&(e="string"==typeof e?e:FS.getPath(e),i=t?PATH.join2(e,t):e);var s=FS_getMode(n,a),l=FS.create(i,s);if(r){if("string"==typeof r){for(var m=new Array(r.length),u=0,c=r.length;u<c;++u)m[u]=r.charCodeAt(u);r=m}FS.chmod(l,146|s);var d=FS.open(l,577);FS.write(d,r,0,r.length,0,o),FS.close(d),FS.chmod(l,s)}return l},createDevice(e,t,r,n){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),t),o=FS_getMode(!!r,!!n);FS.createDevice.major||(FS.createDevice.major=64);var i=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,a,o){for(var i=0,s=0;s<a;s++){var l;try{l=r()}catch(e){throw new FS.ErrnoError(29)}if(void 0===l&&0===i)throw new FS.ErrnoError(6);if(null==l)break;i++,t[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,a,o){for(var i=0;i<a;i++)try{n(t[r+i])}catch(e){throw new FS.ErrnoError(29)}return a&&(e.node.timestamp=Date.now()),i}}),FS.mkdev(a,o,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.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(!read_)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=intArrayFromString(read_(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new FS.ErrnoError(29)}},createLazyFile(e,t,r,n,a){function o(){this.lengthKnown=!1,this.chunks=[]}if(o.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},o.prototype.setDataGetter=function(e){this.getter=e},o.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),a=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;a||(i=n);var s=this;s.setDataGetter(e=>{var t=e*i,a=(e+1)*i-1;if(a=Math.min(a,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",r,!1),n!==i&&a.setRequestHeader("Range","bytes="+e+"-"+t),a.responseType="arraybuffer",a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw new Error("Couldn't load "+r+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):intArrayFromString(a.responseText||"",!0)})(t,a)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]}),!o&&n||(i=n=1,n=this.getter(0).length,i=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new o;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:r};var l=FS.createFile(e,t,s,n,a);s.contents?l.contents=s.contents:s.url&&(l.contents=null,l.url=s.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var m={};function u(e,t,r,n,a){var o=e.node.contents;if(a>=o.length)return 0;var i=Math.min(o.length-a,n);if(o.slice)for(var s=0;s<i;s++)t[r+s]=o[a+s];else for(s=0;s<i;s++)t[r+s]=o.get(a+s);return i}return Object.keys(l.stream_ops).forEach(e=>{var t=l.stream_ops[e];m[e]=function(){return FS.forceLoadFile(l),t.apply(null,arguments)}}),m.read=(e,t,r,n,a)=>(FS.forceLoadFile(l),u(e,t,r,n,a)),m.mmap=(e,t,r,n,a)=>{FS.forceLoadFile(l);var o=mmapAlloc(t);if(!o)throw new FS.ErrnoError(48);return u(e,HEAP8,o,t,r),{ptr:o,allocated:!0}},l.stream_ops=m,l}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;-100===e?n=FS.cwd():n=SYSCALLS.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=n.dev,HEAP32[r+4>>2]=n.mode,HEAPU32[r+8>>2]=n.nlink,HEAP32[r+12>>2]=n.uid,HEAP32[r+16>>2]=n.gid,HEAP32[r+20>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+24>>2]=tempI64[0],HEAP32[r+28>>2]=tempI64[1],HEAP32[r+32>>2]=4096,HEAP32[r+36>>2]=n.blocks;var a=n.atime.getTime(),o=n.mtime.getTime(),i=n.ctime.getTime();return tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAPU32[r+48>>2]=a%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=o%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=i%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],0},doMsync(e,t,r,n,a){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var o=HEAPU8.slice(e,e+r);FS.msync(t,o,a,r,n)},varargs:void 0,get(){var e=HEAP32[+SYSCALLS.varargs>>2];return SYSCALLS.varargs+=4,e},getp:()=>SYSCALLS.get(),getStr:e=>UTF8ToString(e),getStreamFromFD:e=>FS.getStreamChecked(e)};function ___syscall_faccessat(e,t,r,n){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var a=FS.lookupPath(t,{follow:!0}).node;if(!a)return-44;var o="";return 4&r&&(o+="r"),2&r&&(o+="w"),1&r&&(o+="x"),o&&FS.nodePermissions(a,o)?-2:0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var setErrNo=e=>(HEAP32[___errno_location()>>2]=e,e);function ___syscall_fcntl64(e,t,r){SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((a=SYSCALLS.get())<0)return-28;for(;FS.streams[a];)a++;return FS.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=SYSCALLS.get();return n.flags|=a,0;case 5:a=SYSCALLS.getp();return HEAP16[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return setErrNo(28),-1}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var a=n.tty.ops.ioctl_tcgets(n),o=SYSCALLS.getp();HEAP32[o>>2]=a.c_iflag||0,HEAP32[o+4>>2]=a.c_oflag||0,HEAP32[o+8>>2]=a.c_cflag||0,HEAP32[o+12>>2]=a.c_lflag||0;for(var i=0;i<32;i++)HEAP8[o+i+17|0]=a.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){o=SYSCALLS.getp();var s=HEAP32[o>>2],l=HEAP32[o+4>>2],m=HEAP32[o+8>>2],u=HEAP32[o+12>>2],c=[];for(i=0;i<32;i++)c.push(HEAP8[o+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:l,c_cflag:m,c_lflag:u,c_cc:c})}return 0;case 21519:if(!n.tty)return-59;o=SYSCALLS.getp();return HEAP32[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=SYSCALLS.getp();return FS.ioctl(n,t,o);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);o=SYSCALLS.getp();HEAP16[o>>1]=d[0],HEAP16[o+2>>1]=d[1]}return 0;default:return-28}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var a=n?SYSCALLS.get():0;return FS.open(t,r,a).fd}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r);function ___syscall_readlinkat(e,t,r,n){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var a=FS.readlink(t),o=Math.min(n,lengthBytesUTF8(a)),i=HEAP8[r+o];return stringToUTF8(a,r,n+1),HEAP8[r+o]=i,o}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var nowIsMonotonic=!0,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic,convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);HEAP32[r>>2]=a.getUTCSeconds(),HEAP32[r+4>>2]=a.getUTCMinutes(),HEAP32[r+8>>2]=a.getUTCHours(),HEAP32[r+12>>2]=a.getUTCDate(),HEAP32[r+16>>2]=a.getUTCMonth(),HEAP32[r+20>>2]=a.getUTCFullYear()-1900,HEAP32[r+24>>2]=a.getUTCDay();var o=Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0),i=(a.getTime()-o)/864e5|0;HEAP32[r+28>>2]=i}var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);HEAP32[r>>2]=a.getSeconds(),HEAP32[r+4>>2]=a.getMinutes(),HEAP32[r+8>>2]=a.getHours(),HEAP32[r+12>>2]=a.getDate(),HEAP32[r+16>>2]=a.getMonth(),HEAP32[r+20>>2]=a.getFullYear()-1900,HEAP32[r+24>>2]=a.getDay();var o=0|ydayFromDate(a);HEAP32[r+28>>2]=o,HEAP32[r+36>>2]=-60*a.getTimezoneOffset();var i=new Date(a.getFullYear(),0,1),s=new Date(a.getFullYear(),6,1).getTimezoneOffset(),l=i.getTimezoneOffset(),m=0|(s!=l&&a.getTimezoneOffset()==Math.min(l,s));HEAP32[r+32>>2]=m}var _emscripten_get_now,stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r},__tzset_js=(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),o=new Date(n,6,1),i=a.getTimezoneOffset(),s=o.getTimezoneOffset(),l=Math.max(i,s);function m(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}HEAPU32[e>>2]=60*l,HEAP32[t>>2]=Number(i!=s);var u=m(a),c=m(o),d=stringToNewUTF8(u),_=stringToNewUTF8(c);s<i?(HEAPU32[r>>2]=d,HEAPU32[r+4>>2]=_):(HEAPU32[r>>2]=_,HEAPU32[r+4>>2]=d)},_abort=()=>{abort("")},_emscripten_date_now=()=>Date.now(),getHeapMax=()=>2147483648,_emscripten_get_heap_max=()=>getHeapMax();_emscripten_get_now=()=>performance.now();var reallyNegative=e=>e<0||0===e&&1/e==-1/0,convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<<t-1):Math.pow(2,t-1);return e>=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<<t-1)+e:Math.pow(2,t)+e,strLen=e=>{for(var t=e;HEAPU8[t];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function a(e){var t;return n=function(e,t){return"double"!==t&&"i64"!==t||7&e&&(e+=4),e}(n,e),"double"===e?(t=HEAPF64[n>>3],n+=8):"i64"==e?(t=[HEAP32[n>>2],HEAP32[n+4>>2]],n+=8):(e="i32",t=HEAP32[n>>2],n+=4),t}for(var o,i,s,l=[];;){var m=r;if(0===(o=HEAP8[r|0]))break;if(i=HEAP8[r+1|0],37==o){var u=!1,c=!1,d=!1,_=!1,f=!1;e:for(;;){switch(i){case 43:u=!0;break;case 45:c=!0;break;case 35:d=!0;break;case 48:if(_)break e;_=!0;break;case 32:f=!0;break;default:break e}r++,i=HEAP8[r+1|0]}var g=0;if(42==i)g=a("i32"),r++,i=HEAP8[r+1|0];else for(;i>=48&&i<=57;)g=10*g+(i-48),r++,i=HEAP8[r+1|0];var E,p=!1,h=-1;if(46==i){if(h=0,p=!0,r++,42==(i=HEAP8[r+1|0]))h=a("i32"),r++;else for(;;){var S=HEAP8[r+1|0];if(S<48||S>57)break;h=10*h+(S-48),r++}i=HEAP8[r+1|0]}switch(h<0&&(h=6,p=!1),String.fromCharCode(i)){case"h":104==HEAP8[r+2|0]?(r++,E=1):E=2;break;case"l":108==HEAP8[r+2|0]?(r++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}switch(E&&r++,i=HEAP8[r+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var v=100==i||105==i;if(s=a("i"+8*(E=E||4)),8==E&&(s=117==i?convertU32PairToI53(s[0],s[1]):convertI32PairToI53(s[0],s[1])),E<=4){var F=Math.pow(256,E)-1;s=(v?reSign:unSign)(s&F,8*E)}var y=Math.abs(s),D="";if(100==i||105==i)R=reSign(s,8*E).toString(10);else if(117==i)R=unSign(s,8*E).toString(10),s=Math.abs(s);else if(111==i)R=(d?"0":"")+y.toString(8);else if(120==i||88==i){if(D=d&&0!=s?"0x":"",s<0){s=-s,R=(y-1).toString(16);for(var w=[],b=0;b<R.length;b++)w.push((15-parseInt(R[b],16)).toString(16));for(R=w.join("");R.length<2*E;)R="f"+R}else R=y.toString(16);88==i&&(D=D.toUpperCase(),R=R.toUpperCase())}else 112==i&&(0===y?R="(nil)":(D="0x",R=y.toString(16)));if(p)for(;R.length<h;)R="0"+R;for(s>=0&&(u?D="+"+D:f&&(D=" "+D)),"-"==R.charAt(0)&&(D="-"+D,R=R.substr(1));D.length+R.length<g;)c?R+=" ":_?R="0"+R:D=" "+D;(R=D+R).split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":var R;if(s=a("double"),isNaN(s))R="nan",_=!1;else if(isFinite(s)){var N=!1,T=Math.min(h,20);if(103==i||71==i){N=!0,h=h||1;var C=parseInt(s.toExponential(T).split("e")[1],10);h>C&&C>=-4?(i=(103==i?"f":"F").charCodeAt(0),h-=C+1):(i=(103==i?"e":"E").charCodeAt(0),h--),T=Math.min(h,20)}101==i||69==i?(R=s.toExponential(T),/[eE][-+]\d$/.test(R)&&(R=R.slice(0,-1)+"0"+R.slice(-1))):102!=i&&70!=i||(R=s.toFixed(T),0===s&&reallyNegative(s)&&(R="-"+R));var k=R.split("e");if(N&&!d)for(;k[0].length>1&&k[0].includes(".")&&("0"==k[0].slice(-1)||"."==k[0].slice(-1));)k[0]=k[0].slice(0,-1);else for(d&&-1==R.indexOf(".")&&(k[0]+=".");h>T++;)k[0]+="0";R=k[0]+(k.length>1?"e"+k[1]:""),69==i&&(R=R.toUpperCase()),s>=0&&(u?R="+"+R:f&&(R=" "+R))}else R=(s<0?"-":"")+"inf",_=!1;for(;R.length<g;)c?R+=" ":R=!_||"-"!=R[0]&&"+"!=R[0]?(_?"0":" ")+R:R[0]+"0"+R.slice(1);i<97&&(R=R.toUpperCase()),R.split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"s":var P=a("i8*"),A=P?strLen(P):6;if(p&&(A=Math.min(A,h)),!c)for(;A<g--;)l.push(32);if(P)for(b=0;b<A;b++)l.push(HEAPU8[P++|0]);else l=l.concat(intArrayFromString("(null)".substr(0,A),!0));if(c)for(;A<g--;)l.push(32);break;case"c":for(c&&l.push(a("i8"));--g>0;)l.push(32);c||l.push(a("i8"));break;case"n":var M=a("i32*");HEAP32[M>>2]=l.length;break;case"%":l.push(o);break;default:for(b=m;b<r+2;b++)l.push(HEAP8[b|0])}r+=2}else l.push(o),r+=1}return l};function jsStackTrace(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}var warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,err(e))};function getCallstack(e){var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),a=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(a),8&e&&"undefined"==typeof emscripten_source_map&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var o=t.split("\n");t="";var i=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),s=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),l=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var m in o){var u=o[m],c="",d="",_=0,f=0,g=l.exec(u);if(g&&5==g.length)c=g[1],d=g[2],_=g[3],f=g[4];else{if((g=i.exec(u))||(g=s.exec(u)),!(g&&g.length>=4)){t+=u+"\n";continue}c=g[1],d=g[2],_=g[3],f=0|g[4]}var E=!1;if(8&e){var p=emscripten_source_map.originalPositionFor({line:_,column:f});(E=p&&p.source)&&(64&e&&(p.source=p.source.substring(p.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=` at ${c} (${p.source}:${p.line}:${p.column})\n`)}(16&e||!E)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(E?` = ${c}`:` at ${c}`)+` (${d}:${_}:${f})\n`)}return t=t.replace(/\s+$/,"")}var emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e||2&e?err(t):out(t):6&e?err(t):out(t)},_emscripten_log=(e,t,r)=>{var n=formatString(t,r),a=UTF8ArrayToString(n,0);emscriptenLog(e,a)},growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,a=1;a<=4;a*=2){var o=t*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(r,n(Math.max(e,o),65536));if(growMemory(i))return!0}return!1},ENV={},getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.strings){var e={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",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r<e.length;++r)HEAP8[t++|0]=e.charCodeAt(r);HEAP8[t|0]=0},_environ_get=(e,t)=>{var r=0;return getEnvStrings().forEach((n,a)=>{var o=t+r;HEAPU32[e+4*a>>2]=o,stringToAscii(n,o),r+=n.length+1}),0},_environ_sizes_get=(e,t)=>{var r=getEnvStrings();HEAPU32[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),HEAPU32[t>>2]=n,0};function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doReadv=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=HEAPU32[t>>2],s=HEAPU32[t+4>>2];t+=8;var l=FS.read(e,HEAP8,i,s,n);if(l<0)return-1;if(a+=l,l<s)break;void 0!==n&&(n+=l)}return a};function _fd_read(e,t,r,n){try{var a=SYSCALLS.getStreamFromFD(e),o=doReadv(a,t,r);return HEAPU32[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,a){var o=convertI32PairToI53Checked(t,r);try{if(isNaN(o))return 61;var i=SYSCALLS.getStreamFromFD(e);return FS.llseek(i,o,n),tempI64=[i.position>>>0,(tempDouble=i.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[a>>2]=tempI64[0],HEAP32[a+4>>2]=tempI64[1],i.getdents&&0===o&&0===n&&(i.getdents=null),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doWritev=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=HEAPU32[t>>2],s=HEAPU32[t+4>>2];t+=8;var l=FS.write(e,HEAP8,i,s,n);if(l<0)return-1;a+=l,void 0!==n&&(n+=l)}return a};function _fd_write(e,t,r,n){try{var a=SYSCALLS.getStreamFromFD(e),o=doWritev(a,t,r);return HEAPU32[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var wasmTable,functionsInTableMap,arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),a=r.getMonth(),o=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[a];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},writeArrayToMemory=(e,t)=>{HEAP8.set(e,t)},_strftime=(e,t,r,n)=>{var a=HEAPU32[n+40>>2],o={tm_sec:HEAP32[n>>2],tm_min:HEAP32[n+4>>2],tm_hour:HEAP32[n+8>>2],tm_mday:HEAP32[n+12>>2],tm_mon:HEAP32[n+16>>2],tm_year:HEAP32[n+20>>2],tm_wday:HEAP32[n+24>>2],tm_yday:HEAP32[n+28>>2],tm_isdst:HEAP32[n+32>>2],tm_gmtoff:HEAP32[n+36>>2],tm_zone:a?UTF8ToString(a):""},i=UTF8ToString(r),s={"%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 l in s)i=i.replace(new RegExp(l,"g"),s[l]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function d(e,t){return c(e,t,"0")}function _(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function f(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var t=addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),a=f(r),o=f(n);return _(a,t)<=0?_(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var E={"%a":e=>m[e.tm_wday].substring(0,3),"%A":e=>m[e.tm_wday],"%b":e=>u[e.tm_mon].substring(0,3),"%B":e=>u[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>c(e.tm_mday,2," "),"%g":e=>g(e).toString().substring(2),"%G":e=>g(e),"%H":e=>d(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),d(t,2)},"%j":e=>d(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return d(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&isLeapYear(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&t++}return d(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in i=i.replace(/%%/g,"\0\0"),E)i.includes(l)&&(i=i.replace(new RegExp(l,"g"),E[l](o)));var p=intArrayFromString(i=i.replace(/\0\0/g,"%"),!1);return p.length>t?0:(writeArrayToMemory(p,e),p.length-1)},_strftime_l=(e,t,r,n,a)=>_strftime(e,t,r,n),getWasmTableEntry=e=>wasmTable.get(e),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(a[n[o]]);"v"==r?t.push(0):t.push(1,a[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var a=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,a)}return functionsInTableMap.set(e,n),n},stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},FSNode=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},readMode=365,writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(e){e?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(e){e?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}),FS.FSNode=FSNode,FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit();var calledRun,wasmImports={CreateDirectoryFetcher:_CreateDirectoryFetcher,DDN_ConvertElement:_DDN_ConvertElement,DDN_CreateDDNResult:_DDN_CreateDDNResult,DDN_CreateDDNResultItem:_DDN_CreateDDNResultItem,DDN_CreateIntermediateResultUnits:_DDN_CreateIntermediateResultUnits,DDN_CreateParameters:_DDN_CreateParameters,DDN_CreateTargetRoiDefConditionFilter:_DDN_CreateTargetRoiDefConditionFilter,DDN_CreateTaskAlgEntity:_DDN_CreateTaskAlgEntity,DDN_HasSection:_DDN_HasSection,DDN_ReadTaskSetting:_DDN_ReadTaskSetting,DLR_ConvertElement:_DLR_ConvertElement,DLR_CreateBufferedCharacterItemSet:_DLR_CreateBufferedCharacterItemSet,DLR_CreateIntermediateResultUnits:_DLR_CreateIntermediateResultUnits,DLR_CreateParameters:_DLR_CreateParameters,DLR_CreateRecognizedTextLinesResult:_DLR_CreateRecognizedTextLinesResult,DLR_CreateTargetRoiDefConditionFilter:_DLR_CreateTargetRoiDefConditionFilter,DLR_CreateTaskAlgEntity:_DLR_CreateTaskAlgEntity,DLR_CreateTextLineResultItem:_DLR_CreateTextLineResultItem,DLR_ReadTaskSetting:_DLR_ReadTaskSetting,DMImage_GetDIB:_DMImage_GetDIB,DMImage_GetOrientation:_DMImage_GetOrientation,DeleteDirectoryFetcher:_DeleteDirectoryFetcher,_ZN19LabelRecognizerWasm10getVersionEv:__ZN19LabelRecognizerWasm10getVersionEv,_ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv:__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv,_ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv:__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv,_ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi:__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi,_ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb:__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb,_ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb:__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb,_ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb:__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb,_ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii:__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii,_ZN19LabelRecognizerWasm12DlrWasmClassC1Ev:__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev,_ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE:__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE,_ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE:__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE,_ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE:__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE,_ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE:__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE,_ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE:__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE,_ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE:__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE,_ZN22DocumentNormalizerWasm10getVersionEv:__ZN22DocumentNormalizerWasm10getVersionEv,_ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv:__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv,_ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi:__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi,_ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii:__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii,_ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE,_ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii:__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii,_ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev:__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev,_ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE:__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE,_ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE:__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE,_ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE:__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE,_ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE:__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE,_ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE:__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE,_ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv:__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv,_ZN9dynamsoft7utility14CUtilityModule10GetVersionEv:__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv,__assert_fail:___assert_fail,__cxa_begin_catch:___cxa_begin_catch,__cxa_end_catch:___cxa_end_catch,__cxa_find_matching_catch_2:___cxa_find_matching_catch_2,__cxa_find_matching_catch_3:___cxa_find_matching_catch_3,__cxa_rethrow:___cxa_rethrow,__cxa_rethrow_primary_exception:___cxa_rethrow_primary_exception,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__resumeException:___resumeException,__syscall_faccessat:___syscall_faccessat,__syscall_fcntl64:___syscall_fcntl64,__syscall_ioctl:___syscall_ioctl,__syscall_mkdirat:___syscall_mkdirat,__syscall_openat:___syscall_openat,__syscall_readlinkat:___syscall_readlinkat,__syscall_rmdir:___syscall_rmdir,__syscall_unlinkat:___syscall_unlinkat,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_tzset_js:__tzset_js,abort:_abort,emscripten_date_now:_emscripten_date_now,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_now:_emscripten_get_now,emscripten_log:_emscripten_log,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,fd_close:_fd_close,fd_read:_fd_read,fd_seek:_fd_seek,fd_write:_fd_write,invoke_diii:invoke_diii,invoke_fiii:invoke_fiii,invoke_i:invoke_i,invoke_ii:invoke_ii,invoke_iii:invoke_iii,invoke_iiii:invoke_iiii,invoke_iiiii:invoke_iiiii,invoke_iiiiid:invoke_iiiiid,invoke_iiiiii:invoke_iiiiii,invoke_iiiiiii:invoke_iiiiiii,invoke_iiiiiiii:invoke_iiiiiiii,invoke_iiiiiiiiiiii:invoke_iiiiiiiiiiii,invoke_iiiiij:invoke_iiiiij,invoke_j:invoke_j,invoke_ji:invoke_ji,invoke_jii:invoke_jii,invoke_jiiii:invoke_jiiii,invoke_v:invoke_v,invoke_vi:invoke_vi,invoke_vii:invoke_vii,invoke_viid:invoke_viid,invoke_viii:invoke_viii,invoke_viiii:invoke_viiii,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiiiiiii:invoke_viiiiiiiiii,invoke_viiiiiiiiiiiiiii:invoke_viiiiiiiiiiiiiii,strftime:_strftime,strftime_l:_strftime_l},wasmExports=createWasm();function invoke_iiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(e,t,r){var n=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(e,t,r){var n=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(e,t){var r=stackSave();try{getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,t,r,n,a,o,i){var s=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(e,t,r,n,a){var o=stackSave();try{getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,r,n,a,o,i,s){var l=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(e,t,r,n,a){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,t,r,n,a,o,i,s){var l=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,t,r,n,a,o,i,s,l,m,u,c){var d=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s,l,m,u,c)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,t,r,n,a,o,i,s,l,m,u){var c=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,l,m,u)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,t,r,n,a,o,i,s,l,m,u,c,d,_,f,g){var E=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,l,m,u,c,d,_,f,g)}catch(e){if(stackRestore(E),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_j(e){var t=stackSave();try{return dynCall_j(e)}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ji(e,t){var r=stackSave();try{return dynCall_ji(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(e,t,r){var n=stackSave();try{return dynCall_jii(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiij(e,t,r,n,a,o,i){var s=stackSave();try{return dynCall_iiiiij(e,t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(e,t,r,n,a){var o=stackSave();try{return dynCall_jiiii(e,t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function run(){function e(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)]()[UTF8ToString(r)]()),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack((new(self[UTF8ToString(e)]))[UTF8ToString(t)](UTF8ToString(r))),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>{self[UTF8ToString(e)](null,JSON.stringify(JSON.parse(UTF8ToString(t))),UTF8ToString(r),n)},"viiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)][UTF8ToString(r)](UTF8ToString(n))?"":self[UTF8ToString(e)][UTF8ToString(t)]),"iiiii")),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),e()},1)):e()))}if(Module.addFunction=addFunction,Module.stringToUTF8OnStack=stringToUTF8OnStack,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamsoft-barcode-reader-bundle",
3
- "version": "11.4.2001",
3
+ "version": "11.4.3000",
4
4
  "description": "Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DaraMatrix, PDF417, and Aztec Code.",
5
5
  "main": "dist/dbr.bundle.js",
6
6
  "module": "dist/dbr.bundle.esm.js",
package/samples.url CHANGED
@@ -1,2 +1,2 @@
1
1
  [InternetShortcut]
2
- URL=https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/v11.4.20
2
+ URL=https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/v11.4.30