aboutsummaryrefslogtreecommitdiff
path: root/docs/js/RDKit_minimal.min.js
blob: b66c683617be4f4a657f199f4604805939009a2d (plain)
1
2
var key,Module=void 0!==Module?Module:{},moduleOverrides={};for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var read_,readAsync,readBinary,setWindowTitle,nodeFS,nodePath,arguments_=[],thisProgram="./this.program",quit_=function(e,i){throw i},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!1,ENVIRONMENT_IS_NODE=!1,ENVIRONMENT_IS_SHELL=!1,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}ENVIRONMENT_IS_NODE?(scriptDirectory=ENVIRONMENT_IS_WORKER?require("path").dirname(scriptDirectory)+"/":__dirname+"/",read_=function(e,i){return nodeFS=nodeFS||require("fs"),e=(nodePath=nodePath||require("path")).normalize(e),nodeFS.readFileSync(e,i?null:"utf8")},readBinary=function(e){e=read_(e,!0);return assert((e=!e.buffer?new Uint8Array(e):e).buffer),e},1<process.argv.length&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=Module),process.on("uncaughtException",function(e){if(!(e instanceof ExitStatus))throw e}),process.on("unhandledRejection",abort),quit_=function(e){process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}):ENVIRONMENT_IS_SHELL?("undefined"!=typeof read&&(read_=function(e){return read(e)}),readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?arguments_=scriptArgs:"undefined"!=typeof arguments&&(arguments_=arguments),"function"==typeof quit&&(quit_=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1):"",read_=function(e){var i=new XMLHttpRequest;return i.open("GET",e,!1),i.send(null),i.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=function(e){var i=new XMLHttpRequest;return i.open("GET",e,!1),i.responseType="arraybuffer",i.send(null),new Uint8Array(i.response)}),readAsync=function(e,i,n){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){200==t.status||0==t.status&&t.response?i(t.response):n()},t.onerror=n,t.send(null)},setWindowTitle=function(e){document.title=e});var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);for(key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16;function dynamicAlloc(e){var i=HEAP32[DYNAMICTOP_PTR>>2];return HEAP32[DYNAMICTOP_PTR>>2]=i+e+15&-16,i}function getNativeTypeSize(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"!==e[0])return 0;var i=Number(e.substr(1));return assert(i%8==0,"getNativeTypeSize invalid bits "+i+", type "+e),i/8}}function warnOnce(e){warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,err(e))}function convertJsFunctionToWasm(e,i){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},t={parameters:[],results:"v"==i[0]?[]:[n[i[0]]]},r=1;r<i.length;++r)t.parameters.push(n[i[r]]);return new WebAssembly.Function(t,e)}var o=[1,0,1,96],a=i.slice(0,1),l=i.slice(1),u={i:127,j:126,f:125,d:124};o.push(l.length);for(r=0;r<l.length;++r)o.push(u[l[r]]);"v"==a?o.push(0):o=o.concat([1,u[a]]),o[1]=o.length-2;a=new Uint8Array([0,97,115,109,1,0,0,0].concat(o,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),a=new WebAssembly.Module(a);return new WebAssembly.Instance(a,{e:{f:e}}).exports.f}var functionsInTableMap,freeTableIndexes=[];function addFunctionWasm(i,n){var t,r=wasmTable;if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var e=0;e<r.length;e++){var o=r.get(e);o&&functionsInTableMap.set(o,e)}}if(functionsInTableMap.has(i))return functionsInTableMap.get(i);if(freeTableIndexes.length)t=freeTableIndexes.pop();else{t=r.length;try{r.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}}try{r.set(t,i)}catch(e){if(!(e instanceof TypeError))throw e;n=convertJsFunctionToWasm(i,n);r.set(t,n)}return functionsInTableMap.set(i,t),t}function removeFunctionWasm(e){functionsInTableMap.delete(wasmTable.get(e)),freeTableIndexes.push(e)}var funcWrappers={};function dynCall(e,i,n){return n&&n.length?Module["dynCall_"+e].apply(null,[i].concat(n)):Module["dynCall_"+e].call(null,i)}var wasmBinary,noExitRuntime,wasmMemory,tempRet0=0,setTempRet0=function(e){tempRet0=e},getTempRet0=function(){return tempRet0};function setValue(e,i,n,t){switch(n="*"===(n=n||"i8").charAt(n.length-1)?"i32":n){case"i1":case"i8":HEAP8[e>>0]=i;break;case"i16":HEAP16[e>>1]=i;break;case"i32":HEAP32[e>>2]=i;break;case"i64":tempI64=[i>>>0,1<=+Math_abs(tempDouble=i)?0<tempDouble?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-(~~tempDouble>>>0))/4294967296)>>>0:0],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=i;break;case"double":HEAPF64[e>>3]=i;break;default:abort("invalid type for setValue: "+n)}}Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),"object"!=typeof WebAssembly&&abort("no native wasm support detected");var wasmTable=new WebAssembly.Table({initial:4549,maximum:4549,element:"anyfunc"}),ABORT=!1,EXITSTATUS=0;function assert(e,i){e||abort("Assertion failed: "+i)}function getCFunc(e){var i=Module["_"+e];return assert(i,"Cannot call unknown function "+e+", make sure it is exported"),i}function ccall(e,i,n,t,r){var o={string:function(e){var i,n=0;return null!=e&&0!==e&&(i=1+(e.length<<2),stringToUTF8(e,n=stackAlloc(i),i)),n},array:function(e){var i=stackAlloc(e.length);return writeArrayToMemory(e,i),i}};var e=getCFunc(e),a=[],l=0;if(t)for(var u=0;u<t.length;u++){var s=o[n[u]];s?(0===l&&(l=stackSave()),a[u]=s(t[u])):a[u]=t[u]}var d,e=e.apply(null,a);return d=e,e="string"===i?UTF8ToString(d):"boolean"===i?Boolean(d):d,0!==l&&stackRestore(l),e}var ALLOC_NONE=3,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function UTF8ArrayToString(e,i,n){for(var t=i+n,r=i;e[r]&&!(t<=r);)++r;if(16<r-i&&e.subarray&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(i,r));for(var o="";i<r;){var a,l,u=e[i++];128&u?(a=63&e[i++],192!=(224&u)?(l=63&e[i++],(u=224==(240&u)?(15&u)<<12|a<<6|l:(7&u)<<18|a<<12|l<<6|63&e[i++])<65536?o+=String.fromCharCode(u):(l=u-65536,o+=String.fromCharCode(55296|l>>10,56320|1023&l))):o+=String.fromCharCode((31&u)<<6|a)):o+=String.fromCharCode(u)}return o}function UTF8ToString(e,i){return e?UTF8ArrayToString(HEAPU8,e,i):""}function stringToUTF8Array(e,i,n,t){if(!(0<t))return 0;for(var r=n,o=n+t-1,a=0;a<e.length;++a){var l=e.charCodeAt(a);if((l=55296<=l&&l<=57343?65536+((1023&l)<<10)|1023&e.charCodeAt(++a):l)<=127){if(o<=n)break;i[n++]=l}else if(l<=2047){if(o<=n+1)break;i[n++]=192|l>>6,i[n++]=128|63&l}else if(l<=65535){if(o<=n+2)break;i[n++]=224|l>>12,i[n++]=128|l>>6&63,i[n++]=128|63&l}else{if(o<=n+3)break;i[n++]=240|l>>18,i[n++]=128|l>>12&63,i[n++]=128|l>>6&63,i[n++]=128|63&l}}return i[n]=0,n-r}function stringToUTF8(e,i,n){return stringToUTF8Array(e,HEAPU8,i,n)}function lengthBytesUTF8(e){for(var i=0,n=0;n<e.length;++n){var t=e.charCodeAt(n);(t=55296<=t&&t<=57343?65536+((1023&t)<<10)|1023&e.charCodeAt(++n):t)<=127?++i:i+=t<=2047?2:t<=65535?3:4}return i}var UTF16Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function UTF16ToString(e,i){for(var n=e,t=n>>1,r=t+i/2;!(r<=t)&&HEAPU16[t];)++t;if(32<(n=t<<1)-e&&UTF16Decoder)return UTF16Decoder.decode(HEAPU8.subarray(e,n));for(var o=0,a="";;){var l=HEAP16[e+2*o>>1];if(0==l||o==i/2)return a;++o,a+=String.fromCharCode(l)}}function stringToUTF16(e,i,n){if((n=void 0===n?2147483647:n)<2)return 0;for(var t=i,r=(n-=2)<2*e.length?n/2:e.length,o=0;o<r;++o){var a=e.charCodeAt(o);HEAP16[i>>1]=a,i+=2}return HEAP16[i>>1]=0,i-t}function lengthBytesUTF16(e){return 2*e.length}function UTF32ToString(e,i){for(var n=0,t="";!(i/4<=n);){var r,o=HEAP32[e+4*n>>2];if(0==o)break;++n,65536<=o?(r=o-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=String.fromCharCode(o)}return t}function stringToUTF32(e,i,n){if((n=void 0===n?2147483647:n)<4)return 0;for(var t=i,r=t+n-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),HEAP32[i>>2]=a,r<(i+=4)+4)break}return HEAP32[i>>2]=0,i-t}function lengthBytesUTF32(e){for(var i=0,n=0;n<e.length;++n){var t=e.charCodeAt(n);55296<=t&&t<=57343&&++n,i+=4}return i}function allocateUTF8(e){var i=lengthBytesUTF8(e)+1,n=_malloc(i);return n&&stringToUTF8Array(e,HEAP8,n,i),n}function writeArrayToMemory(e,i){HEAP8.set(e,i)}function writeAsciiToMemory(e,i,n){for(var t=0;t<e.length;++t)HEAP8[i++>>0]=e.charCodeAt(t);n||(HEAP8[i>>0]=0)}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,WASM_PAGE_SIZE=65536;function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var STACK_BASE=5736160,DYNAMIC_BASE=5736160,DYNAMICTOP_PTR=493104,INITIAL_INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;function callRuntimeCallbacks(e){for(;0<e.length;){var i,n=e.shift();"function"!=typeof n?"number"==typeof(i=n.func)?void 0===n.arg?Module.dynCall_v(i):Module.dynCall_vi(i,n.arg):i(void 0===n.arg?null:n.arg):n(Module)}}wasmMemory=Module.wasmMemory||new WebAssembly.Memory({initial:INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,maximum:INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE}),INITIAL_INITIAL_MEMORY=(buffer=wasmMemory?wasmMemory.buffer:buffer).byteLength,updateGlobalBufferAndViews(buffer),HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!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(),TTY.init(),callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=!1,callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=!0}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 addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var Math_abs=Math.abs,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_min=Math.min,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){var i;runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled&&(i=dependenciesFulfilled,dependenciesFulfilled=null,i()))}function abort(e){throw Module.onAbort&&Module.onAbort(e),out(e+=""),err(e),ABORT=!0,EXITSTATUS=1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}function hasPrefix(e,i){return String.prototype.startsWith?e.startsWith(i):0===e.indexOf(i)}Module.preloadedImages={},Module.preloadedAudios={};var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return hasPrefix(e,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(e){return hasPrefix(e,fileURIPrefix)}var tempDouble,tempI64,wasmBinaryFile="RDKit_minimal.wasm";function getBinary(){try{if(wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(wasmBinaryFile);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch||isFileURI(wasmBinaryFile)?new Promise(function(e,i){e(getBinary())}):fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()}).catch(function(){return getBinary()})}function createWasm(){var i={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg};function n(e,i){e=e.exports;Module.asm=e,removeRunDependency("wasm-instantiate")}function t(e){n(e.instance)}function r(e){return getBinaryPromise().then(function(e){return WebAssembly.instantiate(e,i)}).then(e,function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)})}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(i,n)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||"function"!=typeof fetch)return r(t);fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,i).then(t,function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),r(t)})})}(),{}}function demangle(e){return e}function demangleAll(e){return e.replace(/\b_Z[\w\d_]+/g,function(e){var i=demangle(e);return e===i?e:i+" ["+e+"]"})}function jsStackTrace(){var i=new Error;if(!i.stack){try{throw new Error}catch(e){i=e}if(!i.stack)return"(no stack trace available)"}return i.stack.toString()}function stackTrace(){var e=jsStackTrace();return Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace()),demangleAll(e)}function ___cxa_allocate_exception(e){return _malloc(e)}function _atexit(e,i){}function ___cxa_atexit(e,i){return _atexit(e,i)}isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile)),__ATINIT__.push({func:function(){___wasm_call_ctors()}});var ___exception_infos={},___exception_caught=[];function ___exception_addRef(e){e&&___exception_infos[e].refcount++}function ___exception_deAdjust(e){if(!e||___exception_infos[e])return e;for(var i in ___exception_infos)for(var n=+i,t=___exception_infos[n].adjusted,r=t.length,o=0;o<r;o++)if(t[o]===e)return n;return e}function ___cxa_begin_catch(e){var i=___exception_infos[e];return i&&!i.caught&&(i.caught=!0,__ZSt18uncaught_exceptionv.uncaught_exceptions--),i&&(i.rethrown=!1),___exception_caught.push(e),___exception_addRef(___exception_deAdjust(e)),e}var ___exception_last=0;function ___cxa_free_exception(e){try{return _free(e)}catch(e){}}function ___exception_decRef(e){var i;e&&((i=___exception_infos[e]).refcount--,0!==i.refcount||i.rethrown||(i.destructor&&Module.dynCall_ii(i.destructor,e),delete ___exception_infos[e],___cxa_free_exception(e)))}function ___cxa_end_catch(){_setThrew(0);var e=___exception_caught.pop();e&&(___exception_decRef(___exception_deAdjust(e)),___exception_last=0)}function ___cxa_find_matching_catch_2(){if(!(t=___exception_last))return 0|(setTempRet0(0),0);var e=___exception_infos[t],i=e.type;if(!i)return 0|(setTempRet0(0),t);var n=Array.prototype.slice.call(arguments);___cxa_is_pointer_type(i);HEAP32[123316]=t;for(var t=493264,r=0;r<n.length;r++)if(n[r]&&___cxa_can_catch(n[r],i,t))return t=HEAP32[t>>2],e.adjusted.push(t),0|(setTempRet0(n[r]),t);return t=HEAP32[t>>2],0|(setTempRet0(i),t)}function ___cxa_find_matching_catch_3(){if(!(t=___exception_last))return 0|(setTempRet0(0),0);var e=___exception_infos[t],i=e.type;if(!i)return 0|(setTempRet0(0),t);var n=Array.prototype.slice.call(arguments);___cxa_is_pointer_type(i);HEAP32[123316]=t;for(var t=493264,r=0;r<n.length;r++)if(n[r]&&___cxa_can_catch(n[r],i,t))return t=HEAP32[t>>2],e.adjusted.push(t),0|(setTempRet0(n[r]),t);return t=HEAP32[t>>2],0|(setTempRet0(i),t)}function ___cxa_find_matching_catch_4(){if(!(t=___exception_last))return 0|(setTempRet0(0),0);var e=___exception_infos[t],i=e.type;if(!i)return 0|(setTempRet0(0),t);var n=Array.prototype.slice.call(arguments);___cxa_is_pointer_type(i);HEAP32[123316]=t;for(var t=493264,r=0;r<n.length;r++)if(n[r]&&___cxa_can_catch(n[r],i,t))return t=HEAP32[t>>2],e.adjusted.push(t),0|(setTempRet0(n[r]),t);return t=HEAP32[t>>2],0|(setTempRet0(i),t)}function ___cxa_rethrow(){var e=___exception_deAdjust(e=___exception_caught.pop());throw ___exception_infos[e].rethrown||(___exception_caught.push(e),___exception_infos[e].rethrown=!0),___exception_last=e}function ___cxa_throw(e,i,n){throw ___exception_infos[e]={ptr:e,adjusted:[e],type:i,destructor:n,refcount:0,caught:!1,rethrown:!1},___exception_last=e,"uncaught_exception"in __ZSt18uncaught_exceptionv?__ZSt18uncaught_exceptionv.uncaught_exceptions++:__ZSt18uncaught_exceptionv.uncaught_exceptions=1,e}function ___cxa_uncaught_exceptions(){return __ZSt18uncaught_exceptionv.uncaught_exceptions}function setErrNo(e){return HEAP32[___errno_location()>>2]=e}function ___map_file(e,i){return setErrNo(63),-1}function ___resumeException(e){throw ___exception_last=___exception_last||e,e}var PATH={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,i){for(var n=0,t=e.length-1;0<=t;t--){var r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(i)for(;n;n--)e.unshift("..");return e},normalize:function(e){var i="/"===e.charAt(0),n="/"===e.substr(-1);return(e=!(e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!i).join("/"))&&!i?".":e)&&n&&(e+="/"),(i?"/":"")+e},dirname:function(e){var i=PATH.splitPath(e),e=i[0],i=i[1];return e||i?e+(i=i&&i.substr(0,i.length-1)):"."},basename:function(e){if("/"===e)return"/";var i=e.lastIndexOf("/");return-1===i?e:e.substr(i+1)},extname:function(e){return PATH.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return PATH.normalize(e.join("/"))},join2:function(e,i){return PATH.normalize(e+"/"+i)}},PATH_FS={resolve:function(){for(var e="",i=!1,n=arguments.length-1;-1<=n&&!i;n--){var t=0<=n?arguments[n]:FS.cwd();if("string"!=typeof t)throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,i="/"===t.charAt(0)}return(i?"/":"")+(e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!i).join("/"))||"."},relative:function(e,i){function n(e){for(var i=0;i<e.length&&""===e[i];i++);for(var n=e.length-1;0<=n&&""===e[n];n--);return n<i?[]:e.slice(i,n-i+1)}e=PATH_FS.resolve(e).substr(1),i=PATH_FS.resolve(i).substr(1);for(var t=n(e.split("/")),r=n(i.split("/")),o=Math.min(t.length,r.length),a=o,l=0;l<o;l++)if(t[l]!==r[l]){a=l;break}for(var u=[],l=a;l<t.length;l++)u.push("..");return(u=u.concat(r.slice(a))).join("/")}},TTY={ttys:[],init:function(){},shutdown:function(){},register:function(e,i){TTY.ttys[e]={input:[],output:[],ops:i},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open:function(e){var i=TTY.ttys[e.node.rdev];if(!i)throw new FS.ErrnoError(43);e.tty=i,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,i,n,t,r){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var o,a=0,l=0;l<t;l++){try{o=e.tty.ops.get_char(e.tty)}catch(e){throw new FS.ErrnoError(29)}if(void 0===o&&0===a)throw new FS.ErrnoError(6);if(null==o)break;a++,i[n+l]=o}return a&&(e.node.timestamp=Date.now()),a},write:function(e,i,n,t,r){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var o=0;o<t;o++)e.tty.ops.put_char(e.tty,i[n+o])}catch(e){throw new FS.ErrnoError(29)}return t&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:function(e){if(!e.input.length){var i=null;if(ENVIRONMENT_IS_NODE){var n=Buffer.alloc?Buffer.alloc(256):new Buffer(256),t=0;try{t=nodeFS.readSync(process.stdin.fd,n,0,256,null)}catch(e){if(-1==e.toString().indexOf("EOF"))throw e;t=0}i=0<t?n.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(i=window.prompt("Input: "))&&(i+="\n"):"function"==typeof readline&&null!==(i=readline())&&(i+="\n");if(!i)return null;e.input=intArrayFromString(i,!0)}return e.input.shift()},put_char:function(e,i){null===i||10===i?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=i&&e.output.push(i)},flush:function(e){e.output&&0<e.output.length&&(out(UTF8ArrayToString(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,i){null===i||10===i?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=i&&e.output.push(i)},flush:function(e){e.output&&0<e.output.length&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},MEMFS={ops_table:null,mount:function(e){return MEMFS.createNode(null,"/",16895,0)},createNode:function(e,i,n,t){if(FS.isBlkdev(n)||FS.isFIFO(n))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}});t=FS.createNode(e,i,n,t);return FS.isDir(t.mode)?(t.node_ops=MEMFS.ops_table.dir.node,t.stream_ops=MEMFS.ops_table.dir.stream,t.contents={}):FS.isFile(t.mode)?(t.node_ops=MEMFS.ops_table.file.node,t.stream_ops=MEMFS.ops_table.file.stream,t.usedBytes=0,t.contents=null):FS.isLink(t.mode)?(t.node_ops=MEMFS.ops_table.link.node,t.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(t.mode)&&(t.node_ops=MEMFS.ops_table.chrdev.node,t.stream_ops=MEMFS.ops_table.chrdev.stream),t.timestamp=Date.now(),e&&(e.contents[i]=t),t},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var i=[],n=0;n<e.usedBytes;++n)i.push(e.contents[n]);return i}return e.contents},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,i){var n=e.contents?e.contents.length:0;i<=n||(i=Math.max(i,n*(n<1048576?2:1.125)>>>0),0!=n&&(i=Math.max(i,256)),n=e.contents,e.contents=new Uint8Array(i),0<e.usedBytes&&e.contents.set(n.subarray(0,e.usedBytes),0))},resizeFileStorage:function(e,i){if(e.usedBytes!=i){if(0==i)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var n=e.contents;return e.contents=new Uint8Array(i),n&&e.contents.set(n.subarray(0,Math.min(i,e.usedBytes))),void(e.usedBytes=i)}if(e.contents||(e.contents=[]),e.contents.length>i)e.contents.length=i;else for(;e.contents.length<i;)e.contents.push(0);e.usedBytes=i}},node_ops:{getattr:function(e){var i={};return i.dev=FS.isChrdev(e.mode)?e.id:1,i.ino=e.id,i.mode=e.mode,i.nlink=1,i.uid=0,i.gid=0,i.rdev=e.rdev,FS.isDir(e.mode)?i.size=4096:FS.isFile(e.mode)?i.size=e.usedBytes:FS.isLink(e.mode)?i.size=e.link.length:i.size=0,i.atime=new Date(e.timestamp),i.mtime=new Date(e.timestamp),i.ctime=new Date(e.timestamp),i.blksize=4096,i.blocks=Math.ceil(i.size/i.blksize),i},setattr:function(e,i){void 0!==i.mode&&(e.mode=i.mode),void 0!==i.timestamp&&(e.timestamp=i.timestamp),void 0!==i.size&&MEMFS.resizeFileStorage(e,i.size)},lookup:function(e,i){throw FS.genericErrors[44]},mknod:function(e,i,n,t){return MEMFS.createNode(e,i,n,t)},rename:function(e,i,n){if(FS.isDir(e.mode)){var t;try{t=FS.lookupNode(i,n)}catch(e){}if(t)for(var r in t.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.name=n,(i.contents[n]=e).parent=i},unlink:function(e,i){delete e.contents[i]},rmdir:function(e,i){for(var n in FS.lookupNode(e,i).contents)throw new FS.ErrnoError(55);delete e.contents[i]},readdir:function(e){var i,n=[".",".."];for(i in e.contents)e.contents.hasOwnProperty(i)&&n.push(i);return n},symlink:function(e,i,n){i=MEMFS.createNode(e,i,41471,0);return i.link=n,i},readlink:function(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read:function(e,i,n,t,r){var o=e.node.contents;if(r>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-r,t);if(8<a&&o.subarray)i.set(o.subarray(r,r+a),n);else for(var l=0;l<a;l++)i[n+l]=o[r+l];return a},write:function(e,i,n,t,r,o){if(!t)return 0;var a=e.node;if(a.timestamp=Date.now(),i.subarray&&(!a.contents||a.contents.subarray)){if(o)return a.contents=i.subarray(n,n+t),a.usedBytes=t;if(0===a.usedBytes&&0===r)return a.contents=i.slice(n,n+t),a.usedBytes=t;if(r+t<=a.usedBytes)return a.contents.set(i.subarray(n,n+t),r),t}if(MEMFS.expandFileStorage(a,r+t),a.contents.subarray&&i.subarray)a.contents.set(i.subarray(n,n+t),r);else for(var l=0;l<t;l++)a.contents[r+l]=i[n+l];return a.usedBytes=Math.max(a.usedBytes,r+t),t},llseek:function(e,i,n){if(1===n?i+=e.position:2===n&&FS.isFile(e.node.mode)&&(i+=e.node.usedBytes),i<0)throw new FS.ErrnoError(28);return i},allocate:function(e,i,n){MEMFS.expandFileStorage(e.node,i+n),e.node.usedBytes=Math.max(e.node.usedBytes,i+n)},mmap:function(e,i,n,t,r,o){if(assert(0===i),!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var a,l,e=e.node.contents;if(2&o||e.buffer!==buffer){if((0<t||t+n<e.length)&&(e=e.subarray?e.subarray(t,t+n):Array.prototype.slice.call(e,t,t+n)),l=!0,!(a=_malloc(n)))throw new FS.ErrnoError(48);HEAP8.set(e,a)}else l=!1,a=e.byteOffset;return{ptr:a,allocated:l}},msync:function(e,i,n,t,r){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);if(2&r)return 0;MEMFS.stream_ops.write(e,i,0,t,n,!1);return 0}}},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return setErrNo(e.errno)},lookupPath:function(e,i){if(i=i||{},!(e=PATH_FS.resolve(FS.cwd(),e)))return{path:"",node:null};var n,t={follow_mount:!0,recurse_count:0};for(n in t)void 0===i[n]&&(i[n]=t[n]);if(8<i.recurse_count)throw new FS.ErrnoError(32);for(var r=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!1),o=FS.root,a="/",l=0;l<r.length;l++){var u=l===r.length-1;if(u&&i.parent)break;if(o=FS.lookupNode(o,r[l]),a=PATH.join2(a,r[l]),FS.isMountpoint(o)&&(!u||u&&i.follow_mount)&&(o=o.mounted.root),!u||i.follow)for(var s=0;FS.isLink(o.mode);){var d=FS.readlink(a),a=PATH_FS.resolve(PATH.dirname(a),d),o=FS.lookupPath(a,{recurse_count:i.recurse_count}).node;if(40<s++)throw new FS.ErrnoError(32)}}return{path:a,node:o}},getPath:function(e){for(var i;;){if(FS.isRoot(e)){var n=e.mount.mountpoint;return i?"/"!==n[n.length-1]?n+"/"+i:n+i:n}i=i?e.name+"/"+i:e.name,e=e.parent}},hashName:function(e,i){for(var n=0,t=0;t<i.length;t++)n=(n<<5)-n+i.charCodeAt(t)|0;return(e+n>>>0)%FS.nameTable.length},hashAddNode:function(e){var i=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[i],FS.nameTable[i]=e},hashRemoveNode:function(e){var i=FS.hashName(e.parent.id,e.name);if(FS.nameTable[i]===e)FS.nameTable[i]=e.name_next;else for(var n=FS.nameTable[i];n;){if(n.name_next===e){n.name_next=e.name_next;break}n=n.name_next}},lookupNode:function(e,i){var n=FS.mayLookup(e);if(n)throw new FS.ErrnoError(n,e);for(var n=FS.hashName(e.id,i),t=FS.nameTable[n];t;t=t.name_next){var r=t.name;if(t.parent.id===e.id&&r===i)return t}return FS.lookup(e,i)},createNode:function(e,i,n,t){t=new FS.FSNode(e,i,n,t);return FS.hashAddNode(t),t},destroyNode:function(e){FS.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var i=FS.flagModes[e];if(void 0===i)throw new Error("Unknown file open mode: "+e);return i},flagsToPermissionString:function(e){var i=["r","w","rw"][3&e];return 512&e&&(i+="w"),i},nodePermissions:function(e,i){return FS.ignorePermissions||(-1===i.indexOf("r")||292&e.mode)&&(-1===i.indexOf("w")||146&e.mode)&&(-1===i.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){var i=FS.nodePermissions(e,"x");return i||(e.node_ops.lookup?0:2)},mayCreate:function(e,i){try{FS.lookupNode(e,i);return 20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete:function(e,i,n){var t;try{t=FS.lookupNode(e,i)}catch(e){return e.errno}e=FS.nodePermissions(e,"wx");if(e)return e;if(n){if(!FS.isDir(t.mode))return 54;if(FS.isRoot(t)||FS.getPath(t)===FS.cwd())return 10}else if(FS.isDir(t.mode))return 31;return 0},mayOpen:function(e,i){return e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(i)||512&i)?31:FS.nodePermissions(e,FS.flagsToPermissionString(i)):44},MAX_OPEN_FDS:4096,nextfd:function(e,i){i=i||FS.MAX_OPEN_FDS;for(var n=e=e||0;n<=i;n++)if(!FS.streams[n])return n;throw new FS.ErrnoError(33)},getStream:function(e){return FS.streams[e]},createStream:function(e,i,n){FS.FSStream||(FS.FSStream=function(){},FS.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var t,r=new FS.FSStream;for(t in e)r[t]=e[t];e=r;n=FS.nextfd(i,n);return e.fd=n,FS.streams[n]=e},closeStream:function(e){FS.streams[e]=null},chrdev_stream_ops:{open:function(e){var i=FS.getDevice(e.node.rdev);e.stream_ops=i.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new FS.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,i){return e<<8|i},registerDevice:function(e,i){FS.devices[e]={stream_ops:i}},getDevice:function(e){return FS.devices[e]},getMounts:function(e){for(var i=[],n=[e];n.length;){var t=n.pop();i.push(t),n.push.apply(n,t.mounts)}return i},syncfs:function(i,n){"function"==typeof i&&(n=i,i=!1),FS.syncFSRequests++,1<FS.syncFSRequests&&err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=FS.getMounts(FS.root.mount),r=0;function o(e){return FS.syncFSRequests--,n(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++r>=t.length&&o(null)}t.forEach(function(e){return e.type.syncfs?void e.type.syncfs(e,i,a):a(null)})},mount:function(e,i,n){var t="/"===n,r=!n;if(t&&FS.root)throw new FS.ErrnoError(10);if(!t&&!r){var o=FS.lookupPath(n,{follow_mount:!1});if(n=o.path,o=o.node,FS.isMountpoint(o))throw new FS.ErrnoError(10);if(!FS.isDir(o.mode))throw new FS.ErrnoError(54)}n={type:e,opts:i,mountpoint:n,mounts:[]},e=e.mount(n);return(e.mount=n).root=e,t?FS.root=e:o&&(o.mounted=n,o.mount&&o.mount.mounts.push(n)),e},unmount:function(e){var i=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(i.node))throw new FS.ErrnoError(28);var e=i.node,i=e.mounted,t=FS.getMounts(i);Object.keys(FS.nameTable).forEach(function(e){for(var i=FS.nameTable[e];i;){var n=i.name_next;-1!==t.indexOf(i.mount)&&FS.destroyNode(i),i=n}}),e.mounted=null;i=e.mount.mounts.indexOf(i);e.mount.mounts.splice(i,1)},lookup:function(e,i){return e.node_ops.lookup(e,i)},mknod:function(e,i,n){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e);if(!r||"."===r||".."===r)throw new FS.ErrnoError(28);e=FS.mayCreate(t,r);if(e)throw new FS.ErrnoError(e);if(!t.node_ops.mknod)throw new FS.ErrnoError(63);return t.node_ops.mknod(t,r,i,n)},create:function(e,i){return i=void 0!==i?i:438,i&=4095,FS.mknod(e,i|=32768,0)},mkdir:function(e,i){return i=void 0!==i?i:511,i&=1023,FS.mknod(e,i|=16384,0)},mkdirTree:function(e,i){for(var n=e.split("/"),t="",r=0;r<n.length;++r)if(n[r]){t+="/"+n[r];try{FS.mkdir(t,i)}catch(e){if(20!=e.errno)throw e}}},mkdev:function(e,i,n){return void 0===n&&(n=i,i=438),FS.mknod(e,i|=8192,n)},symlink:function(e,i){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var n=FS.lookupPath(i,{parent:!0}).node;if(!n)throw new FS.ErrnoError(44);var t=PATH.basename(i),i=FS.mayCreate(n,t);if(i)throw new FS.ErrnoError(i);if(!n.node_ops.symlink)throw new FS.ErrnoError(63);return n.node_ops.symlink(n,t,e)},rename:function(i,n){var e,t,r=PATH.dirname(i),o=PATH.dirname(n),a=PATH.basename(i),l=PATH.basename(n);try{e=FS.lookupPath(i,{parent:!0}).node,t=FS.lookupPath(n,{parent:!0}).node}catch(e){throw new FS.ErrnoError(10)}if(!e||!t)throw new FS.ErrnoError(44);if(e.mount!==t.mount)throw new FS.ErrnoError(75);var u,s=FS.lookupNode(e,a),o=PATH_FS.relative(i,o);if("."!==o.charAt(0))throw new FS.ErrnoError(28);if("."!==(o=PATH_FS.relative(n,r)).charAt(0))throw new FS.ErrnoError(55);try{u=FS.lookupNode(t,l)}catch(e){}if(s!==u){o=FS.isDir(s.mode),a=FS.mayDelete(e,a,o);if(a)throw new FS.ErrnoError(a);if(a=u?FS.mayDelete(t,l,o):FS.mayCreate(t,l))throw new FS.ErrnoError(a);if(!e.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(s)||u&&FS.isMountpoint(u))throw new FS.ErrnoError(10);if(t!==e&&(a=FS.nodePermissions(e,"w")))throw new FS.ErrnoError(a);try{FS.trackingDelegate.willMovePath&&FS.trackingDelegate.willMovePath(i,n)}catch(e){err("FS.trackingDelegate['willMovePath']('"+i+"', '"+n+"') threw an exception: "+e.message)}FS.hashRemoveNode(s);try{e.node_ops.rename(s,t,l)}catch(e){throw e}finally{FS.hashAddNode(s)}try{FS.trackingDelegate.onMovePath&&FS.trackingDelegate.onMovePath(i,n)}catch(e){err("FS.trackingDelegate['onMovePath']('"+i+"', '"+n+"') threw an exception: "+e.message)}}},rmdir:function(i){var e=FS.lookupPath(i,{parent:!0}).node,n=PATH.basename(i),t=FS.lookupNode(e,n),r=FS.mayDelete(e,n,!0);if(r)throw new FS.ErrnoError(r);if(!e.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(t))throw new FS.ErrnoError(10);try{FS.trackingDelegate.willDeletePath&&FS.trackingDelegate.willDeletePath(i)}catch(e){err("FS.trackingDelegate['willDeletePath']('"+i+"') threw an exception: "+e.message)}e.node_ops.rmdir(e,n),FS.destroyNode(t);try{FS.trackingDelegate.onDeletePath&&FS.trackingDelegate.onDeletePath(i)}catch(e){err("FS.trackingDelegate['onDeletePath']('"+i+"') threw an exception: "+e.message)}},readdir:function(e){e=FS.lookupPath(e,{follow:!0}).node;if(!e.node_ops.readdir)throw new FS.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(i){var e=FS.lookupPath(i,{parent:!0}).node,n=PATH.basename(i),t=FS.lookupNode(e,n),r=FS.mayDelete(e,n,!1);if(r)throw new FS.ErrnoError(r);if(!e.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(t))throw new FS.ErrnoError(10);try{FS.trackingDelegate.willDeletePath&&FS.trackingDelegate.willDeletePath(i)}catch(e){err("FS.trackingDelegate['willDeletePath']('"+i+"') threw an exception: "+e.message)}e.node_ops.unlink(e,n),FS.destroyNode(t);try{FS.trackingDelegate.onDeletePath&&FS.trackingDelegate.onDeletePath(i)}catch(e){err("FS.trackingDelegate['onDeletePath']('"+i+"') threw an exception: "+e.message)}},readlink:function(e){e=FS.lookupPath(e).node;if(!e)throw new FS.ErrnoError(44);if(!e.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(e.parent),e.node_ops.readlink(e))},stat:function(e,i){i=FS.lookupPath(e,{follow:!i}).node;if(!i)throw new FS.ErrnoError(44);if(!i.node_ops.getattr)throw new FS.ErrnoError(63);return i.node_ops.getattr(i)},lstat:function(e){return FS.stat(e,!0)},chmod:function(e,i,n){if(!(e="string"==typeof e?FS.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);e.node_ops.setattr(e,{mode:4095&i|-4096&e.mode,timestamp:Date.now()})},lchmod:function(e,i){FS.chmod(e,i,!0)},fchmod:function(e,i){e=FS.getStream(e);if(!e)throw new FS.ErrnoError(8);FS.chmod(e.node,i)},chown:function(e,i,n,t){if(!(e="string"==typeof e?FS.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);e.node_ops.setattr(e,{timestamp:Date.now()})},lchown:function(e,i,n){FS.chown(e,i,n,!0)},fchown:function(e,i,n){e=FS.getStream(e);if(!e)throw new FS.ErrnoError(8);FS.chown(e.node,i,n)},truncate:function(e,i){if(i<0)throw new FS.ErrnoError(28);var n;if(!(n="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(n.mode))throw new FS.ErrnoError(31);if(!FS.isFile(n.mode))throw new FS.ErrnoError(28);e=FS.nodePermissions(n,"w");if(e)throw new FS.ErrnoError(e);n.node_ops.setattr(n,{size:i,timestamp:Date.now()})},ftruncate:function(e,i){e=FS.getStream(e);if(!e)throw new FS.ErrnoError(8);if(0==(2097155&e.flags))throw new FS.ErrnoError(28);FS.truncate(e.node,i)},utime:function(e,i,n){e=FS.lookupPath(e,{follow:!0}).node;e.node_ops.setattr(e,{timestamp:Math.max(i,n)})},open:function(i,e,n,t,r){if(""===i)throw new FS.ErrnoError(44);if(n=void 0===n?438:n,n=64&(e="string"==typeof e?FS.modeStringToFlags(e):e)?4095&n|32768:0,"object"==typeof i)o=i;else{i=PATH.normalize(i);try{var o=FS.lookupPath(i,{follow:!(131072&e)}).node}catch(e){}}var a=!1;if(64&e)if(o){if(128&e)throw new FS.ErrnoError(20)}else o=FS.mknod(i,n,0),a=!0;if(!o)throw new FS.ErrnoError(44);if(FS.isChrdev(o.mode)&&(e&=-513),65536&e&&!FS.isDir(o.mode))throw new FS.ErrnoError(54);if(!a){a=FS.mayOpen(o,e);if(a)throw new FS.ErrnoError(a)}512&e&&FS.truncate(o,0),e&=-131713;var l,r=FS.createStream({node:o,path:FS.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1},t,r);r.stream_ops.open&&r.stream_ops.open(r),!Module.logReadFiles||1&e||(FS.readFiles||(FS.readFiles={}),i in FS.readFiles||(FS.readFiles[i]=1,err("FS.trackingDelegate error on read file: "+i)));try{FS.trackingDelegate.onOpenFile&&(l=0,1!=(2097155&e)&&(l|=FS.tracking.openFlags.READ),0!=(2097155&e)&&(l|=FS.tracking.openFlags.WRITE),FS.trackingDelegate.onOpenFile(i,l))}catch(e){err("FS.trackingDelegate['onOpenFile']('"+i+"', flags) threw an exception: "+e.message)}return r},close:function(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:function(e){return null===e.fd},llseek:function(e,i,n){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=n&&1!=n&&2!=n)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,i,n),e.ungotten=[],e.position},read:function(e,i,n,t,r){if(t<0||r<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!==r;if(o){if(!e.seekable)throw new FS.ErrnoError(70)}else r=e.position;r=e.stream_ops.read(e,i,n,t,r);return o||(e.position+=r),r},write:function(i,e,n,t,r,o){if(t<0||r<0)throw new FS.ErrnoError(28);if(FS.isClosed(i))throw new FS.ErrnoError(8);if(0==(2097155&i.flags))throw new FS.ErrnoError(8);if(FS.isDir(i.node.mode))throw new FS.ErrnoError(31);if(!i.stream_ops.write)throw new FS.ErrnoError(28);i.seekable&&1024&i.flags&&FS.llseek(i,0,2);var a=void 0!==r;if(a){if(!i.seekable)throw new FS.ErrnoError(70)}else r=i.position;o=i.stream_ops.write(i,e,n,t,r,o);a||(i.position+=o);try{i.path&&FS.trackingDelegate.onWriteToFile&&FS.trackingDelegate.onWriteToFile(i.path)}catch(e){err("FS.trackingDelegate['onWriteToFile']('"+i.path+"') threw an exception: "+e.message)}return o},allocate:function(e,i,n){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(i<0||n<=0)throw new FS.ErrnoError(28);if(0==(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,i,n)},mmap:function(e,i,n,t,r,o){if(0!=(2&r)&&0==(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,i,n,t,r,o)},msync:function(e,i,n,t,r){return e&&e.stream_ops.msync?e.stream_ops.msync(e,i,n,t,r):0},munmap:function(e){return 0},ioctl:function(e,i,n){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,i,n)},readFile:function(e,i){if((i=i||{}).flags=i.flags||"r",i.encoding=i.encoding||"binary","utf8"!==i.encoding&&"binary"!==i.encoding)throw new Error('Invalid encoding type "'+i.encoding+'"');var n,t=FS.open(e,i.flags),r=FS.stat(e).size,e=new Uint8Array(r);return FS.read(t,e,0,r,0),"utf8"===i.encoding?n=UTF8ArrayToString(e,0):"binary"===i.encoding&&(n=e),FS.close(t),n},writeFile:function(e,i,n){(n=n||{}).flags=n.flags||"w";var t=FS.open(e,n.flags,n.mode);if("string"==typeof i){var r=new Uint8Array(lengthBytesUTF8(i)+1),e=stringToUTF8Array(i,r,0,r.length);FS.write(t,r,0,e,void 0,n.canOwn)}else{if(!ArrayBuffer.isView(i))throw new Error("Unsupported data type");FS.write(t,i,0,i.byteLength,void 0,n.canOwn)}FS.close(t)},cwd:function(){return FS.currentPath},chdir:function(e){var i=FS.lookupPath(e,{follow:!0});if(null===i.node)throw new FS.ErrnoError(44);if(!FS.isDir(i.node.mode))throw new FS.ErrnoError(54);e=FS.nodePermissions(i.node,"x");if(e)throw new FS.ErrnoError(e);FS.currentPath=i.path},createDefaultDirectories:function(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices:function(){if(FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:function(){return 0},write:function(e,i,n,t,r){return t}}),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)),"object"==typeof crypto&&"function"==typeof crypto.getRandomValues)var e=new Uint8Array(1),i=function(){return crypto.getRandomValues(e),e[0]};else if(ENVIRONMENT_IS_NODE)try{var n=require("crypto");i=function(){return n.randomBytes(1)[0]}}catch(e){}FS.createDevice("/dev","random",i=i||function(){abort("random_device")}),FS.createDevice("/dev","urandom",i),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){FS.mkdir("/proc"),FS.mkdir("/proc/self"),FS.mkdir("/proc/self/fd"),FS.mount({mount:function(){var e=FS.createNode("/proc/self","fd",16895,73);return e.node_ops={lookup:function(e,i){var n=FS.getStream(+i);if(!n)throw new FS.ErrnoError(8);i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return i.parent=i}},e}},{},"/proc/self/fd")},createStandardStreams:function(){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","r"),FS.open("/dev/stdout","w"),FS.open("/dev/stderr","w")},ensureErrnoError:function(){FS.ErrnoError||(FS.ErrnoError=function(e,i){this.node=i,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(function(e){FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit:function(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS:MEMFS}},init:function(e,i,n){FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=i||Module.stdout,Module.stderr=n||Module.stderr,FS.createStandardStreams()},quit:function(){FS.init.initialized=!1;var e=Module._fflush;e&&e(0);for(var i=0;i<FS.streams.length;i++){var n=FS.streams[i];n&&FS.close(n)}},getMode:function(e,i){var n=0;return e&&(n|=365),i&&(n|=146),n},joinPath:function(e,i){e=PATH.join.apply(null,e);return e=i&&"/"==e[0]?e.substr(1):e},absolutePath:function(e,i){return PATH_FS.resolve(i,e)},standardizePath:function(e){return PATH.normalize(e)},findObject:function(e,i){i=FS.analyzePath(e,i);return i.exists?i.object:(setErrNo(i.error),null)},analyzePath:function(e,i){try{e=(t=FS.lookupPath(e,{follow:!i})).path}catch(e){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=FS.lookupPath(e,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=PATH.basename(e),t=FS.lookupPath(e,{follow:!i}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot="/"===t.path}catch(e){n.error=e.errno}return n},createFolder:function(e,i,n,t){i=PATH.join2("string"==typeof e?e:FS.getPath(e),i),t=FS.getMode(n,t);return FS.mkdir(i,t)},createPath:function(e,i,n,t){e="string"==typeof e?e:FS.getPath(e);for(var r=i.split("/").reverse();r.length;){var o=r.pop();if(o){var a=PATH.join2(e,o);try{FS.mkdir(a)}catch(e){}e=a}}return a},createFile:function(e,i,n,t,r){i=PATH.join2("string"==typeof e?e:FS.getPath(e),i),r=FS.getMode(t,r);return FS.create(i,r)},createDataFile:function(e,i,n,t,r,o){e=i?PATH.join2("string"==typeof e?e:FS.getPath(e),i):e,t=FS.getMode(t,r),r=FS.create(e,t);if(n){if("string"==typeof n){for(var a=new Array(n.length),l=0,u=n.length;l<u;++l)a[l]=n.charCodeAt(l);n=a}FS.chmod(r,146|t);e=FS.open(r,"w");FS.write(e,n,0,n.length,0,o),FS.close(e),FS.chmod(r,t)}return r},createDevice:function(e,i,u,a){var n=PATH.join2("string"==typeof e?e:FS.getPath(e),i),e=FS.getMode(!!u,!!a);FS.createDevice.major||(FS.createDevice.major=64);i=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(i,{open:function(e){e.seekable=!1},close:function(e){a&&a.buffer&&a.buffer.length&&a(10)},read:function(e,i,n,t,r){for(var o,a=0,l=0;l<t;l++){try{o=u()}catch(e){throw new FS.ErrnoError(29)}if(void 0===o&&0===a)throw new FS.ErrnoError(6);if(null==o)break;a++,i[n+l]=o}return a&&(e.node.timestamp=Date.now()),a},write:function(e,i,n,t,r){for(var o=0;o<t;o++)try{a(i[n+o])}catch(e){throw new FS.ErrnoError(29)}return t&&(e.node.timestamp=Date.now()),o}}),FS.mkdev(n,e,i)},createLink:function(e,i,n,t,r){i=PATH.join2("string"==typeof e?e:FS.getPath(e),i);return FS.symlink(n,i)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;var i=!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){i=!1}return i||setErrNo(29),i},createLazyFile:function(e,i,a,n,t){function r(){this.lengthKnown=!1,this.chunks=[]}if(r.prototype.get=function(e){if(!(e>this.length-1||e<0)){var i=e%this.chunkSize,e=e/this.chunkSize|0;return this.getter(e)[i]}},r.prototype.setDataGetter=function(e){this.getter=e},r.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",a,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw new Error("Couldn't load "+a+". Status: "+e.status);var t=Number(e.getResponseHeader("Content-length")),i=(n=e.getResponseHeader("Accept-Ranges"))&&"bytes"===n,n=(n=e.getResponseHeader("Content-Encoding"))&&"gzip"===n,r=1048576;i||(r=t);var o=this;o.setDataGetter(function(e){var i=e*r,n=(e+1)*r-1,n=Math.min(n,t-1);if(void 0===o.chunks[e]&&(o.chunks[e]=function(e,i){if(i<e)throw new Error("invalid range ("+e+", "+i+") or no bytes requested!");if(t-1<i)throw new Error("only "+t+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",a,!1),t!==r&&n.setRequestHeader("Range","bytes="+e+"-"+i),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(200<=n.status&&n.status<300||304===n.status))throw new Error("Couldn't load "+a+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):intArrayFromString(n.responseText||"",!0)}(i,n)),void 0===o.chunks[e])throw new Error("doXHR failed!");return o.chunks[e]}),!n&&t||(r=t=1,t=this.getter(0).length,r=t,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=r,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 o=new r;Object.defineProperties(o,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});o={isDevice:!1,contents:o}}else o={isDevice:!1,url:a};var u=FS.createFile(e,i,o,n,t);o.contents?u.contents=o.contents:o.url&&(u.contents=null,u.url=o.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};return Object.keys(u.stream_ops).forEach(function(e){var i=u.stream_ops[e];l[e]=function(){if(!FS.forceLoadFile(u))throw new FS.ErrnoError(29);return i.apply(null,arguments)}}),l.read=function(e,i,n,t,r){if(!FS.forceLoadFile(u))throw new FS.ErrnoError(29);var o=e.node.contents;if(r>=o.length)return 0;var a=Math.min(o.length-r,t);if(o.slice)for(var l=0;l<a;l++)i[n+l]=o[r+l];else for(l=0;l<a;l++)i[n+l]=o.get(r+l);return a},u.stream_ops=l,u},createPreloadedFile:function(r,o,e,a,l,u,s,d,c,_){Browser.init();var f=o?PATH_FS.resolve(PATH.join2(r,o)):r,p=getUniqueRunDependency("cp "+f);function i(i){function n(e){_&&_(),d||FS.createDataFile(r,o,e,a,l,c),u&&u(),removeRunDependency(p)}var t=!1;Module.preloadPlugins.forEach(function(e){t||e.canHandle(f)&&(e.handle(i,f,n,function(){s&&s(),removeRunDependency(p)}),t=!0)}),t||n(i)}addRunDependency(p),"string"==typeof e?Browser.asyncLoad(e,function(e){i(e)},s):i(e)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(a,l,u){l=l||function(){},u=u||function(){};var e=FS.indexedDB();try{var s=e.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return u(e)}s.onupgradeneeded=function(){out("creating db"),s.result.createObjectStore(FS.DB_STORE_NAME)},s.onsuccess=function(){var e=s.result.transaction([FS.DB_STORE_NAME],"readwrite"),i=e.objectStore(FS.DB_STORE_NAME),n=0,t=0,r=a.length;function o(){(0==t?l:u)()}a.forEach(function(e){e=i.put(FS.analyzePath(e).object.contents,e);e.onsuccess=function(){++n+t==r&&o()},e.onerror=function(){n+ ++t==r&&o()}}),e.onerror=u},s.onerror=u},loadFilesFromDB:function(l,u,s){u=u||function(){},s=s||function(){};var e=FS.indexedDB();try{var d=e.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return s(e)}d.onupgradeneeded=s,d.onsuccess=function(){var e=d.result;try{var i=e.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){return void s(e)}var n=i.objectStore(FS.DB_STORE_NAME),t=0,r=0,o=l.length;function a(){(0==r?u:s)()}l.forEach(function(e){var i=n.get(e);i.onsuccess=function(){FS.analyzePath(e).exists&&FS.unlink(e),FS.createDataFile(PATH.dirname(e),PATH.basename(e),i.result,!0,!0,!0),++t+r==o&&a()},i.onerror=function(){t+ ++r==o&&a()}}),i.onerror=s},d.onerror=s}},SYSCALLS={mappings:{},DEFAULT_POLLMASK:5,umask:511,calculateAt:function(e,i){if("/"!==i[0]){var n;if(-100===e)n=FS.cwd();else{e=FS.getStream(e);if(!e)throw new FS.ErrnoError(8);n=e.path}i=PATH.join2(n,i)}return i},doStat:function(e,i,n){try{var t=e(i)}catch(e){if(e&&e.node&&PATH.normalize(i)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}return HEAP32[n>>2]=t.dev,HEAP32[n+4>>2]=0,HEAP32[n+8>>2]=t.ino,HEAP32[n+12>>2]=t.mode,HEAP32[n+16>>2]=t.nlink,HEAP32[n+20>>2]=t.uid,HEAP32[n+24>>2]=t.gid,HEAP32[n+28>>2]=t.rdev,HEAP32[n+32>>2]=0,tempI64=[t.size>>>0,(tempDouble=t.size,1<=+Math_abs(tempDouble)?0<tempDouble?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+40>>2]=tempI64[0],HEAP32[n+44>>2]=tempI64[1],HEAP32[n+48>>2]=4096,HEAP32[n+52>>2]=t.blocks,HEAP32[n+56>>2]=t.atime.getTime()/1e3|0,HEAP32[n+60>>2]=0,HEAP32[n+64>>2]=t.mtime.getTime()/1e3|0,HEAP32[n+68>>2]=0,HEAP32[n+72>>2]=t.ctime.getTime()/1e3|0,HEAP32[n+76>>2]=0,tempI64=[t.ino>>>0,(tempDouble=t.ino,1<=+Math_abs(tempDouble)?0<tempDouble?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+80>>2]=tempI64[0],HEAP32[n+84>>2]=tempI64[1],0},doMsync:function(e,i,n,t,r){e=HEAPU8.slice(e,e+n);FS.msync(i,e,r,n,t)},doMkdir:function(e,i){return"/"===(e=PATH.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),FS.mkdir(e,i,0),0},doMknod:function(e,i,n){switch(61440&i){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(e,i,n),0},doReadlink:function(e,i,n){if(n<=0)return-28;var t=FS.readlink(e),r=Math.min(n,lengthBytesUTF8(t)),e=HEAP8[i+r];return stringToUTF8(t,i,n+1),HEAP8[i+r]=e,r},doAccess:function(e,i){if(-8&i)return-28;var n=FS.lookupPath(e,{follow:!0}).node;if(!n)return-44;e="";return 4&i&&(e+="r"),2&i&&(e+="w"),1&i&&(e+="x"),e&&FS.nodePermissions(n,e)?-2:0},doDup:function(e,i,n){var t=FS.getStream(n);return t&&FS.close(t),FS.open(e,i,0,n,n).fd},doReadv:function(e,i,n,t){for(var r=0,o=0;o<n;o++){var a=HEAP32[i+8*o>>2],l=HEAP32[i+(8*o+4)>>2],a=FS.read(e,HEAP8,a,l,t);if(a<0)return-1;if(r+=a,a<l)break}return r},doWritev:function(e,i,n,t){for(var r=0,o=0;o<n;o++){var a=HEAP32[i+8*o>>2],l=HEAP32[i+(8*o+4)>>2],l=FS.write(e,HEAP8,a,l,t);if(l<0)return-1;r+=l}return r},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){e=FS.getStream(e);if(!e)throw new FS.ErrnoError(8);return e},get64:function(e,i){return e}};function ___sys_fcntl64(e,i,n){SYSCALLS.varargs=n;try{var t=SYSCALLS.getStreamFromFD(e);switch(i){case 0:return(r=SYSCALLS.get())<0?-28:FS.open(t.path,t.flags,0,r).fd;case 1:case 2:return 0;case 3:return t.flags;case 4:var r=SYSCALLS.get();return t.flags|=r,0;case 12:r=SYSCALLS.get();return HEAP16[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return setErrNo(28),-1;default:return-28}}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___sys_ioctl(e,i,n){SYSCALLS.varargs=n;try{var t=SYSCALLS.getStreamFromFD(e);switch(i){case 21509:case 21505:return t.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return t.tty?0:-59;case 21519:if(!t.tty)return-59;var r=SYSCALLS.get();return HEAP32[r>>2]=0;case 21520:return t.tty?-28:-59;case 21531:r=SYSCALLS.get();return FS.ioctl(t,i,r);case 21523:case 21524:return t.tty?0:-59;default:abort("bad ioctl syscall "+i)}}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function syscallMunmap(e,i){if(-1==(0|e)||0===i)return-28;var n,t=SYSCALLS.mappings[e];return t&&i===t.len&&(n=FS.getStream(t.fd),2&t.prot&&SYSCALLS.doMsync(e,n,i,t.flags,t.offset),FS.munmap(n),SYSCALLS.mappings[e]=null,t.allocated&&_free(t.malloc)),0}function ___sys_munmap(e,i){try{return syscallMunmap(e,i)}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___sys_open(e,i,n){SYSCALLS.varargs=n;try{var t=SYSCALLS.getStr(e),r=SYSCALLS.get();return FS.open(t,i,r).fd}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function getShiftFromSize(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function embind_init_charCodes(){for(var e=new Array(256),i=0;i<256;++i)e[i]=String.fromCharCode(i);embind_charCodes=e}var embind_charCodes=void 0;function readLatin1String(e){for(var i="",n=e;HEAPU8[n];)i+=embind_charCodes[HEAPU8[n++]];return i}var awaitingDependencies={},registeredTypes={},typeDependencies={},char_0=48,char_9=57;function makeLegalFunctionName(e){if(void 0===e)return"_unknown";var i=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return char_0<=i&&i<=char_9?"_"+e:e}function createNamedFunction(e,i){return e=makeLegalFunctionName(e),new Function("body","return function "+e+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(i)}function extendError(e,i){var n=createNamedFunction(i,function(e){this.name=i,this.message=e;e=new Error(e).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(e.prototype),(n.prototype.constructor=n).prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var BindingError=void 0;function throwBindingError(e){throw new BindingError(e)}var InternalError=void 0;function throwInternalError(e){throw new InternalError(e)}function whenDependentTypesAreResolved(t,i,r){function n(e){var i=r(e);i.length!==t.length&&throwInternalError("Mismatched type converter count");for(var n=0;n<t.length;++n)registerType(t[n],i[n])}t.forEach(function(e){typeDependencies[e]=i});var o=new Array(i.length),a=[],l=0;i.forEach(function(e,i){registeredTypes.hasOwnProperty(e)?o[i]=registeredTypes[e]:(a.push(e),awaitingDependencies.hasOwnProperty(e)||(awaitingDependencies[e]=[]),awaitingDependencies[e].push(function(){o[i]=registeredTypes[e],++l===a.length&&n(o)}))}),0===a.length&&n(o)}function registerType(e,i,n){if(n=n||{},!("argPackAdvance"in i))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=i.name;if(e||throwBindingError('type "'+t+'" must have a positive integer typeid pointer'),registeredTypes.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '"+t+"' twice")}registeredTypes[e]=i,delete typeDependencies[e],awaitingDependencies.hasOwnProperty(e)&&(i=awaitingDependencies[e],delete awaitingDependencies[e],i.forEach(function(e){e()}))}function __embind_register_bool(e,n,t,r,o){var a=getShiftFromSize(t);registerType(e,{name:n=readLatin1String(n),fromWireType:function(e){return!!e},toWireType:function(e,i){return i?r:o},argPackAdvance:8,readValueFromPointer:function(e){var i;if(1===t)i=HEAP8;else if(2===t)i=HEAP16;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+n);i=HEAP32}return this.fromWireType(i[e>>a])},destructorFunction:null})}function ClassHandle_isAliasOf(e){if(!(this instanceof ClassHandle))return!1;if(!(e instanceof ClassHandle))return!1;for(var i=this.$$.ptrType.registeredClass,n=this.$$.ptr,t=e.$$.ptrType.registeredClass,r=e.$$.ptr;i.baseClass;)n=i.upcast(n),i=i.baseClass;for(;t.baseClass;)r=t.upcast(r),t=t.baseClass;return i===t&&n===r}function shallowCopyInternalPointer(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function throwInstanceAlreadyDeleted(e){throwBindingError(e.$$.ptrType.registeredClass.name+" instance already deleted")}var finalizationGroup=!1;function detachFinalizer(e){}function runDestructor(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function releaseClassHandle(e){--e.count.value,0===e.count.value&&runDestructor(e)}function attachFinalizer(e){return"undefined"==typeof FinalizationGroup?(attachFinalizer=function(e){return e},e):(finalizationGroup=new FinalizationGroup(function(e){for(var i=e.next();!i.done;i=e.next()){var n=i.value;n.ptr?releaseClassHandle(n):console.warn("object already deleted: "+n.ptr)}}),detachFinalizer=function(e){finalizationGroup.unregister(e.$$)},(attachFinalizer=function(e){return finalizationGroup.register(e,e.$$,e.$$),e})(e))}function ClassHandle_clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function ClassHandle_delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function ClassHandle_isDeleted(){return!this.$$.ptr}var delayFunction=void 0,deletionQueue=[];function flushPendingDeletes(){for(;deletionQueue.length;){var e=deletionQueue.pop();e.$$.deleteScheduled=!1,e.delete()}}function ClassHandle_deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}function init_ClassHandle(){ClassHandle.prototype.isAliasOf=ClassHandle_isAliasOf,ClassHandle.prototype.clone=ClassHandle_clone,ClassHandle.prototype.delete=ClassHandle_delete,ClassHandle.prototype.isDeleted=ClassHandle_isDeleted,ClassHandle.prototype.deleteLater=ClassHandle_deleteLater}function ClassHandle(){}var registeredPointers={};function ensureOverloadTable(e,i,n){var t;void 0===e[i].overloadTable&&(t=e[i],e[i]=function(){return e[i].overloadTable.hasOwnProperty(arguments.length)||throwBindingError("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[i].overloadTable+")!"),e[i].overloadTable[arguments.length].apply(this,arguments)},e[i].overloadTable=[],e[i].overloadTable[t.argCount]=t)}function exposePublicSymbol(e,i,n){Module.hasOwnProperty(e)?((void 0===n||void 0!==Module[e].overloadTable&&void 0!==Module[e].overloadTable[n])&&throwBindingError("Cannot register public name '"+e+"' twice"),ensureOverloadTable(Module,e,e),Module.hasOwnProperty(n)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),Module[e].overloadTable[n]=i):(Module[e]=i,void 0!==n&&(Module[e].numArguments=n))}function RegisteredClass(e,i,n,t,r,o,a,l){this.name=e,this.constructor=i,this.instancePrototype=n,this.rawDestructor=t,this.baseClass=r,this.getActualType=o,this.upcast=a,this.downcast=l,this.pureVirtualFunctions=[]}function upcastPointer(e,i,n){for(;i!==n;)i.upcast||throwBindingError("Expected null or instance of "+n.name+", got an instance of "+i.name),e=i.upcast(e),i=i.baseClass;return e}function constNoSmartPtrRawPointerToWireType(e,i){if(null===i)return this.isReference&&throwBindingError("null is not a valid "+this.name),0;i.$$||throwBindingError('Cannot pass "'+_embind_repr(i)+'" as a '+this.name),i.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);var n=i.$$.ptrType.registeredClass;return upcastPointer(i.$$.ptr,n,this.registeredClass)}function genericPointerToWireType(e,i){if(null===i)return this.isReference&&throwBindingError("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;i.$$||throwBindingError('Cannot pass "'+_embind_repr(i)+'" as a '+this.name),i.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&i.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type "+(i.$$.smartPtrType||i.$$.ptrType).name+" to parameter type "+this.name);var n,t,r=i.$$.ptrType.registeredClass;if(t=upcastPointer(i.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===i.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:i.$$.smartPtrType===this?t=i.$$.smartPtr:throwBindingError("Cannot convert argument of type "+(i.$$.smartPtrType||i.$$.ptrType).name+" to parameter type "+this.name);break;case 1:t=i.$$.smartPtr;break;case 2:i.$$.smartPtrType===this?t=i.$$.smartPtr:(n=i.clone(),t=this.rawShare(t,__emval_register(function(){n.delete()})),null!==e&&e.push(this.rawDestructor,t));break;default:throwBindingError("Unsupporting sharing policy")}return t}function nonConstNoSmartPtrRawPointerToWireType(e,i){if(null===i)return this.isReference&&throwBindingError("null is not a valid "+this.name),0;i.$$||throwBindingError('Cannot pass "'+_embind_repr(i)+'" as a '+this.name),i.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name),i.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type "+i.$$.ptrType.name+" to parameter type "+this.name);var n=i.$$.ptrType.registeredClass;return upcastPointer(i.$$.ptr,n,this.registeredClass)}function simpleReadValueFromPointer(e){return this.fromWireType(HEAPU32[e>>2])}function RegisteredPointer_getPointee(e){return e=this.rawGetPointee?this.rawGetPointee(e):e}function RegisteredPointer_destructor(e){this.rawDestructor&&this.rawDestructor(e)}function RegisteredPointer_deleteObject(e){null!==e&&e.delete()}function downcastPointer(e,i,n){if(i===n)return e;if(void 0===n.baseClass)return null;i=downcastPointer(e,i,n.baseClass);return null===i?null:n.downcast(i)}function getInheritedInstanceCount(){return Object.keys(registeredInstances).length}function getLiveInheritedInstances(){var e,i=[];for(e in registeredInstances)registeredInstances.hasOwnProperty(e)&&i.push(registeredInstances[e]);return i}function setDelayFunction(e){delayFunction=e,deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes)}function init_embind(){Module.getInheritedInstanceCount=getInheritedInstanceCount,Module.getLiveInheritedInstances=getLiveInheritedInstances,Module.flushPendingDeletes=flushPendingDeletes,Module.setDelayFunction=setDelayFunction}var registeredInstances={};function getBasestPointer(e,i){for(void 0===i&&throwBindingError("ptr should not be undefined");e.baseClass;)i=e.upcast(i),e=e.baseClass;return i}function getInheritedInstance(e,i){return i=getBasestPointer(e,i),registeredInstances[i]}function makeClassHandle(e,i){return i.ptrType&&i.ptr||throwInternalError("makeClassHandle requires ptr and ptrType"),!!i.smartPtrType!=!!i.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),i.count={value:1},attachFinalizer(Object.create(e,{$$:{value:i}}))}function RegisteredPointer_fromWireType(e){var i=this.getPointee(e);if(!i)return this.destructor(e),null;var n=getInheritedInstance(this.registeredClass,i);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=i,n.$$.smartPtr=e,n.clone();var t=n.clone();return this.destructor(e),t}function r(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:i,smartPtrType:this,smartPtr:e}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}n=this.registeredClass.getActualType(i),t=registeredPointers[n];if(!t)return r.call(this);n=this.isConst?t.constPointerType:t.pointerType,t=downcastPointer(i,this.registeredClass,n.registeredClass);return null===t?r.call(this):this.isSmartPointer?makeClassHandle(n.registeredClass.instancePrototype,{ptrType:n,ptr:t,smartPtrType:this,smartPtr:e}):makeClassHandle(n.registeredClass.instancePrototype,{ptrType:n,ptr:t})}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee,RegisteredPointer.prototype.destructor=RegisteredPointer_destructor,RegisteredPointer.prototype.argPackAdvance=8,RegisteredPointer.prototype.readValueFromPointer=simpleReadValueFromPointer,RegisteredPointer.prototype.deleteObject=RegisteredPointer_deleteObject,RegisteredPointer.prototype.fromWireType=RegisteredPointer_fromWireType}function RegisteredPointer(e,i,n,t,r,o,a,l,u,s,d){this.name=e,this.registeredClass=i,this.isReference=n,this.isConst=t,this.isSmartPointer=r,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=l,this.rawConstructor=u,this.rawShare=s,this.rawDestructor=d,r||void 0!==i.baseClass?this.toWireType=genericPointerToWireType:(this.toWireType=t?constNoSmartPtrRawPointerToWireType:nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}function replacePublicSymbol(e,i,n){Module.hasOwnProperty(e)||throwInternalError("Replacing nonexistant public symbol"),void 0!==Module[e].overloadTable&&void 0!==n?Module[e].overloadTable[n]=i:(Module[e]=i,Module[e].argCount=n)}function embind__requireFunction(r,o){r=readLatin1String(r);var e=function(e){for(var i=[],n=1;n<r.length;++n)i.push("a"+n);var t="return function "+("dynCall_"+r+"_"+o)+"("+i.join(", ")+") {\n";return t+="    return dynCall(rawFunction"+(i.length?", ":"")+i.join(", ")+");\n",t+="};\n",new Function("dynCall","rawFunction",t)(e,o)}(Module["dynCall_"+r]);return"function"!=typeof e&&throwBindingError("unknown function pointer with signature "+r+": "+o),e}var UnboundTypeError=void 0;function getTypeName(e){var i=___getTypeName(e),e=readLatin1String(i);return _free(i),e}function throwUnboundTypeError(e,i){var n=[],t={};throw i.forEach(function e(i){t[i]||registeredTypes[i]||(typeDependencies[i]?typeDependencies[i].forEach(e):(n.push(i),t[i]=!0))}),new UnboundTypeError(e+": "+n.map(getTypeName).join([", "]))}function __embind_register_class(a,e,i,l,n,u,t,s,r,d,c,o,_){c=readLatin1String(c),u=embind__requireFunction(n,u),s=s&&embind__requireFunction(t,s),d=d&&embind__requireFunction(r,d),_=embind__requireFunction(o,_);var f=makeLegalFunctionName(c);exposePublicSymbol(f,function(){throwUnboundTypeError("Cannot construct "+c+" due to unbound types",[l])}),whenDependentTypesAreResolved([a,e,i],l?[l]:[],function(e){e=e[0];var i=l?(o=e.registeredClass).instancePrototype:ClassHandle.prototype,n=createNamedFunction(f,function(){if(Object.getPrototypeOf(this)!==t)throw new BindingError("Use 'new' to construct "+c);if(void 0===r.constructor_body)throw new BindingError(c+" has no accessible constructor");var e=r.constructor_body[arguments.length];if(void 0===e)throw new BindingError("Tried to invoke ctor of "+c+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(r.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)}),t=Object.create(i,{constructor:{value:n}});n.prototype=t;var r=new RegisteredClass(c,n,t,_,o,u,s,d),e=new RegisteredPointer(c,r,!0,!1,!1),i=new RegisteredPointer(c+"*",r,!1,!1,!1),o=new RegisteredPointer(c+" const*",r,!1,!0,!1);return registeredPointers[a]={pointerType:i,constPointerType:o},replacePublicSymbol(f,n),[e,i,o]})}function new_(e,i){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var n=createNamedFunction(e.name||"unknownFunctionName",function(){});n.prototype=e.prototype;n=new n,i=e.apply(n,i);return i instanceof Object?i:n}function runDestructors(e){for(;e.length;){var i=e.pop();e.pop()(i)}}function craftInvokerFunction(e,i,n,t,r){var o=i.length;o<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==i[1]&&null!==n,l=!1,u=1;u<i.length;++u)if(null!==i[u]&&void 0===i[u].destructorFunction){l=!0;break}for(var n="void"!==i[0].name,s="",d="",u=0;u<o-2;++u)s+=(0!==u?", ":"")+"arg"+u,d+=(0!==u?", ":"")+"arg"+u+"Wired";var c="return function "+makeLegalFunctionName(e)+"("+s+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";l&&(c+="var destructors = [];\n");var _=l?"destructors":"null",f=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],p=[throwBindingError,t,r,runDestructors,i[0],i[1]];a&&(c+="var thisWired = classParam.toWireType("+_+", this);\n");for(u=0;u<o-2;++u)c+="var arg"+u+"Wired = argType"+u+".toWireType("+_+", arg"+u+"); // "+i[u+2].name+"\n",f.push("argType"+u),p.push(i[u+2]);if(c+=(n?"var rv = ":"")+"invoker(fn"+(0<(d=a?"thisWired"+(0<d.length?", ":"")+d:d).length?", ":"")+d+");\n",l)c+="runDestructors(destructors);\n";else for(u=a?1:2;u<i.length;++u){var y=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==i[u].destructorFunction&&(c+=y+"_dtor("+y+"); // "+i[u].name+"\n",f.push(y+"_dtor"),p.push(i[u].destructorFunction))}return n&&(c+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),f.push(c+="}\n"),new_(Function,f).apply(null,p)}function heap32VectorToArray(e,i){for(var n=[],t=0;t<e;t++)n.push(HEAP32[(i>>2)+t]);return n}function __embind_register_class_function(e,o,a,i,n,l,u,s){var d=heap32VectorToArray(a,i);o=readLatin1String(o),l=embind__requireFunction(n,l),whenDependentTypesAreResolved([],[e],function(i){var n=(i=i[0]).name+"."+o;function e(){throwUnboundTypeError("Cannot call "+n+" due to unbound types",d)}s&&i.registeredClass.pureVirtualFunctions.push(o);var t=i.registeredClass.instancePrototype,r=t[o];return void 0===r||void 0===r.overloadTable&&r.className!==i.name&&r.argCount===a-2?(e.argCount=a-2,e.className=i.name,t[o]=e):(ensureOverloadTable(t,o,n),t[o].overloadTable[a-2]=e),whenDependentTypesAreResolved([],d,function(e){e=craftInvokerFunction(n,e,i,l,u);return void 0===t[o].overloadTable?(e.argCount=a-2,t[o]=e):t[o].overloadTable[a-2]=e,[]}),[]})}var emval_free_list=[],emval_handle_array=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function __emval_decref(e){4<e&&0==--emval_handle_array[e].refcount&&(emval_handle_array[e]=void 0,emval_free_list.push(e))}function count_emval_handles(){for(var e=0,i=5;i<emval_handle_array.length;++i)void 0!==emval_handle_array[i]&&++e;return e}function get_first_emval(){for(var e=5;e<emval_handle_array.length;++e)if(void 0!==emval_handle_array[e])return emval_handle_array[e];return null}function init_emval(){Module.count_emval_handles=count_emval_handles,Module.get_first_emval=get_first_emval}function __emval_register(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var i=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;return emval_handle_array[i]={refcount:1,value:e},i}}function __embind_register_emval(e,i){registerType(e,{name:i=readLatin1String(i),fromWireType:function(e){var i=emval_handle_array[e].value;return __emval_decref(e),i},toWireType:function(e,i){return __emval_register(i)},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:null})}function _embind_repr(e){if(null===e)return"null";var i=typeof e;return"object"==i||"array"==i||"function"==i?e.toString():""+e}function floatReadValueFromPointer(e,i){switch(i){case 2:return function(e){return this.fromWireType(HEAPF32[e>>2])};case 3:return function(e){return this.fromWireType(HEAPF64[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function __embind_register_float(e,i,n){n=getShiftFromSize(n);registerType(e,{name:i=readLatin1String(i),fromWireType:function(e){return e},toWireType:function(e,i){if("number"!=typeof i&&"boolean"!=typeof i)throw new TypeError('Cannot convert "'+_embind_repr(i)+'" to '+this.name);return i},argPackAdvance:8,readValueFromPointer:floatReadValueFromPointer(i,n),destructorFunction:null})}function __embind_register_function(i,n,e,t,r,o){var a=heap32VectorToArray(n,e);i=readLatin1String(i),r=embind__requireFunction(t,r),exposePublicSymbol(i,function(){throwUnboundTypeError("Cannot call "+i+" due to unbound types",a)},n-1),whenDependentTypesAreResolved([],a,function(e){e=[e[0],null].concat(e.slice(1));return replacePublicSymbol(i,craftInvokerFunction(i,e,null,r,o),n-1),[]})}function integerReadValueFromPointer(e,i,n){switch(i){case 0:return n?function(e){return HEAP8[e]}:function(e){return HEAPU8[e]};case 1:return n?function(e){return HEAP16[e>>1]}:function(e){return HEAPU16[e>>1]};case 2:return n?function(e){return HEAP32[e>>2]}:function(e){return HEAPU32[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function __embind_register_integer(e,n,i,t,r){n=readLatin1String(n),-1===r&&(r=4294967295);var o,a=getShiftFromSize(i),l=function(e){return e};0===t&&(o=32-8*i,l=function(e){return e<<o>>>o});var u=-1!=n.indexOf("unsigned");registerType(e,{name:n,fromWireType:l,toWireType:function(e,i){if("number"!=typeof i&&"boolean"!=typeof i)throw new TypeError('Cannot convert "'+_embind_repr(i)+'" to '+this.name);if(i<t||r<i)throw new TypeError('Passing a number "'+_embind_repr(i)+'" from JS side to C/C++ side to an argument of type "'+n+'", which is outside the valid range ['+t+", "+r+"]!");return u?i>>>0:0|i},argPackAdvance:8,readValueFromPointer:integerReadValueFromPointer(n,a,0!==t),destructorFunction:null})}function __embind_register_memory_view(e,i,n){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][i];function r(e){var i=HEAPU32[e>>=2],e=HEAPU32[e+1];return new t(buffer,e,i)}registerType(e,{name:n=readLatin1String(n),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ignoreDuplicateRegistrations:!0})}function __embind_register_std_string(e,i){var u="std::string"===(i=readLatin1String(i));registerType(e,{name:i,fromWireType:function(e){var i,n=HEAPU32[e>>2];if(u)for(var t=e+4,r=0;r<=n;++r){var o,a=e+4+r;0!=HEAPU8[a]&&r!=n||(o=UTF8ToString(t,a-t),void 0===i?i=o:(i+=String.fromCharCode(0),i+=o),t=a+1)}else{for(var l=new Array(n),r=0;r<n;++r)l[r]=String.fromCharCode(HEAPU8[e+4+r]);i=l.join("")}return _free(e),i},toWireType:function(e,i){var n="string"==typeof(i=i instanceof ArrayBuffer?new Uint8Array(i):i);n||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string");var t=(u&&n?function(){return lengthBytesUTF8(i)}:function(){return i.length})(),r=_malloc(4+t+1);if(HEAPU32[r>>2]=t,u&&n)stringToUTF8(i,r+4,t+1);else if(n)for(var o=0;o<t;++o){var a=i.charCodeAt(o);255<a&&(_free(r),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),HEAPU8[r+4+o]=a}else for(o=0;o<t;++o)HEAPU8[r+4+o]=i[o];return null!==e&&e.push(_free,r),r},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:function(e){_free(e)}})}function __embind_register_std_wstring(e,u,r){var s,o,d,a,c;r=readLatin1String(r),2===u?(s=UTF16ToString,o=stringToUTF16,a=lengthBytesUTF16,d=function(){return HEAPU16},c=1):4===u&&(s=UTF32ToString,o=stringToUTF32,a=lengthBytesUTF32,d=function(){return HEAPU32},c=2),registerType(e,{name:r,fromWireType:function(e){for(var i,n=HEAPU32[e>>2],t=d(),r=e+4,o=0;o<=n;++o){var a,l=e+4+o*u;0!=t[l>>c]&&o!=n||(a=s(r,l-r),void 0===i?i=a:(i+=String.fromCharCode(0),i+=a),r=l+u)}return _free(e),i},toWireType:function(e,i){"string"!=typeof i&&throwBindingError("Cannot pass non-string to C++ string type "+r);var n=a(i),t=_malloc(4+n+u);return HEAPU32[t>>2]=n>>c,o(i,t+4,n+u),null!==e&&e.push(_free,t),t},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:function(e){_free(e)}})}function __embind_register_void(e,i){registerType(e,{isVoid:!0,name:i=readLatin1String(i),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,i){}})}function requireHandle(e){return e||throwBindingError("Cannot use deleted val. handle = "+e),emval_handle_array[e].value}function requireRegisteredType(e,i){var n=registeredTypes[e];return void 0===n&&throwBindingError(i+" has unknown type "+getTypeName(e)),n}function __emval_as(e,i,n){e=requireHandle(e),i=requireRegisteredType(i,"emval::as");var t=[],r=__emval_register(t);return HEAP32[n>>2]=r,i.toWireType(t,e)}function __emval_allocateDestructors(e){var i=[];return HEAP32[e>>2]=__emval_register(i),i}var emval_symbols={};function getStringOrSymbol(e){var i=emval_symbols[e];return void 0===i?readLatin1String(e):i}var emval_methodCallers=[];function __emval_call_method(e,i,n,t,r){return(e=emval_methodCallers[e])(i=requireHandle(i),n=getStringOrSymbol(n),__emval_allocateDestructors(t),r)}function __emval_call_void_method(e,i,n,t){(e=emval_methodCallers[e])(i=requireHandle(i),n=getStringOrSymbol(n),null,t)}function __emval_addMethodCaller(e){var i=emval_methodCallers.length;return emval_methodCallers.push(e),i}function __emval_lookupTypes(e,i){for(var n=new Array(e),t=0;t<e;++t)n[t]=requireRegisteredType(HEAP32[(i>>2)+t],"parameter "+t);return n}function __emval_get_method_caller(e,i){for(var n=__emval_lookupTypes(e,i),t=n[0],i=t.name+"_$"+n.slice(1).map(function(e){return e.name}).join("_")+"$",r=["retType"],o=[t],a="",l=0;l<e-1;++l)a+=(0!==l?", ":"")+"arg"+l,r.push("argType"+l),o.push(n[1+l]);for(var u="return function "+makeLegalFunctionName("methodCaller_"+i)+"(handle, name, destructors, args) {\n",s=0,l=0;l<e-1;++l)u+="    var arg"+l+" = argType"+l+".readValueFromPointer(args"+(s?"+"+s:"")+");\n",s+=n[l+1].argPackAdvance;u+="    var rv = handle[name]("+a+");\n";for(l=0;l<e-1;++l)n[l+1].deleteObject&&(u+="    argType"+l+".deleteObject(arg"+l+");\n");return t.isVoid||(u+="    return retType.toWireType(destructors, rv);\n"),r.push(u+="};\n"),__emval_addMethodCaller(new_(Function,r).apply(null,o))}function __emval_get_property(e,i){return __emval_register((e=requireHandle(e))[i=requireHandle(i)])}function __emval_incref(e){4<e&&(emval_handle_array[e].refcount+=1)}function __emval_new_cstring(e){return __emval_register(getStringOrSymbol(e))}function __emval_run_destructors(e){runDestructors(emval_handle_array[e].value),__emval_decref(e)}function __emval_set_property(e,i,n){e=requireHandle(e),i=requireHandle(i),n=requireHandle(n),e[i]=n}function __emval_take_value(e,i){return __emval_register((e=requireRegisteredType(e,"_emval_take_value")).readValueFromPointer(i))}function _abort(){abort()}function _clock(){return void 0===_clock.start&&(_clock.start=Date.now()),1e3*(Date.now()-_clock.start)|0}function _emscripten_get_sbrk_ptr(){return 493104}function _longjmp(e,i){throw _setThrew(e,i||1),"longjmp"}function _emscripten_longjmp(e,i){_longjmp(e,i)}function _emscripten_memcpy_big(e,i,n){HEAPU8.copyWithin(e,i,i+n)}function abortOnCannotGrowMemory(e){abort("OOM")}function _emscripten_resize_heap(e){abortOnCannotGrowMemory(e>>>=0)}var ENV={};function __getExecutableName(){return thisProgram||"./this.program"}function 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(i in ENV)e[i]=ENV[i];var i,n=[];for(i in e)n.push(i+"="+e[i]);getEnvStrings.strings=n}return getEnvStrings.strings}function _environ_get(t,r){var o=0;return getEnvStrings().forEach(function(e,i){var n=r+o;writeAsciiToMemory(e,HEAP32[t+4*i>>2]=n),o+=e.length+1}),0}function _environ_sizes_get(e,i){var n=getEnvStrings();HEAP32[e>>2]=n.length;var t=0;return n.forEach(function(e){t+=e.length+1}),HEAP32[i>>2]=t,0}function _fd_close(e){try{var i=SYSCALLS.getStreamFromFD(e);return FS.close(i),0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),e.errno}}function _fd_fdstat_get(e,i){try{var n=SYSCALLS.getStreamFromFD(e),t=n.tty?2:FS.isDir(n.mode)?3:FS.isLink(n.mode)?7:4;return HEAP8[i>>0]=t,0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),e.errno}}function _fd_read(e,i,n,t){try{var r=SYSCALLS.getStreamFromFD(e),o=SYSCALLS.doReadv(r,i,n);return HEAP32[t>>2]=o,0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),e.errno}}function _fd_seek(e,i,n,t,r){try{var o=SYSCALLS.getStreamFromFD(e),a=4294967296*n+(i>>>0),l=9007199254740992;return a<=-l||l<=a?-61:(FS.llseek(o,a,t),tempI64=[o.position>>>0,(tempDouble=o.position,1<=+Math_abs(tempDouble)?0<tempDouble?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r>>2]=tempI64[0],HEAP32[r+4>>2]=tempI64[1],o.getdents&&0==a&&0===t&&(o.getdents=null),0)}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),e.errno}}function _fd_write(e,i,n,t){try{var r=SYSCALLS.getStreamFromFD(e),o=SYSCALLS.doWritev(r,i,n);return HEAP32[t>>2]=o,0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),e.errno}}function _getTempRet0(){return 0|getTempRet0()}function _llvm_eh_typeid_for(e){return e}var ___tm_current=493120,___tm_timezone=(stringToUTF8("GMT",493168,4),493168);function _tzset(){var e,i,n,t;function r(e){e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}_tzset.called||(_tzset.called=!0,HEAP32[__get_timezone()>>2]=60*(new Date).getTimezoneOffset(),t=(new Date).getFullYear(),e=new Date(t,0,1),i=new Date(t,6,1),HEAP32[__get_daylight()>>2]=Number(e.getTimezoneOffset()!=i.getTimezoneOffset()),n=r(e),t=r(i),n=allocateUTF8(n),t=allocateUTF8(t),i.getTimezoneOffset()<e.getTimezoneOffset()?(HEAP32[__get_tzname()>>2]=n,HEAP32[__get_tzname()+4>>2]=t):(HEAP32[__get_tzname()>>2]=t,HEAP32[__get_tzname()+4>>2]=n))}function _localtime_r(e,i){_tzset();var n=new Date(1e3*HEAP32[e>>2]);HEAP32[i>>2]=n.getSeconds(),HEAP32[i+4>>2]=n.getMinutes(),HEAP32[i+8>>2]=n.getHours(),HEAP32[i+12>>2]=n.getDate(),HEAP32[i+16>>2]=n.getMonth(),HEAP32[i+20>>2]=n.getFullYear()-1900,HEAP32[i+24>>2]=n.getDay();var t=new Date(n.getFullYear(),0,1),e=(n.getTime()-t.getTime())/864e5|0;HEAP32[i+28>>2]=e,HEAP32[i+36>>2]=-60*n.getTimezoneOffset();e=new Date(n.getFullYear(),6,1).getTimezoneOffset(),t=t.getTimezoneOffset(),e=0|(e!=t&&n.getTimezoneOffset()==Math.min(t,e));HEAP32[i+32>>2]=e;e=HEAP32[__get_tzname()+(e?4:0)>>2];return HEAP32[i+40>>2]=e,i}function _localtime(e){return _localtime_r(e,___tm_current)}function _pthread_mutexattr_destroy(){}function _pthread_mutexattr_init(){}function _pthread_mutexattr_settype(){}function _round(e){return 0<=(e=+e)?+Math_floor(e+.5):+Math_ceil(e-.5)}function _setTempRet0(e){setTempRet0(0|e)}function __isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function __arraySum(e,i){for(var n=0,t=0;t<=i;n+=e[t++]);return n}var __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];function __addDays(e,i){for(var n=new Date(e.getTime());0<i;){var t=__isLeapYear(n.getFullYear()),r=n.getMonth(),t=(t?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[r];if(!(i>t-n.getDate()))return n.setDate(n.getDate()+i),n;i-=t-n.getDate()+1,n.setDate(1),r<11?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function _strftime(e,i,n,t){var r=HEAP32[t+40>>2],o={tm_sec:HEAP32[t>>2],tm_min:HEAP32[t+4>>2],tm_hour:HEAP32[t+8>>2],tm_mday:HEAP32[t+12>>2],tm_mon:HEAP32[t+16>>2],tm_year:HEAP32[t+20>>2],tm_wday:HEAP32[t+24>>2],tm_yday:HEAP32[t+28>>2],tm_isdst:HEAP32[t+32>>2],tm_gmtoff:HEAP32[t+36>>2],tm_zone:r?UTF8ToString(r):""},a=UTF8ToString(n),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(y in l)a=a.replace(new RegExp(y,"g"),l[y]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,i,n){for(var t="number"==typeof e?e.toString():e||"";t.length<i;)t=n[0]+t;return t}function c(e,i){return d(e,i,"0")}function _(e,i){function n(e){return e<0?-1:0<e?1:0}var t;return t=0===(t=n(e.getFullYear()-i.getFullYear()))&&0===(t=n(e.getMonth()-i.getMonth()))?n(e.getDate()-i.getDate()):t}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 p(e){var i=__addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(i.getFullYear(),0,4),e=new Date(i.getFullYear()+1,0,4),n=f(n),e=f(e);return _(n,i)<=0?_(e,i)<=0?i.getFullYear()+1:i.getFullYear():i.getFullYear()-1}var y,m={"%a":function(e){return u[e.tm_wday].substring(0,3)},"%A":function(e){return u[e.tm_wday]},"%b":function(e){return s[e.tm_mon].substring(0,3)},"%B":function(e){return s[e.tm_mon]},"%C":function(e){return c((e.tm_year+1900)/100|0,2)},"%d":function(e){return c(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":p,"%H":function(e){return c(e.tm_hour,2)},"%I":function(e){e=e.tm_hour;return 0==e?e=12:12<e&&(e-=12),c(e,2)},"%j":function(e){return c(e.tm_mday+__arraySum(__isLeapYear(e.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,e.tm_mon-1),3)},"%m":function(e){return c(e.tm_mon+1,2)},"%M":function(e){return c(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return 0<=e.tm_hour&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return c(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var i=new Date(e.tm_year+1900,0,1),n=0===i.getDay()?i:__addDays(i,7-i.getDay()),t=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(_(n,t)<0){e=__arraySum(__isLeapYear(t.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,t.getMonth()-1)-31,t=31-n.getDate()+e+t.getDate();return c(Math.ceil(t/7),2)}return 0===_(n,i)?"01":"00"},"%V":function(e){var i=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),t=f(i),i=f(n),n=__addDays(new Date(e.tm_year+1900,0,1),e.tm_yday);return _(n,t)<0?"53":_(i,n)<=0?"01":(t=t.getFullYear()<e.tm_year+1900?e.tm_yday+32-t.getDate():e.tm_yday+1-t.getDate(),c(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var i=new Date(e.tm_year,0,1),n=1===i.getDay()?i:__addDays(i,0===i.getDay()?1:7-i.getDay()+1),t=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(_(n,t)<0){e=__arraySum(__isLeapYear(t.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,t.getMonth()-1)-31,t=31-n.getDate()+e+t.getDate();return c(Math.ceil(t/7),2)}return 0===_(n,i)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var i=e.tm_gmtoff,e=0<=i;return i=(i=Math.abs(i)/60)/60*100+i%60,(e?"+":"-")+String("0000"+i).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(y in m)0<=a.indexOf(y)&&(a=a.replace(new RegExp(y,"g"),m[y](o)));n=intArrayFromString(a,!1);return n.length>i?0:(writeArrayToMemory(n,e),n.length-1)}function _strftime_l(e,i,n,t){return _strftime(e,i,n,t)}function _time(e){var i=Date.now()/1e3|0;return e&&(HEAP32[e>>2]=i),i}var FSNode=function(e,i,n,t){this.parent=e=e||this,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=i,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=t},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.staticInit(),embind_init_charCodes(),BindingError=Module.BindingError=extendError(Error,"BindingError"),InternalError=Module.InternalError=extendError(Error,"InternalError"),init_ClassHandle(),init_RegisteredPointer(),init_embind(),UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError"),init_emval();var ASSERTIONS=!1;function intArrayFromString(e,i,n){n=0<n?n:lengthBytesUTF8(e)+1,n=new Array(n),e=stringToUTF8Array(e,n,0,n.length);return i&&(n.length=e),n}var calledRun,asmLibraryArg={__cxa_allocate_exception:___cxa_allocate_exception,__cxa_atexit:___cxa_atexit,__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_find_matching_catch_4:___cxa_find_matching_catch_4,__cxa_free_exception:___cxa_free_exception,__cxa_rethrow:___cxa_rethrow,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__map_file:___map_file,__resumeException:___resumeException,__sys_fcntl64:___sys_fcntl64,__sys_ioctl:___sys_ioctl,__sys_munmap:___sys_munmap,__sys_open:___sys_open,_embind_register_bool:__embind_register_bool,_embind_register_class:__embind_register_class,_embind_register_class_function:__embind_register_class_function,_embind_register_emval:__embind_register_emval,_embind_register_float:__embind_register_float,_embind_register_function:__embind_register_function,_embind_register_integer:__embind_register_integer,_embind_register_memory_view:__embind_register_memory_view,_embind_register_std_string:__embind_register_std_string,_embind_register_std_wstring:__embind_register_std_wstring,_embind_register_void:__embind_register_void,_emval_as:__emval_as,_emval_call_method:__emval_call_method,_emval_call_void_method:__emval_call_void_method,_emval_decref:__emval_decref,_emval_get_method_caller:__emval_get_method_caller,_emval_get_property:__emval_get_property,_emval_incref:__emval_incref,_emval_new_cstring:__emval_new_cstring,_emval_run_destructors:__emval_run_destructors,_emval_set_property:__emval_set_property,_emval_take_value:__emval_take_value,abort:_abort,clock:_clock,emscripten_get_sbrk_ptr:_emscripten_get_sbrk_ptr,emscripten_longjmp:_emscripten_longjmp,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_read:_fd_read,fd_seek:_fd_seek,fd_write:_fd_write,getTempRet0:_getTempRet0,invoke_di:invoke_di,invoke_dii:invoke_dii,invoke_diid:invoke_diid,invoke_diii:invoke_diii,invoke_diiii:invoke_diiii,invoke_diiiii:invoke_diiiii,invoke_fi:invoke_fi,invoke_fif:invoke_fif,invoke_fii:invoke_fii,invoke_fiii:invoke_fiii,invoke_fiiii:invoke_fiiii,invoke_fiiiiiff:invoke_fiiiiiff,invoke_i:invoke_i,invoke_ii:invoke_ii,invoke_iid:invoke_iid,invoke_iiddi:invoke_iiddi,invoke_iiddii:invoke_iiddii,invoke_iiddiii:invoke_iiddiii,invoke_iif:invoke_iif,invoke_iii:invoke_iii,invoke_iiii:invoke_iiii,invoke_iiiii:invoke_iiiii,invoke_iiiiid:invoke_iiiiid,invoke_iiiiii:invoke_iiiiii,invoke_iiiiiid:invoke_iiiiiid,invoke_iiiiiii:invoke_iiiiiii,invoke_iiiiiiii:invoke_iiiiiiii,invoke_iiiiiiiii:invoke_iiiiiiiii,invoke_iiiiiiiiiddiii:invoke_iiiiiiiiiddiii,invoke_iiiiiiiiii:invoke_iiiiiiiiii,invoke_iiiiiiiiiii:invoke_iiiiiiiiiii,invoke_iiiiiiiiiiii:invoke_iiiiiiiiiiii,invoke_iiiiiiiiiiiii:invoke_iiiiiiiiiiiii,invoke_iij:invoke_iij,invoke_jiiii:invoke_jiiii,invoke_v:invoke_v,invoke_vi:invoke_vi,invoke_vid:invoke_vid,invoke_vidi:invoke_vidi,invoke_vidiiiiiii:invoke_vidiiiiiii,invoke_vif:invoke_vif,invoke_viffffff:invoke_viffffff,invoke_viffi:invoke_viffi,invoke_vifii:invoke_vifii,invoke_vii:invoke_vii,invoke_viid:invoke_viid,invoke_viidddd:invoke_viidddd,invoke_viidi:invoke_viidi,invoke_viidii:invoke_viidii,invoke_viidiiiiiii:invoke_viidiiiiiii,invoke_viif:invoke_viif,invoke_viifii:invoke_viifii,invoke_viii:invoke_viii,invoke_viiid:invoke_viiid,invoke_viiidi:invoke_viiidi,invoke_viiidiiiid:invoke_viiidiiiid,invoke_viiiff:invoke_viiiff,invoke_viiii:invoke_viiii,invoke_viiiidd:invoke_viiiidd,invoke_viiiiffffiii:invoke_viiiiffffiii,invoke_viiiii:invoke_viiiii,invoke_viiiiidi:invoke_viiiiidi,invoke_viiiiii:invoke_viiiiii,invoke_viiiiiid:invoke_viiiiiid,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiiiii:invoke_viiiiiiii,invoke_viiiiiiiii:invoke_viiiiiiiii,invoke_viiiiiiiiii:invoke_viiiiiiiiii,invoke_viiiiiiiiiii:invoke_viiiiiiiiiii,invoke_viiiiiiiiiiiiiii:invoke_viiiiiiiiiiiiiii,llvm_eh_typeid_for:_llvm_eh_typeid_for,localtime:_localtime,memory:wasmMemory,pthread_mutexattr_destroy:_pthread_mutexattr_destroy,pthread_mutexattr_init:_pthread_mutexattr_init,pthread_mutexattr_settype:_pthread_mutexattr_settype,round:_round,setTempRet0:_setTempRet0,strftime_l:_strftime_l,table:wasmTable,time:_time},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},___errno_location=Module.___errno_location=function(){return(___errno_location=Module.___errno_location=Module.asm.__errno_location).apply(null,arguments)},_testSetjmp=Module._testSetjmp=function(){return(_testSetjmp=Module._testSetjmp=Module.asm.testSetjmp).apply(null,arguments)},_saveSetjmp=Module._saveSetjmp=function(){return(_saveSetjmp=Module._saveSetjmp=Module.asm.saveSetjmp).apply(null,arguments)},___getTypeName=Module.___getTypeName=function(){return(___getTypeName=Module.___getTypeName=Module.asm.__getTypeName).apply(null,arguments)},___embind_register_native_and_builtin_types=Module.___embind_register_native_and_builtin_types=function(){return(___embind_register_native_and_builtin_types=Module.___embind_register_native_and_builtin_types=Module.asm.__embind_register_native_and_builtin_types).apply(null,arguments)},__get_tzname=Module.__get_tzname=function(){return(__get_tzname=Module.__get_tzname=Module.asm._get_tzname).apply(null,arguments)},__get_daylight=Module.__get_daylight=function(){return(__get_daylight=Module.__get_daylight=Module.asm._get_daylight).apply(null,arguments)},__get_timezone=Module.__get_timezone=function(){return(__get_timezone=Module.__get_timezone=Module.asm._get_timezone).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__ZSt18uncaught_exceptionv=Module.__ZSt18uncaught_exceptionv=function(){return(__ZSt18uncaught_exceptionv=Module.__ZSt18uncaught_exceptionv=Module.asm._ZSt18uncaught_exceptionv).apply(null,arguments)},___cxa_can_catch=Module.___cxa_can_catch=function(){return(___cxa_can_catch=Module.___cxa_can_catch=Module.asm.__cxa_can_catch).apply(null,arguments)},___cxa_is_pointer_type=Module.___cxa_is_pointer_type=function(){return(___cxa_is_pointer_type=Module.___cxa_is_pointer_type=Module.asm.__cxa_is_pointer_type).apply(null,arguments)},dynCall_v=Module.dynCall_v=function(){return(dynCall_v=Module.dynCall_v=Module.asm.dynCall_v).apply(null,arguments)},dynCall_vi=Module.dynCall_vi=function(){return(dynCall_vi=Module.dynCall_vi=Module.asm.dynCall_vi).apply(null,arguments)},dynCall_vii=Module.dynCall_vii=function(){return(dynCall_vii=Module.dynCall_vii=Module.asm.dynCall_vii).apply(null,arguments)},dynCall_viii=Module.dynCall_viii=function(){return(dynCall_viii=Module.dynCall_viii=Module.asm.dynCall_viii).apply(null,arguments)},dynCall_viiii=Module.dynCall_viiii=function(){return(dynCall_viiii=Module.dynCall_viiii=Module.asm.dynCall_viiii).apply(null,arguments)},dynCall_viiiii=Module.dynCall_viiiii=function(){return(dynCall_viiiii=Module.dynCall_viiiii=Module.asm.dynCall_viiiii).apply(null,arguments)},dynCall_viiiiii=Module.dynCall_viiiiii=function(){return(dynCall_viiiiii=Module.dynCall_viiiiii=Module.asm.dynCall_viiiiii).apply(null,arguments)},dynCall_viiiiiii=Module.dynCall_viiiiiii=function(){return(dynCall_viiiiiii=Module.dynCall_viiiiiii=Module.asm.dynCall_viiiiiii).apply(null,arguments)},dynCall_viiiiiiii=Module.dynCall_viiiiiiii=function(){return(dynCall_viiiiiiii=Module.dynCall_viiiiiiii=Module.asm.dynCall_viiiiiiii).apply(null,arguments)},dynCall_viiiiiiiii=Module.dynCall_viiiiiiiii=function(){return(dynCall_viiiiiiiii=Module.dynCall_viiiiiiiii=Module.asm.dynCall_viiiiiiiii).apply(null,arguments)},dynCall_viiiiiiiiii=Module.dynCall_viiiiiiiiii=function(){return(dynCall_viiiiiiiiii=Module.dynCall_viiiiiiiiii=Module.asm.dynCall_viiiiiiiiii).apply(null,arguments)},dynCall_viiiiiiiiiii=Module.dynCall_viiiiiiiiiii=function(){return(dynCall_viiiiiiiiiii=Module.dynCall_viiiiiiiiiii=Module.asm.dynCall_viiiiiiiiiii).apply(null,arguments)},dynCall_viiiiiiiiiiiiiii=Module.dynCall_viiiiiiiiiiiiiii=function(){return(dynCall_viiiiiiiiiiiiiii=Module.dynCall_viiiiiiiiiiiiiii=Module.asm.dynCall_viiiiiiiiiiiiiii).apply(null,arguments)},dynCall_viiiiiid=Module.dynCall_viiiiiid=function(){return(dynCall_viiiiiid=Module.dynCall_viiiiiid=Module.asm.dynCall_viiiiiid).apply(null,arguments)},dynCall_viiiiidi=Module.dynCall_viiiiidi=function(){return(dynCall_viiiiidi=Module.dynCall_viiiiidi=Module.asm.dynCall_viiiiidi).apply(null,arguments)},dynCall_viiiiffffiii=Module.dynCall_viiiiffffiii=function(){return(dynCall_viiiiffffiii=Module.dynCall_viiiiffffiii=Module.asm.dynCall_viiiiffffiii).apply(null,arguments)},dynCall_viiiidd=Module.dynCall_viiiidd=function(){return(dynCall_viiiidd=Module.dynCall_viiiidd=Module.asm.dynCall_viiiidd).apply(null,arguments)},dynCall_viiiff=Module.dynCall_viiiff=function(){return(dynCall_viiiff=Module.dynCall_viiiff=Module.asm.dynCall_viiiff).apply(null,arguments)},dynCall_viiid=Module.dynCall_viiid=function(){return(dynCall_viiid=Module.dynCall_viiid=Module.asm.dynCall_viiid).apply(null,arguments)},dynCall_viiidi=Module.dynCall_viiidi=function(){return(dynCall_viiidi=Module.dynCall_viiidi=Module.asm.dynCall_viiidi).apply(null,arguments)},dynCall_viiidiiiid=Module.dynCall_viiidiiiid=function(){return(dynCall_viiidiiiid=Module.dynCall_viiidiiiid=Module.asm.dynCall_viiidiiiid).apply(null,arguments)},dynCall_viif=Module.dynCall_viif=function(){return(dynCall_viif=Module.dynCall_viif=Module.asm.dynCall_viif).apply(null,arguments)},dynCall_viifii=Module.dynCall_viifii=function(){return(dynCall_viifii=Module.dynCall_viifii=Module.asm.dynCall_viifii).apply(null,arguments)},dynCall_viid=Module.dynCall_viid=function(){return(dynCall_viid=Module.dynCall_viid=Module.asm.dynCall_viid).apply(null,arguments)},dynCall_viidi=Module.dynCall_viidi=function(){return(dynCall_viidi=Module.dynCall_viidi=Module.asm.dynCall_viidi).apply(null,arguments)},dynCall_viidii=Module.dynCall_viidii=function(){return(dynCall_viidii=Module.dynCall_viidii=Module.asm.dynCall_viidii).apply(null,arguments)},dynCall_viidiiiiiii=Module.dynCall_viidiiiiiii=function(){return(dynCall_viidiiiiiii=Module.dynCall_viidiiiiiii=Module.asm.dynCall_viidiiiiiii).apply(null,arguments)},dynCall_viidddd=Module.dynCall_viidddd=function(){return(dynCall_viidddd=Module.dynCall_viidddd=Module.asm.dynCall_viidddd).apply(null,arguments)},dynCall_vif=Module.dynCall_vif=function(){return(dynCall_vif=Module.dynCall_vif=Module.asm.dynCall_vif).apply(null,arguments)},dynCall_vifii=Module.dynCall_vifii=function(){return(dynCall_vifii=Module.dynCall_vifii=Module.asm.dynCall_vifii).apply(null,arguments)},dynCall_viffi=Module.dynCall_viffi=function(){return(dynCall_viffi=Module.dynCall_viffi=Module.asm.dynCall_viffi).apply(null,arguments)},dynCall_viffffff=Module.dynCall_viffffff=function(){return(dynCall_viffffff=Module.dynCall_viffffff=Module.asm.dynCall_viffffff).apply(null,arguments)},dynCall_vid=Module.dynCall_vid=function(){return(dynCall_vid=Module.dynCall_vid=Module.asm.dynCall_vid).apply(null,arguments)},dynCall_vidi=Module.dynCall_vidi=function(){return(dynCall_vidi=Module.dynCall_vidi=Module.asm.dynCall_vidi).apply(null,arguments)},dynCall_vidiiiiiii=Module.dynCall_vidiiiiiii=function(){return(dynCall_vidiiiiiii=Module.dynCall_vidiiiiiii=Module.asm.dynCall_vidiiiiiii).apply(null,arguments)},dynCall_i=Module.dynCall_i=function(){return(dynCall_i=Module.dynCall_i=Module.asm.dynCall_i).apply(null,arguments)},dynCall_ii=Module.dynCall_ii=function(){return(dynCall_ii=Module.dynCall_ii=Module.asm.dynCall_ii).apply(null,arguments)},dynCall_iii=Module.dynCall_iii=function(){return(dynCall_iii=Module.dynCall_iii=Module.asm.dynCall_iii).apply(null,arguments)},dynCall_iiii=Module.dynCall_iiii=function(){return(dynCall_iiii=Module.dynCall_iiii=Module.asm.dynCall_iiii).apply(null,arguments)},dynCall_iiiii=Module.dynCall_iiiii=function(){return(dynCall_iiiii=Module.dynCall_iiiii=Module.asm.dynCall_iiiii).apply(null,arguments)},dynCall_iiiiii=Module.dynCall_iiiiii=function(){return(dynCall_iiiiii=Module.dynCall_iiiiii=Module.asm.dynCall_iiiiii).apply(null,arguments)},dynCall_iiiiiii=Module.dynCall_iiiiiii=function(){return(dynCall_iiiiiii=Module.dynCall_iiiiiii=Module.asm.dynCall_iiiiiii).apply(null,arguments)},dynCall_iiiiiiii=Module.dynCall_iiiiiiii=function(){return(dynCall_iiiiiiii=Module.dynCall_iiiiiiii=Module.asm.dynCall_iiiiiiii).apply(null,arguments)},dynCall_iiiiiiiii=Module.dynCall_iiiiiiiii=function(){return(dynCall_iiiiiiiii=Module.dynCall_iiiiiiiii=Module.asm.dynCall_iiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiii=Module.dynCall_iiiiiiiiii=function(){return(dynCall_iiiiiiiiii=Module.dynCall_iiiiiiiiii=Module.asm.dynCall_iiiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiiii=Module.dynCall_iiiiiiiiiii=function(){return(dynCall_iiiiiiiiiii=Module.dynCall_iiiiiiiiiii=Module.asm.dynCall_iiiiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiiiii=Module.dynCall_iiiiiiiiiiii=function(){return(dynCall_iiiiiiiiiiii=Module.dynCall_iiiiiiiiiiii=Module.asm.dynCall_iiiiiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiii=function(){return(dynCall_iiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiii=Module.asm.dynCall_iiiiiiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiiddiii=Module.dynCall_iiiiiiiiiddiii=function(){return(dynCall_iiiiiiiiiddiii=Module.dynCall_iiiiiiiiiddiii=Module.asm.dynCall_iiiiiiiiiddiii).apply(null,arguments)},dynCall_iiiiiid=Module.dynCall_iiiiiid=function(){return(dynCall_iiiiiid=Module.dynCall_iiiiiid=Module.asm.dynCall_iiiiiid).apply(null,arguments)},dynCall_iiiiid=Module.dynCall_iiiiid=function(){return(dynCall_iiiiid=Module.dynCall_iiiiid=Module.asm.dynCall_iiiiid).apply(null,arguments)},dynCall_iij=Module.dynCall_iij=function(){return(dynCall_iij=Module.dynCall_iij=Module.asm.dynCall_iij).apply(null,arguments)},dynCall_iif=Module.dynCall_iif=function(){return(dynCall_iif=Module.dynCall_iif=Module.asm.dynCall_iif).apply(null,arguments)},dynCall_iid=Module.dynCall_iid=function(){return(dynCall_iid=Module.dynCall_iid=Module.asm.dynCall_iid).apply(null,arguments)},dynCall_iiddi=Module.dynCall_iiddi=function(){return(dynCall_iiddi=Module.dynCall_iiddi=Module.asm.dynCall_iiddi).apply(null,arguments)},dynCall_iiddii=Module.dynCall_iiddii=function(){return(dynCall_iiddii=Module.dynCall_iiddii=Module.asm.dynCall_iiddii).apply(null,arguments)},dynCall_iiddiii=Module.dynCall_iiddiii=function(){return(dynCall_iiddiii=Module.dynCall_iiddiii=Module.asm.dynCall_iiddiii).apply(null,arguments)},dynCall_jiiii=Module.dynCall_jiiii=function(){return(dynCall_jiiii=Module.dynCall_jiiii=Module.asm.dynCall_jiiii).apply(null,arguments)},dynCall_fi=Module.dynCall_fi=function(){return(dynCall_fi=Module.dynCall_fi=Module.asm.dynCall_fi).apply(null,arguments)},dynCall_fii=Module.dynCall_fii=function(){return(dynCall_fii=Module.dynCall_fii=Module.asm.dynCall_fii).apply(null,arguments)},dynCall_fiii=Module.dynCall_fiii=function(){return(dynCall_fiii=Module.dynCall_fiii=Module.asm.dynCall_fiii).apply(null,arguments)},dynCall_fiiii=Module.dynCall_fiiii=function(){return(dynCall_fiiii=Module.dynCall_fiiii=Module.asm.dynCall_fiiii).apply(null,arguments)},dynCall_fiiiiiff=Module.dynCall_fiiiiiff=function(){return(dynCall_fiiiiiff=Module.dynCall_fiiiiiff=Module.asm.dynCall_fiiiiiff).apply(null,arguments)},dynCall_fif=Module.dynCall_fif=function(){return(dynCall_fif=Module.dynCall_fif=Module.asm.dynCall_fif).apply(null,arguments)},dynCall_di=Module.dynCall_di=function(){return(dynCall_di=Module.dynCall_di=Module.asm.dynCall_di).apply(null,arguments)},dynCall_dii=Module.dynCall_dii=function(){return(dynCall_dii=Module.dynCall_dii=Module.asm.dynCall_dii).apply(null,arguments)},dynCall_diii=Module.dynCall_diii=function(){return(dynCall_diii=Module.dynCall_diii=Module.asm.dynCall_diii).apply(null,arguments)},dynCall_diiii=Module.dynCall_diiii=function(){return(dynCall_diiii=Module.dynCall_diiii=Module.asm.dynCall_diiii).apply(null,arguments)},dynCall_diiiii=Module.dynCall_diiiii=function(){return(dynCall_diiiii=Module.dynCall_diiiii=Module.asm.dynCall_diiiii).apply(null,arguments)},dynCall_diid=Module.dynCall_diid=function(){return(dynCall_diid=Module.dynCall_diid=Module.asm.dynCall_diid).apply(null,arguments)},__growWasmMemory=Module.__growWasmMemory=function(){return(__growWasmMemory=Module.__growWasmMemory=Module.asm.__growWasmMemory).apply(null,arguments)},dynCall_iiidi=Module.dynCall_iiidi=function(){return(dynCall_iiidi=Module.dynCall_iiidi=Module.asm.dynCall_iiidi).apply(null,arguments)},dynCall_viijii=Module.dynCall_viijii=function(){return(dynCall_viijii=Module.dynCall_viijii=Module.asm.dynCall_viijii).apply(null,arguments)},dynCall_viiddd=Module.dynCall_viiddd=function(){return(dynCall_viiddd=Module.dynCall_viiddd=Module.asm.dynCall_viiddd).apply(null,arguments)},dynCall_viiiidi=Module.dynCall_viiiidi=function(){return(dynCall_viiiidi=Module.dynCall_viiiidi=Module.asm.dynCall_viiiidi).apply(null,arguments)},dynCall_iiiiiiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiiiiiii=function(){return(dynCall_iiiiiiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiiiiiii=Module.asm.dynCall_iiiiiiiiiiiiiiiii).apply(null,arguments)},dynCall_iiiiiiiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiiiiiiii=function(){return(dynCall_iiiiiiiiiiiiiiiiii=Module.dynCall_iiiiiiiiiiiiiiiiii=Module.asm.dynCall_iiiiiiiiiiiiiiiiii).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},dynCall_iidiiii=Module.dynCall_iidiiii=function(){return(dynCall_iidiiii=Module.dynCall_iidiiii=Module.asm.dynCall_iidiiii).apply(null,arguments)},dynCall_iiiiij=Module.dynCall_iiiiij=function(){return(dynCall_iiiiij=Module.dynCall_iiiiij=Module.asm.dynCall_iiiiij).apply(null,arguments)},dynCall_iiiiijj=Module.dynCall_iiiiijj=function(){return(dynCall_iiiiijj=Module.dynCall_iiiiijj=Module.asm.dynCall_iiiiijj).apply(null,arguments)},dynCall_iiiiiijj=Module.dynCall_iiiiiijj=function(){return(dynCall_iiiiiijj=Module.dynCall_iiiiiijj=Module.asm.dynCall_iiiiiijj).apply(null,arguments)};function invoke_viiii(e,i,n,t,r){var o=stackSave();try{dynCall_viiii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_ii(e,i){var n=stackSave();try{return dynCall_ii(e,i)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iii(e,i,n){var t=stackSave();try{return dynCall_iii(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vi(e,i){var n=stackSave();try{dynCall_vi(e,i)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_diii(e,i,n,t){var r=stackSave();try{return dynCall_diii(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,i,n,t,r,o){var a=stackSave();try{return dynCall_iiiiii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vii(e,i,n){var t=stackSave();try{dynCall_vii(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(e,i,n,t,r,o,a,l,u,s){var d=stackSave();try{dynCall_viiiiiiiii(e,i,n,t,r,o,a,l,u,s)}catch(e){if(stackRestore(d),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,i,n,t,r,o,a,l){var u=stackSave();try{dynCall_viiiiiii(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viii(e,i,n,t){var r=stackSave();try{dynCall_viii(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiii(e,i,n,t,r,o){var a=stackSave();try{dynCall_viiiii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,i,n,t,r,o,a){var l=stackSave();try{return dynCall_iiiiiii(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiii(e,i,n,t,r){var o=stackSave();try{return dynCall_iiiii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiii(e,i,n,t){var r=stackSave();try{return dynCall_iiii(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_dii(e,i,n){var t=stackSave();try{return dynCall_dii(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiii(e,i,n,t,r,o,a){var l=stackSave();try{dynCall_viiiiii(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(e,i,n,t,r,o,a,l,u,s){var d=stackSave();try{return dynCall_iiiiiiiiii(e,i,n,t,r,o,a,l,u,s)}catch(e){if(stackRestore(d),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viidi(e,i,n,t,r){var o=stackSave();try{dynCall_viidi(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_v(e){var i=stackSave();try{dynCall_v(e)}catch(e){if(stackRestore(i),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iid(e,i,n){var t=stackSave();try{return dynCall_iid(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iif(e,i,n){var t=stackSave();try{return dynCall_iif(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_i(e){var i=stackSave();try{return dynCall_i(e)}catch(e){if(stackRestore(i),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,i,n,t,r,o,a,l){var u=stackSave();try{return dynCall_iiiiiiii(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viidddd(e,i,n,t,r,o,a){var l=stackSave();try{dynCall_viidddd(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viid(e,i,n,t){var r=stackSave();try{dynCall_viid(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_di(e,i){var n=stackSave();try{return dynCall_di(e,i)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vid(e,i,n){var t=stackSave();try{dynCall_vid(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(e,i,n,t,r,o,a,l,u){var s=stackSave();try{dynCall_viiiiiiii(e,i,n,t,r,o,a,l,u)}catch(e){if(stackRestore(s),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiidiiiid(e,i,n,t,r,o,a,l,u,s){var d=stackSave();try{dynCall_viiidiiiid(e,i,n,t,r,o,a,l,u,s)}catch(e){if(stackRestore(d),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiidi(e,i,n,t,r,o,a,l){var u=stackSave();try{dynCall_viiiiidi(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiidd(e,i,n,t,r,o,a){var l=stackSave();try{dynCall_viiiidd(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiidi(e,i,n,t,r,o){var a=stackSave();try{dynCall_viiidi(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viidiiiiiii(e,i,n,t,r,o,a,l,u,s,d){var c=stackSave();try{dynCall_viidiiiiiii(e,i,n,t,r,o,a,l,u,s,d)}catch(e){if(stackRestore(c),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiid(e,i,n,t,r,o,a,l){var u=stackSave();try{dynCall_viiiiiid(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vidiiiiiii(e,i,n,t,r,o,a,l,u,s){var d=stackSave();try{dynCall_vidiiiiiii(e,i,n,t,r,o,a,l,u,s)}catch(e){if(stackRestore(d),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiid(e,i,n,t,r,o,a){var l=stackSave();try{return dynCall_iiiiiid(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiff(e,i,n,t,r,o){var a=stackSave();try{dynCall_viiiff(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiddii(e,i,n,t,r,o){var a=stackSave();try{return dynCall_iiddii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiddiii(e,i,n,t,r,o,a){var l=stackSave();try{return dynCall_iiddiii(e,i,n,t,r,o,a)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d){var c=stackSave();try{dynCall_viiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d)}catch(e){if(stackRestore(c),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fii(e,i,n){var t=stackSave();try{return dynCall_fii(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiddi(e,i,n,t,r){var o=stackSave();try{return dynCall_iiddi(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viidii(e,i,n,t,r,o){var a=stackSave();try{dynCall_viidii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiid(e,i,n,t,r){var o=stackSave();try{dynCall_viiid(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_diid(e,i,n,t){var r=stackSave();try{return dynCall_diid(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(e,i,n,t,r,o,a,l,u){var s=stackSave();try{return dynCall_iiiiiiiii(e,i,n,t,r,o,a,l,u)}catch(e){if(stackRestore(s),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c,_,f,p,y){var m=stackSave();try{dynCall_viiiiiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c,_,f,p,y)}catch(e){if(stackRestore(m),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiddiii(e,i,n,t,r,o,a,l,u,s,d,c,_,f){var p=stackSave();try{return dynCall_iiiiiiiiiddiii(e,i,n,t,r,o,a,l,u,s,d,c,_,f)}catch(e){if(stackRestore(p),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vidi(e,i,n,t){var r=stackSave();try{dynCall_vidi(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_diiii(e,i,n,t,r){var o=stackSave();try{return dynCall_diiii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_diiiii(e,i,n,t,r,o){var a=stackSave();try{return dynCall_diiiii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viif(e,i,n,t){var r=stackSave();try{dynCall_viif(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fiiii(e,i,n,t,r){var o=stackSave();try{return dynCall_fiiii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fi(e,i){var n=stackSave();try{return dynCall_fi(e,i)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vif(e,i,n){var t=stackSave();try{dynCall_vif(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viffi(e,i,n,t,r){var o=stackSave();try{dynCall_viffi(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiffffiii(e,i,n,t,r,o,a,l,u,s,d,c){var _=stackSave();try{dynCall_viiiiffffiii(e,i,n,t,r,o,a,l,u,s,d,c)}catch(e){if(stackRestore(_),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viffffff(e,i,n,t,r,o,a,l){var u=stackSave();try{dynCall_viffffff(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fif(e,i,n){var t=stackSave();try{return dynCall_fif(e,i,n)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vifii(e,i,n,t,r){var o=stackSave();try{dynCall_vifii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fiiiiiff(e,i,n,t,r,o,a,l){var u=stackSave();try{return dynCall_fiiiiiff(e,i,n,t,r,o,a,l)}catch(e){if(stackRestore(u),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viifii(e,i,n,t,r,o){var a=stackSave();try{dynCall_viifii(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c){var _=stackSave();try{dynCall_viiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c)}catch(e){if(stackRestore(_),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,i,n,t,r,o){var a=stackSave();try{return dynCall_iiiiid(e,i,n,t,r,o)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d){var c=stackSave();try{return dynCall_iiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d)}catch(e){if(stackRestore(c),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c,_){var f=stackSave();try{return dynCall_iiiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c,_)}catch(e){if(stackRestore(f),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_fiii(e,i,n,t){var r=stackSave();try{return dynCall_fiii(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c){var _=stackSave();try{return dynCall_iiiiiiiiiiii(e,i,n,t,r,o,a,l,u,s,d,c)}catch(e){if(stackRestore(_),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iij(e,i,n,t){var r=stackSave();try{return dynCall_iij(e,i,n,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_jiiii(e,i,n,t,r){var o=stackSave();try{return dynCall_jiiii(e,i,n,t,r)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function run(e){function i(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}0<runDependencies||(preRun(),0<runDependencies||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),i()},1)):i()))}if(dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.run=run,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);0<Module.preInit.length;)Module.preInit.pop()();noExitRuntime=!0,run();
//# sourceMappingURL=RDKit_minimal.min.js.map