"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var key,Module=void 0!==Module?Module:{},moduleOverrides={};for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);Module.arguments=[],Module.thisProgram="./this.program",Module.quit=function(e,t){throw t},Module.preRun=[];var nodeFS,nodePath,ENVIRONMENT_IS_WEB=!(Module.postRun=[]),ENVIRONMENT_IS_WORKER=!1,ENVIRONMENT_IS_NODE=!1,ENVIRONMENT_IS_SHELL=!1;if(Module.ENVIRONMENT)if("WEB"===Module.ENVIRONMENT)ENVIRONMENT_IS_WEB=!0;else if("WORKER"===Module.ENVIRONMENT)ENVIRONMENT_IS_WORKER=!0;else if("NODE"===Module.ENVIRONMENT)ENVIRONMENT_IS_NODE=!0;else{if("SHELL"!==Module.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");ENVIRONMENT_IS_SHELL=!0}else ENVIRONMENT_IS_WEB="object"===("undefined"==typeof window?"undefined":_typeof(window)),ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"===("undefined"==typeof process?"undefined":_typeof(process))&&"function"==typeof require&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE)Module.read=function(e,t){return nodeFS=nodeFS||require("fs"),e=(nodePath=nodePath||require("path")).normalize(e),e=nodeFS.readFileSync(e),t?e:e.toString()},Module.readBinary=function(e){e=Module.read(e,!0);return assert((e=e.buffer?e:new Uint8Array(e)).buffer),e},1>2],e=t+e+15&-16;if((HEAP32[DYNAMICTOP_PTR>>2]=e,TOTAL_MEMORY<=e)&&!enlargeMemory())return HEAP32[DYNAMICTOP_PTR>>2]=t,0;return t}function alignMemory(e,t){t=t||STACK_ALIGN;e=Math.ceil(e/t)*t;return e}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:var t;return"*"===e[e.length-1]?4:"i"===e[0]?(assert((t=parseInt(e.substr(1)))%8==0),t/8):0}}var asm2wasmImports={"f64-rem":function(e,t){return e%t},debugger:function(){}},jsCallStartIndex=1,functionPointers=new Array(14);function addFunction(e,t){for(var r=0;r<14;r++)if(!functionPointers[r])return functionPointers[r]=e,jsCallStartIndex+r;throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}var GLOBAL_BASE=1024,ABORT=0,EXITSTATUS=0;function assert(e,t){e||abort("Assertion failed: "+t)}function setValue(e,t,r,n){switch(r="*"===(r=r||"i8").charAt(r.length-1)?"i32":r){case"i1":case"i8":HEAP8[e>>0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,1<=+Math_abs(tempDouble)?0>>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]=t;break;case"double":HEAPF64[e>>3]=t;break;default:abort("invalid type for setValue: "+r)}}var ALLOC_NORMAL=0,ALLOC_STATIC=2,ALLOC_NONE=4;function allocate(e,t,r,n){var o,i,a="number"==typeof e?(o=!0,e):(o=!1,e.length),s="string"==typeof t?t:null,u=r==ALLOC_NONE?n:["function"==typeof _malloc?_malloc:staticAlloc,stackAlloc,staticAlloc,dynamicAlloc][void 0===r?ALLOC_STATIC:r](Math.max(a,s?1:t.length));if(o){for(assert(0==(3&(n=u))),i=u+(-4&a);n>2]=0;for(i=u+a;n>0]=0}else{if("i8"===s)return e.subarray||e.slice?HEAPU8.set(e,u):HEAPU8.set(new Uint8Array(e),u),u;for(var l,c,d=0;d>0],0!=r||t)&&(o++,!t||o!=t););t=t||o;var i="";if(n<128){for(var a;0>10,56320|1023&s)))):u+=String.fromCharCode(a)}}function UTF8ToString(e){return UTF8ArrayToString(HEAPU8,e)}function stringToUTF8Array(e,t,r,n){if(!(0>6,t[r++]=128|63&s}else if(s<=65535){if(i<=r+2)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else if(s<=2097151){if(i<=r+3)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}else if(s<=67108863){if(i<=r+4)break;t[r++]=248|s>>24,t[r++]=128|s>>18&63,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(i<=r+5)break;t[r++]=252|s>>30,t[r++]=128|s>>24&63,t[r++]=128|s>>18&63,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function stringToUTF8(e,t,r){return stringToUTF8Array(e,HEAPU8,t,r)}function lengthBytesUTF8(e){for(var t=0,r=0;r>2]>t)return!1;var r=TOTAL_MEMORY;for(TOTAL_MEMORY=Math.max(TOTAL_MEMORY,MIN_TOTAL_MEMORY);TOTAL_MEMORY>2];)TOTAL_MEMORY=TOTAL_MEMORY<=536870912?alignUp(2*TOTAL_MEMORY,e):Math.min(alignUp((3*TOTAL_MEMORY+2147483648)/4,e),t);var n=Module.reallocBuffer(TOTAL_MEMORY);return n&&n.byteLength==TOTAL_MEMORY?(updateGlobalBuffer(n),updateGlobalBufferViews(),!0):(TOTAL_MEMORY=r,!1)}STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0,staticSealed=!1,Module.reallocBuffer||(Module.reallocBuffer=function(e){var t,r;try{ArrayBuffer.transfer?r=ArrayBuffer.transfer(buffer,e):(t=HEAP8,r=new ArrayBuffer(e),new Int8Array(r).set(t))}catch(e){return!1}return!!_emscripten_replace_memory(r)&&r});try{(byteLength=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get))(new ArrayBuffer(4))}catch(e){byteLength=function(e){return e.byteLength}}var TOTAL_STACK=Module.TOTAL_STACK||5242880,TOTAL_MEMORY=Module.TOTAL_MEMORY||67108864;function getTotalMemory(){return TOTAL_MEMORY}if(TOTAL_MEMORY>0]=e.charCodeAt(n);r||(HEAP8[t>>0]=0)}var Math_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_round=Math.round,Math_min=Math.min,Math_max=Math.max,Math_clz32=Math.clz32,Math_trunc=Math.trunc,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){var t;runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled&&(t=dependenciesFulfilled,dependenciesFulfilled=null,t()))}Module.preloadedImages={},Module.preloadedAudios={};var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return String.prototype.startsWith?e.startsWith(dataURIPrefix):0===e.indexOf(dataURIPrefix)}function integrateWasmJS(){var e="libffmpeg.wast",i="libffmpeg.wasm",t="libffmpeg.temp.asm.js",a=("function"==typeof Module.locateFile&&(isDataURI(e)||(e=Module.locateFile(e)),isDataURI(i)||(i=Module.locateFile(i)),isDataURI(t)||(t=Module.locateFile(t))),{global:null,env:null,asm2wasm:asm2wasmImports,parent:Module}),s=null;function u(){try{if(Module.wasmBinary)return new Uint8Array(Module.wasmBinary);if(Module.readBinary)return Module.readBinary(i);throw"on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)"}catch(e){abort(e)}}function l(e,t){if("object"!==("undefined"==typeof WebAssembly?"undefined":_typeof(WebAssembly)))return Module.printErr("no native wasm support detected"),!1;if(!(Module.wasmMemory instanceof WebAssembly.Memory))return Module.printErr("no native wasm Memory in use"),!1;function r(e,t){var r;(s=e.exports).memory&&(e=s.memory,r=Module.buffer,e.byteLength>2],t=HEAP32[r>>2]):(___buildEnvironment.called=!0,ENV.USER=ENV.LOGNAME="web_user",ENV.PATH="/",ENV.PWD="/",ENV.HOME="/home/web_user",ENV.LANG="C.UTF-8",ENV._=Module.thisProgram,t=getMemory(1024),r=getMemory(256),HEAP32[r>>2]=t,HEAP32[e>>2]=r);var t,r,n,o=[],i=0;for(n in ENV)"string"==typeof ENV[n]&&(a=n+"="+ENV[n],o.push(a),i+=a.length);if(1024>2]=t,t+=a.length+1;HEAP32[r+4*o.length>>2]=0}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86},ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function ___setErrNo(e){return Module.___errno_location&&(HEAP32[Module.___errno_location()>>2]=e),e}var PATH={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;0<=n;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=(e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t?e:".")&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var e=PATH.splitPath(e),t=e[0],e=e[1];return t||e?t+(e=e&&e.substr(0,e.length-1)):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+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,t){return PATH.normalize(e+"/"+t)},resolve:function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t="/"===n.charAt(0)}return(t?"/":"")+(e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;te.contents.length&&(e.contents=MEMFS.getFileDataAsRegularArray(e),e.usedBytes=e.contents.length),!e.contents||e.contents.subarray)t<=(r=e.contents?e.contents.length:0)||(t=Math.max(t,r*(r<1048576?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.contents,e.contents=new Uint8Array(t),0t)e.contents.length=t;else for(;e.contents.length=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(assert(0<=a),8r.timestamp)&&(a.push(e),i++)}),[]);if(Object.keys(o.entries).forEach(function(e){o.entries[e];n.entries[e]||(r.push(e),i++)}),!i)return t(null);var s=0,e=("remote"===n.type?n:o).db.transaction([IDBFS.DB_STORE_NAME],"readwrite"),u=e.objectStore(IDBFS.DB_STORE_NAME);function l(e){return e?l.errored?void 0:(l.errored=!0,t(e)):++s>=i?t(null):void 0}e.onerror=function(e){l(this.error),e.preventDefault()},a.sort().forEach(function(r){"local"===o.type?IDBFS.loadRemoteEntry(u,r,function(e,t){if(e)return l(e);IDBFS.storeLocalEntry(r,t,l)}):IDBFS.loadLocalEntry(r,function(e,t){if(e)return l(e);IDBFS.storeRemoteEntry(u,r,t,l)})}),r.sort().reverse().forEach(function(e){"local"===o.type?IDBFS.removeLocalEntry(e,l):IDBFS.removeRemoteEntry(u,e,l)})}},NODEFS={isWindows:!1,staticInit:function(){NODEFS.isWindows=!!process.platform.match(/^win/);var e=process.binding("constants");e.fs&&(e=e.fs),NODEFS.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY}},bufferFrom:function(e){return Buffer.alloc?Buffer.from(e):new Buffer(e)},mount:function(e){return assert(ENVIRONMENT_IS_NODE),NODEFS.createNode(null,"/",NODEFS.getMode(e.opts.root),0)},createNode:function(e,t,r,n){if(!FS.isDir(r)&&!FS.isFile(r)&&!FS.isLink(r))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);e=FS.createNode(e,t,r);return e.node_ops=NODEFS.node_ops,e.stream_ops=NODEFS.stream_ops,e},getMode:function(e){var t;try{t=fs.lstatSync(e),NODEFS.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}return t.mode},realPath:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),PATH.join.apply(null,t)},flagsForNode:function(e){e=-2097153&e&-2049&-32769&-524289;var t,r=0;for(t in NODEFS.flagsForNodeMap)e&t&&(r|=NODEFS.flagsForNodeMap[t],e^=t);if(e)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return r},node_ops:{getattr:function(e){var t,e=NODEFS.realPath(e);try{t=fs.lstatSync(e)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}return NODEFS.isWindows&&!t.blksize&&(t.blksize=4096),NODEFS.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr:function(e,t){var r,n=NODEFS.realPath(e);try{void 0!==t.mode&&(fs.chmodSync(n,t.mode),e.mode=t.mode),void 0!==t.timestamp&&(r=new Date(t.timestamp),fs.utimesSync(n,r,r)),void 0!==t.size&&fs.truncateSync(n,t.size)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},lookup:function(e,t){var r=PATH.join2(NODEFS.realPath(e),t),r=NODEFS.getMode(r);return NODEFS.createNode(e,t,r)},mknod:function(e,t,r,n){e=NODEFS.createNode(e,t,r,n),t=NODEFS.realPath(e);try{FS.isDir(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}return e},rename:function(e,t,r){e=NODEFS.realPath(e),t=PATH.join2(NODEFS.realPath(t),r);try{fs.renameSync(e,t)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},unlink:function(e,t){e=PATH.join2(NODEFS.realPath(e),t);try{fs.unlinkSync(e)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},rmdir:function(e,t){e=PATH.join2(NODEFS.realPath(e),t);try{fs.rmdirSync(e)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},readdir:function(e){e=NODEFS.realPath(e);try{return fs.readdirSync(e)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},symlink:function(e,t,r){e=PATH.join2(NODEFS.realPath(e),t);try{fs.symlinkSync(r,e)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},readlink:function(e){var t=NODEFS.realPath(e);try{return t=fs.readlinkSync(t),NODEJS_PATH.relative(NODEJS_PATH.resolve(e.mount.opts.root),t)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}}},stream_ops:{open:function(e){var t=NODEFS.realPath(e.node);try{FS.isFile(e.node.mode)&&(e.nfd=fs.openSync(t,NODEFS.flagsForNode(e.flags)))}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},close:function(e){try{FS.isFile(e.node.mode)&&e.nfd&&fs.closeSync(e.nfd)}catch(e){if(e.code)throw new FS.ErrnoError(ERRNO_CODES[e.code]);throw e}},read:function(e,t,r,n,o){if(0===n)return 0;try{return fs.readSync(e.nfd,NODEFS.bufferFrom(t.buffer),r,n,o)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}},write:function(e,t,r,n,o){try{return fs.writeSync(e.nfd,NODEFS.bufferFrom(t.buffer),r,n,o)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}},llseek:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&FS.isFile(e.node.mode))try{t+=fs.fstatSync(e.nfd).size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(t<0)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return t}}},WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){assert(ENVIRONMENT_IS_WORKER),WORKERFS.reader||(WORKERFS.reader=new FileReaderSync);var i=WORKERFS.createNode(null,"/",WORKERFS.DIR_MODE,0),a={};function n(e){for(var t=e.split("/"),r=i,n=0;n=e.node.size)return 0;e=e.node.contents.slice(o,o+n),o=WORKERFS.reader.readAsArrayBuffer(e);return t.set(new Uint8Array(o),r),e.size},write:function(e,t,r,n,o){throw new FS.ErrnoError(ERRNO_CODES.EIO)},llseek:function(e,t,r){if(1===r?t+=e.position:2===r&&FS.isFile(e.node.mode)&&(t+=e.node.size),t<0)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return t}}},FS=(STATICTOP=(STATICTOP+=16)+16+16,{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)return ___setErrNo(e.errno);throw e+" : "+stackTrace()},lookupPath:function(e,t){if(t=t||{},!(e=PATH.resolve(FS.cwd(),e)))return{path:"",node:null};var r,n={follow_mount:!0,recurse_count:0};for(r in n)void 0===t[r]&&(t[r]=n[r]);if(8>>0)%FS.nameTable.length},hashAddNode:function(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode:function(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:function(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r,e);for(var r=FS.hashName(e.id,t),n=FS.nameTable[r];n;n=n.name_next){var o=n.name;if(n.parent.id===e.id&&o===t)return n}return FS.lookup(e,t)},createNode:function(e,t,r,n){FS.FSNode||(FS.FSNode=function(e,t,r,n){this.parent=e=e||this,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},FS.FSNode.prototype={},Object.defineProperties(FS.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}));e=new FS.FSNode(e,t,r,n);return FS.hashAddNode(e),e},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 t=FS.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return FS.ignorePermissions||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:ERRNO_CODES.EACCES},mayLookup:function(e){var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:ERRNO_CODES.EACCES)},mayCreate:function(e,t){try{FS.lookupNode(e,t);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}t=FS.nodePermissions(e,"wx");if(t)return t;if(r){if(!FS.isDir(n.mode))return ERRNO_CODES.ENOTDIR;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return ERRNO_CODES.EBUSY}else if(FS.isDir(n.mode))return ERRNO_CODES.EISDIR;return 0},mayOpen:function(e,t){return e?FS.isLink(e.mode)?ERRNO_CODES.ELOOP:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?ERRNO_CODES.EISDIR:FS.nodePermissions(e,FS.flagsToPermissionString(t)):ERRNO_CODES.ENOENT},MAX_OPEN_FDS:4096,nextfd:function(e,t){t=t||FS.MAX_OPEN_FDS;for(var r=e=e||0;r<=t;r++)if(!FS.streams[r])return r;throw new FS.ErrnoError(ERRNO_CODES.EMFILE)},getStream:function(e){return FS.streams[e]},createStream:function(e,t,r){FS.FSStream||(FS.FSStream=function(){},FS.FSStream.prototype={},Object.defineProperties(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 n,o=new FS.FSStream;for(n in e)o[n]=e[n];e=o;t=FS.nextfd(t,r);return e.fd=t,FS.streams[t]=e},closeStream:function(e){FS.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){FS.devices[e]={stream_ops:t}},getDevice:function(e){return FS.devices[e]},getMounts:function(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:function(t,r){"function"==typeof t&&(r=t,t=!1),FS.syncFSRequests++,1=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return a(null);e.type.syncfs(e,t,a)})},mount:function(e,t,r){var n,o="/"===r,i=!r;if(o&&FS.root)throw new FS.ErrnoError(ERRNO_CODES.EBUSY);if(!o&&!i){i=FS.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,FS.isMountpoint(n))throw new FS.ErrnoError(ERRNO_CODES.EBUSY);if(!FS.isDir(n.mode))throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}i={type:e,opts:t,mountpoint:r,mounts:[]},t=e.mount(i);return(t.mount=i).root=t,o?FS.root=t:n&&(n.mounted=i,n.mount&&n.mount.mounts.push(i)),t},unmount:function(e){e=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(e.node))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var e=e.node,t=e.mounted,n=FS.getMounts(t),t=(Object.keys(FS.nameTable).forEach(function(e){for(var t=FS.nameTable[e];t;){var r=t.name_next;-1!==n.indexOf(t.mount)&&FS.destroyNode(t),t=r}}),e.mounted=null,e.mount.mounts.indexOf(t));assert(-1!==t),e.mount.mounts.splice(t,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,e=PATH.basename(e);if(!e||"."===e||".."===e)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var o=FS.mayCreate(n,e);if(o)throw new FS.ErrnoError(o);if(n.node_ops.mknod)return n.node_ops.mknod(n,e,t,r);throw new FS.ErrnoError(ERRNO_CODES.EPERM)},create:function(e,t){return FS.mknod(e,t=(t=void 0!==t?t:438)&4095|32768,0)},mkdir:function(e,t){return FS.mknod(e,t=(t=void 0!==t?t:511)&1023|16384,0)},mkdirTree:function(e,t){for(var r=e.split("/"),n="",o=0;othis.length-1||e<0))return t=e%this.chunkSize,e=e/this.chunkSize|0,this.getter(e)[t]},o.prototype.setDataGetter=function(e){this.getter=e},o.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,n=Number(e.getResponseHeader("Content-length")),r=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,e=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,o=1048576,i=(r||(o=n),this);i.setDataGetter(function(e){var t=e*o,r=(e+1)*o-1,r=Math.min(r,n-1);if(void 0===i.chunks[e]&&(i.chunks[e]=function(e,t){if(t=i.length)return 0;var a=Math.min(i.length-o,n);if(assert(0<=a),i.slice)for(var s=0;s>2]=n.dev,HEAP32[r+4>>2]=0,HEAP32[r+8>>2]=n.ino,HEAP32[r+12>>2]=n.mode,HEAP32[r+16>>2]=n.nlink,HEAP32[r+20>>2]=n.uid,HEAP32[r+24>>2]=n.gid,HEAP32[r+28>>2]=n.rdev,HEAP32[r+32>>2]=0,HEAP32[r+36>>2]=n.size,HEAP32[r+40>>2]=4096,HEAP32[r+44>>2]=n.blocks,HEAP32[r+48>>2]=n.atime.getTime()/1e3|0,HEAP32[r+52>>2]=0,HEAP32[r+56>>2]=n.mtime.getTime()/1e3|0,HEAP32[r+60>>2]=0,HEAP32[r+64>>2]=n.ctime.getTime()/1e3|0,HEAP32[r+68>>2]=0,HEAP32[r+72>>2]=n.ino,0},doMsync:function(e,t,r,n){e=new Uint8Array(HEAPU8.subarray(e,e+r));FS.msync(t,e,0,r,n)},doMkdir:function(e,t){return"/"===(e=PATH.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),FS.mkdir(e,t,0),0},doMknod:function(e,t,r){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-ERRNO_CODES.EINVAL}return FS.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-ERRNO_CODES.EINVAL;var e=FS.readlink(e),n=Math.min(r,lengthBytesUTF8(e)),o=HEAP8[t+n];return stringToUTF8(e,t,r+1),HEAP8[t+n]=o,n},doAccess:function(e,t){if(-8&t)return-ERRNO_CODES.EINVAL;var e=FS.lookupPath(e,{follow:!0}).node,r="";return 4&t&&(r+="r"),2&t&&(r+="w"),1&t&&(r+="x"),r&&FS.nodePermissions(e,r)?-ERRNO_CODES.EACCES:0},doDup:function(e,t,r){var n=FS.getStream(r);return n&&FS.close(n),FS.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var o=0,i=0;i>2],s=HEAP32[t+(8*i+4)>>2],a=FS.read(e,HEAP8,a,s,n);if(a<0)return-1;if(o+=a,a>2],s=HEAP32[t+(8*i+4)>>2],a=FS.write(e,HEAP8,a,s,n);if(a<0)return-1;o+=a}return o},varargs:0,get:function(e){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(){return Pointer_stringify(SYSCALLS.get())},getStreamFromFD:function(){var e=FS.getStream(SYSCALLS.get());if(e)return e;throw new FS.ErrnoError(ERRNO_CODES.EBADF)},getSocketFromFD:function(){var e=SOCKFS.getSocket(SYSCALLS.get());if(e)return e;throw new FS.ErrnoError(ERRNO_CODES.EBADF)},getSocketAddress:function(e){var t=SYSCALLS.get(),r=SYSCALLS.get();if(e&&0===t)return null;e=__read_sockaddr(t,r);if(e.errno)throw new FS.ErrnoError(e.errno);return e.addr=DNS.lookup_addr(e.addr)||e.addr,e},get64:function(){var e=SYSCALLS.get(),t=SYSCALLS.get();return assert(0<=e?0===t:-1===t),e},getZero:function(){assert(0===SYSCALLS.get())}};function ___syscall140(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD(),n=(SYSCALLS.get(),SYSCALLS.get()),o=SYSCALLS.get(),i=SYSCALLS.get(),a=n;return FS.llseek(r,a,i),HEAP32[o>>2]=r.position,r.getdents&&0===a&&0===i&&(r.getdents=null),0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall146(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD(),n=SYSCALLS.get(),o=SYSCALLS.get();return SYSCALLS.doWritev(r,n,o)}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall221(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD();switch(SYSCALLS.get()){case 0:return(n=SYSCALLS.get())<0?-ERRNO_CODES.EINVAL:FS.open(r.path,r.flags,0,n).fd;case 1:case 2:return 0;case 3:return r.flags;case 4:var n=SYSCALLS.get();return r.flags|=n,0;case 12:case 12:n=SYSCALLS.get();return HEAP16[n+0>>1]=2,0;case 13:case 14:case 13:case 14:return 0;case 16:case 8:return-ERRNO_CODES.EINVAL;case 9:return ___setErrNo(ERRNO_CODES.EINVAL),-1;default:return-ERRNO_CODES.EINVAL}}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall3(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD(),n=SYSCALLS.get(),o=SYSCALLS.get();return FS.read(r,HEAP8,n,o)}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall5(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStr(),n=SYSCALLS.get(),o=SYSCALLS.get();return FS.open(r,n,o).fd}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall54(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD(),n=SYSCALLS.get();switch(n){case 21509:case 21505:return r.tty?0:-ERRNO_CODES.ENOTTY;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return r.tty?0:-ERRNO_CODES.ENOTTY;case 21519:if(!r.tty)return-ERRNO_CODES.ENOTTY;var o=SYSCALLS.get();return HEAP32[o>>2]=0;case 21520:return r.tty?-ERRNO_CODES.EINVAL:-ERRNO_CODES.ENOTTY;case 21531:o=SYSCALLS.get();return FS.ioctl(r,n,o);case 21523:case 21524:return r.tty?0:-ERRNO_CODES.ENOTTY;default:abort("bad ioctl syscall "+n)}}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall6(e,t){SYSCALLS.varargs=t;try{var r=SYSCALLS.getStreamFromFD();return FS.close(r),0}catch(e){return void 0!==FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function _abort(){Module.abort()}function _clock(){return void 0===_clock.start&&(_clock.start=Date.now()),1e3*(Date.now()-_clock.start)|0}var _fabs=Math_abs;function _ftime(e){var t=Date.now();return HEAP32[e>>2]=t/1e3|0,HEAP16[e+4>>1]=t%1e3,HEAP16[e+6>>1]=0,HEAP16[e+8>>1]=0}function _getenv(e){return 0===e?0:(e=Pointer_stringify(e),ENV.hasOwnProperty(e)?(_getenv.ret&&_free(_getenv.ret),_getenv.ret=allocateUTF8(ENV[e]),_getenv.ret):0)}function _gettimeofday(e){var t=Date.now();return HEAP32[e>>2]=t/1e3|0,HEAP32[e+4>>2]=t%1e3*1e3|0,0}var ___tm_timezone=allocate(intArrayFromString("GMT"),"i8",ALLOC_STATIC);function _gmtime_r(e,t){var e=new Date(1e3*HEAP32[e>>2]),r=(HEAP32[t>>2]=e.getUTCSeconds(),HEAP32[t+4>>2]=e.getUTCMinutes(),HEAP32[t+8>>2]=e.getUTCHours(),HEAP32[t+12>>2]=e.getUTCDate(),HEAP32[t+16>>2]=e.getUTCMonth(),HEAP32[t+20>>2]=e.getUTCFullYear()-1900,HEAP32[t+24>>2]=e.getUTCDay(),HEAP32[t+36>>2]=0,HEAP32[t+32>>2]=0,Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0)),e=(e.getTime()-r)/864e5|0;return HEAP32[t+28>>2]=e,HEAP32[t+40>>2]=___tm_timezone,t}function _llvm_exp2_f32(e){return Math.pow(2,e)}function _llvm_exp2_f64(){return _llvm_exp2_f32.apply(null,arguments)}function _llvm_log2_f32(e){return Math.log(e)/Math.LN2}var _llvm_trunc_f64=Math_trunc;function _tzset(){var e,t,r,n;function o(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(),e=new Date(2e3,0,1),t=new Date(2e3,6,1),HEAP32[__get_daylight()>>2]=Number(e.getTimezoneOffset()!=t.getTimezoneOffset()),r=o(e),n=o(t),r=allocate(intArrayFromString(r),"i8",ALLOC_NORMAL),n=allocate(intArrayFromString(n),"i8",ALLOC_NORMAL),t.getTimezoneOffset()>2]=r,HEAP32[__get_tzname()+4>>2]=n):(HEAP32[__get_tzname()>>2]=n,HEAP32[__get_tzname()+4>>2]=r))}function _localtime_r(e,t){_tzset();var e=new Date(1e3*HEAP32[e>>2]),r=(HEAP32[t>>2]=e.getSeconds(),HEAP32[t+4>>2]=e.getMinutes(),HEAP32[t+8>>2]=e.getHours(),HEAP32[t+12>>2]=e.getDate(),HEAP32[t+16>>2]=e.getMonth(),HEAP32[t+20>>2]=e.getFullYear()-1900,HEAP32[t+24>>2]=e.getDay(),new Date(e.getFullYear(),0,1)),n=(e.getTime()-r.getTime())/864e5|0,n=(HEAP32[t+28>>2]=n,HEAP32[t+36>>2]=-60*e.getTimezoneOffset(),new Date(2e3,6,1).getTimezoneOffset()),r=r.getTimezoneOffset(),e=0|(n!=r&&e.getTimezoneOffset()==Math.min(r,n)),r=(HEAP32[t+32>>2]=e,HEAP32[__get_tzname()+(e?4:0)>>2]);return HEAP32[t+40>>2]=r,t}function _emscripten_memcpy_big(e,t,r){return HEAPU8.set(HEAPU8.subarray(t,t+r),e),e}function _mktime(e){_tzset();var t=new Date(HEAP32[e+20>>2]+1900,HEAP32[e+16>>2],HEAP32[e+12>>2],HEAP32[e+8>>2],HEAP32[e+4>>2],HEAP32[e>>2],0),r=HEAP32[e+32>>2],n=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),i=new Date(2e3,6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),s=Math.min(a,i),r=(r<0?HEAP32[e+32>>2]=Number(i!=a&&s==n):0>2]=t.getDay(),(t.getTime()-o.getTime())/864e5|0);return HEAP32[e+28>>2]=r,t.getTime()/1e3|0}function _pthread_cond_destroy(){return 0}function _pthread_cond_init(){return 0}function _pthread_cond_signal(){return 0}function _pthread_cond_wait(){return 0}function _pthread_create(){return 11}function _pthread_join(){}function _pthread_mutex_destroy(){}function _pthread_mutex_init(){}function _pthread_once(e,t){_pthread_once.seen||(_pthread_once.seen={}),e in _pthread_once.seen||(Module.dynCall_v(t),_pthread_once.seen[e]=1)}function __isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function __arraySum(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var fs,NODEJS_PATH,__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,t){for(var r=new Date(e.getTime());0n-r.getDate()))return r.setDate(r.getDate()+t),r;t-=n-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function _strftime(e,t,r,n){var o=HEAP32[n+40>>2],i={tm_sec:HEAP32[n>>2],tm_min:HEAP32[n+4>>2],tm_hour:HEAP32[n+8>>2],tm_mday:HEAP32[n+12>>2],tm_mon:HEAP32[n+16>>2],tm_year:HEAP32[n+20>>2],tm_wday:HEAP32[n+24>>2],tm_yday:HEAP32[n+28>>2],tm_isdst:HEAP32[n+32>>2],tm_gmtoff:HEAP32[n+36>>2],tm_zone:o?Pointer_stringify(o):""},a=Pointer_stringify(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(_ in s)a=a.replace(new RegExp(_,"g"),s[_]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.lengtht?0:(writeArrayToMemory(n,e),n.length-1)}function _sysconf(e){switch(e){case 30:return PAGE_SIZE;case 85:return 2147418112/PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"===("undefined"==typeof navigator?"undefined":_typeof(navigator))&&navigator.hardwareConcurrency||1}return ___setErrNo(ERRNO_CODES.EINVAL),-1}function intArrayFromString(e,t,r){r=0>2]=DYNAMIC_BASE,staticSealed=!0,Module.wasmTableSize=3008,Module.wasmMaxTableSize=3008,Module.asmGlobalArg={},Module.asmLibraryArg={abort:abort,enlargeMemory:enlargeMemory,getTotalMemory:getTotalMemory,abortOnCannotGrowMemory:abortOnCannotGrowMemory,jsCall_dd:jsCall_dd,jsCall_did:jsCall_did,jsCall_didd:jsCall_didd,jsCall_fii:jsCall_fii,jsCall_fiii:jsCall_fiii,jsCall_ii:jsCall_ii,jsCall_iii:jsCall_iii,jsCall_iiii:jsCall_iiii,jsCall_iiiii:jsCall_iiiii,jsCall_iiiiii:jsCall_iiiiii,jsCall_iiiiiii:jsCall_iiiiiii,jsCall_iiiiij:jsCall_iiiiij,jsCall_iiiji:jsCall_iiiji,jsCall_jiiij:jsCall_jiiij,jsCall_jiji:jsCall_jiji,jsCall_v:jsCall_v,jsCall_vi:jsCall_vi,jsCall_vii:jsCall_vii,jsCall_viidi:jsCall_viidi,jsCall_viidii:jsCall_viidii,jsCall_viifi:jsCall_viifi,jsCall_viii:jsCall_viii,jsCall_viiii:jsCall_viiii,jsCall_viiiifii:jsCall_viiiifii,jsCall_viiiii:jsCall_viiiii,jsCall_viiiiii:jsCall_viiiiii,jsCall_viiiiiifi:jsCall_viiiiiifi,jsCall_viiiiiii:jsCall_viiiiiii,jsCall_viiiiiiii:jsCall_viiiiiiii,jsCall_viiiiiiiii:jsCall_viiiiiiiii,jsCall_viiiiiiiiii:jsCall_viiiiiiiiii,jsCall_viiiiiiiiiii:jsCall_viiiiiiiiiii,jsCall_viiiiiiiiiiii:jsCall_viiiiiiiiiiii,jsCall_viiiiiiiiiiiiii:jsCall_viiiiiiiiiiiiii,___buildEnvironment:___buildEnvironment,___setErrNo:___setErrNo,___syscall140:___syscall140,___syscall146:___syscall146,___syscall221:___syscall221,___syscall3:___syscall3,___syscall5:___syscall5,___syscall54:___syscall54,___syscall6:___syscall6,_abort:_abort,_clock:_clock,_emscripten_memcpy_big:_emscripten_memcpy_big,_fabs:_fabs,_ftime:_ftime,_getenv:_getenv,_gettimeofday:_gettimeofday,_gmtime_r:_gmtime_r,_llvm_exp2_f64:_llvm_exp2_f64,_llvm_log2_f32:_llvm_log2_f32,_llvm_trunc_f64:_llvm_trunc_f64,_localtime_r:_localtime_r,_mktime:_mktime,_pthread_cond_destroy:_pthread_cond_destroy,_pthread_cond_init:_pthread_cond_init,_pthread_cond_signal:_pthread_cond_signal,_pthread_cond_wait:_pthread_cond_wait,_pthread_create:_pthread_create,_pthread_join:_pthread_join,_pthread_mutex_destroy:_pthread_mutex_destroy,_pthread_mutex_init:_pthread_mutex_init,_pthread_once:_pthread_once,_strftime:_strftime,_sysconf:_sysconf,DYNAMICTOP_PTR:DYNAMICTOP_PTR,STACKTOP:STACKTOP};var initialStackTop,asm=Module.asm(Module.asmGlobalArg,Module.asmLibraryArg,buffer),___emscripten_environ_constructor=(Module.asm=asm,Module.___emscripten_environ_constructor=function(){return Module.asm.___emscripten_environ_constructor.apply(null,arguments)}),___errno_location=Module.___errno_location=function(){return Module.asm.___errno_location.apply(null,arguments)},__get_daylight=Module.__get_daylight=function(){return Module.asm.__get_daylight.apply(null,arguments)},__get_timezone=Module.__get_timezone=function(){return Module.asm.__get_timezone.apply(null,arguments)},__get_tzname=Module.__get_tzname=function(){return Module.asm.__get_tzname.apply(null,arguments)},_closeDecoder=Module._closeDecoder=function(){return Module.asm._closeDecoder.apply(null,arguments)},_decodeOnePacket=Module._decodeOnePacket=function(){return Module.asm._decodeOnePacket.apply(null,arguments)},_emscripten_replace_memory=Module._emscripten_replace_memory=function(){return Module.asm._emscripten_replace_memory.apply(null,arguments)},_free=Module._free=function(){return Module.asm._free.apply(null,arguments)},_initDecoder=Module._initDecoder=function(){return Module.asm._initDecoder.apply(null,arguments)},_malloc=Module._malloc=function(){return Module.asm._malloc.apply(null,arguments)},_openDecoder=Module._openDecoder=function(){return Module.asm._openDecoder.apply(null,arguments)},_seekTo=Module._seekTo=function(){return Module.asm._seekTo.apply(null,arguments)},_sendData=Module._sendData=function(){return Module.asm._sendData.apply(null,arguments)},_uninitDecoder=Module._uninitDecoder=function(){return Module.asm._uninitDecoder.apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return Module.asm.stackAlloc.apply(null,arguments)},dynCall_v=Module.dynCall_v=function(){return Module.asm.dynCall_v.apply(null,arguments)},dynCall_vi=Module.dynCall_vi=function(){return Module.asm.dynCall_vi.apply(null,arguments)};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function run(e){function t(){Module.calledRun||(Module.calledRun=!0,ABORT||(ensureInitRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}e=e||Module.arguments,0