Newer
Older
safe_production_front / public / js-bak / decoder-pro-f-simd-mt.js
dutingting on 8 Apr 210 KB 暂存
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,r=(e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href,async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o;(o=r).ready=new Promise(((e,r)=>{t=e,n=r})),(o=void 0!==o?o:{}).locateFile=function(e,r){return"decoder-pro-f-simd-mt-worker.wasm"==e?"undefined"!=typeof JESSIBUCA_PRO_F_SIMD_MT_WORKER_WASM_URL&&""!=JESSIBUCA_PRO_F_SIMD_MT_WORKER_WASM_URL?JESSIBUCA_PRO_F_SIMD_MT_WORKER_WASM_URL:r+e:"decoder-pro-f-simd-mt-worker.worker.js"==e&&"undefined"!=typeof JESSIBUCA_PRO_F_SIMD_MT_WORKER_JS_URL&&""!=JESSIBUCA_PRO_F_SIMD_MT_WORKER_JS_URL?JESSIBUCA_PRO_F_SIMD_MT_WORKER_JS_URL:r+e};var a,i,s,d=Object.assign({},o),l="./this.program",u=(e,r)=>{throw r},c="object"==typeof window,f="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p=o.ENVIRONMENT_IS_PTHREAD||!1,m="";function g(e){return o.locateFile?o.locateFile(e,m):m+e}if(h){const{createRequire:e}=await import("module");var v=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href),y=v("fs"),w=v("path");let r;m=f?w.dirname(m)+"/":v("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href)),a=(e,r)=>(e=ae(e)?new URL(e):w.normalize(e),y.readFileSync(e,r?void 0:"utf8")),s=e=>{var r=a(e,!0);return r.buffer||(r=new Uint8Array(r)),r},i=function(e,r,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=ae(e)?new URL(e):w.normalize(e),y.readFile(e,n?void 0:"utf8",((e,o)=>{e?t(e):r(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),u=(e,r)=>{throw process.exitCode=e,r},o.inspect=()=>"[Emscripten Module object]";try{r=v("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=r.Worker}else(c||f)&&(f?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h||(a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},f&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)}));h&&"undefined"==typeof performance&&(global.performance=v("perf_hooks").performance);var b=console.log.bind(console),E=console.error.bind(console);h&&(b=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.writeSync(1,r.join(" ")+"\n")},E=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.writeSync(2,r.join(" ")+"\n")});var _,k,S,C=o.print||b,A=o.printErr||E;Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&(u=o.quit),o.wasmBinary&&(_=o.wasmBinary),"object"!=typeof WebAssembly&&Q("no native wasm support detected");var P,T,D,I,F,$,R,M,B,U=!1;function x(e,r){e||Q(r)}function O(){var e=k.buffer;o.HEAP8=T=new Int8Array(e),o.HEAP16=I=new Int16Array(e),o.HEAPU8=D=new Uint8Array(e),o.HEAPU16=F=new Uint16Array(e),o.HEAP32=$=new Int32Array(e),o.HEAPU32=R=new Uint32Array(e),o.HEAPF32=M=new Float32Array(e),o.HEAPF64=B=new Float64Array(e)}var W=o.INITIAL_MEMORY||536870912;if(p)k=o.wasmMemory;else if(o.wasmMemory)k=o.wasmMemory;else if(!((k=new WebAssembly.Memory({initial:W/65536,maximum:W/65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw A("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),h&&A("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");O(),W=k.buffer.byteLength;var j=[],L=[],V=[];function z(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)G(o.preRun.shift());Ze(j)}function H(){p||(o.noFSInit||je.init.initialized||je.init(),je.ignorePermissions=!1,Ze(L))}function N(){if(!p){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)X(o.postRun.shift());Ze(V)}}function G(e){j.unshift(e)}function q(e){L.unshift(e)}function X(e){V.unshift(e)}var K=0,J=null;function Z(e){K++,o.monitorRunDependencies&&o.monitorRunDependencies(K)}function Y(e){if(K--,o.monitorRunDependencies&&o.monitorRunDependencies(K),0==K&&J){var r=J;J=null,r()}}function Q(e){o.onAbort&&o.onAbort(e),A(e="Aborted("+e+")"),U=!0,P=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var ee,re,te,ne="data:application/octet-stream;base64,",oe=e=>e.startsWith(ne),ae=e=>e.startsWith("file://");function ie(e){if(e==ee&&_)return new Uint8Array(_);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function se(e){if(!_&&(c||f)){if("function"==typeof fetch&&!ae(e))return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>ie(e)));if(i)return new Promise(((r,t)=>{i(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>ie(e)))}function de(e,r,t){return se(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{A(`failed to asynchronously prepare wasm: ${e}`),Q(e)}))}function le(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||oe(r)||ae(r)||h||"function"!=typeof fetch?de(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return A(`wasm streaming compile failed: ${e}`),A("falling back to ArrayBuffer instantiation"),de(r,t,n)}))))}function ue(){var e={a:to};function r(e,r){return no=e.exports,ar(no.Y),er=no.$,q(no.T),S=r,Y(),no}if(Z(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){A(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return le(_,ee,e,(function(e){r(e.instance,e.module)})).catch(n),{}}function ce(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}o.locateFile?oe(ee="decoder-pro-f-simd-mt-worker.wasm")||(ee=g(ee)):ee=new URL("decoder-pro-f-simd-mt-worker.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href).href;var fe=e=>{e.terminate(),e.onmessage=e=>{}},he=e=>{var r=Je.pthreads[e];delete Je.pthreads[e],fe(r),ho(e),Je.runningWorkers.splice(Je.runningWorkers.indexOf(r),1),r.pthread_ptr=0},pe=e=>{Je.pthreads[e].postMessage({cmd:"cancel"})},me=e=>{var r=Je.pthreads[e];Je.returnWorkerToPool(r)},ge=e=>{var r=Je.getNewWorker();if(!r)return 6;Je.runningWorkers.push(r),Je.pthreads[e.pthread_ptr]=r,r.pthread_ptr=e.pthread_ptr;var t={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return h&&r.unref(),r.postMessage(t,e.transferList),0},ve=0,ye=()=>or||ve>0,we={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=we.isAbs(e),t="/"===e.substr(-1);return(e=we.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=we.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=we.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return we.normalize(e.join("/"))},join2:(e,r)=>we.normalize(e+"/"+r)},be=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(h)try{var e=v("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}Q("initRandomDevice")},Ee=e=>(Ee=be())(e),_e={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:je.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=we.isAbs(n)}return(r?"/":"")+(e=we.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=_e.resolve(e).substr(1),r=_e.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var d=[];for(s=i;s<n.length;s++)d.push("..");return(d=d.concat(o.slice(i))).join("/")}},ke="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Se=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&ke)return ke.decode(e.buffer instanceof SharedArrayBuffer?e.slice(r,o):e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var d=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Ce=[],Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Pe=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function Te(e,r,t){var n=t>0?t:Ae(e)+1,o=new Array(n),a=Pe(e,o,0,o.length);return r&&(o.length=a),o}var De=()=>{if(!Ce.length){var e=null;if(h){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=y.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;Ce=Te(e,!0)}return Ce.shift()},Ie={ttys:[],init(){},shutdown(){},register(e,r){Ie.ttys[e]={input:[],output:[],ops:r},je.registerDevice(e,Ie.stream_ops)},stream_ops:{open(e){var r=Ie.ttys[e.node.rdev];if(!r)throw new je.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new je.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new je.ErrnoError(29)}if(void 0===s&&0===a)throw new je.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new je.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new je.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>De(),put_char(e,r){null===r||10===r?(C(Se(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(C(Se(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(A(Se(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(A(Se(e.output,0)),e.output=[])}}},Fe=e=>{Q()},$e={ops_table:null,mount:e=>$e.createNode(null,"/",16895,0),createNode(e,r,t,n){if(je.isBlkdev(t)||je.isFIFO(t))throw new je.ErrnoError(63);$e.ops_table||($e.ops_table={dir:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr,lookup:$e.node_ops.lookup,mknod:$e.node_ops.mknod,rename:$e.node_ops.rename,unlink:$e.node_ops.unlink,rmdir:$e.node_ops.rmdir,readdir:$e.node_ops.readdir,symlink:$e.node_ops.symlink},stream:{llseek:$e.stream_ops.llseek}},file:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr},stream:{llseek:$e.stream_ops.llseek,read:$e.stream_ops.read,write:$e.stream_ops.write,allocate:$e.stream_ops.allocate,mmap:$e.stream_ops.mmap,msync:$e.stream_ops.msync}},link:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr,readlink:$e.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr},stream:je.chrdev_stream_ops}});var o=je.createNode(e,r,t,n);return je.isDir(o.mode)?(o.node_ops=$e.ops_table.dir.node,o.stream_ops=$e.ops_table.dir.stream,o.contents={}):je.isFile(o.mode)?(o.node_ops=$e.ops_table.file.node,o.stream_ops=$e.ops_table.file.stream,o.usedBytes=0,o.contents=null):je.isLink(o.mode)?(o.node_ops=$e.ops_table.link.node,o.stream_ops=$e.ops_table.link.stream):je.isChrdev(o.mode)&&(o.node_ops=$e.ops_table.chrdev.node,o.stream_ops=$e.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=je.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,je.isDir(e.mode)?r.size=4096:je.isFile(e.mode)?r.size=e.usedBytes:je.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&$e.resizeFileStorage(e,r.size)},lookup(e,r){throw je.genericErrors[44]},mknod:(e,r,t,n)=>$e.createNode(e,r,t,n),rename(e,r,t){if(je.isDir(e.mode)){var n;try{n=je.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new je.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=je.lookupNode(e,r);for(var n in t.contents)throw new je.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=$e.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!je.isLink(e.mode))throw new je.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if($e.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&je.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new je.ErrnoError(28);return n},allocate(e,r,t){$e.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!je.isFile(e.node.mode))throw new je.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==T.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=Fe()))throw new je.ErrnoError(48);T.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>($e.stream_ops.write(e,r,0,n,t,!1),0)}},Re=(e,r,t,n)=>{var o=n?"":`al ${e}`;i(e,(t=>{x(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&Y()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&Z()},Me=(e,r,t,n,o,a)=>{je.createDataFile(e,r,t,n,o,a)},Be=o.preloadPlugins||[],Ue=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Be.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},xe=(e,r,t,n,o,a,i,s,d,l)=>{var u=r?_e.resolve(we.join2(e,r)):e;function c(t){function c(t){l&&l(),s||Me(e,r,t,n,o,d),a&&a(),Y()}Ue(t,u,c,(()=>{i&&i(),Y()}))||c(t)}Z(),"string"==typeof t?Re(t,(e=>c(e)),i):c(t)},Oe=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},We=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},je={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=_e.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new je.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=je.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=je.lookupNode(n,t[a]),o=we.join2(o,t[a]),je.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;je.isLink(n.mode);){var d=je.readlink(o);if(o=_e.resolve(we.dirname(o),d),n=je.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new je.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(je.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%je.nameTable.length},hashAddNode(e){var r=je.hashName(e.parent.id,e.name);e.name_next=je.nameTable[r],je.nameTable[r]=e},hashRemoveNode(e){var r=je.hashName(e.parent.id,e.name);if(je.nameTable[r]===e)je.nameTable[r]=e.name_next;else for(var t=je.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=je.mayLookup(e);if(t)throw new je.ErrnoError(t,e);for(var n=je.hashName(e.id,r),o=je.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return je.lookup(e,r)},createNode(e,r,t,n){var o=new je.FSNode(e,r,t,n);return je.hashAddNode(o),o},destroyNode(e){je.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>je.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=je.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{return je.lookupNode(e,r),20}catch(e){}return je.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=je.lookupNode(e,r)}catch(e){return e.errno}var o=je.nodePermissions(e,"wx");if(o)return o;if(t){if(!je.isDir(n.mode))return 54;if(je.isRoot(n)||je.getPath(n)===je.cwd())return 10}else if(je.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?je.isLink(e.mode)?32:je.isDir(e.mode)&&("r"!==je.flagsToPermissionString(r)||512&r)?31:je.nodePermissions(e,je.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=je.MAX_OPEN_FDS;e++)if(!je.streams[e])return e;throw new je.ErrnoError(33)},getStreamChecked(e){var r=je.getStream(e);if(!r)throw new je.ErrnoError(8);return r},getStream:e=>je.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return je.FSStream||(je.FSStream=function(){this.shared={}},je.FSStream.prototype={},Object.defineProperties(je.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new je.FSStream,e),-1==r&&(r=je.nextfd()),e.fd=r,je.streams[r]=e,e},closeStream(e){je.streams[e]=null},chrdev_stream_ops:{open(e){var r=je.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new je.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){je.devices[e]={stream_ops:r}},getDevice:e=>je.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),je.syncFSRequests++,je.syncFSRequests>1&&A(`warning: ${je.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=je.getMounts(je.root.mount),n=0;function o(e){return je.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&je.root)throw new je.ErrnoError(10);if(!o&&!a){var i=je.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,je.isMountpoint(n))throw new je.ErrnoError(10);if(!je.isDir(n.mode))throw new je.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},d=e.mount(s);return d.mount=s,s.root=d,o?je.root=d:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),d},unmount(e){var r=je.lookupPath(e,{follow_mount:!1});if(!je.isMountpoint(r.node))throw new je.ErrnoError(28);var t=r.node,n=t.mounted,o=je.getMounts(n);Object.keys(je.nameTable).forEach((e=>{for(var r=je.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&je.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=je.lookupPath(e,{parent:!0}).node,o=we.basename(e);if(!o||"."===o||".."===o)throw new je.ErrnoError(28);var a=je.mayCreate(n,o);if(a)throw new je.ErrnoError(a);if(!n.node_ops.mknod)throw new je.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,je.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,je.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{je.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,je.mknod(e,r,t)),symlink(e,r){if(!_e.resolve(e))throw new je.ErrnoError(44);var t=je.lookupPath(r,{parent:!0}).node;if(!t)throw new je.ErrnoError(44);var n=we.basename(r),o=je.mayCreate(t,n);if(o)throw new je.ErrnoError(o);if(!t.node_ops.symlink)throw new je.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=we.dirname(e),a=we.dirname(r),i=we.basename(e),s=we.basename(r);if(t=je.lookupPath(e,{parent:!0}).node,n=je.lookupPath(r,{parent:!0}).node,!t||!n)throw new je.ErrnoError(44);if(t.mount!==n.mount)throw new je.ErrnoError(75);var d,l=je.lookupNode(t,i),u=_e.relative(e,a);if("."!==u.charAt(0))throw new je.ErrnoError(28);if("."!==(u=_e.relative(r,o)).charAt(0))throw new je.ErrnoError(55);try{d=je.lookupNode(n,s)}catch(e){}if(l!==d){var c=je.isDir(l.mode),f=je.mayDelete(t,i,c);if(f)throw new je.ErrnoError(f);if(f=d?je.mayDelete(n,s,c):je.mayCreate(n,s))throw new je.ErrnoError(f);if(!t.node_ops.rename)throw new je.ErrnoError(63);if(je.isMountpoint(l)||d&&je.isMountpoint(d))throw new je.ErrnoError(10);if(n!==t&&(f=je.nodePermissions(t,"w")))throw new je.ErrnoError(f);je.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{je.hashAddNode(l)}}},rmdir(e){var r=je.lookupPath(e,{parent:!0}).node,t=we.basename(e),n=je.lookupNode(r,t),o=je.mayDelete(r,t,!0);if(o)throw new je.ErrnoError(o);if(!r.node_ops.rmdir)throw new je.ErrnoError(63);if(je.isMountpoint(n))throw new je.ErrnoError(10);r.node_ops.rmdir(r,t),je.destroyNode(n)},readdir(e){var r=je.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new je.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=je.lookupPath(e,{parent:!0}).node;if(!r)throw new je.ErrnoError(44);var t=we.basename(e),n=je.lookupNode(r,t),o=je.mayDelete(r,t,!1);if(o)throw new je.ErrnoError(o);if(!r.node_ops.unlink)throw new je.ErrnoError(63);if(je.isMountpoint(n))throw new je.ErrnoError(10);r.node_ops.unlink(r,t),je.destroyNode(n)},readlink(e){var r=je.lookupPath(e).node;if(!r)throw new je.ErrnoError(44);if(!r.node_ops.readlink)throw new je.ErrnoError(28);return _e.resolve(je.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=je.lookupPath(e,{follow:!r}).node;if(!t)throw new je.ErrnoError(44);if(!t.node_ops.getattr)throw new je.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>je.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?je.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new je.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){je.chmod(e,r,!0)},fchmod(e,r){var t=je.getStreamChecked(e);je.chmod(t.node,r)},chown(e,r,t,n){var o;if(!(o="string"==typeof e?je.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new je.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){je.chown(e,r,t,!0)},fchown(e,r,t){var n=je.getStreamChecked(e);je.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new je.ErrnoError(28);var t;if(!(t="string"==typeof e?je.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new je.ErrnoError(63);if(je.isDir(t.mode))throw new je.ErrnoError(31);if(!je.isFile(t.mode))throw new je.ErrnoError(28);var n=je.nodePermissions(t,"w");if(n)throw new je.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=je.getStreamChecked(e);if(0==(2097155&t.flags))throw new je.ErrnoError(28);je.truncate(t.node,r)},utime(e,r,t){var n=je.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new je.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Oe(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=we.normalize(e);try{n=je.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new je.ErrnoError(20)}else n=je.mknod(e,t,0),a=!0;if(!n)throw new je.ErrnoError(44);if(je.isChrdev(n.mode)&&(r&=-513),65536&r&&!je.isDir(n.mode))throw new je.ErrnoError(54);if(!a){var i=je.mayOpen(n,r);if(i)throw new je.ErrnoError(i)}512&r&&!a&&je.truncate(n,0),r&=-131713;var s=je.createStream({node:n,path:je.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(je.readFiles||(je.readFiles={}),e in je.readFiles||(je.readFiles[e]=1)),s},close(e){if(je.isClosed(e))throw new je.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{je.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(je.isClosed(e))throw new je.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new je.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new je.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(1==(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.read)throw new je.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new je.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(0==(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.write)throw new je.ErrnoError(28);e.seekable&&1024&e.flags&&je.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new je.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(je.isClosed(e))throw new je.ErrnoError(8);if(r<0||t<=0)throw new je.ErrnoError(28);if(0==(2097155&e.flags))throw new je.ErrnoError(8);if(!je.isFile(e.node.mode)&&!je.isDir(e.node.mode))throw new je.ErrnoError(43);if(!e.stream_ops.allocate)throw new je.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new je.ErrnoError(2);if(1==(2097155&e.flags))throw new je.ErrnoError(2);if(!e.stream_ops.mmap)throw new je.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new je.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=je.open(e,r.flags),o=je.stat(e).size,a=new Uint8Array(o);return je.read(n,a,0,o,0),"utf8"===r.encoding?t=Se(a,0):"binary"===r.encoding&&(t=a),je.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=je.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(Ae(r)+1),a=Pe(r,o,0,o.length);je.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");je.write(n,r,0,r.byteLength,void 0,t.canOwn)}je.close(n)},cwd:()=>je.currentPath,chdir(e){var r=je.lookupPath(e,{follow:!0});if(null===r.node)throw new je.ErrnoError(44);if(!je.isDir(r.node.mode))throw new je.ErrnoError(54);var t=je.nodePermissions(r.node,"x");if(t)throw new je.ErrnoError(t);je.currentPath=r.path},createDefaultDirectories(){je.mkdir("/tmp"),je.mkdir("/home"),je.mkdir("/home/web_user")},createDefaultDevices(){je.mkdir("/dev"),je.registerDevice(je.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),je.mkdev("/dev/null",je.makedev(1,3)),Ie.register(je.makedev(5,0),Ie.default_tty_ops),Ie.register(je.makedev(6,0),Ie.default_tty1_ops),je.mkdev("/dev/tty",je.makedev(5,0)),je.mkdev("/dev/tty1",je.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=Ee(e).byteLength),e[--r]);je.createDevice("/dev","random",t),je.createDevice("/dev","urandom",t),je.mkdir("/dev/shm"),je.mkdir("/dev/shm/tmp")},createSpecialDirectories(){je.mkdir("/proc");var e=je.mkdir("/proc/self");je.mkdir("/proc/self/fd"),je.mount({mount(){var r=je.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=je.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?je.createDevice("/dev","stdin",o.stdin):je.symlink("/dev/tty","/dev/stdin"),o.stdout?je.createDevice("/dev","stdout",null,o.stdout):je.symlink("/dev/tty","/dev/stdout"),o.stderr?je.createDevice("/dev","stderr",null,o.stderr):je.symlink("/dev/tty1","/dev/stderr"),je.open("/dev/stdin",0),je.open("/dev/stdout",1),je.open("/dev/stderr",1)},ensureErrnoError(){je.ErrnoError||(je.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},je.ErrnoError.prototype=new Error,je.ErrnoError.prototype.constructor=je.ErrnoError,[44].forEach((e=>{je.genericErrors[e]=new je.ErrnoError(e),je.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){je.ensureErrnoError(),je.nameTable=new Array(4096),je.mount($e,{},"/"),je.createDefaultDirectories(),je.createDefaultDevices(),je.createSpecialDirectories(),je.filesystems={MEMFS:$e}},init(e,r,t){je.init.initialized=!0,je.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,je.createStandardStreams()},quit(){je.init.initialized=!1;for(var e=0;e<je.streams.length;e++){var r=je.streams[e];r&&je.close(r)}},findObject(e,r){var t=je.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=je.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=je.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=we.basename(e),n=je.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:je.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=we.join2(e,a);try{je.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=we.join2("string"==typeof e?e:je.getPath(e),r),i=We(n,o);return je.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:je.getPath(e),i=r?we.join2(e,r):e);var s=We(n,o),d=je.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),u=0,c=t.length;u<c;++u)l[u]=t.charCodeAt(u);t=l}je.chmod(d,146|s);var f=je.open(d,577);je.write(f,t,0,t.length,0,a),je.close(f),je.chmod(d,s)}},createDevice(e,r,t,n){var o=we.join2("string"==typeof e?e:je.getPath(e),r),a=We(!!t,!!n);je.createDevice.major||(je.createDevice.major=64);var i=je.makedev(je.createDevice.major++,0);return je.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var d;try{d=t()}catch(e){throw new je.ErrnoError(29)}if(void 0===d&&0===i)throw new je.ErrnoError(6);if(null==d)break;i++,r[n+s]=d}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new je.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),je.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Te(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new je.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Te(o.responseText||"",!0)})(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,C("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!f)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var d=je.createFile(e,r,s,n,o);s.contents?d.contents=s.contents:s.url&&(d.contents=null,d.url=s.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function u(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var r=d.stream_ops[e];l[e]=function(){return je.forceLoadFile(d),r.apply(null,arguments)}})),l.read=(e,r,t,n,o)=>(je.forceLoadFile(d),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{je.forceLoadFile(d);var a=Fe();if(!a)throw new je.ErrnoError(48);return u(e,T,a,r,t),{ptr:a,allocated:!0}},d.stream_ops=l,d}},Le=(e,r)=>e?Se(D,e,r):"",Ve={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(we.isAbs(r))return r;var n;if(n=-100===e?je.cwd():Ve.getStreamFromFD(e).path,0==r.length){if(!t)throw new je.ErrnoError(44);return n}return we.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&we.normalize(r)!==we.normalize(je.getPath(e.node)))return-54;throw e}$[t>>2]=n.dev,$[t+4>>2]=n.mode,R[t+8>>2]=n.nlink,$[t+12>>2]=n.uid,$[t+16>>2]=n.gid,$[t+20>>2]=n.rdev,te=[n.size>>>0,(re=n.size,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+24>>2]=te[0],$[t+28>>2]=te[1],$[t+32>>2]=4096,$[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return te=[Math.floor(o/1e3)>>>0,(re=Math.floor(o/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+40>>2]=te[0],$[t+44>>2]=te[1],R[t+48>>2]=o%1e3*1e3,te=[Math.floor(a/1e3)>>>0,(re=Math.floor(a/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+56>>2]=te[0],$[t+60>>2]=te[1],R[t+64>>2]=a%1e3*1e3,te=[Math.floor(i/1e3)>>>0,(re=Math.floor(i/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+72>>2]=te[0],$[t+76>>2]=te[1],R[t+80>>2]=i%1e3*1e3,te=[n.ino>>>0,(re=n.ino,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+88>>2]=te[0],$[t+92>>2]=te[1],0},doMsync(e,r,t,n,o){if(!je.isFile(r.node.mode))throw new je.ErrnoError(43);if(2&n)return 0;var a=D.slice(e,e+t);je.msync(r,a,o,t,n)},varargs:void 0,get(){var e=$[+Ve.varargs>>2];return Ve.varargs+=4,e},getp:()=>Ve.get(),getStr:e=>Le(e),getStreamFromFD:e=>je.getStreamChecked(e)},ze=e=>{var r=vo(),t=e();return yo(r),t},He=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,Ne=function(e,r){var t=arguments.length-2,n=arguments;return ze((()=>{for(var o=t,a=wo(8*o),i=a>>3,s=0;s<t;s++){var d=n[2+s];B[i+s]=d}return fo(e,o,a,r)}))};function Ge(e){if(p)return Ne(0,1,e);P=e,ye()||(Je.terminateAllThreads(),o.onExit&&o.onExit(e),U=!0),u(e,new ce(e))}var qe=(e,r)=>{if(P=e,p)throw Qe(e),"unwind";Ge(e)},Xe=qe,Ke=e=>{if(e instanceof ce||"unwind"==e)return P;u(1,e)},Je={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){p?Je.initWorker():Je.initMainThread()},initMainThread(){for(var e=4;e--;)Je.allocateUnusedWorker();G((()=>{Z(),Je.loadWasmModuleToAllWorkers((()=>Y()))}))},initWorker(){or=!1},setExitStatus:e=>{P=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Je.runningWorkers)fe(e);for(var e of Je.unusedWorkers)fe(e);Je.unusedWorkers=[],Je.runningWorkers=[],Je.pthreads=[]},returnWorkerToPool:e=>{var r=e.pthread_ptr;delete Je.pthreads[r],Je.unusedWorkers.push(e),Je.runningWorkers.splice(Je.runningWorkers.indexOf(e),1),e.pthread_ptr=0,ho(r)},receiveObjectTransfer(e){},threadInitTLS(){Je.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((r=>{e.onmessage=t=>{var n=t.data,a=n.cmd;if(n.targetThread&&n.targetThread!=io()){var i=Je.pthreads[n.targetThread];i?i.postMessage(n,n.transferList):A(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===a?dn():"spawnThread"===a?ge(n):"cleanupThread"===a?me(n.thread):"killThread"===a?he(n.thread):"cancelThread"===a?pe(n.thread):"loaded"===a?(e.loaded=!0,h&&!e.pthread_ptr&&e.unref(),r(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?o[n.handler](...n.args):a&&A(`worker sent an unknown command ${a}`)},e.onerror=e=>{throw A(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},h&&(e.on("message",(r=>e.onmessage({data:r}))),e.on("error",(r=>e.onerror(r))));var t=[];for(var n of["onExit","onAbort","print","printErr"])o.hasOwnProperty(n)&&t.push(n);e.postMessage({cmd:"load",handlers:t,urlOrBlob:o.mainScriptUrlOrBlob,wasmMemory:k,wasmModule:S})})),loadWasmModuleToAllWorkers(e){if(p)return e();Promise.all(Je.unusedWorkers.map(Je.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(o.locateFile){var r=g("decoder-pro-f-simd-mt-worker.worker.js");e=new Worker(r,{type:"module"})}else e=new Worker(new URL("decoder-pro-f-simd-mt-worker.worker.js","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href),{type:"module"});Je.unusedWorkers.push(e)},getNewWorker:()=>(0==Je.unusedWorkers.length&&(Je.allocateUnusedWorker(),Je.loadWasmModuleToWorker(Je.unusedWorkers[0])),Je.unusedWorkers.pop())};o.PThread=Je;var Ze=e=>{for(;e.length>0;)e.shift()(o)},Ye=()=>{var e=io(),r=R[e+52>>2],t=R[e+56>>2];go(r,r-t),yo(r)};function Qe(e){if(p)return Ne(1,0,e);Xe(e)}o.establishStackSpace=Ye;var er,rr=[],tr=e=>{var r=rr[e];return r||(e>=rr.length&&(rr.length=e+1),rr[e]=r=er.get(e)),r},nr=(e,r)=>{!function(e){ye()?Je.setExitStatus(e):po(e)}(tr(e)(r))};o.invokeEntryPoint=nr;var or=o.noExitRuntime||!0,ar=e=>{Je.tlsInitFunctions.push(e)},ir=(e,r,t,n)=>{Q(`Assertion failed: ${Le(e)}, at: `+[r?Le(r):"unknown filename",t,n?Le(n):"unknown function"])};function sr(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){R[this.ptr+4>>2]=e},this.get_type=function(){return R[this.ptr+4>>2]},this.set_destructor=function(e){R[this.ptr+8>>2]=e},this.get_destructor=function(){return R[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,T[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=T[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,T[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=T[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){R[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return R[this.ptr+16>>2]},this.get_exception_ptr=function(){if(bo(this.get_type()))return R[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var dr=(e,r,t)=>{throw new sr(e).init(r,t),e},lr=e=>{uo(e,!f,1,!c,16777216,!1),Je.threadInitTLS()},ur=e=>{p?postMessage({cmd:"cleanupThread",thread:e}):me(e)};function cr(e,r,t,n){return p?Ne(2,1,e,r,t,n):fr(e,r,t,n)}var fr=(e,r,t,n)=>{if("undefined"==typeof SharedArrayBuffer)return A("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(p&&0===o.length)return cr(e,r,t,n);var a={startRoutine:t,pthread_ptr:e,arg:n,transferList:o};return p?(a.cmd="spawnThread",postMessage(a,o),0):ge(a)},hr=e=>($[so()>>2]=e,e);function pr(e,r,t){if(p)return Ne(3,1,e,r,t);Ve.varargs=t;try{var n=Ve.getStreamFromFD(e);switch(r){case 0:if((o=Ve.get())<0)return-28;for(;je.streams[o];)o++;return je.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Ve.get();return n.flags|=o,0;case 5:return o=Ve.getp(),I[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return hr(28),-1}}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}}function mr(e,r,t,n){if(p)return Ne(4,1,e,r,t,n);Ve.varargs=n;try{r=Ve.getStr(r),r=Ve.calculateAt(e,r);var o=n?Ve.get():0;return je.open(r,t,o).fd}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}}var gr,vr,yr,wr=(e,r,t,n,o)=>{},br=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);gr=e},Er=e=>{for(var r="",t=e;D[t];)r+=gr[D[t++]];return r},_r={},kr={},Sr={},Cr=e=>{throw new vr(e)},Ar=e=>{throw new yr(e)},Pr=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ar("Mismatched type converter count");for(var o=0;o<e.length;++o)Dr(e[o],n[o])}e.forEach((function(e){Sr[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{kr.hasOwnProperty(e)?o[r]=kr[e]:(a.push(e),_r.hasOwnProperty(e)||(_r[e]=[]),_r[e].push((()=>{o[r]=kr[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Tr(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||Cr(`type "${n}" must have a positive integer typeid pointer`),kr.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Cr(`Cannot register type '${n}' twice`)}if(kr[e]=r,delete Sr[e],_r.hasOwnProperty(e)){var o=_r[e];delete _r[e],o.forEach((e=>e()))}}function Dr(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Tr(e,r,t)}var Ir,Fr=8,$r=(e,r,t,n)=>{Dr(e,{name:r=Er(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Fr,readValueFromPointer:function(e){return this.fromWireType(D[e])},destructorFunction:null})},Rr=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Mr=e=>{Cr(e.$$.ptrType.registeredClass.name+" instance already deleted")},Br=!1,Ur=e=>{},xr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Or=e=>{e.count.value-=1,0===e.count.value&&xr(e)},Wr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=Wr(e,r,t.baseClass);return null===n?null:t.downcast(n)},jr={},Lr=()=>Object.keys(qr).length,Vr=()=>{var e=[];for(var r in qr)qr.hasOwnProperty(r)&&e.push(qr[r]);return e},zr=[],Hr=()=>{for(;zr.length;){var e=zr.pop();e.$$.deleteScheduled=!1,e.delete()}},Nr=e=>{Ir=e,zr.length&&Ir&&Ir(Hr)},Gr=()=>{o.getInheritedInstanceCount=Lr,o.getLiveInheritedInstances=Vr,o.flushPendingDeletes=Hr,o.setDelayFunction=Nr},qr={},Xr=(e,r)=>{for(void 0===r&&Cr("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},Kr=(e,r)=>(r=Xr(e,r),qr[r]),Jr=(e,r)=>(r.ptrType&&r.ptr||Ar("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&Ar("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Yr(Object.create(e,{$$:{value:r}})));function Zr(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=Kr(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?Jr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):Jr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=jr[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=Wr(r,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?Jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):Jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var Yr=e=>"undefined"==typeof FinalizationRegistry?(Yr=e=>e,e):(Br=new FinalizationRegistry((e=>{Or(e.$$)})),Yr=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Br.register(e,t,e)}return e},Ur=e=>Br.unregister(e),Yr(e)),Qr=()=>{Object.assign(et.prototype,{isAliasOf(e){if(!(this instanceof et))return!1;if(!(e instanceof et))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||Mr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Yr(Object.create(Object.getPrototypeOf(this),{$$:{value:Rr(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Mr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Cr("Object already scheduled for deletion"),Ur(this),Or(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Mr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Cr("Object already scheduled for deletion"),zr.push(this),1===zr.length&&Ir&&Ir(Hr),this.$$.deleteScheduled=!0,this}})};function et(){}var rt=(e,r)=>Object.defineProperty(r,"name",{value:e}),tt=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Cr(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},nt=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Cr(`Cannot register public name '${e}' twice`),tt(o,e,e),o.hasOwnProperty(t)&&Cr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},ot=48,at=57,it=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=ot&&r<=at?`_${e}`:e};function st(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var dt=(e,r,t)=>{for(;r!==t;)r.upcast||Cr(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function lt(e,r){if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return dt(r.$$.ptr,t,this.registeredClass)}function ut(e,r){var t;if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Cr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=dt(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Cr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Cr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,Ot.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:Cr("Unsupporting sharing policy")}return t}function ct(e,r){if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Cr(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return dt(r.$$.ptr,t,this.registeredClass)}function ft(e){return this.fromWireType(R[e>>2])}var ht=()=>{Object.assign(pt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Fr,readValueFromPointer:ft,deleteObject(e){null!==e&&e.delete()},fromWireType:Zr})};function pt(e,r,t,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=ut:n?(this.toWireType=lt,this.destructorFunction=null):(this.toWireType=ct,this.destructorFunction=null)}var mt,gt=(e,r,t)=>{o.hasOwnProperty(e)||Ar("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},vt=(e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},yt=(e,r,t)=>e.includes("j")?vt(e,r,t):tr(r).apply(null,t),wt=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),yt(e,r,t)}},bt=(e,r)=>{var t=(e=Er(e)).includes("j")?wt(e,r):tr(r);return"function"!=typeof t&&Cr(`unknown function pointer with signature ${e}: ${r}`),t},Et=(e,r)=>{var t=rt(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},_t=e=>{var r=lo(e),t=Er(r);return oo(r),t},kt=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||kr[r]||(Sr[r]?Sr[r].forEach(e):(t.push(r),n[r]=!0))})),new mt(`${e}: `+t.map(_t).join([", "]))},St=(e,r,t,n,o,a,i,s,d,l,u,c,f)=>{u=Er(u),a=bt(o,a),s&&(s=bt(i,s)),l&&(l=bt(d,l)),f=bt(c,f);var h=it(u);nt(h,(function(){kt(`Cannot construct ${u} due to unbound types`,[n])})),Pr([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:et.prototype;var i=rt(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new vr("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new vr(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new vr(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new st(u,i,d,f,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new pt(u,c,!0,!1,!1),m=new pt(u+"*",c,!1,!1,!1),g=new pt(u+" const*",c,!1,!0,!1);return jr[e]={pointerType:m,constPointerType:g},gt(h,i),[p,m,g]}))},Ct=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(R[r+4*n>>2]);return t},At=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Pt(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=rt(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Tt(e,r,t,n,o,a){var i=r.length;i<2&&Cr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,d=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){d=!0;break}var u="void"!==r[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(h+="var destructors = [];\n");var p=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Cr,n,o,At,r[0],r[1]];for(s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n"),l=0;l<i-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+p+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),g.push(r[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)h+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[l].name+"\n",m.push(v+"_dtor"),g.push(r[l].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Pt(Function,m).apply(null,g);return rt(e,y)}var Dt=(e,r,t,n,o,a)=>{var i=Ct(r,t);o=bt(n,o),Pr([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new vr(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{kt(`Cannot construct ${e.name} due to unbound types`,i)},Pr([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Tt(t,n,null,o,a),[]))),[]}))},It=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Ft=(e,r,t,n,o,a,i,s,d)=>{var l=Ct(t,n);r=Er(r),r=It(r),a=bt(o,a),Pr([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){kt(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(tt(u,r,n),u[r].overloadTable[t-2]=o),Pr([],l,(function(o){var s=Tt(n,o,e,a,i,d);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function $t(){Object.assign(Rt.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Rt(){this.allocated=[void 0],this.freelist=[]}var Mt=new Rt,Bt=e=>{e>=Mt.reserved&&0==--Mt.get(e).refcount&&Mt.free(e)},Ut=()=>{for(var e=0,r=Mt.reserved;r<Mt.allocated.length;++r)void 0!==Mt.allocated[r]&&++e;return e},xt=()=>{Mt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Mt.reserved=Mt.allocated.length,o.count_emval_handles=Ut},Ot={toValue:e=>(e||Cr("Cannot use deleted val. handle = "+e),Mt.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Mt.allocate({refcount:1,value:e})}}};function Wt(e){return this.fromWireType($[e>>2])}var jt=(e,r)=>{Dr(e,{name:r=Er(r),fromWireType:e=>{var r=Ot.toValue(e);return Bt(e),r},toWireType:(e,r)=>Ot.toHandle(r),argPackAdvance:Fr,readValueFromPointer:Wt,destructorFunction:null})},Lt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Vt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(M[e>>2])};case 8:return function(e){return this.fromWireType(B[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},zt=(e,r,t)=>{Dr(e,{name:r=Er(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Fr,readValueFromPointer:Vt(r,t),destructorFunction:null})},Ht=(e,r,t)=>{switch(r){case 1:return t?e=>T[e>>0]:e=>D[e>>0];case 2:return t?e=>I[e>>1]:e=>F[e>>1];case 4:return t?e=>$[e>>2]:e=>R[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Nt=(e,r,t,n,o)=>{r=Er(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");Dr(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:Fr,readValueFromPointer:Ht(r,t,0!==n),destructorFunction:null})},Gt=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=R[e>>2],t=R[e+4>>2];return new n(T.buffer,t,r)}Dr(e,{name:t=Er(t),fromWireType:o,argPackAdvance:Fr,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},qt=(e,r,t)=>Pe(e,D,r,t),Xt=(e,r)=>{var t="std::string"===(r=Er(r));Dr(e,{name:r,fromWireType(e){var r,n=R[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==D[s]){var d=Le(a,s-a);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(D[o+i]);r=l.join("")}return oo(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Cr("Cannot pass non-string to std::string"),n=t&&o?Ae(r):r.length;var a=ao(4+n+1),i=a+4;if(R[a>>2]=n,t&&o)qt(r,i,n+1);else if(o)for(var s=0;s<n;++s){var d=r.charCodeAt(s);d>255&&(oo(i),Cr("String has UTF-16 code units that do not fit in 8 bits")),D[i+s]=d}else for(s=0;s<n;++s)D[i+s]=r[s];return null!==e&&e.push(oo,a),a},argPackAdvance:Fr,readValueFromPointer:ft,destructorFunction(e){oo(e)}})},Kt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Jt=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&F[n];)++n;if((t=n<<1)-e>32&&Kt)return Kt.decode(D.slice(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=I[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Zt=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);I[r>>1]=i,r+=2}return I[r>>1]=0,r-n},Yt=e=>2*e.length,Qt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=$[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},en=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),$[r>>2]=i,(r+=4)+4>o)break}return $[r>>2]=0,r-n},rn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},tn=(e,r,t)=>{var n,o,a,i,s;t=Er(t),2===r?(n=Jt,o=Zt,i=Yt,a=()=>F,s=1):4===r&&(n=Qt,o=en,i=rn,a=()=>R,s=2),Dr(e,{name:t,fromWireType:e=>{for(var t,o=R[e>>2],i=a(),d=e+4,l=0;l<=o;++l){var u=e+4+l*r;if(l==o||0==i[u>>s]){var c=n(d,u-d);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),d=u+r}}return oo(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Cr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),d=ao(4+a+r);return R[d>>2]=a>>s,o(n,d+4,a+r),null!==e&&e.push(oo,d),d},argPackAdvance:Fr,readValueFromPointer:Wt,destructorFunction(e){oo(e)}})},nn=(e,r)=>{Dr(e,{isVoid:!0,name:r=Er(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},on=()=>{if(!ye())try{p?po(P):Xe(P)}catch(e){Ke(e)}},an=e=>{if(!U)try{e(),on()}catch(e){Ke(e)}},sn=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync($,e>>2,e).value.then(dn);var r=e+128;Atomics.store($,r>>2,1)}};o.__emscripten_thread_mailbox_await=sn;var dn=()=>{var e=io();e&&(sn(e),an(mo))};o.checkMailbox=dn;var ln=(e,r,t)=>{if(e==r)setTimeout((()=>dn()));else if(p)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=Je.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},un=[],cn=(e,r,t,n)=>{un.length=t;for(var o=n>>3,a=0;a<t;a++)un[a]=B[o+a];var i=ro[e];Je.currentProxiedOperationCallerThread=r;var s=i.apply(null,un);return Je.currentProxiedOperationCallerThread=0,s},fn=e=>{h&&Je.pthreads[e].ref()},hn={},pn=e=>{var r=hn[e];return void 0===r?Er(e):r},mn=[],gn=(e,r,t,n,o)=>(e=mn[e])(r=Ot.toValue(r),r[t=pn(t)],n,o),vn=e=>{var r=mn.length;return mn.push(e),r},yn=(e,r)=>{var t=kr[e];return void 0===t&&Cr(r+" has unknown type "+_t(e)),t},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=yn(R[r+4*n>>2],"parameter "+n);return t},bn=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(R[r>>2]=Ot.toHandle(n)),o},En=(e,r,t)=>{var n=wn(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;for(a+=`  var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push(bn),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=Pt(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return vn(rt(f,c))},_n=e=>{var r=Ot.toValue(e);At(r),Bt(e)},kn=e=>e%4==0&&(e%100!=0||e%400==0),Sn=[0,31,60,91,121,152,182,213,244,274,305,335],Cn=[0,31,59,90,120,151,181,212,243,273,304,334],An=e=>(kn(e.getFullYear())?Sn:Cn)[e.getMonth()]+e.getDate()-1;function Pn(e,r,t){var n=He(e,r),o=new Date(1e3*n);$[t>>2]=o.getSeconds(),$[t+4>>2]=o.getMinutes(),$[t+8>>2]=o.getHours(),$[t+12>>2]=o.getDate(),$[t+16>>2]=o.getMonth(),$[t+20>>2]=o.getFullYear()-1900,$[t+24>>2]=o.getDay();var a=0|An(o);$[t+28>>2]=a,$[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=i.getTimezoneOffset(),l=0|(s!=d&&o.getTimezoneOffset()==Math.min(d,s));$[t+32>>2]=l}var Tn,Dn=e=>{var r=Ae(e)+1,t=ao(r);return t&&qt(e,t,r),t},In=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),d=Math.max(i,s);function l(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}R[e>>2]=60*d,$[r>>2]=Number(i!=s);var u=l(o),c=l(a),f=Dn(u),h=Dn(c);s<i?(R[t>>2]=f,R[t+4>>2]=h):(R[t>>2]=h,R[t+4>>2]=f)},Fn=()=>{Q("")},$n=()=>{},Rn=()=>Date.now(),Mn=()=>{ve+=1},Bn=()=>{throw Mn(),"unwind"};Tn=()=>performance.timeOrigin+performance.now();var Un=()=>h?v("os").cpus().length:navigator.hardwareConcurrency,xn=e=>{Q("OOM")},On=e=>{D.length,xn()},Wn={},jn=()=>l||"./this.program",Ln=()=>{if(!Ln.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",_:jn()};for(var r in Wn)void 0===Wn[r]?delete e[r]:e[r]=Wn[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Ln.strings=t}return Ln.strings},Vn=(e,r)=>{for(var t=0;t<e.length;++t)T[r++>>0]=e.charCodeAt(t);T[r>>0]=0},zn=function(e,r){if(p)return Ne(5,1,e,r);var t=0;return Ln().forEach(((n,o)=>{var a=r+t;R[e+4*o>>2]=a,Vn(n,a),t+=n.length+1})),0},Hn=function(e,r){if(p)return Ne(6,1,e,r);var t=Ln();R[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),R[r>>2]=n,0};function Nn(e){if(p)return Ne(7,1,e);try{var r=Ve.getStreamFromFD(e);return je.close(r),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}function Gn(e,r){if(p)return Ne(8,1,e,r);try{var t=Ve.getStreamFromFD(e),n=t.tty?2:je.isDir(t.mode)?3:je.isLink(t.mode)?7:4;return T[r>>0]=n,I[r+2>>1]=0,te=[0,(re=0,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[r+8>>2]=te[0],$[r+12>>2]=te[1],te=[0,(re=0,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[r+16>>2]=te[0],$[r+20>>2]=te[1],0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}var qn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=R[r>>2],s=R[r+4>>2];r+=8;var d=je.read(e,T,i,s,n);if(d<0)return-1;if(o+=d,d<s)break;void 0!==n&&(n+=d)}return o};function Xn(e,r,t,n){if(p)return Ne(9,1,e,r,t,n);try{var o=Ve.getStreamFromFD(e),a=qn(o,r,t);return R[n>>2]=a,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}function Kn(e,r,t,n,o){if(p)return Ne(10,1,e,r,t,n,o);var a=He(r,t);try{if(isNaN(a))return 61;var i=Ve.getStreamFromFD(e);return je.llseek(i,a,n),te=[i.position>>>0,(re=i.position,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[o>>2]=te[0],$[o+4>>2]=te[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}var Jn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=R[r>>2],s=R[r+4>>2];r+=8;var d=je.write(e,T,i,s,n);if(d<0)return-1;o+=d,void 0!==n&&(n+=d)}return o};function Zn(e,r,t,n){if(p)return Ne(11,1,e,r,t,n);try{var o=Ve.getStreamFromFD(e),a=Jn(o,r,t);return R[n>>2]=a,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}Je.init();var Yn=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=je.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},Qn=365,eo=146;Object.defineProperties(Yn.prototype,{read:{get:function(){return(this.mode&Qn)===Qn},set:function(e){e?this.mode|=Qn:this.mode&=~Qn}},write:{get:function(){return(this.mode&eo)===eo},set:function(e){e?this.mode|=eo:this.mode&=~eo}},isFolder:{get:function(){return je.isDir(this.mode)}},isDevice:{get:function(){return je.isChrdev(this.mode)}}}),je.FSNode=Yn,je.createPreloadedFile=xe,je.staticInit(),br(),vr=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},yr=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Qr(),Gr(),ht(),mt=o.UnboundTypeError=Et(Error,"UnboundTypeError"),$t(),xt();var ro=[Ge,Qe,cr,pr,mr,zn,Hn,Nn,Gn,Xn,Kn,Zn],to={g:ir,s:dr,G:lr,m:ur,B:fr,P:pr,D:mr,v:wr,R:$r,O:St,F:Dt,k:Ft,Q:jt,p:zt,d:Nt,c:Gt,q:Xt,l:tn,S:nn,y:ln,C:cn,E:sn,L:fn,j:gn,r:Bt,i:En,h:_n,t:Pn,x:In,b:Fn,n:$n,f:Rn,K:Bn,e:Tn,z:Un,w:On,I:zn,J:Hn,A:Xe,o:Nn,H:Gn,N:Xn,u:Kn,M:Zn,a:k||o.wasmMemory},no=ue(),oo=e=>(oo=no.U)(e),ao=e=>(ao=no.V)(e),io=o._pthread_self=()=>(io=o._pthread_self=no.W)(),so=()=>(so=no.X)();o.__emscripten_tls_init=()=>(o.__emscripten_tls_init=no.Y)();var lo=e=>(lo=no.Z)(e);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=no._)();var uo=o.__emscripten_thread_init=(e,r,t,n,a,i)=>(uo=o.__emscripten_thread_init=no.aa)(e,r,t,n,a,i);o.__emscripten_thread_crashed=()=>(o.__emscripten_thread_crashed=no.ba)();var co,fo=(e,r,t,n)=>(fo=no.ca)(e,r,t,n),ho=e=>(ho=no.da)(e),po=o.__emscripten_thread_exit=e=>(po=o.__emscripten_thread_exit=no.ea)(e),mo=()=>(mo=no.fa)(),go=(e,r)=>(go=no.ga)(e,r),vo=()=>(vo=no.ha)(),yo=e=>(yo=no.ia)(e),wo=e=>(wo=no.ja)(e),bo=e=>(bo=no.ka)(e);function Eo(){if(!(K>0)){if(p)return t(o),H(),void startWorker(o);z(),K>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e())}function e(){co||(co=!0,o.calledRun=!0,U||(H(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),N()))}}if(o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=no.la)(e,r,t,n,a),o._ff_h264_cabac_tables=98997,o.wasmMemory=k,o.keepRuntimeAlive=ye,o.ExitStatus=ce,o.PThread=Je,J=function e(){co||Eo(),co||(J=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Eo(),r.ready}),t=(()=>{var e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href;return async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o;(o=r).ready=new Promise(((e,r)=>{t=e,n=r})),(o=void 0!==o?o:{}).locateFile=function(e,r){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:r+e};var a,i,s,d=Object.assign({},o),l="./this.program",u="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h="";function p(e){return o.locateFile?o.locateFile(e,h):h+e}if(f){const{createRequire:e}=await import("module");var m=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href),g=m("fs"),v=m("path");h=c?v.dirname(h)+"/":m("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href)),a=(e,r)=>(e=Y(e)?new URL(e):v.normalize(e),g.readFileSync(e,r?void 0:"utf8")),s=e=>{var r=a(e,!0);return r.buffer||(r=new Uint8Array(r)),r},i=function(e,r,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=Y(e)?new URL(e):v.normalize(e),g.readFile(e,n?void 0:"utf8",((e,o)=>{e?t(e):r(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),o.inspect=()=>"[Emscripten Module object]"}else(u||c)&&(c?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),e&&(h=e),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},c&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)});var y,w,b=o.print||console.log.bind(console),E=o.printErr||console.error.bind(console);Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary),"object"!=typeof WebAssembly&&G("no native wasm support detected");var _,k,S,C,A,P,T,D,I=!1;function F(e,r){e||G(r)}function $(){var e=w.buffer;o.HEAP8=_=new Int8Array(e),o.HEAP16=S=new Int16Array(e),o.HEAPU8=k=new Uint8Array(e),o.HEAPU16=C=new Uint16Array(e),o.HEAP32=A=new Int32Array(e),o.HEAPU32=P=new Uint32Array(e),o.HEAPF32=T=new Float32Array(e),o.HEAPF64=D=new Float64Array(e)}var R=[],M=[],B=[];function U(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)W(o.preRun.shift());oe(R)}function x(){o.noFSInit||De.init.initialized||De.init(),De.ignorePermissions=!1,oe(M)}function O(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)L(o.postRun.shift());oe(B)}function W(e){R.unshift(e)}function j(e){M.unshift(e)}function L(e){B.unshift(e)}var V=0,z=null;function H(e){V++,o.monitorRunDependencies&&o.monitorRunDependencies(V)}function N(e){if(V--,o.monitorRunDependencies&&o.monitorRunDependencies(V),0==V&&z){var r=z;z=null,r()}}function G(e){o.onAbort&&o.onAbort(e),E(e="Aborted("+e+")"),I=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var q,X,K,J="data:application/octet-stream;base64,",Z=e=>e.startsWith(J),Y=e=>e.startsWith("file://");function Q(e){if(e==q&&y)return new Uint8Array(y);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function ee(e){if(!y&&(u||c)){if("function"==typeof fetch&&!Y(e))return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>Q(e)));if(i)return new Promise(((r,t)=>{i(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>Q(e)))}function re(e,r,t){return ee(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{E(`failed to asynchronously prepare wasm: ${e}`),G(e)}))}function te(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||Z(r)||Y(r)||f||"function"!=typeof fetch?re(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return E(`wasm streaming compile failed: ${e}`),E("falling back to ArrayBuffer instantiation"),re(r,t,n)}))))}function ne(){var e={a:hn};function r(e,r){return pn=e.exports,w=pn.G,$(),Rr=pn.L,j(pn.H),N(),pn}if(H(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){E(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return te(y,q,e,(function(e){r(e.instance)})).catch(n),{}}o.locateFile?Z(q="decoder-pro-audio.wasm")||(q=p(q)):q=new URL("decoder-pro-audio.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-f-simd-mt.js",document.baseURI).href).href;var oe=e=>{for(;e.length>0;)e.shift()(o)};function ae(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){P[this.ptr+4>>2]=e},this.get_type=function(){return P[this.ptr+4>>2]},this.set_destructor=function(e){P[this.ptr+8>>2]=e},this.get_destructor=function(){return P[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,_[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=_[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,_[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=_[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){P[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return P[this.ptr+16>>2]},this.get_exception_ptr=function(){if(wn(this.get_type()))return P[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}o.noExitRuntime;var ie=(e,r,t)=>{throw new ae(e).init(r,t),e},se=e=>(A[gn()>>2]=e,e),de={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=de.isAbs(e),t="/"===e.substr(-1);return(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=de.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=de.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return de.normalize(e.join("/"))},join2:(e,r)=>de.normalize(e+"/"+r)},le=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(f)try{var e=m("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}G("initRandomDevice")},ue=e=>(ue=le())(e),ce={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:De.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=de.isAbs(n)}return(r?"/":"")+(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=ce.resolve(e).substr(1),r=ce.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var d=[];for(s=i;s<n.length;s++)d.push("..");return(d=d.concat(o.slice(i))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,he=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&fe)return fe.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var d=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},pe=[],me=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ge=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function ve(e,r,t){var n=t>0?t:me(e)+1,o=new Array(n),a=ge(e,o,0,o.length);return r&&(o.length=a),o}var ye=()=>{if(!pe.length){var e=null;if(f){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=g.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;pe=ve(e,!0)}return pe.shift()},we={ttys:[],init(){},shutdown(){},register(e,r){we.ttys[e]={input:[],output:[],ops:r},De.registerDevice(e,we.stream_ops)},stream_ops:{open(e){var r=we.ttys[e.node.rdev];if(!r)throw new De.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new De.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new De.ErrnoError(29)}if(void 0===s&&0===a)throw new De.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new De.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new De.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>ye(),put_char(e,r){null===r||10===r?(b(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(b(he(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(E(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(E(he(e.output,0)),e.output=[])}}},be=e=>{G()},Ee={ops_table:null,mount:e=>Ee.createNode(null,"/",16895,0),createNode(e,r,t,n){if(De.isBlkdev(t)||De.isFIFO(t))throw new De.ErrnoError(63);Ee.ops_table||(Ee.ops_table={dir:{node:{getattr:Ee.node_ops.getattr,setattr:Ee.node_ops.setattr,lookup:Ee.node_ops.lookup,mknod:Ee.node_ops.mknod,rename:Ee.node_ops.rename,unlink:Ee.node_ops.unlink,rmdir:Ee.node_ops.rmdir,readdir:Ee.node_ops.readdir,symlink:Ee.node_ops.symlink},stream:{llseek:Ee.stream_ops.llseek}},file:{node:{getattr:Ee.node_ops.getattr,setattr:Ee.node_ops.setattr},stream:{llseek:Ee.stream_ops.llseek,read:Ee.stream_ops.read,write:Ee.stream_ops.write,allocate:Ee.stream_ops.allocate,mmap:Ee.stream_ops.mmap,msync:Ee.stream_ops.msync}},link:{node:{getattr:Ee.node_ops.getattr,setattr:Ee.node_ops.setattr,readlink:Ee.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ee.node_ops.getattr,setattr:Ee.node_ops.setattr},stream:De.chrdev_stream_ops}});var o=De.createNode(e,r,t,n);return De.isDir(o.mode)?(o.node_ops=Ee.ops_table.dir.node,o.stream_ops=Ee.ops_table.dir.stream,o.contents={}):De.isFile(o.mode)?(o.node_ops=Ee.ops_table.file.node,o.stream_ops=Ee.ops_table.file.stream,o.usedBytes=0,o.contents=null):De.isLink(o.mode)?(o.node_ops=Ee.ops_table.link.node,o.stream_ops=Ee.ops_table.link.stream):De.isChrdev(o.mode)&&(o.node_ops=Ee.ops_table.chrdev.node,o.stream_ops=Ee.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=De.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,De.isDir(e.mode)?r.size=4096:De.isFile(e.mode)?r.size=e.usedBytes:De.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&Ee.resizeFileStorage(e,r.size)},lookup(e,r){throw De.genericErrors[44]},mknod:(e,r,t,n)=>Ee.createNode(e,r,t,n),rename(e,r,t){if(De.isDir(e.mode)){var n;try{n=De.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new De.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=De.lookupNode(e,r);for(var n in t.contents)throw new De.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=Ee.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!De.isLink(e.mode))throw new De.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===_.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(Ee.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&De.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new De.ErrnoError(28);return n},allocate(e,r,t){Ee.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!De.isFile(e.node.mode))throw new De.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==_.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=be()))throw new De.ErrnoError(48);_.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(Ee.stream_ops.write(e,r,0,n,t,!1),0)}},_e=(e,r,t,n)=>{var o=n?"":`al ${e}`;i(e,(t=>{F(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&N()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&H()},ke=(e,r,t,n,o,a)=>{De.createDataFile(e,r,t,n,o,a)},Se=o.preloadPlugins||[],Ce=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Se.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},Ae=(e,r,t,n,o,a,i,s,d,l)=>{var u=r?ce.resolve(de.join2(e,r)):e;function c(t){function c(t){l&&l(),s||ke(e,r,t,n,o,d),a&&a(),N()}Ce(t,u,c,(()=>{i&&i(),N()}))||c(t)}H(),"string"==typeof t?_e(t,(e=>c(e)),i):c(t)},Pe=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},Te=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},De={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=ce.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new De.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=De.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=De.lookupNode(n,t[a]),o=de.join2(o,t[a]),De.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;De.isLink(n.mode);){var d=De.readlink(o);if(o=ce.resolve(de.dirname(o),d),n=De.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new De.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(De.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%De.nameTable.length},hashAddNode(e){var r=De.hashName(e.parent.id,e.name);e.name_next=De.nameTable[r],De.nameTable[r]=e},hashRemoveNode(e){var r=De.hashName(e.parent.id,e.name);if(De.nameTable[r]===e)De.nameTable[r]=e.name_next;else for(var t=De.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=De.mayLookup(e);if(t)throw new De.ErrnoError(t,e);for(var n=De.hashName(e.id,r),o=De.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return De.lookup(e,r)},createNode(e,r,t,n){var o=new De.FSNode(e,r,t,n);return De.hashAddNode(o),o},destroyNode(e){De.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>De.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=De.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{De.lookupNode(e,r);return 20}catch(e){}return De.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=De.lookupNode(e,r)}catch(e){return e.errno}var o=De.nodePermissions(e,"wx");if(o)return o;if(t){if(!De.isDir(n.mode))return 54;if(De.isRoot(n)||De.getPath(n)===De.cwd())return 10}else if(De.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?De.isLink(e.mode)?32:De.isDir(e.mode)&&("r"!==De.flagsToPermissionString(r)||512&r)?31:De.nodePermissions(e,De.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=De.MAX_OPEN_FDS;e++)if(!De.streams[e])return e;throw new De.ErrnoError(33)},getStreamChecked(e){var r=De.getStream(e);if(!r)throw new De.ErrnoError(8);return r},getStream:e=>De.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return De.FSStream||(De.FSStream=function(){this.shared={}},De.FSStream.prototype={},Object.defineProperties(De.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new De.FSStream,e),-1==r&&(r=De.nextfd()),e.fd=r,De.streams[r]=e,e},closeStream(e){De.streams[e]=null},chrdev_stream_ops:{open(e){var r=De.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new De.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){De.devices[e]={stream_ops:r}},getDevice:e=>De.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),De.syncFSRequests++,De.syncFSRequests>1&&E(`warning: ${De.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=De.getMounts(De.root.mount),n=0;function o(e){return De.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&De.root)throw new De.ErrnoError(10);if(!o&&!a){var i=De.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,De.isMountpoint(n))throw new De.ErrnoError(10);if(!De.isDir(n.mode))throw new De.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},d=e.mount(s);return d.mount=s,s.root=d,o?De.root=d:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),d},unmount(e){var r=De.lookupPath(e,{follow_mount:!1});if(!De.isMountpoint(r.node))throw new De.ErrnoError(28);var t=r.node,n=t.mounted,o=De.getMounts(n);Object.keys(De.nameTable).forEach((e=>{for(var r=De.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&De.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=De.lookupPath(e,{parent:!0}).node,o=de.basename(e);if(!o||"."===o||".."===o)throw new De.ErrnoError(28);var a=De.mayCreate(n,o);if(a)throw new De.ErrnoError(a);if(!n.node_ops.mknod)throw new De.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,De.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,De.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{De.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,De.mknod(e,r,t)),symlink(e,r){if(!ce.resolve(e))throw new De.ErrnoError(44);var t=De.lookupPath(r,{parent:!0}).node;if(!t)throw new De.ErrnoError(44);var n=de.basename(r),o=De.mayCreate(t,n);if(o)throw new De.ErrnoError(o);if(!t.node_ops.symlink)throw new De.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=de.dirname(e),a=de.dirname(r),i=de.basename(e),s=de.basename(r);if(t=De.lookupPath(e,{parent:!0}).node,n=De.lookupPath(r,{parent:!0}).node,!t||!n)throw new De.ErrnoError(44);if(t.mount!==n.mount)throw new De.ErrnoError(75);var d,l=De.lookupNode(t,i),u=ce.relative(e,a);if("."!==u.charAt(0))throw new De.ErrnoError(28);if("."!==(u=ce.relative(r,o)).charAt(0))throw new De.ErrnoError(55);try{d=De.lookupNode(n,s)}catch(e){}if(l!==d){var c=De.isDir(l.mode),f=De.mayDelete(t,i,c);if(f)throw new De.ErrnoError(f);if(f=d?De.mayDelete(n,s,c):De.mayCreate(n,s))throw new De.ErrnoError(f);if(!t.node_ops.rename)throw new De.ErrnoError(63);if(De.isMountpoint(l)||d&&De.isMountpoint(d))throw new De.ErrnoError(10);if(n!==t&&(f=De.nodePermissions(t,"w")))throw new De.ErrnoError(f);De.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{De.hashAddNode(l)}}},rmdir(e){var r=De.lookupPath(e,{parent:!0}).node,t=de.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!0);if(o)throw new De.ErrnoError(o);if(!r.node_ops.rmdir)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.rmdir(r,t),De.destroyNode(n)},readdir(e){var r=De.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new De.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=De.lookupPath(e,{parent:!0}).node;if(!r)throw new De.ErrnoError(44);var t=de.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!1);if(o)throw new De.ErrnoError(o);if(!r.node_ops.unlink)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.unlink(r,t),De.destroyNode(n)},readlink(e){var r=De.lookupPath(e).node;if(!r)throw new De.ErrnoError(44);if(!r.node_ops.readlink)throw new De.ErrnoError(28);return ce.resolve(De.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=De.lookupPath(e,{follow:!r}).node;if(!t)throw new De.ErrnoError(44);if(!t.node_ops.getattr)throw new De.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>De.stat(e,!0),chmod(e,r,t){var n;"string"==typeof e?n=De.lookupPath(e,{follow:!t}).node:n=e;if(!n.node_ops.setattr)throw new De.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){De.chmod(e,r,!0)},fchmod(e,r){var t=De.getStreamChecked(e);De.chmod(t.node,r)},chown(e,r,t,n){var o;"string"==typeof e?o=De.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new De.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){De.chown(e,r,t,!0)},fchown(e,r,t){var n=De.getStreamChecked(e);De.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new De.ErrnoError(28);var t;"string"==typeof e?t=De.lookupPath(e,{follow:!0}).node:t=e;if(!t.node_ops.setattr)throw new De.ErrnoError(63);if(De.isDir(t.mode))throw new De.ErrnoError(31);if(!De.isFile(t.mode))throw new De.ErrnoError(28);var n=De.nodePermissions(t,"w");if(n)throw new De.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=De.getStreamChecked(e);if(0==(2097155&t.flags))throw new De.ErrnoError(28);De.truncate(t.node,r)},utime(e,r,t){var n=De.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new De.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Pe(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=de.normalize(e);try{n=De.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new De.ErrnoError(20)}else n=De.mknod(e,t,0),a=!0;if(!n)throw new De.ErrnoError(44);if(De.isChrdev(n.mode)&&(r&=-513),65536&r&&!De.isDir(n.mode))throw new De.ErrnoError(54);if(!a){var i=De.mayOpen(n,r);if(i)throw new De.ErrnoError(i)}512&r&&!a&&De.truncate(n,0),r&=-131713;var s=De.createStream({node:n,path:De.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(De.readFiles||(De.readFiles={}),e in De.readFiles||(De.readFiles[e]=1)),s},close(e){if(De.isClosed(e))throw new De.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{De.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new De.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new De.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(1==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.read)throw new De.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.write)throw new De.ErrnoError(28);e.seekable&&1024&e.flags&&De.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(r<0||t<=0)throw new De.ErrnoError(28);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(!De.isFile(e.node.mode)&&!De.isDir(e.node.mode))throw new De.ErrnoError(43);if(!e.stream_ops.allocate)throw new De.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new De.ErrnoError(2);if(1==(2097155&e.flags))throw new De.ErrnoError(2);if(!e.stream_ops.mmap)throw new De.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new De.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=De.open(e,r.flags),o=De.stat(e).size,a=new Uint8Array(o);return De.read(n,a,0,o,0),"utf8"===r.encoding?t=he(a,0):"binary"===r.encoding&&(t=a),De.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=De.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(me(r)+1),a=ge(r,o,0,o.length);De.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");De.write(n,r,0,r.byteLength,void 0,t.canOwn)}De.close(n)},cwd:()=>De.currentPath,chdir(e){var r=De.lookupPath(e,{follow:!0});if(null===r.node)throw new De.ErrnoError(44);if(!De.isDir(r.node.mode))throw new De.ErrnoError(54);var t=De.nodePermissions(r.node,"x");if(t)throw new De.ErrnoError(t);De.currentPath=r.path},createDefaultDirectories(){De.mkdir("/tmp"),De.mkdir("/home"),De.mkdir("/home/web_user")},createDefaultDevices(){De.mkdir("/dev"),De.registerDevice(De.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),De.mkdev("/dev/null",De.makedev(1,3)),we.register(De.makedev(5,0),we.default_tty_ops),we.register(De.makedev(6,0),we.default_tty1_ops),De.mkdev("/dev/tty",De.makedev(5,0)),De.mkdev("/dev/tty1",De.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=ue(e).byteLength),e[--r]);De.createDevice("/dev","random",t),De.createDevice("/dev","urandom",t),De.mkdir("/dev/shm"),De.mkdir("/dev/shm/tmp")},createSpecialDirectories(){De.mkdir("/proc");var e=De.mkdir("/proc/self");De.mkdir("/proc/self/fd"),De.mount({mount(){var r=De.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=De.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?De.createDevice("/dev","stdin",o.stdin):De.symlink("/dev/tty","/dev/stdin"),o.stdout?De.createDevice("/dev","stdout",null,o.stdout):De.symlink("/dev/tty","/dev/stdout"),o.stderr?De.createDevice("/dev","stderr",null,o.stderr):De.symlink("/dev/tty1","/dev/stderr"),De.open("/dev/stdin",0),De.open("/dev/stdout",1),De.open("/dev/stderr",1)},ensureErrnoError(){De.ErrnoError||(De.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},De.ErrnoError.prototype=new Error,De.ErrnoError.prototype.constructor=De.ErrnoError,[44].forEach((e=>{De.genericErrors[e]=new De.ErrnoError(e),De.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){De.ensureErrnoError(),De.nameTable=new Array(4096),De.mount(Ee,{},"/"),De.createDefaultDirectories(),De.createDefaultDevices(),De.createSpecialDirectories(),De.filesystems={MEMFS:Ee}},init(e,r,t){De.init.initialized=!0,De.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,De.createStandardStreams()},quit(){De.init.initialized=!1;for(var e=0;e<De.streams.length;e++){var r=De.streams[e];r&&De.close(r)}},findObject(e,r){var t=De.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=De.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=De.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=de.basename(e),n=De.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:De.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=de.join2(e,a);try{De.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=de.join2("string"==typeof e?e:De.getPath(e),r),i=Te(n,o);return De.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:De.getPath(e),i=r?de.join2(e,r):e);var s=Te(n,o),d=De.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),u=0,c=t.length;u<c;++u)l[u]=t.charCodeAt(u);t=l}De.chmod(d,146|s);var f=De.open(d,577);De.write(f,t,0,t.length,0,a),De.close(f),De.chmod(d,s)}},createDevice(e,r,t,n){var o=de.join2("string"==typeof e?e:De.getPath(e),r),a=Te(!!t,!!n);De.createDevice.major||(De.createDevice.major=64);var i=De.makedev(De.createDevice.major++,0);return De.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var d;try{d=t()}catch(e){throw new De.ErrnoError(29)}if(void 0===d&&0===i)throw new De.ErrnoError(6);if(null==d)break;i++,r[n+s]=d}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new De.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),De.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=ve(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new De.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):ve(o.responseText||"",!0)})(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,b("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var d=De.createFile(e,r,s,n,o);s.contents?d.contents=s.contents:s.url&&(d.contents=null,d.url=s.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function u(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var r=d.stream_ops[e];l[e]=function(){return De.forceLoadFile(d),r.apply(null,arguments)}})),l.read=(e,r,t,n,o)=>(De.forceLoadFile(d),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{De.forceLoadFile(d);var a=be();if(!a)throw new De.ErrnoError(48);return u(e,_,a,r,t),{ptr:a,allocated:!0}},d.stream_ops=l,d}},Ie=(e,r)=>e?he(k,e,r):"",Fe={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(de.isAbs(r))return r;var n;-100===e?n=De.cwd():n=Fe.getStreamFromFD(e).path;if(0==r.length){if(!t)throw new De.ErrnoError(44);return n}return de.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&de.normalize(r)!==de.normalize(De.getPath(e.node)))return-54;throw e}A[t>>2]=n.dev,A[t+4>>2]=n.mode,P[t+8>>2]=n.nlink,A[t+12>>2]=n.uid,A[t+16>>2]=n.gid,A[t+20>>2]=n.rdev,K=[n.size>>>0,(X=n.size,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+24>>2]=K[0],A[t+28>>2]=K[1],A[t+32>>2]=4096,A[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return K=[Math.floor(o/1e3)>>>0,(X=Math.floor(o/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+40>>2]=K[0],A[t+44>>2]=K[1],P[t+48>>2]=o%1e3*1e3,K=[Math.floor(a/1e3)>>>0,(X=Math.floor(a/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+56>>2]=K[0],A[t+60>>2]=K[1],P[t+64>>2]=a%1e3*1e3,K=[Math.floor(i/1e3)>>>0,(X=Math.floor(i/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+72>>2]=K[0],A[t+76>>2]=K[1],P[t+80>>2]=i%1e3*1e3,K=[n.ino>>>0,(X=n.ino,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+88>>2]=K[0],A[t+92>>2]=K[1],0},doMsync(e,r,t,n,o){if(!De.isFile(r.node.mode))throw new De.ErrnoError(43);if(2&n)return 0;var a=k.slice(e,e+t);De.msync(r,a,o,t,n)},varargs:void 0,get(){var e=A[+Fe.varargs>>2];return Fe.varargs+=4,e},getp:()=>Fe.get(),getStr:e=>Ie(e),getStreamFromFD:e=>De.getStreamChecked(e)};function $e(e,r,t){Fe.varargs=t;try{var n=Fe.getStreamFromFD(e);switch(r){case 0:if((o=Fe.get())<0)return-28;for(;De.streams[o];)o++;return De.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Fe.get();return n.flags|=o,0;case 5:o=Fe.getp();return S[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return se(28),-1}}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}function Re(e,r,t,n){Fe.varargs=n;try{r=Fe.getStr(r),r=Fe.calculateAt(e,r);var o=n?Fe.get():0;return De.open(r,t,o).fd}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}var Me,Be,Ue,xe=(e,r,t,n,o)=>{},Oe=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Me=e},We=e=>{for(var r="",t=e;k[t];)r+=Me[k[t++]];return r},je={},Le={},Ve={},ze=e=>{throw new Be(e)},He=e=>{throw new Ue(e)},Ne=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&He("Mismatched type converter count");for(var o=0;o<e.length;++o)qe(e[o],n[o])}e.forEach((function(e){Ve[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{Le.hasOwnProperty(e)?o[r]=Le[e]:(a.push(e),je.hasOwnProperty(e)||(je[e]=[]),je[e].push((()=>{o[r]=Le[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Ge(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||ze(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;ze(`Cannot register type '${n}' twice`)}if(Le[e]=r,delete Ve[e],je.hasOwnProperty(e)){var o=je[e];delete je[e],o.forEach((e=>e()))}}function qe(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ge(e,r,t)}var Xe,Ke=8,Je=(e,r,t,n)=>{qe(e,{name:r=We(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Ke,readValueFromPointer:function(e){return this.fromWireType(k[e])},destructorFunction:null})},Ze=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ye=e=>{ze(e.$$.ptrType.registeredClass.name+" instance already deleted")},Qe=!1,er=e=>{},rr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},tr=e=>{e.count.value-=1,0===e.count.value&&rr(e)},nr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=nr(e,r,t.baseClass);return null===n?null:t.downcast(n)},or={},ar=()=>Object.keys(cr).length,ir=()=>{var e=[];for(var r in cr)cr.hasOwnProperty(r)&&e.push(cr[r]);return e},sr=[],dr=()=>{for(;sr.length;){var e=sr.pop();e.$$.deleteScheduled=!1,e.delete()}},lr=e=>{Xe=e,sr.length&&Xe&&Xe(dr)},ur=()=>{o.getInheritedInstanceCount=ar,o.getLiveInheritedInstances=ir,o.flushPendingDeletes=dr,o.setDelayFunction=lr},cr={},fr=(e,r)=>{for(void 0===r&&ze("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},hr=(e,r)=>(r=fr(e,r),cr[r]),pr=(e,r)=>(r.ptrType&&r.ptr||He("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!==!!r.smartPtr&&He("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gr(Object.create(e,{$$:{value:r}})));function mr(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=hr(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?pr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):pr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=or[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=nr(r,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var gr=e=>"undefined"==typeof FinalizationRegistry?(gr=e=>e,e):(Qe=new FinalizationRegistry((e=>{tr(e.$$)})),gr=e=>{var r=e.$$;if(!!r.smartPtr){var t={$$:r};Qe.register(e,t,e)}return e},er=e=>Qe.unregister(e),gr(e)),vr=()=>{Object.assign(yr.prototype,{isAliasOf(e){if(!(this instanceof yr))return!1;if(!(e instanceof yr))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||Ye(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=gr(Object.create(Object.getPrototypeOf(this),{$$:{value:Ze(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ze("Object already scheduled for deletion"),er(this),tr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ze("Object already scheduled for deletion"),sr.push(this),1===sr.length&&Xe&&Xe(dr),this.$$.deleteScheduled=!0,this}})};function yr(){}var wr=(e,r)=>Object.defineProperty(r,"name",{value:e}),br=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||ze(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Er=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&ze(`Cannot register public name '${e}' twice`),br(o,e,e),o.hasOwnProperty(t)&&ze(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},_r=48,kr=57,Sr=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=_r&&r<=kr?`_${e}`:e};function Cr(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Ar=(e,r,t)=>{for(;r!==t;)r.upcast||ze(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Pr(e,r){if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Ar(r.$$.ptr,t,this.registeredClass)}function Tr(e,r){var t;if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&ze(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Ar(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&ze("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:ze(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,at.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:ze("Unsupporting sharing policy")}return t}function Dr(e,r){if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&ze(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Ar(r.$$.ptr,t,this.registeredClass)}function Ir(e){return this.fromWireType(P[e>>2])}var Fr=()=>{Object.assign($r.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Ke,readValueFromPointer:Ir,deleteObject(e){null!==e&&e.delete()},fromWireType:mr})};function $r(e,r,t,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=Tr:n?(this.toWireType=Pr,this.destructorFunction=null):(this.toWireType=Dr,this.destructorFunction=null)}var Rr,Mr,Br=(e,r,t)=>{o.hasOwnProperty(e)||He("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},Ur=(e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},xr=[],Or=e=>{var r=xr[e];return r||(e>=xr.length&&(xr.length=e+1),xr[e]=r=Rr.get(e)),r},Wr=(e,r,t)=>e.includes("j")?Ur(e,r,t):Or(r).apply(null,t),jr=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),Wr(e,r,t)}},Lr=(e,r)=>{var t=(e=We(e)).includes("j")?jr(e,r):Or(r);return"function"!=typeof t&&ze(`unknown function pointer with signature ${e}: ${r}`),t},Vr=(e,r)=>{var t=wr(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},zr=e=>{var r=vn(e),t=We(r);return mn(r),t},Hr=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||Le[r]||(Ve[r]?Ve[r].forEach(e):(t.push(r),n[r]=!0))})),new Mr(`${e}: `+t.map(zr).join([", "]))},Nr=(e,r,t,n,o,a,i,s,d,l,u,c,f)=>{u=We(u),a=Lr(o,a),s&&(s=Lr(i,s)),l&&(l=Lr(d,l)),f=Lr(c,f);var h=Sr(u);Er(h,(function(){Hr(`Cannot construct ${u} due to unbound types`,[n])})),Ne([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:yr.prototype;var i=wr(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new Be("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Be(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Be(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new Cr(u,i,d,f,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new $r(u,c,!0,!1,!1),m=new $r(u+"*",c,!1,!1,!1),g=new $r(u+" const*",c,!1,!0,!1);return or[e]={pointerType:m,constPointerType:g},Br(h,i),[p,m,g]}))},Gr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(P[r+4*n>>2]);return t},qr=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Xr(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=wr(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Kr(e,r,t,n,o,a){var i=r.length;i<2&&ze("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,d=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){d=!0;break}var u="void"!==r[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(h+="var destructors = [];\n");var p=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[ze,n,o,qr,r[0],r[1]];s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n");for(l=0;l<i-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+p+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),g.push(r[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)h+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[l].name+"\n",m.push(v+"_dtor"),g.push(r[l].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Xr(Function,m).apply(null,g);return wr(e,y)}var Jr=(e,r,t,n,o,a)=>{var i=Gr(r,t);o=Lr(n,o),Ne([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new Be(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{Hr(`Cannot construct ${e.name} due to unbound types`,i)},Ne([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Kr(t,n,null,o,a),[]))),[]}))},Zr=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Yr=(e,r,t,n,o,a,i,s,d)=>{var l=Gr(t,n);r=We(r),r=Zr(r),a=Lr(o,a),Ne([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){Hr(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(br(u,r,n),u[r].overloadTable[t-2]=o),Ne([],l,(function(o){var s=Kr(n,o,e,a,i,d);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function Qr(){Object.assign(et.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function et(){this.allocated=[void 0],this.freelist=[]}var rt=new et,tt=e=>{e>=rt.reserved&&0==--rt.get(e).refcount&&rt.free(e)},nt=()=>{for(var e=0,r=rt.reserved;r<rt.allocated.length;++r)void 0!==rt.allocated[r]&&++e;return e},ot=()=>{rt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),rt.reserved=rt.allocated.length,o.count_emval_handles=nt},at={toValue:e=>(e||ze("Cannot use deleted val. handle = "+e),rt.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return rt.allocate({refcount:1,value:e})}}};function it(e){return this.fromWireType(A[e>>2])}var st=(e,r)=>{qe(e,{name:r=We(r),fromWireType:e=>{var r=at.toValue(e);return tt(e),r},toWireType:(e,r)=>at.toHandle(r),argPackAdvance:Ke,readValueFromPointer:it,destructorFunction:null})},dt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},lt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(T[e>>2])};case 8:return function(e){return this.fromWireType(D[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},ut=(e,r,t)=>{qe(e,{name:r=We(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Ke,readValueFromPointer:lt(r,t),destructorFunction:null})},ct=(e,r,t)=>{switch(r){case 1:return t?e=>_[e>>0]:e=>k[e>>0];case 2:return t?e=>S[e>>1]:e=>C[e>>1];case 4:return t?e=>A[e>>2]:e=>P[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ft=(e,r,t,n,o)=>{r=We(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");qe(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:Ke,readValueFromPointer:ct(r,t,0!==n),destructorFunction:null})},ht=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=P[e>>2],t=P[e+4>>2];return new n(_.buffer,t,r)}qe(e,{name:t=We(t),fromWireType:o,argPackAdvance:Ke,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},pt=(e,r,t)=>ge(e,k,r,t),mt=(e,r)=>{var t="std::string"===(r=We(r));qe(e,{name:r,fromWireType(e){var r,n=P[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==k[s]){var d=Ie(a,s-a);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(k[o+i]);r=l.join("")}return mn(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||ze("Cannot pass non-string to std::string"),n=t&&o?me(r):r.length;var a=yn(4+n+1),i=a+4;if(P[a>>2]=n,t&&o)pt(r,i,n+1);else if(o)for(var s=0;s<n;++s){var d=r.charCodeAt(s);d>255&&(mn(i),ze("String has UTF-16 code units that do not fit in 8 bits")),k[i+s]=d}else for(s=0;s<n;++s)k[i+s]=r[s];return null!==e&&e.push(mn,a),a},argPackAdvance:Ke,readValueFromPointer:Ir,destructorFunction(e){mn(e)}})},gt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,vt=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&C[n];)++n;if((t=n<<1)-e>32&&gt)return gt.decode(k.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=S[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},yt=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);S[r>>1]=i,r+=2}return S[r>>1]=0,r-n},wt=e=>2*e.length,bt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=A[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Et=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(A[r>>2]=i,(r+=4)+4>o)break}return A[r>>2]=0,r-n},_t=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},kt=(e,r,t)=>{var n,o,a,i,s;t=We(t),2===r?(n=vt,o=yt,i=wt,a=()=>C,s=1):4===r&&(n=bt,o=Et,i=_t,a=()=>P,s=2),qe(e,{name:t,fromWireType:e=>{for(var t,o=P[e>>2],i=a(),d=e+4,l=0;l<=o;++l){var u=e+4+l*r;if(l==o||0==i[u>>s]){var c=n(d,u-d);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),d=u+r}}return mn(e),t},toWireType:(e,n)=>{"string"!=typeof n&&ze(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),d=yn(4+a+r);return P[d>>2]=a>>s,o(n,d+4,a+r),null!==e&&e.push(mn,d),d},argPackAdvance:Ke,readValueFromPointer:it,destructorFunction(e){mn(e)}})},St=(e,r)=>{qe(e,{isVoid:!0,name:r=We(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},Ct={},At=e=>{var r=Ct[e];return void 0===r?We(e):r},Pt=[],Tt=(e,r,t,n,o)=>(e=Pt[e])(r=at.toValue(r),r[t=At(t)],n,o),Dt=e=>{var r=Pt.length;return Pt.push(e),r},It=(e,r)=>{var t=Le[e];return void 0===t&&ze(r+" has unknown type "+zr(e)),t},Ft=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=It(P[r+4*n>>2],"parameter "+n);return t},$t=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(P[r>>2]=at.toHandle(n)),o},Rt=(e,r,t)=>{var n=Ft(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;a+=`  var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`;for(u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push($t),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=Xr(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return Dt(wr(f,c))},Mt=e=>{var r=at.toValue(e);qr(r),tt(e)},Bt=e=>e%4==0&&(e%100!=0||e%400==0),Ut=[0,31,60,91,121,152,182,213,244,274,305,335],xt=[0,31,59,90,120,151,181,212,243,273,304,334],Ot=e=>(Bt(e.getFullYear())?Ut:xt)[e.getMonth()]+e.getDate()-1,Wt=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN;function jt(e,r,t){var n=Wt(e,r),o=new Date(1e3*n);A[t>>2]=o.getSeconds(),A[t+4>>2]=o.getMinutes(),A[t+8>>2]=o.getHours(),A[t+12>>2]=o.getDate(),A[t+16>>2]=o.getMonth(),A[t+20>>2]=o.getFullYear()-1900,A[t+24>>2]=o.getDay();var a=0|Ot(o);A[t+28>>2]=a,A[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=i.getTimezoneOffset(),l=0|(s!=d&&o.getTimezoneOffset()==Math.min(d,s));A[t+32>>2]=l}var Lt=e=>{var r=me(e)+1,t=yn(r);return t&&pt(e,t,r),t},Vt=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),d=Math.max(i,s);function l(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}P[e>>2]=60*d,A[r>>2]=Number(i!=s);var u=l(o),c=l(a),f=Lt(u),h=Lt(c);s<i?(P[t>>2]=f,P[t+4>>2]=h):(P[t>>2]=h,P[t+4>>2]=f)},zt=()=>{G("")},Ht=()=>Date.now(),Nt=(e,r,t)=>k.copyWithin(e,r,r+t),Gt=()=>134217728,qt=e=>{var r=(e-w.buffer.byteLength+65535)/65536;try{return w.grow(r),$(),1}catch(e){}},Xt=e=>{var r=k.length;e>>>=0;var t=Gt();if(e>t)return!1;for(var n,o,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(t,(n=Math.max(e,i))+((o=65536)-n%o)%o);if(qt(s))return!0}return!1},Kt={},Jt=()=>l||"./this.program",Zt=()=>{if(!Zt.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",_:Jt()};for(var r in Kt)void 0===Kt[r]?delete e[r]:e[r]=Kt[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Zt.strings=t}return Zt.strings},Yt=(e,r)=>{for(var t=0;t<e.length;++t)_[r++>>0]=e.charCodeAt(t);_[r>>0]=0},Qt=(e,r)=>{var t=0;return Zt().forEach(((n,o)=>{var a=r+t;P[e+4*o>>2]=a,Yt(n,a),t+=n.length+1})),0},en=(e,r)=>{var t=Zt();P[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),P[r>>2]=n,0};function rn(e){try{var r=Fe.getStreamFromFD(e);return De.close(r),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function tn(e,r){try{var t=Fe.getStreamFromFD(e),n=t.tty?2:De.isDir(t.mode)?3:De.isLink(t.mode)?7:4;return _[r>>0]=n,S[r+2>>1]=0,K=[0,(X=0,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[r+8>>2]=K[0],A[r+12>>2]=K[1],K=[0,(X=0,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[r+16>>2]=K[0],A[r+20>>2]=K[1],0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var nn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=P[r>>2],s=P[r+4>>2];r+=8;var d=De.read(e,_,i,s,n);if(d<0)return-1;if(o+=d,d<s)break;void 0!==n&&(n+=d)}return o};function on(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=nn(o,r,t);return P[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function an(e,r,t,n,o){var a=Wt(r,t);try{if(isNaN(a))return 61;var i=Fe.getStreamFromFD(e);return De.llseek(i,a,n),K=[i.position>>>0,(X=i.position,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[o>>2]=K[0],A[o+4>>2]=K[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var sn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=P[r>>2],s=P[r+4>>2];r+=8;var d=De.write(e,_,i,s,n);if(d<0)return-1;o+=d,void 0!==n&&(n+=d)}return o};function dn(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=sn(o,r,t);return P[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var ln=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=De.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},un=365,cn=146;Object.defineProperties(ln.prototype,{read:{get:function(){return(this.mode&un)===un},set:function(e){e?this.mode|=un:this.mode&=~un}},write:{get:function(){return(this.mode&cn)===cn},set:function(e){e?this.mode|=cn:this.mode&=~cn}},isFolder:{get:function(){return De.isDir(this.mode)}},isDevice:{get:function(){return De.isChrdev(this.mode)}}}),De.FSNode=ln,De.createPreloadedFile=Ae,De.staticInit(),Oe(),Be=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ue=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},vr(),ur(),Fr(),Mr=o.UnboundTypeError=Vr(Error,"UnboundTypeError"),Qr(),ot();var fn,hn={o:ie,C:$e,u:Re,r:xe,E:Je,F:Nr,A:Jr,h:Yr,D:st,l:ut,c:ft,b:ht,m:mt,i:kt,n:St,f:Tt,j:tt,e:Rt,d:Mt,p:jt,t:Vt,a:zt,g:Ht,y:Nt,s:Xt,w:Qt,x:en,k:rn,v:tn,B:on,q:an,z:dn},pn=ne(),mn=e=>(mn=pn.I)(e),gn=()=>(gn=pn.J)(),vn=e=>(vn=pn.K)(e),yn=e=>(yn=pn.M)(e),wn=e=>(wn=pn.N)(e);function bn(){function e(){fn||(fn=!0,o.calledRun=!0,I||(x(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),O()))}V>0||(U(),V>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.dynCall_jij=(e,r,t,n)=>(o.dynCall_jij=pn.O)(e,r,t,n),o.dynCall_jii=(e,r,t)=>(o.dynCall_jii=pn.P)(e,r,t),o.dynCall_viiijj=(e,r,t,n,a,i,s,d)=>(o.dynCall_viiijj=pn.Q)(e,r,t,n,a,i,s,d),o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=pn.R)(e,r,t,n,a),z=function e(){fn||bn(),fn||(z=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return bn(),r.ready}})();const n=m;!function(e,r){const t=m,n=e();for(;;)try{if(135463===-parseInt(t(516))/1*(-parseInt(t(485))/2)+-parseInt(t(592))/3+-parseInt(t(457))/4+parseInt(t(647))/5*(-parseInt(t(489))/6)+parseInt(t(621))/7+-parseInt(t(352))/8+parseInt(t(622))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(w);const o={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(318),n(613),n(580),n(318),n(388),n(503),n(633),n(580),n(600),n(620);const a={player:n(696),playerAudio:n(618),playbackTF:n(346),talk:"talk",playVod:"playVod"},i={mp4:n(600),webm:n(542),flv:n(620),mov:n(601)},s={flv:n(620),m7s:n(439),hls:n(318),webrtc:"webrtc",webTransport:n(613),nakedFlow:n(287),fmp4:"fmp4",mpeg4:n(553),aliyunRtc:n(580),ts:"ts",g711:"g711",pcm:"pcm"};n(766),n(571),n(688),n(495),n(325),n(314),n(389);const d={mse:n(467),wcs:n(445),offscreen:n(444),wasm:n(656),simd:"simd",simdFFmpeg:n(703),mt:"mt",webrtc:n(503),hls:"hls",aliyunRtc:"aliyunRtc"},l={canvas:n(680),video:n(654)},u={debug:n(425),warn:n(619)},c={click:n(427),mouseDownAndUp:n(765)},f={normal:n(742),simple:n(740)},h={normal:n(742),small:"small"},p=n(586);function m(e,r){const t=w();return(m=function(e,r){return t[e-=283]})(e,r)}const g=4080;n(426),n(569),n(469);const v={playIsNotPauseOrUrlIsNull:n(384),webglAlignmentError:"Webgl 渲染失败",webglContextLostError:n(594),mediaSourceH265NotSupport:n(702),mseSourceBufferFull:"缓冲区已满",mediaSourceAppendBufferError:"初始化解码器失败",mseSourceBufferError:n(393),mseAddSourceBufferError:n(589),mseWorkerAddSourceBufferError:n(589),mediaSourceDecoderConfigurationError:n(589),mediaSourceTsIsMaxDiff:n(480),mseWidthOrHeightChange:n(480),mediaSourceAudioG711NotSupport:"硬解码不支持G711a/u音频格式",mediaSourceAudioInitTimeout:n(739),mediaSourceAudioNoDataTimeout:"等待音频数据超时",mediaSourceUseCanvasRenderPlayFailed:n(737),mediaSourceBufferedIsZeroError:n(480),webcodecsH265NotSupport:n(702),webcodecsUnsupportedConfigurationError:n(589),webcodecsDecodeConfigureError:n(589),webcodecsDecodeError:"解码失败",webcodecsAudioInitTimeout:"初始化音频解码器失败",webcodecsAudioNoDataTimeout:"等待音频数据超时",wcsWidthOrHeightChange:n(393),wasmDecodeError:n(393),simdDecodeError:n(393),simdDecodeDelayTimeout:n(340),wasmWidthOrHeightChange:"流异常",wasmUseVideoRenderError:"video自动渲染失败",videoElementPlayingFailed:"video自动渲染失败",simdH264DecodeVideoWidthIsTooLarge:n(608),networkDelayTimeout:n(646),fetchError:n(551),streamEnd:"请求结束",websocket1006Error:n(614),websocketError:n(551),webrtcError:n(551),hlsError:n(551),decoderWorkerInitError:n(756),decoderWorkerWasmError:n(706),videoElementPlayingFailedForWebrtc:n(408),videoInfoError:"解析视频分辨率失败",webrtcStreamH265:n(723),delayTimeout:n(655),loadingTimeout:n(334),loadingTimeoutRetryEnd:"加载超时重播失败",delayTimeoutRetryEnd:n(655),flvDemuxBufferSizeTooLarge:"FLV待解封装buffer过大",audioChannelError:n(593),aliyunRtcError:"请求失败",mseWaitVideoCanplayTimeout:n(480),initDecoderWorkerTimeout:"初始化解码worker超时"};n(696),n(359),n(670),n(530),n(730),n(307),n(760),n(512),n(742),n(757),n(620),n(656),n(600),n(642),n(654),n(461),n(762);n(398),n(769),n(625),n(479),n(568),n(511),n(741),n(547),n(724),n(420),n(631),n(764),n(610),n(707),n(520),n(283),n(494),n(347);const y={init:n(306),initVideo:n(305),render:"render",playAudio:n(561),initAudio:n(336),kBps:n(438),decode:n(701),audioCode:n(288),audioNalu:"audioNalu",audioAACSequenceHeader:n(768),videoCode:n(738),videoCodec:n(627),videoNalu:"videoNalu",videoPayload:n(483),audioPayload:"audioPayload",wasmError:n(715),workerFetch:n(598),iframeIntervalTs:n(366),isDropping:n(776),workerEnd:n(286),networkDelay:n(362),playbackStreamVideoFps:n(447),wasmWidthOrHeightChange:n(612),simdDecodeError:"simdDecodeError",simdH264DecodeVideoWidthIsTooLarge:n(312),simdDecodeDelayTimeout:n(752),websocketOpen:n(331),websocketStringMsg:n(304),closeEnd:n(699),tempStream:n(473),videoSEI:n(570),flvScriptData:"flvScriptData",aacSequenceHeader:n(555),videoSequenceHeader:"videoSequenceHeader",flvBufferData:"flvBufferData",checkFirstIFrame:"checkFirstIFrame",mseHandle:n(361),mseFirstRenderTime:n(550),mseError:n(329),notSupportNewWasm:n(583),failedToAsynchronouslyPrepareWasm:"failedToAsynchronouslyPrepareWasm",mtStreamStats:"mtStreamStats"};function w(){const e=["debug","/crypto/","click","webcodecsDecodeError","playbackJustTime","mseSourceBufferBusy","sei-in-time","suspend","webgpu","durationchange","videoFrame","mseSourceBufferFull","no-audio-track","kBps","m7s","full","video decoder initialization failed","recordEnd","switch-url-failed","offscreen","wcs","stream","playbackStreamVideoFps","image/jpeg","rightDown","five-min","websocketClose","mediaSourceDecoderConfigurationError",'video/mp4;codecs="hev1.1.6.L120.90"',"endstreaming","container","currentPts","57920LDUEPN","memoryLog","fetchErrorWorker","物品识别","white","visibilityChange","failedToAsynchronouslyPrepareWasm","destroy","base64","streamSuccess","mse","playVodRateChange","jbprovm","progress","playVodFlvError","loadedmetadata","tempStream","H265(HEVC)","10min","talkGetUserMediaSuccess","talkFailedAndStop","global","pauseAndNextPlayUseLastFrameShow","流异常","updateConfig","video decode error","videoPayload","playbackPreRateChange","14EgwSHg","云台激活","resetDecode","csrc","525102bOYwFj","Decoder error","self","HEVC decoding is not supported","talkStreamMsg","defaultStreamQuality","FMP4","fetchClose","mseSourceEndStreaming","性能面板","playVodSeekEnd","mp4Error","hevc","#343434","webrtc","alaw","pause","volumechange","playbackPause","playing","mediaSourceAppendBufferError","webrtcStreamH265","controlSize","default","multiMouseup","talkStreamOpen","ws1006","3343lSuJCr","apertureNear","mediaSourceH265NotSupport","subtitle-segments","ghostWatermarkConfig","talkStreamClose","webrtc-disconnected","talkStreamError","loading","websocket1006Error","remote-outbound-rtp","focus","webrtcIceCandidateError","connecting","decoder-pro-audio.js","stream-parsed","empty","resize","aiObjectDetectorInfo","playback","mseUpdateVideoTimestamp","timeUpdate","recording","zoomNarrow","hlsError","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","webm","webrtcCompleted","MEDIA_ERR_SRC_NOT_SUPPORTED","rtp","cruiseStop","isFlv",'video/mp4; codecs="hev1.1.6.L123.b0"',"multiSelected","mseFirstRenderTime","请求失败","mseSourceBufferError","mpeg4","ten-min","aacSequenceHeader","recordCreateError","mseWaitVideoCanplayTimeout","right-up","websocketError","destroyEnd","playAudio","udp","MULAW(g711u)","canplaythrough","fullscreen$2","resetVideoDecode","playVodSeeking","widthOrHeightChangeReplayDelayTime","jbprov","videoSEI","M7S","active","performance","zooming","3-1","退出全屏","mediaSourceBufferedIsZeroError","streamStats","canplay","aliyunRtc","mediaSourceTsIsMaxDiff","local-candidate","notSupportNewWasm","delayTimeoutRetryEnd","paused","JessibucaPro","streamVbps","webrtcError","初始化解码器失败","multiDragstart","multiDragenter","605838BOVasU","音频通道错误","webgl 上下文丢失","playVodPause","buffer","loadstart","workerFetch","ratechange","mp4","mov","left-down",'video/mp4; codecs="avc1.64002A"',"objectDetectActive","wcsWidthOrHeightChange","opus","streamRate","不支持该分辨率的视频","mseSourceended","isAliyunRtc","startstreaming","wasmWidthOrHeightChange","webTransport","流异常结束","webrtc-completed","ttfb","leftDown","playerAudio","warn","flv","1356495TcxGFz","2714139Dqejrj","fiStop","#000","isMulti","recordBlob","videoCodec","close","AAC","outbound-rtp","isWebrtcForZLM","mediaSourceAudioG711NotSupport","worker","videoSEISyncPts","timeupdate","webcodecsUnsupportedConfigurationError","seeking","playVodTimeCache","window","playbackPauseOrResume","speed","vertical","clearBuffer","Simd","tallWebsocketClosedByError","网络超时重播失败","5eIMInx","audioResumeState","Unsupported audio format","playVodEnded","viewResizeChange","idle","down","video","播放超时重播失败","wasm","focusNear","audioSplitBuffer","worklet","message","tenMin","rightUp","script","playbackShowPrecisionChange","webrtcFailed","The user aborted a request","waiting","fullscreen","webcodecsH265NotSupport","decoder-pro-old.js","play() failed because the user didn't interact with the document first","sendWsMessage","oneHour","decoder-pro-audio-player.js","avc","videoInfo","streamQualityChange","drawingRectInfo","sei","canvas","ceil","switch-url-success","webcodecsAudioInitTimeout","playVodEndedAndReplay","videoSyncAudio","playbackIsPause","clickInitPlayer","HLS","inView","remote-candidate","webrtcConnected","half-hour","drawingRect","MEDIA_ERR_NETWORK","image/webp","player","load-response-headers","webrtc-connected","closeEnd","leftUp","decode","不支持硬解码H265","simdFFmpeg","3-4","timeout","wasm解码失败","isTs","load-start","image/png","streamMessage","pcm","MULAW","mseAddSourceBufferError","play","wasmError","playbackTimestamp","readystatechange","Wasm","playbackStats","loadingTimeoutRetryEnd","multiMouseover","metadata","webrtc不支持H265","isFmp4","playVodBufferedTime","volume","talkStreamInactive","codec","aiImageDetectResult","decoder-pro-hard-not-wasm.js","recordCancel","0000000000","object",'video/mp4;codecs="hev1.3.E.L120.90"',"videoWaiting","netBuf","MediaSource解码使用canvas渲染失败","videoCode","初始化音频解码器失败","simple","multiIndex","normal","streamError","certificate","zoomExpand","audioInfo","download","recordingTimestamp","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","beforeDestroy","playFailedAndPaused","simdDecodeDelayTimeout","start","decoderWorkerInit","aiOcclusionDetectResult","初始化worker失败","fetch","log","fetchError","none","right","red","multiDblSelected","isWebrtcForSRS","mouseDownAndUp","FLV","webrtc-failed","audioAACSequenceHeader","playbackForwardMaxRateDecodeIFrame","blob","notConnect","mediaSourceUseCanvasRenderPlayFailed","MEDIA_ERR_DECODE","load","sendMessage","isDropping","Unsupported configuration","watermarkConfig","talkStreamStart","webcodecsDecodeConfigureError","workerEnd","nakedFlow","audioCode","cruiseStart","talkGetUserMediaTimeout","webgl2","playVodVideoSeekingByMse","webcodecs","apertureFar","mseSourceStartStreaming","A key frame is required after configure() or flush()","tcp","streamDts","multiMouseout","togglePerformancePanel","videoSmooth","sender","wasmDecodeError","websocketStringMsg","initVideo","init","jessibuca-pro-mp4-recorder-decoder.js","webFullscreen","streamAbps","webcodecsAudioNoDataTimeout","talkGetUserMediaFail","simdH264DecodeVideoWidthIsTooLarge","Error Domain=NSOSStatusErrorDomain","Webrtc","load-retry","pressureObserverCpu","wasmUseVideoRenderError","hls","audioDecode","crashLog","stats","flvMetaData","playVodTime","flv-script-data","MPEG4","webrtc-closed","streamEnd","loadeddata","mseError","left-up","websocketOpen","mseSourceOpen","playToRenderTimes","加载超时重播失败","visibilityHiddenTimeout","initAudio","aiFaceDetectorInfo","webrtc-checking",'video/mp4;codecs="hev1.4.10.L120.90"',"首帧解码超时","delayTimeout","left","decoderWorkerInitError","playbackTimeScroll","hls-level-loaded","playbackTF","heartTimeout","停止录制","playbackTime","buffereos","stalled","634808JHrWzI","webgl","candidate-pair","Decoder failure","fetchSuccess","videoTimeUpdate","stop","decoder-pro.js","mseSourceClose","mseHandle","networkDelay","wiperClose",'video/mp4;codecs="hev1.2.4.L120.90"',"webrtcClosed","iframeIntervalTs","networkState","Cannot call 'decode' on a closed codec","webrtcOnConnectionStateChange","playbackEnd","videoElementPlayingFailed","jtt","remote-inbound-rtp","sourcebuffer-created","resetAudioDecode","memory access out of bounds","Invalid NAL unit size","open","sourceopen","1-1","mseWorkerAddSourceBufferError","AbortError","playVodSeek","播放地址不能为空","ptz","videoInfoError","track","websocket","AliyunRtc","blur","complete","playbackRateChange","解码失败","networkDelayTimeout","webrtcOnIceConnectionStateChange","load-complete","g711u","playType","multiMousedown","ulaw","streamEndInner","flvDemuxBufferSizeTooLarge","MEDIA_ERR_ABORTED","downloadMemoryLog","人脸识别激活","5min","delta","video自动渲染失败","playVodCanplay","initDecoderWorkerTimeout","media-source","loadingTimeout","g711a","remove-buffer","peer-connection","multiDrop","MP3","error","fogOpen","isMpeg4","playbackSeek","online","initAudioCodec","ended"];return(w=function(){return e})()}n(377),n(701),n(319),n(423),n(628),n(481),n(487),n(643),n(375),n(566),n(672),n(536),n(686),n(757),n(464),n(560),n(596),n(759),n(459),n(496),n(356),n(306),n(757),n(775),n(464),n(560),n(596),n(559),n(331),n(304),n(306);const b={fullscreen:n(565),fullScreenByStart:"fullScreenByStart",webFullscreen:n(308),decoderWorkerInit:n(754),play:n(714),playing:n(508),pause:"pause",mute:"mute",load:n(774),loading:n(524),zooming:n(574),drawingRect:n(693),drawingRectInfo:n(678),videoInfo:n(676),timeUpdate:n(537),audioInfo:n(746),log:n(758),error:"error",kBps:n(438),timeout:"timeout",delayTimeout:n(341),delayTimeoutRetryEnd:n(584),loadingTimeout:n(412),loadingTimeoutRetryEnd:n(720),stats:"stats",performance:n(573),videoSmooth:n(301),faceDetectActive:"faceDetectActive",objectDetectActive:n(604),occlusionDetectActive:"occlusionDetectActive",imageDetectActive:"imageDetectActive",record:"record",recording:n(538),recordingTimestamp:n(748),recordStart:"recordStart",recordEnd:n(442),recordCreateError:n(556),recordBlob:n(626),recordCancel:n(731),buffer:n(596),videoFrame:n(435),videoSEI:n(570),videoSEISyncPts:n(634),start:n(753),metadata:n(722),resize:n(533),volumechange:n(506),volume:n(726),destroy:n(464),beforeDestroy:n(750),streamEnd:n(327),streamRate:n(607),streamAbps:n(309),streamVbps:n(587),streamDts:n(298),streamSuccess:n(466),streamMessage:n(710),streamError:n(743),streamStats:n(578),streamEndInner:n(401),mseSourceOpen:n(332),mseSourceClose:n(360),mseSourceended:n(609),mseSourceStartStreaming:n(295),mseSourceEndStreaming:n(497),mseSourceBufferError:n(552),mseAddSourceBufferError:n(713),mseWorkerAddSourceBufferError:n(381),mseSourceBufferBusy:n(430),mseSourceBufferFull:n(436),videoWaiting:n(735),videoTimeUpdate:n(357),videoSyncAudio:n(685),playToRenderTimes:n(333),playbackTime:n(349),playbackTimestamp:"playbackTimestamp",playbackTimeScroll:n(344),playbackPrecision:"playbackPrecision",playbackShowPrecisionChange:n(664),playbackJustTime:n(429),playbackStats:n(719),playbackSeek:n(421),playbackPause:n(507),playbackPauseOrResume:n(640),playbackRateChange:"playbackRateChange",playbackPreRateChange:n(484),playbackEndInner:"playbackEndInner",playbackEnd:n(370),playVodStats:"playVodStats",playVodPause:n(595),playVodPauseOrResume:"playVodPauseOrResume",playVodRateChange:n(468),playVodTime:n(323),playVodBufferedTime:n(725),playVodTimeCache:n(638),playVodSeek:n(383),playVodSeeking:n(567),playVodSeekEnd:n(499),playVodVideoSeekingByMse:n(292),playVodVideoSeekedByMse:"playVodVideoSeekedByMse",playVodCanplay:n(409),playVodWaiting:"playVodWaiting",playVodEndedAndReplay:n(684),playVodEnded:n(650),ptz:n(385),streamQualityChange:n(677),visibilityChange:n(462),netBuf:n(736),close:"close",networkDelayTimeout:n(394),togglePerformancePanel:n(300),viewResizeChange:n(651),flvDemuxBufferSizeTooLarge:n(402),talkGetUserMediaSuccess:n(476),talkGetUserMediaFail:n(311),talkGetUserMediaTimeout:n(290),talkStreamStart:n(284),talkStreamOpen:n(514),talkStreamClose:"talkStreamClose",talkStreamError:n(523),talkStreamInactive:"talkStreamInactive",talkStreamMsg:n(493),webrtcDisconnect:"webrtcDisconnect",webrtcFailed:n(665),webrtcClosed:n(365),webrtcChecking:"webrtcChecking",webrtcConnected:n(691),webrtcCompleted:n(543),webrtcOnConnectionStateChange:n(369),webrtcOnIceConnectionStateChange:n(395),crashLog:n(320),focus:n(527),blur:"blur",inView:n(689),visibilityHiddenTimeout:n(335),websocketOpen:n(331),websocketClose:n(451),websocketError:n(559),websocketStringMsg:n(304),aiObjectDetectorInfo:n(534),aiFaceDetectorInfo:n(337),aiOcclusionDetectResult:n(755),aiImageDetectResult:n(729),playFailedAndPaused:n(751),audioResumeState:n(648),webrtcStreamH265:n(510),flvMetaData:n(322),talkFailedAndStop:n(477),removeLoadingBgImage:"removeLoadingBgImage",memoryLog:n(458),downloadMemoryLog:n(404),pressureObserverCpu:n(316),currentPts:n(456),online:n(422),offline:"offline",networkState:n(367),clickInitPlayer:n(687),audioSplitBuffer:n(658)};n(774),n(537),n(676),n(418),n(438),n(753),n(705),n(412),n(720),n(341),n(584),n(668),n(308),n(714),n(321),n(573),n(748),n(556),n(626),n(731),n(333),n(421),n(716),n(640),n(392),n(370),n(468),n(725),n(567),n(499),n(677),n(574),n(390),n(335),n(462),n(451),n(304),n(394),n(534),n(337),n(729),n(327),n(648),n(570),n(395),n(456),n(301),n(367),n(726),n(678),n(687),n(521),n(727),n(477),n(493),n(746),n(438),n(753),n(705),n(412),n(720),n(584),n(505),n(333),n(320),n(331),n(451),n(751),n(648);n(523),n(521);n(759),n(459),n(559),n(669),n(428),n(636),n(285),n(683),n(310),n(518),n(632),n(452),n(436),n(552),n(713),n(509),n(581),n(772),n(577),n(303),n(317),n(312),n(540),n(588),n(365),n(528),n(612),n(605),n(645),n(371),n(343),n(386),n(525),n(341),n(412),n(394),n(557),n(410),n(583),n(463),n(471),n(500),n(771),n(418),n(532),n(440),n(747),n(465),n(770),n(747),n(474),n(325);const E={h264:7,h265:12,mpeg4:99},_={AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8};n(563),n(417),n(629),n(712);const k={sps:7,pps:8,iFrame:5,kUnspecified:0,kSliceNonIDR:1,kSliceDPA:2,kSliceDPB:3,kSliceDPC:4,kSliceIDR:5,kSliceSEI:6,kSliceSPS:7,kSlicePPS:8,kSliceAUD:9,kEndOfSequence:10,kEndOfStream:11,kFiller:12,kSPSExt:13,kReserved0:14};n(293),n(353),n(291),n(433),n(444),n(467),n(318),n(503),n(680),n(407),n(603),n(548),n(453),n(364),n(734),n(339),n(378),Math[n(681)](40),n(673),n(661),n(692),n(554),n(450),n(475),n(406),n(673),n(661),n(761),n(653),n(330),n(558),n(602),n(761),n(653),n(342),n(700),n(617),n(662),n(449),n(358),n(623),n(745),n(539),n(294),n(517),n(657),n(289),n(546),n(419),n(363);n(397),n(711),n(606);n(709),n(448),n(695),n(379),n(611),n(454),n(579),n(599),n(470),n(472);const S={h264:n(675),h265:n(501),av1:"av1"};n(296),n(368),n(777),n(355),n(490),n(492),n(666),n(382),n(524),n(508),n(585),n(464);const C={sequenceHeader:0,nalu:1},A={keyFrame:1,interFrame:2};n(532),n(545),n(372),n(297),n(562);n(446),n(535),n(378),n(628),n(418),n(660);n(659);n(413),n(545),n(732),n(619),n(659),n(663),n(572),n(502),n(624),n(763),n(549),n(721),n(299),n(513),n(399),n(590),n(591),n(416),n(575),n(380),n(704),n(455),n(654),n(618),n(619),n(620),n(674),n(519),n(345),n(324),n(616),n(315),n(708),n(641),n(396),n(697),n(679),n(431),n(437),n(414),n(350),n(374),n(443),n(682),n(531),n(418),n(652),n(529),n(391),n(403),n(694),n(773),n(544),n(441),n(649),n(671),n(482),n(313),n(376),n(354),n(744),n(728),n(488),n(582),n(630),n(415),n(690),n(373),n(526),n(302),n(387),n(411),n(515),n(400),n(504),n(606),n(338),n(698),n(615),n(522),n(767),n(326),n(524),n(508),typeof window===n(733)&&window[n(639)]===window?window:typeof self===n(733)&&self[n(491)]===self?self:typeof global===n(733)&&global[n(478)]===global&&global,n(579),n(564),n(434),n(424),n(328),n(597),n(505),n(714),n(508),n(637),n(351),n(432),n(635),n(506),n(667),n(717),n(418),n(576),n(348),n(486),n(498),n(405),n(460);const P={wasm:n(718),simd:n(644),fSimd:"FSimd"};n(749),n(541);var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=Object.freeze({__proto__:null,commonjsGlobal:T,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},createCommonjsModule:function(e,r){return e(r={exports:{}},r.exports),r.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}});function I(e,r){var t=$();return(I=function(e,r){return t[e-=127]})(e,r)}var F=I;function $(){var e=["8123283sDKujW","change","document","fullscreenerror","defineProperties","bind","4EuisLR","msExitFullscreen","webkitExitFullscreen","762ANPvqC","msRequestFullscreen","requestFullscreen","mozCancelFullScreen","object","58736epNoJC","screenfull","fullscreenElement","MSFullscreenChange","mozFullScreenElement","exitFullscreen","mozfullscreenchange","msFullscreenElement","mozRequestFullScreen","22120pleSwU","undefined","isEnabled","4947496BzWfFI","webkitRequestFullScreen","addEventListener","webkitCurrentFullScreenElement","673090QdQXGg","4209130lKsrBH","createCommonjsModule","isFullscreen","webkitFullscreenEnabled","mozFullScreenEnabled","catch","length","off","webkitCancelFullScreen","webkitfullscreenchange","MSFullscreenError","3081111ffIgef","mozfullscreenerror","request","fullscreenchange","fullscreenEnabled","webkitfullscreenerror","exports","then","webkitRequestFullscreen"];return($=function(){return e})()}!function(e,r){for(var t=I,n=e();;)try{if(539212===-parseInt(t(168))/1+-parseInt(t(133))/2+-parseInt(t(145))/3+-parseInt(t(160))/4*(-parseInt(t(134))/5)+-parseInt(t(163))/6*(parseInt(t(177))/7)+parseInt(t(129))/8+parseInt(t(154))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}($),D[F(135)]((function(e){var r,t,n,o,a,i;r=I,t="undefined"!=typeof window&&typeof window[r(156)]!==r(127)?window[r(156)]:{},n=r(167)!==r(127)&&e[r(151)],o=function(){for(var e,n=r,o=[[n(165),n(173),n(170),n(149),n(148),n(157)],[n(153),n(162),"webkitFullscreenElement",n(137),"webkitfullscreenchange",n(150)],[n(130),n(142),n(132),n(142),n(143),n(150)],[n(176),n(166),n(172),n(138),n(174),n(146)],[n(164),n(161),n(175),"msFullscreenEnabled",n(171),n(144)]],a=0,i=o[n(140)],s={};a<i;a++)if((e=o[a])&&e[1]in t){for(a=0;a<e[n(140)];a++)s[o[0][a]]=e[a];return s}return!1}(),a={change:o[r(148)],error:o.fullscreenerror},i={request:function(e,n){return new Promise(function(r,a){var i=I,s=function(){this[I(141)]("change",s),r()}[i(159)](this);this.on("change",s);var d=(e=e||t.documentElement)[o.requestFullscreen](n);d instanceof Promise&&d[i(152)](s)[i(139)](a)}[r(159)](this))},exit:function(){return new Promise(function(e,r){var n=I;if(this[n(136)]){var a=function(){var r=n;this[r(141)](r(155),a),e()}[n(159)](this);this.on(n(155),a);var i=t[o[n(173)]]();i instanceof Promise&&i[n(152)](a)[n(139)](r)}else e()}.bind(this))},toggle:function(e,t){var n=r;return this.isFullscreen?this.exit():this[n(147)](e,t)},onchange:function(e){var t=r;this.on(t(155),e)},onerror:function(e){this.on("error",e)},on:function(e,n){var o=a[e];o&&t[r(131)](o,n,!1)},off:function(e,r){var n=a[e];n&&t.removeEventListener(n,r,!1)},raw:o},o?(Object[r(158)](i,{isFullscreen:{get:function(){return Boolean(t[o[r(170)]])}},element:{enumerable:!0,get:function(){return t[o[r(170)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[o[r(149)]])}}}),n?e[r(151)]=i:window[r(169)]=i):n?e[r(151)]={isEnabled:!1}:window[r(169)]={isEnabled:!1}}))[F(128)];const R=B;!function(e,r){const t=B,n=e();for(;;)try{if(793806===-parseInt(t(395))/1+parseInt(t(413))/2+-parseInt(t(404))/3*(parseInt(t(407))/4)+-parseInt(t(392))/5*(-parseInt(t(408))/6)+-parseInt(t(411))/7*(-parseInt(t(417))/8)+-parseInt(t(398))/9*(parseInt(t(399))/10)+-parseInt(t(418))/11*(-parseInt(t(416))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(U);class M{constructor(e){const r=B;this[r(403)]=e,this._buffer_index=0,this[r(390)]=e[r(421)],this[r(389)]=8*e.byteLength,this._current_word=0,this[r(412)]=0}[R(401)](){this[R(403)]=null}_fillCurrentWord(){const e=R;let r=this._total_bytes-this[e(419)];if(r<=0)return void console.error("ExpGolomb: _fillCurrentWord() but no bytes available",this._total_bytes,this[e(419)]);let t=Math[e(420)](4,r),n=new Uint8Array(4);n[e(400)](this[e(403)][e(410)](this[e(419)],this._buffer_index+t)),this[e(397)]=new DataView(n[e(394)])[e(406)](0,!1),this[e(419)]+=t,this[e(412)]=8*t}[R(393)](e){const r=R;if(e>32&&console[r(402)]("ExpGolomb: readBits() bits exceeded max 32bits!"),e<=this[r(412)]){let t=this[r(397)]>>>32-e;return this[r(397)]<<=e,this[r(412)]-=e,t}let t=this._current_word_bits_left?this[r(397)]:0;t>>>=32-this[r(412)];let n=e-this[r(412)];this[r(414)]();let o=Math.min(n,this[r(412)]),a=this._current_word>>>32-o;return this._current_word<<=o,this[r(412)]-=o,t=t<<o|a,t}[R(405)](){return 1===this[R(393)](1)}[R(409)](){return this.readBits(8)}_skipLeadingZero(){const e=R;let r;for(r=0;r<this._current_word_bits_left;r++)if(0!=(this._current_word&2147483648>>>r))return this[e(397)]<<=r,this[e(412)]-=r,r;return this[e(414)](),r+this[e(396)]()}[R(391)](){let e=this[R(396)]();return this.readBits(e+1)-1}[R(415)](){let e=this[R(391)]();return 1&e?e+1>>>1:-1*(e>>>1)}}function B(e,r){const t=U();return(B=function(e,r){return t[e-=389]})(e,r)}function U(){const e=["_current_word","19296XzMkWO","5090yrQUWu","set","destroy","error","_buffer","24XcWeJD","readBool","getUint32","383816uhSVjC","1338RfPvgr","readByte","subarray","784QooIXi","_current_word_bits_left","2113274jOlvNC","_fillCurrentWord","readSEG","612JYUkVk","35976TBWGhi","122001LLPlmA","_buffer_index","min","byteLength","_total_bits","_total_bytes","readUEG","23965uokajN","readBits","buffer","542047EVgjeo","_skipLeadingZero"];return(U=function(){return e})()}const x=L;!function(e,r){const t=L,n=e();for(;;)try{if(441668===-parseInt(t(208))/1+-parseInt(t(167))/2*(-parseInt(t(155))/3)+parseInt(t(177))/4+-parseInt(t(192))/5*(-parseInt(t(191))/6)+-parseInt(t(187))/7+-parseInt(t(193))/8*(-parseInt(t(164))/9)+parseInt(t(163))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(W);const O=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1];function W(){const e=["readByte","buffer","navigator","log","read","sampling_index","readBits","eof_flag_","warn","75129BFbTOS","data","profile: ","getIncompleteData","indexOf","readNextAACFrame","hasIncompleteData","error","1191480vvPTZH","51003mZrYQJ","channel_config","mp4a.40.2","34fKEoTW","sbr","mp4a.40.","object_type","destroy","Invalid sampling index: ","channels","sampleRate: ","findNextSyncwordOffset","more than 2 numSubFrames Not Supported","1306236puzGcQ","android","length","byteLength","firefox","audioMuxVersionA is Not Supported","chan_config","getLATMValue","bufoff","sequenceHeader","2985409LFvTli","readBool","current_syncword_offset_","set","12roMZXM","350535VFeexf","232HaKnqt","iserro",". Only frameLengthType = 0 Supported","sampling_freq_index","frameLengthType = ","unshift","read_golomb","audio_object_type","bufpos","subarray","slice","has_last_incomplete_data","buflen","StreamMuxConfig Missing","sampling_frequency","307840FoefDP","aacEncoderConfigurationRecord","AAC","sample_rate","more than 2 numProgram Not Supported","data_","other_data_present"];return(W=function(){return e})()}function j(e){const r=L;return function(e){const r=L;return e[0]>>4===_[r(210)]}(e)&&e[1]===C[r(186)]}function L(e,r){const t=W();return(L=function(e,r){return t[e-=155]})(e,r)}x(199);x(175),x(160),x(161),x(158);x(175),x(184),x(160),x(161),x(158);function V(e,r){const t=z();return(V=function(e,r){return t[e-=437]})(e,r)}function z(){const e=["buffer","11rkyGOG","set","49380aCqjAa","push","707025bDyWyn","length","45568020rmPBaX","12518505QxoVRn","54Lnpphk","subarray","4cRioof","7639786UvFUot","shift","103046ceOjpU","6055744ioObLu","16rbpSSY","byteLength","setUint32"];return(z=function(){return e})()}!function(e,r){const t=V,n=e();for(;;)try{if(763062===-parseInt(t(451))/1*(-parseInt(t(449))/2)+-parseInt(t(438))/3*(parseInt(t(446))/4)+-parseInt(t(440))/5*(-parseInt(t(444))/6)+parseInt(t(447))/7+parseInt(t(450))/8+parseInt(t(443))/9+parseInt(t(442))/10*(-parseInt(t(455))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(z);const H=X;function N(){return(new Date).getTime()}!function(e,r){const t=X,n=e();for(;;)try{if(840728===parseInt(t(492))/1*(parseInt(t(573))/2)+-parseInt(t(551))/3*(-parseInt(t(432))/4)+-parseInt(t(605))/5*(-parseInt(t(407))/6)+parseInt(t(408))/7+parseInt(t(348))/8*(-parseInt(t(662))/9)+-parseInt(t(359))/10*(-parseInt(t(629))/11)+-parseInt(t(385))/12*(parseInt(t(656))/13))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Y),(()=>{const e=X;try{if(typeof WebAssembly===e(475)&&"function"==typeof WebAssembly[e(668)]){const r=new(WebAssembly[e(406)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(r instanceof WebAssembly.Module)return new(WebAssembly[e(651)])(r)instanceof WebAssembly[e(651)]}}catch(e){}})();const G='"production"';H(547),H(669),H(472);const q=G===H(571);H(354);function X(e,r){const t=Y();return(X=function(e,r){return t[e-=340]})(e,r)}function K(e){return e&&typeof e===H(402)}function J(e){const r=H;return e[0]>>4===A[r(584)]&&e[1]===C[r(396)]}function Z(e){return!0!==e&&"true"!==e}function Y(){const e=["quality","ALAW","left","MouseEvents","text","block","-moz-user-select","setUint32","paused","stringify","validate","innerHTML","repeat",'"development"',"YB/s","webgl2","object","chrome","fontSize","color","numberOfFrames","MB/s","getFullYear","iFrame","memory","host","application/360softmgrplugin","performance","user-select","href","fromCharCode","demuxUseWorker","GB/s","139qGKvwQ","log","mozGetUserMedia","getDay","webgl","createImageBitmap","toDataURL","Edge","strokeStyle","win64","pow","AudioData","hev3","undefined","copyright","readAsArrayBuffer","failed to asynchronously prepare wasm","createEvent","apply","toFixed","fillStyle","[object Error]","split","zIndex","green yuv","getParameter","setUint8","setAttribute","h265","wow32","shadowRoot","dispatchEvent",'video/mp4; codecs="',"ActiveXObject","round","port","error","Edg","set","setUint16","createTextNode","-webkit-text-size-adjust","application/vnd.chromium.remoting-viewer","crossOrigin","0 KB/s","VideoEncoder.isConfigSupported() result is not supported","document","100","visibility","pathname","useOffscreen","getSeconds","KB/s","AudioDecoder","safari",'"2.1.4"',"lineWidth","opacity","px 宋体","526857VOSAED","webkit-3d","appendChild","trim","position","objectFit","sps","getUserMedia","getMonth","test","Safari","touches","isFullscreen","clientY","join","moz-webgl","kSliceBLA_W_LP","forEach","canConstructInDedicatedWorker","div",'"delaytime"',"navigator","428QCjhaw","hev5","status","application/asx","Reserved SBR extensions is not implemented","byteLength","firefox","charCodeAt","-webkit-tap-highlight-color","Bytes","documentElement","keyFrame","getImageData","createObjectURL","hev1.1.6.L120.90","filter","indexOf","pointer-events: none !important; display: block !important","none","putImageData","script","resume","min","getHours","removeAttribute","message","drawImage","#000","html","image","initEvent","toUpperCase","875hpQqFC","msFullscreenElement","hostname","mousemove","location","atob","mouseup","-ms-user-select","B/s","PressureObserver","mediaDevices","pageX","true","format","useWCS","solid","contain","absolute","QihooBrowser","9999999","length","mimeTypes","click","createBufferSource","151899aneGUw","now","h264","onerror","element","readyState","textAlign","useMSE","setInt32","getContext","isEnabled","then","kSliceBLA_N_LP","high","isTypeSupported","buffer","createElement","backgroundColor","touchend","nLp","wow64","RIFF","Instance","mousedown","top","noteOn","If you want to help, upload a sample of this file to","169XsIYxh","360EE","result","keys","prototype","clientX","1117737vbXpxL","MULAW","ManagedMediaSource","0 Bytes","dataset","application/mozilla-npqihooquicklogin","instantiate",'"2-26-2025"',"fmt ","touchstart","download","content","charAt","restore","WAVE","application/hwepass2001.installepass2001","font","hash","win32","rgba(0,0,0,0)","xxxxxxxxxxxx4xxx","40iBrWbG","hev","data","localhost","NaN",";base64","1743436800000","data-","-webkit-user-select","not compiled with thread support, using thread emulation","getPropertyValue","410fCyuoX","removeChild","hev4","floor","numberOfChannels","search","kSliceBLA_W_RADL","assign","[object DOMException]","toLowerCase","ZB/s","borderStyle","fontFamily","string","TB/s","createBuffer","setInt16","VideoEncoder.isConfigSupported is not a function","PB/s","video","file","hev2","craNut","call","WebGL2RenderingContext","style","1966692myuqih","target","random","save","substring","right","opera","webkitFullscreenElement","getDate","slice","VideoFrame","sequenceHeader","experimental-webgl","sampleRate","setHours","strokeRect","addModule","function","revokeObjectURL","type","gpu","Module","51486upTxsS","1857471UrdusT","https:","protocol","WebGLRenderingContext","replace","webm","[object Exception]","msGetUserMedia","subarray","vps","bottom","hasAudio","URL","green","Opera","360","hour","isConfigSupported","attachShadow","width","getElementById","-o-user-select","toString","height","28BXqZdT","max","pps","canvas","data:","MediaStreamTrackGenerator","img","edge","body","start","VideoDecoder","avc1.","borderColor","imageSmoothingEnabled","px Arial","scrollTop","event","copyToChannel","wheel","MediaSource","close","userAgent","100%","src","onload","match","rect"];return(Y=function(){return e})()}function Q(){const e=["36051852vZHYXw","11QHFSui","keys","5095482cvAcsX","off","2006136wFeufn","length","apply","8053011pPnBsZ","4627679HcUMEv","808385UZTcku","forEach","emit","3023036PpEEAw","3dEhnnL","2MHKKVc","5JKilyh","10oekMZe","push","slice"];return(Q=function(){return e})()}const ee=re;function re(e,r){const t=Q();return(re=function(e,r){return t[e-=112]})(e,r)}!function(e,r){const t=re,n=e();for(;;)try{if(573845===parseInt(t(113))/1*(-parseInt(t(118))/2)+-parseInt(t(117))/3*(parseInt(t(116))/4)+-parseInt(t(119))/5*(parseInt(t(126))/6)+-parseInt(t(112))/7+-parseInt(t(128))/8+parseInt(t(131))/9*(parseInt(t(120))/10)+parseInt(t(124))/11*(parseInt(t(123))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Q);class te{on(e,r,t){const n=re,o=this.e||(this.e={});return(o[e]||(o[e]=[]))[n(121)]({fn:r,ctx:t}),this}once(e,r,t){const n=this;function o(){const a=re;n[a(127)](e,o);for(var i=arguments[a(129)],s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];r[a(130)](t,s)}return o._=r,this.on(e,o,t)}[ee(115)](e){const r=ee,t=((this.e||(this.e={}))[e]||[])[r(122)]();for(var n=arguments[r(129)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(let e=0;e<t.length;e+=1)t[e].fn.apply(t[e].ctx,o);return this}[ee(127)](e,r){const t=ee,n=this.e||(this.e={});if(!e)return Object[t(125)](n)[t(114)]((e=>{delete n[e]})),void delete this.e;const o=n[e],a=[];if(o&&r)for(let e=0,n=o[t(129)];e<n;e+=1)o[e].fn!==r&&o[e].fn._!==r&&a[t(121)](o[e]);return a[t(129)]?n[e]=a:delete n[e],this}}const ne=ie;function oe(){const e=["secondStartCodeOffset","off","7976214sRnWEP","dispatch","set","emit","state","1168714NPhvSi","data","1536774jHmiPa","11NpHWqC","isDestroyed","Init","3gvyMos","5XzGSyF","length","8qBHimM","destroy","parsedOffset","3SbRdki","10BPQYut","5367804gosUlo","fisrtStartCodeOffset","reset","findFirstStartCode","findSecondStartCode","player","slice","3697610ZuriQn","18492792pYsuCE","3926608AHOPWY","tempBuffer","versionLayer"];return(oe=function(){return e})()}!function(e,r){const t=ie,n=e();for(;;)try{if(882636===parseInt(t(236))/1*(parseInt(t(230))/2)+parseInt(t(242))/3*(parseInt(t(220))/4)+parseInt(t(237))/5*(-parseInt(t(232))/6)+-parseInt(t(218))/7*(parseInt(t(239))/8)+-parseInt(t(225))/9*(-parseInt(t(243))/10)+-parseInt(t(233))/11*(parseInt(t(219))/12)+-parseInt(t(244))/13)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(oe);const ae={init:0,findFirstStartCode:1,findSecondStartCode:2};function ie(e,r){const t=oe();return(ie=function(e,r){return t[e-=213]})(e,r)}class se extends te{constructor(e){const r=ie;super(),this[r(216)]=e,this[r(234)]=!1,this.reset()}[ne(240)](){const e=ne;this[e(234)]=!1,this[e(224)](),this[e(213)]()}[ne(213)](){const e=ne;this.stats=ae.init,this.tempBuffer=new Uint8Array(0),this[e(241)]=0,this[e(222)]=0}[ne(226)](e,r){const t=ne;let n=new Uint8Array(this.tempBuffer[t(238)]+e[t(238)]);for(n.set(this.tempBuffer,0),n[t(227)](e,this.tempBuffer.length),this[t(221)]=n;!this.isDestroyed;){if(this.state==ae[t(235)]){let e=!1;for(;this[t(221)][t(238)]-this[t(241)]>=2&&!this[t(234)];)if(255==this[t(221)][this[t(241)]]){if(!(!1&this[t(221)][this[t(241)]+1])){this.versionLayer=this.tempBuffer[this[t(241)]+1],this.state=ae[t(214)],this[t(245)]=this.parsedOffset,this[t(241)]+=2,e=!0;break}this[t(241)]++}else this[t(241)]++;if(e)continue;break}if(this.state==ae[t(214)]){let e=!1;for(;this[t(221)].length-this[t(241)]>=2&&!this[t(234)];)if(255==this.tempBuffer[this[t(241)]]){if(this[t(221)][this[t(241)]+1]==this.versionLayer){this.state=ae[t(215)],this[t(223)]=this[t(241)],this[t(241)]+=2,e=!0;break}this.parsedOffset++}else this[t(241)]++;if(e)continue;break}if(this[t(229)]==ae[t(215)]){let e=this[t(221)].slice(this[t(245)],this[t(223)]);this[t(228)](t(231),e,r),this[t(221)]=this.tempBuffer[t(217)](this[t(223)]),this[t(245)]=0,this[t(241)]=2,this.state=ae[t(214)]}}}}function de(e,r){const t=ue();return(de=function(e,r){return t[e-=153]})(e,r)}const le=de;function ue(){const e=["getProfileString","length","259fNdlYq","221067tHyDsQ","toFixed","60TFPvBE","readSEG","1181412lACiLu","subarray","parseSPS$2","byteLength","244849deCoul","10cWpCrm","133664uTyrhx","readByte","Unknown","destroy","Main","_ebsp2rbsp","225UvIOlp","562213ayxmRk","ceil","Extended","getLevelString","readUEG","getChromaFormatString","1488332oCYAzT","avc1.","High","High444","parseSPS","4:2:0","4:2:2","22bxhqxz","readBits","6510lkxNzm","readBool","High10","_skipScalingList"];return(ue=function(){return e})()}!function(e,r){const t=de,n=e();for(;;)try{if(443668===-parseInt(t(178))/1+-parseInt(t(191))/2*(-parseInt(t(161))/3)+-parseInt(t(184))/4*(-parseInt(t(170))/5)+parseInt(t(165))/6+parseInt(t(160))/7*(-parseInt(t(171))/8)+parseInt(t(177))/9*(-parseInt(t(154))/10)+-parseInt(t(169))/11*(parseInt(t(163))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ue);class ce{static[le(176)](e){let r=e,t=r[le(168)],n=new Uint8Array(t),o=0;for(let e=0;e<t;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(n[o]=r[e],o++);return new Uint8Array(n.buffer,0,o)}static[le(188)](e){const r=le;let t=ce[r(176)](e),n=new M(t);n[r(172)]();let o=n.readByte();n[r(172)]();let a=n[r(172)]();n[r(182)]();let i=ce.getProfileString(o),s=ce[r(181)](a),d=1,l=420,u=[0,420,422,444],c=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(d=n[r(182)](),3===d&&n[r(153)](1),d<=3&&(l=u[d]),c=n[r(182)]()+8,n.readUEG(),n.readBits(1),n[r(155)]())){let e=3!==d?8:12;for(let t=0;t<e;t++)n.readBool()&&(t<6?ce._skipScalingList(n,16):ce[r(157)](n,64))}n[r(182)]();let f=n[r(182)]();if(0===f)n[r(182)]();else if(1===f){n[r(153)](1),n.readSEG(),n[r(164)]();let e=n[r(182)]();for(let t=0;t<e;t++)n[r(164)]()}let h=n.readUEG();n[r(153)](1);let p=n[r(182)](),m=n[r(182)](),g=n[r(153)](1);0===g&&n.readBits(1),n[r(153)](1);let v=0,y=0,w=0,b=0;n.readBool()&&(v=n[r(182)](),y=n.readUEG(),w=n[r(182)](),b=n.readUEG());let E=1,_=1,k=0,S=!0,C=0,A=0;if(n[r(155)]()){if(n[r(155)]()){let e=n[r(172)](),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(E=t[e-1],_=o[e-1]):255===e&&(E=n[r(172)]()<<8|n[r(172)](),_=n[r(172)]()<<8|n[r(172)]())}if(n[r(155)]()&&n.readBool(),n[r(155)]()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n[r(155)]()&&(n[r(182)](),n[r(182)]()),n[r(155)]()){let e=n.readBits(32),t=n[r(153)](32);S=n[r(155)](),C=t,A=2*e,k=C/A}}let P=1;(1!==E||1!==_)&&(P=E/_);let T=0,D=0;if(0===d)T=1,D=2-g;else{T=3===d?1:2,D=(1===d?2:1)*(2-g)}let I=16*(p+1),F=16*(m+1)*(2-g);I-=(v+y)*T,F-=(w+b)*D;let $=Math.ceil(I*P);return n[r(174)](),n=null,{profile_string:i,level_string:s,bit_depth:c,ref_frames:h,chroma_format:l,chroma_format_string:ce[r(183)](l),frame_rate:{fixed:S,fps:k,fps_den:A,fps_num:C},sar_ratio:{width:E,height:_},codec_size:{width:I,height:F},present_size:{width:$,height:F}}}static[le(167)](e){const r=le;let t=e[r(166)](1,4),n=r(185);for(let e=0;e<3;e++){let o=t[e].toString(16);o[r(159)]<2&&(o="0"+o),n+=o}let o=ce[r(176)](e),a=new M(o);a[r(172)]();let i=a[r(172)]();a[r(172)]();let s=a[r(172)]();a[r(182)]();let d=ce.getProfileString(i),l=ce[r(181)](s),u=1,c=420,f=[0,420,422,444],h=8,p=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(u=a[r(182)](),3===u&&a[r(153)](1),u<=3&&(c=f[u]),h=a[r(182)]()+8,p=a[r(182)]()+8,a[r(153)](1),a[r(155)]())){let e=3!==u?8:12;for(let t=0;t<e;t++)a[r(155)]()&&(t<6?ce[r(157)](a,16):ce[r(157)](a,64))}a.readUEG();let m=a[r(182)]();if(0===m)a[r(182)]();else if(1===m){a[r(153)](1),a[r(164)](),a[r(164)]();let e=a[r(182)]();for(let r=0;r<e;r++)a.readSEG()}let g=a[r(182)]();a.readBits(1);let v=a[r(182)](),y=a[r(182)](),w=a[r(153)](1);0===w&&a.readBits(1),a[r(153)](1);let b=0,E=0,_=0,k=0;a[r(155)]()&&(b=a[r(182)](),E=a.readUEG(),_=a.readUEG(),k=a[r(182)]());let S=1,C=1,A=0,P=!0,T=0,D=0;if(a[r(155)]()){if(a[r(155)]()){let e=a.readByte(),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],n=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(S=t[e-1],C=n[e-1]):255===e&&(S=a[r(172)]()<<8|a[r(172)](),C=a.readByte()<<8|a[r(172)]())}if(a[r(155)]()&&a.readBool(),a[r(155)]()&&(a[r(153)](4),a[r(155)]()&&a[r(153)](24)),a[r(155)]()&&(a.readUEG(),a[r(182)]()),a[r(155)]()){let e=a[r(153)](32),t=a[r(153)](32);P=a.readBool(),T=t,D=2*e,A=T/D}}let I=1;(1!==S||1!==C)&&(I=S/C);let F=0,$=0;if(0===u)F=1,$=2-w;else{F=3===u?1:2,$=(1===u?2:1)*(2-w)}let R=16*(v+1),B=16*(y+1)*(2-w);R-=(b+E)*F,B-=(_+k)*$;let U=Math[r(179)](R*I);return a.destroy(),a=null,{codec_mimetype:n,profile_idc:i,level_idc:s,profile_string:d,level_string:l,chroma_format_idc:u,bit_depth:h,bit_depth_luma:h,bit_depth_chroma:p,ref_frames:g,chroma_format:c,chroma_format_string:ce[r(183)](c),frame_rate:{fixed:P,fps:A,fps_den:D,fps_num:T},sar_ratio:{width:S,height:C},codec_size:{width:R,height:B},present_size:{width:U,height:B}}}static[le(157)](e,r){const t=le;let n=8,o=8,a=0;for(let i=0;i<r;i++)0!==o&&(a=e[t(164)](),o=(n+a+256)%256),n=0===o?n:o}static[le(158)](e){const r=le;switch(e){case 66:return"Baseline";case 77:return r(175);case 88:return r(180);case 100:return r(186);case 110:return r(156);case 122:return"High422";case 244:return r(187);default:return r(173)}}static getLevelString(e){return(e/10)[le(162)](1)}static[le(183)](e){const r=le;switch(e){case 420:return r(189);case 422:return r(190);case 444:return"4:4:4";default:return"Unknown"}}}const fe=pe;function he(){const e=["121BezZFP","buffer","length","2807JFbofB","67304SHKLOI","630RhYpiw","839936LUNEqj","8keAZES","bufoff","54248iSnydw","bufpos","buflen","iserro","420205eeaCyl","read","63wKuaSM","469710URiGhu","681522tKxkTs"];return(he=function(){return e})()}function pe(e,r){const t=he();return(pe=function(e,r){return t[e-=230]})(e,r)}!function(e,r){const t=pe,n=e();for(;;)try{if(175126===-parseInt(t(238))/1*(-parseInt(t(235))/2)+-parseInt(t(230))/3+-parseInt(t(237))/4+-parseInt(t(244))/5+parseInt(t(236))/6*(-parseInt(t(234))/7)+-parseInt(t(240))/8*(parseInt(t(246))/9)+-parseInt(t(247))/10*(-parseInt(t(231))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(he);fe(245);function me(e,r){const t=ge();return(me=function(e,r){return t[e-=189]})(e,r)}function ge(){const e=["809025CbNMCv","235652htXBxn","_bytesAvailable","min","buffer","set","_data","byteLength","readBits","722022DflCfE","Cannot read more than 32 bits","7JzEPKU","readBool","_word","14390145FRpaEZ","10iGIqGh","55MnlRPq","_loadWord","skipLZ","readUByte","_bitsAvailable","skipScalingList","No bytes available","floor","readUEG","316672DmehFD","474990DSYzmJ","ExpGolomb data params is required","8286128UGwVsI","subarray","readEG","skipBits"];return(ge=function(){return e})()}const ve=me;!function(e,r){const t=me,n=e();for(;;)try{if(799014===parseInt(t(212))/1*(parseInt(t(194))/2)+-parseInt(t(195))/3+-parseInt(t(202))/4*(-parseInt(t(217))/5)+-parseInt(t(210))/6+-parseInt(t(201))/7+parseInt(t(197))/8+-parseInt(t(215))/9*(parseInt(t(216))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ge);ve(200),ve(209),ve(193),ve(199),ve(213),ve(220),ve(190);const ye=we;function we(e,r){const t=Ee();return(we=function(e,r){return t[e-=479]})(e,r)}function be(e){const r=we;let t=arguments[r(557)]>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let o=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();const a=new DataView(e.buffer);let i=a.getUint8(0),s=a[r(540)](1);if(a[r(540)](2),a[r(540)](3),1!==i){if(!t[r(495)])return console.error("Invalid AVCDecoderConfigurationRecord, invalid version "+i+", valid version is 1 and return"),{};{console[r(525)](r(482)+i+r(555));let e=252&a[r(540)](0)|1;a[r(537)](0,e)}}if(0===s){if(!t.correctionConfigurationProfileIndication)return console[r(536)](r(563)),{};console[r(525)](r(501)),a[r(537)](1,66)}const d=1+(3&a[r(540)](4));if(3!==d&&4!==d)return{};let l=31&a[r(540)](5);if(0===l)return{};let u=6;for(let t=0;t<l;t++){let i=a[r(558)](u,!o);if(u+=2,0===i)continue;let s=new Uint8Array(e[r(488)],u,i);u+=i;let d=ce.parseSPS(s);if(0!==t)continue;n[r(490)]=s,n[r(512)]=1e3,n[r(502)]=d[r(560)][r(496)],n[r(533)]=d[r(560)][r(535)],n.presentWidth=d[r(550)][r(496)],n[r(504)]=d.present_size.height,n[r(522)]=d[r(534)],n[r(565)]=d[r(506)],n[r(561)]=d[r(508)],n[r(517)]=d[r(564)],n[r(509)]=d[r(532)],n[r(515)]=d[r(524)],(!1===d[r(524)][r(538)]||0===d[r(524)][r(567)]||0===d[r(524)][r(489)])&&(n[r(515)]={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let l=n[r(515)][r(489)],c=n[r(515)].fps_num;n[r(485)]=n.timescale*(l/c);let f=s[r(505)](1,4),h=r(479);for(let e=0;e<3;e++){let t=f[e][r(518)](16);t[r(557)]<2&&(t="0"+t),h+=t}n[r(546)]=h}let c=a[r(540)](u);if(0===c)return{};u++;for(let t=0;t<c;t++){let t=a.getUint16(u,!o);if(u+=2,0===t)continue;let i=new Uint8Array(e[r(488)],u,t);u+=t,n[r(545)]=i}if(n[r(481)]=S[r(499)],n[r(490)]){const e=n[r(490)][r(562)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(520)](t,0),o.set(n[r(490)],4),n[r(490)]=o}if(n[r(545)]){const e=n[r(545)][r(562)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(520)](t,0),o.set(n[r(545)],4),n[r(545)]=o}return n}!function(e,r){const t=we,n=e();for(;;)try{if(584272===parseInt(t(542))/1*(-parseInt(t(494))/2)+-parseInt(t(523))/3*(parseInt(t(486))/4)+-parseInt(t(500))/5+-parseInt(t(526))/6+-parseInt(t(519))/7+-parseInt(t(531))/8*(-parseInt(t(543))/9)+parseInt(t(484))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ee);ye(554);function Ee(){const e=["Could not find H264 startcode until payload end!","avc_ref_frames","timescale","compat","skipScalingList","frameRate","type","chromaFormat","toString","194292uhAUVK","set","nb_sps","profile","2346BJzviD","frame_rate","log","4412880URInXB","kReserved0","parseSPS$2","bit_depth_luma","eofFlag","1320720yjbytR","sar_ratio","codecHeight","profile_string","height","error","setUint8","fixed","Invalid AVCDecoderConfigurationRecord: No PPS'","getUint8","readBits","234340yapMex","45nHjnOt","chroma_format_idc","pps","codec","avcc","skipBits","readUByte","present_size","Strange AVCDecoderConfigurationRecord: PPS Count = ","shift","skipUEG","readNextNaluPayload",", correct to 1","readBool","length","getUint16","currentStartcodeOffset","codec_size","bitDepth","byteLength","Invalid parseAVCDecoderConfigurationRecord, AVC profile (0) detected, and return","chroma_format","level","read","fps_num","avc1.","nalu","videoType","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] invalid version ","Invalid AVCDecoderConfigurationRecord: No SPS","30783950amPfzI","refSampleDuration","4492HZptRp","iFrame","buffer","fps_den","sps","findNextStartCodeOffset","presentWidth","readUEG","8MeOFtT","correctionConfigurationVersion","width"," Strange AVCDecoderConfigurationRecord: SPS Count = ","data","h264","3703955SqxfJX","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] AVC profile (0) detected, correct to Baseline Profile (66)","codecWidth","push","presentHeight","subarray","level_string","read_golomb","bit_depth","sarRatio"];return(Ee=function(){return e})()}function _e(e,r){const t=Se();return(_e=function(e,r){return t[e-=236]})(e,r)}const ke=_e;function Se(){const e=["1182247UtWpQn","m_byte","GetBYTE","m_idx","GetWord","length","13960RgZxTG","4MpCVaY","16664jbygvW","m_zeros","118412uosjRg","12imiwUP","108xfcyaE","GetUE","GetBit","m_len","m_data","m_bits","7085tmsEqG","72kZwkGb","2790uhjQAj","2561VKEOye","2912qHSDwK","344165QOxeGV","739533ejkthA","GetSE"];return(Se=function(){return e})()}!function(e,r){const t=_e,n=e();for(;;)try{if(474963===parseInt(t(248))/1*(-parseInt(t(258))/2)+parseInt(t(249))/3*(-parseInt(t(236))/4)+-parseInt(t(243))/5*(-parseInt(t(237))/6)+-parseInt(t(247))/7*(parseInt(t(259))/8)+-parseInt(t(245))/9*(-parseInt(t(257))/10)+parseInt(t(251))/11*(parseInt(t(244))/12)+parseInt(t(246))/13*(parseInt(t(261))/14))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Se);ke(253),ke(239),ke(255),ke(238),ke(250);const Ce=Ae;function Ae(e,r){const t=Pe();return(Ae=function(e,r){return t[e-=168]})(e,r)}!function(e,r){const t=Ae,n=e();for(;;)try{if(996394===-parseInt(t(172))/1*(parseInt(t(184))/2)+-parseInt(t(178))/3+-parseInt(t(189))/4*(-parseInt(t(170))/5)+parseInt(t(182))/6*(-parseInt(t(171))/7)+-parseInt(t(183))/8*(parseInt(t(180))/9)+-parseInt(t(185))/10*(parseInt(t(188))/11)+parseInt(t(181))/12)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Pe);Ce(186);function Pe(){const e=["282GiiDwt","7450hVtMQe","_ebsp2rbsp","SPSParser sps_seq_parameter_set_id > 15","209UwSPxG","4KzXIdB","SPSParser chroma_format_idc > 3","buffer","3178205BqYGLu","5529314wWKuwm","12823YqjkND","SPSParser bit_depth_luma_minus8 != bit_depth_chroma_minus8","GetUE","SPSParser sps_max_sub_layers_minus1 > 6","warn","GetWord","5809698pWFBpl","byteLength","409707ADNflC","84233856reQRRg","12orhKcg","232VLrtZi"];return(Pe=function(){return e})()}function Te(){const e=["1517654dOqniP","readUEG","readBool","16767aoTnxJ","Unknown","destroy","push","readByte","4:2:2",".1.L","4:4:4","15269490DSmZXK","readBits","8YPHTtV","356TXjPNr","1259994lOTZVq","4:2:0","buffer","toFixed","7033103DlUwxh",".B0","hvc1.","4154000tAfXoO","readSEG","1481424jEpeEG"];return(Te=function(){return e})()}function De(e,r){const t=Te();return(De=function(e,r){return t[e-=101]})(e,r)}function Ie(){const e=["min","6heOucS","_ebsp2rbsp","getProfileString","3945610VLcUSa","toFixed","readBool","hvc1.","MainSP","readSEG","SCC","10584iBFSJa","readUEG","buffer","11EDzPTI","getChromaFormatString",".1.L","444186KsuEyU","478CFlDxy","Main","4:0:0","1673yMnNFm","destroy","3797163HulbMC","getLevelString","583885ZHtRGG","492140nVjqEr","4413KmsGNG","push","Unknown","readBits","parseVPS","readByte","4:2:2","byteLength",".B0","parseSPS"];return(Ie=function(){return e})()}!function(e,r){const t=De,n=e();for(;;)try{if(925445===parseInt(t(115))/1+-parseInt(t(114))/2+parseInt(t(118))/3*(parseInt(t(104))/4)+-parseInt(t(112))/5+-parseInt(t(105))/6+-parseInt(t(109))/7+parseInt(t(103))/8*(parseInt(t(101))/9))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Te);const Fe=$e;function $e(e,r){const t=Ie();return($e=function(e,r){return t[e-=465]})(e,r)}!function(e,r){const t=$e,n=e();for(;;)try{if(244668===-parseInt(t(479))/1+parseInt(t(480))/2*(parseInt(t(489))/3)+-parseInt(t(488))/4+parseInt(t(487))/5*(parseInt(t(500))/6)+-parseInt(t(483))/7*(-parseInt(t(473))/8)+parseInt(t(485))/9+parseInt(t(466))/10*(-parseInt(t(476))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ie);class Re{static _ebsp2rbsp(e){const r=$e;let t=e,n=t[r(496)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(475)],0,a)}static[Fe(493)](e){const r=Fe;let t=Re[r(501)](e),n=new M(t);return n[r(494)](),n[r(494)](),n[r(492)](4),n[r(492)](2),n[r(492)](6),{num_temporal_layers:n.readBits(3)+1,temporal_id_nested:n.readBool()}}static[Fe(498)](e){const r=Fe;let t=Re[r(501)](e),n=new M(t);n[r(494)](),n[r(494)]();let o=0,a=0,i=0,s=0;n[r(492)](4);let d=n[r(492)](3);n[r(468)]();let l=n[r(492)](2),u=n[r(468)](),c=n[r(492)](5),f=n.readByte(),h=n[r(494)](),p=n[r(494)](),m=n.readByte(),g=n[r(494)](),v=n[r(494)](),y=n[r(494)](),w=n.readByte(),b=n[r(494)](),E=n[r(494)](),_=n.readByte(),k=[],S=[];for(let e=0;e<d;e++)k[r(490)](n[r(468)]()),S[r(490)](n[r(468)]());if(d>0)for(let e=d;e<8;e++)n.readBits(2);for(let e=0;e<d;e++)k[e]&&(n[r(494)](),n[r(494)](),n.readByte(),n[r(494)](),n[r(494)](),n.readByte(),n.readByte(),n[r(494)](),n[r(494)](),n.readByte(),n[r(494)]()),S[e]&&n[r(494)]();n[r(474)]();let C=n[r(474)]();3==C&&n[r(492)](1);let A=n.readUEG(),P=n[r(474)]();n[r(468)]()&&(o+=n.readUEG(),a+=n[r(474)](),i+=n[r(474)](),s+=n[r(474)]());let T=n[r(474)](),D=n.readUEG(),I=n[r(474)]();for(let e=n[r(468)]()?0:d;e<=d;e++)n[r(474)](),n[r(474)](),n[r(474)]();if(n[r(474)](),n.readUEG(),n.readUEG(),n.readUEG(),n.readUEG(),n.readUEG(),n[r(468)]()){if(n[r(468)]())for(let e=0;e<4;e++)for(let t=0;t<(3===e?2:6);t++){if(n[r(468)]()){let t=Math[r(499)](64,1<<4+(e<<1));e>1&&n[r(471)]();for(let e=0;e<t;e++)n[r(471)]()}else n[r(474)]()}}n[r(468)](),n.readBool(),n[r(468)]()&&(n[r(494)](),n[r(474)](),n[r(474)](),n[r(468)]());let F=n[r(474)](),$=0;for(let e=0;e<F;e++){let t=!1;if(0!==e&&(t=n.readBool()),t){e===F&&n.readUEG(),n.readBool(),n.readUEG();let t=0;for(let e=0;e<=$;e++){let e=n[r(468)](),o=!1;!e&&(o=n.readBool()),(e||o)&&t++}$=t}else{let e=n[r(474)](),t=n[r(474)]();$=e+t;for(let t=0;t<e;t++)n.readUEG(),n[r(468)]();for(let e=0;e<t;e++)n[r(474)](),n[r(468)]()}}if(n[r(468)]()){let e=n[r(474)]();for(let t=0;t<e;t++){for(let e=0;e<I+4;e++)n[r(492)](1);n[r(492)](1)}}let R=!1,B=0,U=1,x=1,O=!1,W=1,j=1;if(n[r(468)](),n[r(468)](),n.readBool()){if(n[r(468)]()){let e=n.readByte(),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<=16?(U=r[e-1],x=t[e-1]):255===e&&(U=n.readBits(16),x=n.readBits(16))}if(n[r(468)]()&&n.readBool(),n[r(468)]()){n.readBits(3),n[r(468)](),n[r(468)]()&&(n[r(494)](),n[r(494)](),n[r(494)]())}if(n.readBool()&&(n.readUEG(),n.readUEG()),n[r(468)](),n[r(468)](),n[r(468)](),R=n[r(468)](),R&&(n.readUEG(),n[r(474)](),n[r(474)](),n[r(474)]()),n.readBool()){if(W=n[r(492)](32),j=n[r(492)](32),n[r(468)]()&&n[r(474)](),n[r(468)]()){let e=!1,t=!1,o=!1;e=n[r(468)](),t=n[r(468)](),(e||t)&&(o=n.readBool(),o&&(n.readByte(),n[r(492)](5),n[r(468)](),n[r(492)](5)),n[r(492)](4),n[r(492)](4),o&&n.readBits(4),n[r(492)](5),n[r(492)](5),n.readBits(5));for(let a=0;a<=d;a++){let a=n[r(468)]();O=a;let i=!0,s=1;!a&&(i=n[r(468)]());let d=!1;if(i?n.readUEG():d=n[r(468)](),!d&&(s=n.readUEG()+1),e){for(let e=0;e<s;e++)n[r(474)](),n[r(474)](),o&&(n.readUEG(),n[r(474)]());n.readBool()}if(t){for(let e=0;e<s;e++)n[r(474)](),n.readUEG(),o&&(n.readUEG(),n[r(474)]());n.readBool()}}}}n[r(468)]()&&(n[r(468)](),n.readBool(),n[r(468)](),B=n[r(474)](),n.readUEG(),n[r(474)](),n[r(474)](),n.readUEG())}n[r(468)]();let L=r(469)+c+r(478)+_+r(497),V=A-(o+a)*(1===C||2===C?2:1),z=P-(i+s)*(1===C?2:1),H=1;return 1!==U&&1!==x&&(H=U/x),n[r(484)](),n=null,{codec_mimetype:L,profile_string:Re[r(465)](c),level_string:Re.getLevelString(_),profile_idc:c,bit_depth:T+8,ref_frames:1,chroma_format:C,chroma_format_string:Re[r(477)](C),general_level_idc:_,general_profile_space:l,general_tier_flag:u,general_profile_idc:c,general_profile_compatibility_flags_1:f,general_profile_compatibility_flags_2:h,general_profile_compatibility_flags_3:p,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:v,general_constraint_indicator_flags_3:y,general_constraint_indicator_flags_4:w,general_constraint_indicator_flags_5:b,general_constraint_indicator_flags_6:E,min_spatial_segmentation_idc:B,constant_frame_rate:0,chroma_format_idc:C,bit_depth_luma_minus8:T,bit_depth_chroma_minus8:D,frame_rate:{fixed:O,fps:j/W,fps_den:W,fps_num:j},sar_ratio:{width:U,height:x},codec_size:{width:V,height:z},present_size:{width:V*H,height:z}}}static parsePPS(e){const r=Fe;let t=Re[r(501)](e),n=new M(t);n[r(494)](),n[r(494)](),n[r(474)](),n[r(474)](),n[r(468)](),n.readBool(),n.readBits(3),n[r(468)](),n[r(468)](),n[r(474)](),n.readUEG(),n[r(471)](),n.readBool(),n.readBool(),n[r(468)]()&&n[r(474)](),n[r(471)](),n[r(471)](),n[r(468)](),n[r(468)](),n[r(468)](),n[r(468)]();let o=n[r(468)](),a=n[r(468)](),i=1;return a&&o?i=0:a?i=3:o&&(i=2),{parallelismType:i}}static[Fe(477)](e){const r=Fe;switch(e){case 0:return r(482);case 1:return"4:2:0";case 2:return r(495);case 3:return"4:4:4";default:return r(491)}}static[Fe(465)](e){const r=Fe;switch(e){case 1:return r(481);case 2:return"Main10";case 3:return r(470);case 4:return"Rext";case 9:return r(472);default:return"Unknown"}}static[Fe(486)](e){return(e/30)[Fe(467)](1)}}const Me=Be;function Be(e,r){const t=Ue();return(Be=function(e,r){return t[e-=317]})(e,r)}function Ue(){const e=["readUByte","general_profile_compatibility_flags","generalProfileSpace","height","953911ovlLfF",", valid version is 1 or 0","sub_layer_progressive_source_flag","buffer","getUint16","timescale","error","sps_temporal_id_nesting_flag","psps","general_profile_compatibility_flags_2","bitDepthChromaMinus8","currentStartcodeOffset","max","bitDepth","frameRate","generalProfileIdc","general_constraint_indicator_flags_3","present_size","bit_depth","sub_layer_profile_present_flag","7359064wmDFqS","byteLength","warn","sub_layer_level_idc","codec_mimetype","parseHEVCDecoderConfigurationRecord$3","arrayBuffer.length ","sub_layer_tier_flag","general_profile_idc","read","push","set","profile_space","refSampleDuration","parseHEVCDecoderVPSAndSPSAndPPS and sps tag is ","eofFlag","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid version ","2486743iGkCzA","profile_idc","generalTierFlag","general_non_packed_constraint_flag","sps_video_parameter_set_id","Could not find H265 startcode until payload end!","data","log","general_profile_compatibility_flags_1","244906RZlyxA",", valid hevc profile is Main Profile (1), Main 10 Profile (2),Main Still Picture Profile (3)","vps","sub_layer_interlaced_source_flag","frame_rate","sub_layer_frame_only_constraint_flag","presentWidth","sub_layer_profile_idc","read_golomb","220zDuWkg","level_string","5352846oScIyc","general_tier_flag","sps_max_sub_layers_minus1","fps_num","89596iwXGLH","codecWidth","conformance_window_flag","type","generalConstraintIndicatorFlags","sarRatio","sub_layer_profile_compatibility_flag","parseHEVCDecoderVPSAndSPSAndPPS and vpsTag is ","correctionConfigurationVersion","subarray","sps_seq_parameter_set_id","pic_height_in_luma_samples","9lzHqOX","sar_ratio","numTemporalLayers","chroma_format_idc","level_idc","general_profile_compatibility_flags_3","pps","chromaFormatIdc","427537LumRAU","parallelismType","from","generalLevelIdc","findNextStartCodeOffset","general_constraint_indicator_flags_6","temporalIdNested","conf_win_bottom_offset","assign","profile_tier_level","min_spatial_segmentation_idc","setInt16","correctionConfigurationProfileIndication","generalProfileCompatibilityFlags","separate_colour_plane_flag","5cVZgDf","general_constraint_indicator_flags_5","getUint8","sps","level","chromaFormat","lengthSizeMinusOne","conf_win_left_offset","h265","readBits","general_constraint_indicator_flags",", correct to Main Profile (1)","chroma_format","hev1.1.6.L93.B0","readUEG","general_constraint_indicator_flags_1","length","general_profile_space","codec_size","width","constantFrameRate","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","general_progressive_source_flag","avgFrameRate"," < 23","parseSPS","profile_compatibility_flags","num_temporal_layers","conf_win_top_offset","sei","Invalid HEVCDecoderConfigurationRecord: invalid HEVC profile ","conf_win_right_offset","tier_flag","presentHeight","codecHeight","15ANbcVj","setUint8","general_level_idc","general_frame_only_constraint_flag","configurationVersion","slice","profile","sub_layer_level_present_flag"," and naluLengthSize is ","readNextNaluPayload","sub_layer_profile_space"];return(Ue=function(){return e})()}!function(e,r){const t=Be,n=e();for(;;)try{if(492286===parseInt(t(373))/1+parseInt(t(419))/2+-parseInt(t(358))/3*(parseInt(t(434))/4)+parseInt(t(323))/5*(-parseInt(t(430))/6)+parseInt(t(410))/7+-parseInt(t(393))/8*(-parseInt(t(446))/9)+-parseInt(t(428))/10*(parseInt(t(454))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ue);Me(367);const xe=We;function Oe(){const e=["MtWasmDecoder","decode","debugWarn","videoCodec","\n                and replay","_initSuccess"," create uint8Array error :","isFFmpegSIMD","pcmData ts ","mtStreamStats","errorInfo","timeEnd","useSIMD","120393oyPrem","stopStreamRateAndStatsInterval","length","setCodecAudio: init audio codec, codeId is ",", height is ","slice","yuvData, decoder is destroyed and return","isUseSIMDAndroid","player","ModuleAudio","validatedFailed, please contact the author to get the correct license","decodeAudio","audioDepth","audioAACSequenceHeader","_opt",",\n                            new width is ","data","codecHeight"," and diff is ","videoCode","validatedFailed","wasmWidthOrHeightChange","workerEnd"," > ","AAC","setCodecAudio: hasInitAudioCodec is false, codecId is ","isVideoFirstIFrame","audioDecoder","_updateStreamRateAndStats","getBuildTime","decodeAudio, decoder is destroyed and return","lastDecodeVideoFrameTimestamp","_reset","decodeVideo: hasInitVideoCodec is false, codecId is ","TAG_NAME","MP3","2582288ioldHa","144fjQnlZ","MULAW","wasmDecodeErrorStartTime","_handleModuleAudioError","width: ","h264","h265","isUseSIMDFfmpeg"," and isIFrame is ","HEAPU32",", height: ",",\n                            and emit change event","3721105lRieCT","init","worker","pcmData","HEAPU8","setCodecAudio","byteLength","1989324MtiRjZ","9448ClUWGH","floor","_handleModuleVideoError","333kthdKP","debugLog","clear","isSimdDecodeError","audioChannels","audioOriginalSampleRate","sampleRate","isSimdDecodeDelayTimeout","mp3Demuxer","pcmData, decoder is destroyed and return","audioRemain","tempAudioBuffer"," ms and isSimdDecodeDelayTimeout is true, emit simdDecodeDelayTimeout","render","notSupportNewWasm","decodeVideo: simd decode error, and return","decodeVideo and payload is video sequence header so drop this frame","videoWidth","playAudio","yuvData, isVideoFirstIFrame is false and return","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","getCorrectionConfiguration","destroy","delete","videoHeight","ModuleVideo","debugError","audio wasm error:","startStreamRateAndStatsInterval","dispatch","setCodecVideo: SIMD H264 decode video width is too large, width is "," _opt.sampleRate is ","100598ZWLDsz","simdDecodeDelayTimeout","setCodecAudio, audioDecoder is not exist or setCodec is not a function","videoInfo","videoDecoder","setCodec","codecWidth","decodeVideo first frame is not iFrame"," and packetType is ","decodeVideo: simd decode delay timeout, and return","8269533UvgOCs","isDestroyed","emit","\n                            decodeVideo: video width or height is changed,\n                            old width is ","Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng","audioBufferSize","isWidthOrHeightChanged","simdDecodeError","setCodecVideo: hasInitVideoCodec is false, codecId is ","streamRateAndStatsInterval","hasInitAudioCodec","iframeIntervalTimestamp","newDecodedVideoFrameTimestamp","simdH264DecodeVideoWidthIsTooLarge","decodeVideo, decoder is destroyed and return","subarray","prevAudioTs","audioInfo"];return(Oe=function(){return e})()}function We(e,r){const t=Oe();return(We=function(e,r){return t[e-=136]})(e,r)}!function(e,r){const t=We,n=e();for(;;)try{if(756666===parseInt(t(244))/1+-parseInt(t(188))/2+parseInt(t(212))/3*(parseInt(t(209))/4)+parseInt(t(201))/5+parseInt(t(208))/6+-parseInt(t(152))/7*(parseInt(t(189))/8)+parseInt(t(254))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Oe);class je extends te{constructor(e){const r=We;let t=arguments[r(154)]>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[r(160)]=e,this[r(166)]=t,this.TAG_NAME=r(139),this._reset(),this[r(259)]=t[r(259)]||1024,this[r(218)]=t.sampleRate||48e3,this[r(161)]=null,this[r(237)]=null,this.videoDecoder=null,this.audioDecoder=null,this[r(137)]=null,this[r(263)]=null,this[r(178)]=!!Z(e[r(166)].checkFirstIFrame),this[r(202)]()}[xe(234)](){const e=xe;if(this.off(),this.stopStreamRateAndStatsInterval(),this[e(179)]){try{K(this.audioDecoder.clear)&&this[e(179)][e(214)](),K(this.audioDecoder[e(235)])&&this[e(179)].delete()}catch(e){}this.audioDecoder=null}if(this[e(248)]){try{K(this[e(248)][e(214)])&&this[e(248)][e(214)](),K(this[e(248)].delete)&&this[e(248)][e(235)]()}catch(e){}this[e(248)]=null}this[e(237)]=null,this[e(161)]=null,this[e(137)]=null,this[e(220)]&&(this[e(220)][e(234)](),this.mp3Demuxer=null),this[e(184)](),this[e(160)][e(213)](this[e(186)],e(234))}init(){}[xe(144)](){}[xe(180)](){const e=xe,r=this[e(183)]-this[e(266)];this[e(256)](y[e(148)],{wasmDecodeDelay:r}),this.isUseSIMDAndroid()&&0===this[e(266)]&&r>5e3&&(this[e(160)][e(213)](this[e(186)],"wasmDecodeDelay is "+r+e(224)),this.isSimdDecodeDelayTimeout=!0,this[e(256)](y[e(245)]))}startStreamRateAndStatsInterval(){const e=xe;this[e(153)](),this[e(263)]=setInterval(this._updateStreamRateAndStats.bind(this),1e3),this[e(180)]()}[xe(153)](){const e=xe;this[e(263)]&&(clearInterval(this[e(263)]),this[e(263)]=null)}[xe(192)](e){const r=xe;(function(e){const r=H;return!(!e||-1===e[r(589)]("not compiled with thread support")&&-1===e[r(589)]("illegal icc")&&-1===e[r(589)](r(655))&&-1===e[r(589)](r(577)))})(e)||this[r(160)].debugError(this.TAG_NAME,r(239),e)}[xe(211)](e){const r=xe;(function(e){const r=H;return!(!e||-1===e[r(589)](r(357)))})(e)||(this[r(160)][r(238)](this[r(186)],"video wasm error:",e),Z(function(e){const r=H;let t=!0;return e&&-1!==e[r(589)](r(508))&&(t=!1),t}(e))&&this[r(256)](y[r(226)],e))}[xe(184)](){const e=xe;this[e(179)]=null,this[e(248)]=null,this[e(259)]=null,this.videoWidth=0,this.videoHeight=0,this[e(216)]=0,this.audioOriginalSampleRate=0,this[e(164)]=0,this[e(264)]=!1,this.hasInitVideoCodec=!1,this[e(220)]=null,this[e(178)]=!1,this.isWidthOrHeightChanged=!1,this.isSimdDecodeError=!1,this.lastDecodeVideoFrameTimestamp=0,this.wasmDecodeErrorStartTime=null,this[e(266)]=0,this[e(219)]=!1,this[e(222)]=0,this[e(265)]=0,this[e(223)]=[]}setCodecVideo(e,r){const t=xe,n=15&e[0],o=this.player;if(Z(this[t(248)]&&K(this[t(248)][t(249)])))o.debugError(this[t(186)],"setCodecVideo, videoDecoder is not exist or setCodec is not a function");else if(J(e))if(n===E.h264||n===E[t(195)]){o[t(213)](this.TAG_NAME,"setCodecVideo: init video codec , codecId is "+n);const r=e[t(157)](5);if(n===E[t(194)]&&this.isUseSIMDAndroid()){const e=be(r,this[t(160)][t(233)]());if(e[t(250)]>g||e[t(169)]>g)return this.emit(y[t(267)],t(193)+e[t(250)]+t(175)+g+t(199)+e.codecHeight+t(175)+g),void o[t(141)](this[t(186)],t(242)+e[t(250)]+t(156)+e[t(169)])}const a=new Uint8Array(e);this.hasInitVideoCodec=!0,this[t(248)][t(249)](n,r,this[t(181)]()),this[t(256)](y[t(171)],{code:n}),this[t(256)](y[t(142)],{buffer:a,codecId:n})}else o[t(141)](this[t(186)],t(262)+n+" is not H264 or H265");else o[t(141)](this[t(186)],t(185)+n+t(197)+r+t(252)+e[1])}[xe(206)](e,r){const t=xe,n=e[0]>>4,o=e[0]>>1&1;if(n===_[t(176)]?this[t(164)]=o?16:8:this[t(164)]=0===o?8:16,Z(this[t(179)]&&K(this.audioDecoder[t(249)])))return void this[t(160)][t(238)](this[t(186)],t(246));const a=this[t(160)];if(j(e)||n===_.ALAW||n===_[t(190)]||n===_[t(187)]){this[t(160)].debugLog(this[t(186)],t(155)+n+t(243)+this[t(218)]);const o=n===_[t(176)]?e[t(157)](2):new Uint8Array(0);if(this[t(179)][t(249)](n,this[t(218)],o,this[t(181)]()),n===_[t(176)]&&this[t(256)](y[t(165)],{buffer:o}),this[t(264)]=!0,n!==_[t(176)]&&(n===_[t(187)]?(!this[t(220)]&&(this[t(220)]=new se(this),this.mp3Demuxer.on(t(168),((e,r)=>{const n=t;this[n(179)][n(140)](e,r)}))),this[t(220)][t(241)](e[t(157)](1),r)):this[t(179)][t(140)](e[t(157)](1),r)),Z(q)){const e=Number("1")||1;setTimeout((()=>{const e=t;this.player[e(238)](this[e(186)],"Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng"),this.destroy(),this[e(256)](y[e(174)])}),60*e*60*1e3)}}else a[t(141)](this[t(186)],t(177),n)}[xe(163)](e,r){const t=xe;if(this[t(160)][t(255)]())return void this[t(160)][t(213)](this[t(186)],t(182));const n=e[0]>>4;if(this.hasInitAudioCodec){if(j(e))return void this[t(160)][t(213)](this[t(186)],t(232));n===_.MP3?this[t(220)][t(241)](e[t(157)](1),r):this[t(179)][t(140)](n===_[t(176)]?e[t(157)](2):e.slice(1),r)}else this[t(206)](e,r)}decodeVideo(e,r,t){const n=xe;if(n(154),this.player[n(255)]())this.player[n(213)](this[n(186)],n(268));else if(this.hasInitVideoCodec)if(!this[n(178)]&&t&&(this[n(178)]=!0),this.isVideoFirstIFrame){if(t&&J(e)){const r=15&e[0];let t={},o=e.slice(5);const a=this.player[n(233)]();r===E[n(194)]?t=be(o,a):r===E[n(195)]&&(t=function(e){const r=Be;let t=arguments[r(339)]>1&&void 0!==arguments[1]?arguments[1]:{};const n=e;if(n[r(339)]<22)return console[r(379)]("Invalid HEVCDecoderConfigurationRecord, lack of data! "+n[r(339)]+" < 22"),{};let o={codecWidth:0,codecHeight:0,videoType:S.h265},a=function(){const e=r;let t=new ArrayBuffer(2);return new DataView(t)[e(319)](0,256,!0),256===new Int16Array(t)[0]}(),i=new DataView(n[r(376)]),s=i[r(325)](0),d=31&i[r(325)](1);if(1!==s&&0!==s){if(!t[r(442)])return console[r(379)]("Invalid HEVCDecoderConfigurationRecord,invalid version "+s+r(374)),{};{console[r(417)](r(409)+s+", correct to 1");let e=252&i[r(325)](0)|1;i[r(359)](0,e)}}if(0===d){if(!t[r(320)])return console.error(r(353)+d+r(420)),{};{console[r(417)](r(344)+d+r(334));let e=224&i.getUint8(1)|1;i[r(359)](1,e)}}let l=1+(3&i[r(325)](21));if(3!==l&&4!==l)return console.error("Invalid HEVCDecoderConfigurationRecord, Strange NaluLengthSizeMinusOne: "+(l-1)+r(366)+l+" ,"),{};let u=i[r(325)](22);for(let e=0,t=23;e<u;e++){let e=63&i.getUint8(t+0),s=i[r(377)](t+1,!a);t+=3;for(let d=0;d<s;d++){let s=i[r(377)](t+0,!a);if(0===d)if(33===e){t+=2;let e=new Uint8Array(n.buffer,t,s),a=Re[r(348)](e);o[r(435)]=a[r(341)][r(342)],o[r(357)]=a[r(341)][r(372)],o[r(425)]=a[r(390)][r(342)],o[r(356)]=a[r(390)][r(372)],o.profile=a.profile_string,o.level=a[r(429)],o[r(386)]=a[r(391)],o.chromaFormat=a[r(335)],o[r(439)]=a[r(447)],o.frameRate=a[r(423)],(!1===a[r(423)].fixed||0===a[r(423)][r(433)]||0===a[r(423)].fps_den)&&(o[r(387)]={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3}),o[r(387)].fps_den,o[r(387)][r(433)],o.codec=a[r(397)],t+=s}else t+=2+s;else t+=2+s}}return o.hvcc=new Uint8Array(n),o}(o,a)),t[n(250)]&&t[n(169)]&&this.videoWidth&&this[n(236)]&&(t[n(250)]!==this[n(229)]||t[n(169)]!==this.videoHeight)&&(this[n(160)][n(141)](this[n(186)],n(257)+this[n(229)]+", old height is "+this.videoHeight+n(167)+t[n(250)]+", new height is "+t[n(169)]+n(200)),this.isWidthOrHeightChanged=!0,this[n(256)](y[n(173)],n(193)+this[n(229)]+"->"+t[n(250)]+", height: "+this[n(236)]+"->"+t.codecHeight))}if(this[n(260)])return void this.player.debugWarn(this.TAG_NAME,"decodeVideo: video width or height is changed, and return");if(this[n(215)])return void this.player[n(141)](this[n(186)],n(227));if(this[n(219)])return void this.player[n(141)](this.TAG_NAME,n(253));if(J(e))return void this[n(160)].debugLog(this[n(186)],n(228));if(e[n(207)]<12)return void this[n(160)][n(141)](this[n(186)],"decodeVideo and payload is too small , payload length is "+e.byteLength);this[n(183)]=r;const o=e.slice(5);this[n(248)][n(140)](o,t?1:0,r)}else this.player[n(213)](this[n(186)],n(251));else this.setCodecVideo(e,t)}[xe(247)](e,r,t){const n=xe;this[n(256)](y[n(171)],{code:e}),this[n(256)](y.initVideo,{w:r,h:t}),this[n(229)]=r,this[n(236)]=t,this[n(240)]()}[xe(138)](e,r,t){const n=xe;this[n(256)](y.audioCode,{code:e}),this[n(256)](y.initAudio,{sampleRate:r,channels:t,depth:this.audioDepth}),this[n(216)]=t,this[n(217)]=r}yuvData(e,r){const t=xe;if(this[t(160)][t(255)]())return void this[t(160)][t(213)](this[t(186)],t(158));if(Z(this[t(178)]))return void this.player[t(213)](this[t(186)],t(231));const n=this[t(229)]*this[t(236)]*3/2;try{let o=this.ModuleVideo[t(205)][t(136)](e,e+n),a=new Uint8Array(o);this[t(191)]=null,this.newDecodedVideoFrameTimestamp=r,this[t(256)](y[t(225)],{output:a,ts:r})}catch(e){this[t(160)].debugWarn(this.TAG_NAME,"yuvData ts "+r+t(145),e,e.toString())}}[xe(204)](e,r,t){const n=xe;if(this[n(160)][n(255)]())return void this[n(160)][n(213)](this[n(186)],n(221));let o=r,a=[],i=0;try{let s=this.sampleRate,d=this.audioBufferSize;for(let r=0;r<this[n(216)];r++){let t=this[n(161)][n(198)][(e>>2)+r]>>2;a[r]=this[n(161)].HEAPF32.subarray(t,t+o)}if(this[n(222)]){if(!(o>=(r=d-this.audioRemain)))return this[n(222)]+=o,this[n(223)][0]=Float32Array.of(...this.tempAudioBuffer[0],...a[0]),void(2==this[n(216)]&&(this[n(223)][1]=Float32Array.of(...this[n(223)][1],...a[1])));{let e=[];e[0]=Float32Array.of(...this[n(223)][0],...a[0][n(136)](0,r)),2==this[n(216)]&&(e[1]=Float32Array.of(...this[n(223)][1],...a[1].subarray(0,r)));let l=t;if(null!==this[n(137)]&&t==this.prevAudioTs){const e=Math[n(210)](1e3*d/s);l=this[n(137)]+e}this[n(256)](y[n(230)],{buffer:e,ts:l}),i=r,o-=r,this[n(137)]=l}}for(this[n(222)]=o;this[n(222)]>=d;this[n(222)]-=d){let e=[];e[0]=a[0].slice(i,i+=d),2==this[n(216)]&&(e[1]=a[1][n(157)](i-d,i));let r=t;if(null!==this[n(137)]&&t==this[n(137)]){const e=Math[n(210)](1e3*d/s);r=this.prevAudioTs+e}this[n(256)](y[n(230)],{buffer:e,ts:r}),this[n(137)]=r}this.audioRemain&&(this[n(223)][0]=a[0][n(157)](i),2==this[n(216)]&&(this[n(223)][1]=a[1][n(157)](i))),a=[]}catch(e){this[n(160)].debugWarn(n(203),n(147)+t+n(145),e,e.toString())}}[xe(149)](e){const r=xe;null===this[r(191)]&&(this.wasmDecodeErrorStartTime=N());const t=N(),n=function(e,r,t){const n=X;return Math[n(433)](Math[n(595)](e,Math[n(433)](r,t)),Math[n(595)](r,t))}(this[r(265)]>0?2*this[r(265)]:5e3,1e3,5e3),o=t-this[r(191)];o>n&&(this[r(160)][r(141)](this[r(186)],"errorInfo() emit simdDecodeError and\n                iframeIntervalTimestamp is "+this[r(265)]+r(170)+o+" and maxDiff is "+n+r(143)),this[r(215)]=!0,this[r(256)](y[r(261)]))}getBuildTime(){return p+"-20251201"}[xe(159)](){const e=xe;return this[e(160)][e(166)][e(151)]&&!this[e(160)][e(166)][e(146)]}[xe(196)](){const e=xe;return this.player._opt[e(151)]&&this.player[e(166)][e(146)]}[xe(150)](){const e=xe;this[e(160)][e(238)](this[e(186)],e(258)),this[e(234)](),this[e(256)](y.workerEnd)}[xe(172)](){const e=xe;this[e(160)][e(238)](this[e(186)],e(162))}}function Le(e,r){const t=ze();return(Le=function(e,r){return t[e-=218]})(e,r)}const Ve=Le;!function(e,r){const t=Le,n=e();for(;;)try{if(687071===parseInt(t(224))/1*(-parseInt(t(229))/2)+-parseInt(t(244))/3*(-parseInt(t(246))/4)+parseInt(t(247))/5+-parseInt(t(232))/6+parseInt(t(219))/7*(-parseInt(t(220))/8)+-parseInt(t(218))/9*(parseInt(t(240))/10)+-parseInt(t(249))/11*(-parseInt(t(245))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ze);function ze(){const e=["catch","3jPxzPc","34644IHsRbn","5152124zsLIHS","673745JZHysb","player","5610pJHSKr","9KrHDHU","7IwqslK","9193264cYteSM","VideoDecoder","fSimd","AudioDecoder","1iDnmPo","audioDecoder","bind","_initSuccess","mtType","1128788OgcdMF","init wasm error","_handleModuleAudioError","2462268UhFtHe","JessibucaProMtFSimdDecoder","emit","all","debugError","init","TAG_NAME","videoDecoder","841490bNtKza","_handleModuleVideoError","then"];return(ze=function(){return e})()}window[Ve(233)]=class extends je{constructor(e){const r=Le;super(e),this[r(238)]="MtFSimdDecoder",this[r(228)]=P[r(222)]}init(){const e=Le,n=[];n.push(t({printErr:this[e(231)][e(226)](this)}),r({printErr:this[e(241)][e(226)](this)})),Promise[e(235)](n)[e(242)]((r=>{const t=e;let[n,o]=r;this.ModuleAudio=n,this.ModuleVideo=o,o.VideoDecoder&&(this[t(239)]=new(o[t(221)])(this)),n[t(223)]&&(this[t(225)]=new(n[t(223)])(this)),this[t(234)](y[t(237)]),this[t(227)](),this.player.debugLog(this[t(238)],t(237))}))[e(243)]((r=>{const t=e;this[t(248)][t(236)](this[t(238)],t(230),r,r.toString())}))}}}));