decoder-pro-f-simd-mt.js 150 KB
!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e,t=(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(t={}){function r(){return $.buffer!=B.buffer&&H(),B}function n(){return $.buffer!=B.buffer&&H(),W}function a(){return $.buffer!=B.buffer&&H(),U}function i(){return $.buffer!=B.buffer&&H(),V}function o(){return $.buffer!=B.buffer&&H(),O}function s(){return $.buffer!=B.buffer&&H(),x}function c(){return $.buffer!=B.buffer&&H(),j}var d,l,u;(u=t).ready=new Promise((e,t)=>{d=e,l=t}),(u=void 0!==u?u:{}).locateFile=function(e,t){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:t+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:t+e};var p,f,h,m=Object.assign({},u),g="./this.program",y=(e,t)=>{throw t},v="object"==typeof window,b="function"==typeof importScripts,w="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_=u.ENVIRONMENT_IS_PTHREAD||!1,A="";function C(e){return u.locateFile?u.locateFile(e,A):A+e}if(w){const{createRequire:e}=await import("module");var S=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),E=S("fs"),T=S("path");let t;A=b?T.dirname(A)+"/":S("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)),p=(e,t)=>(e=se(e)?new URL(e):T.normalize(e),E.readFileSync(e,t?void 0:"utf8")),h=e=>{var t=p(e,!0);return t.buffer||(t=new Uint8Array(t)),t},f=(e,t,r,n=!0)=>{e=se(e)?new URL(e):T.normalize(e),E.readFile(e,n?void 0:"utf8",(e,a)=>{e?r(e):t(n?a.buffer:a)})},!u.thisProgram&&process.argv.length>1&&(g=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),y=(e,t)=>{throw process.exitCode=e,t},u.inspect=()=>"[Emscripten Module object]";try{t=S("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=t.Worker}else(v||b)&&(b?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),e&&(A=e),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",w||(p=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},b&&(h=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),f=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}));w&&"undefined"==typeof performance&&(global.performance=S("perf_hooks").performance);var I=console.log.bind(console),P=console.error.bind(console);w&&(I=(...e)=>E.writeSync(1,e.join(" ")+"\n"),P=(...e)=>E.writeSync(2,e.join(" ")+"\n"));var k,$,D,F=u.print||I,R=u.printErr||P;Object.assign(u,m),m=null,u.arguments&&u.arguments,u.thisProgram&&(g=u.thisProgram),u.quit&&(y=u.quit),u.wasmBinary&&(k=u.wasmBinary),"object"!=typeof WebAssembly&&re("no native wasm support detected");var M,B,W,U,V,O,x,L,j,N=!1;function H(){var e=$.buffer;u.HEAP8=B=new Int8Array(e),u.HEAP16=U=new Int16Array(e),u.HEAPU8=W=new Uint8Array(e),u.HEAPU16=V=new Uint16Array(e),u.HEAP32=O=new Int32Array(e),u.HEAPU32=x=new Uint32Array(e),u.HEAPF32=L=new Float32Array(e),u.HEAPF64=j=new Float64Array(e)}var G=u.INITIAL_MEMORY||67108864;if(_)$=u.wasmMemory;else if(u.wasmMemory)$=u.wasmMemory;else if(!(($=new WebAssembly.Memory({initial:G/65536,maximum:12288,shared:!0})).buffer instanceof SharedArrayBuffer))throw R("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"),w&&R("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");H(),G=$.buffer.byteLength;var z=[],q=[],J=[];function Y(){_||Se(q)}function Q(e){z.unshift(e)}function Z(e){J.unshift(e)}var K=0,X=null;function ee(e){K++,u.monitorRunDependencies&&u.monitorRunDependencies(K)}function te(e){if(K--,u.monitorRunDependencies&&u.monitorRunDependencies(K),0==K&&X){var t=X;X=null,t()}}function re(e){u.onAbort&&u.onAbort(e),R(e="Aborted("+e+")"),N=!0,M=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw l(t),t}var ne,ae,ie,oe=e=>e.startsWith("data:application/octet-stream;base64,"),se=e=>e.startsWith("file://");function ce(e){if(e==ne&&k)return new Uint8Array(k);if(h)return h(e);throw"both async and sync fetching of the wasm failed"}function de(e,t,r){return function(e){if(!k&&(v||b)){if("function"==typeof fetch&&!se(e))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>ce(e));if(f)return new Promise((t,r)=>{f(e,e=>t(new Uint8Array(e)),r)})}return Promise.resolve().then(()=>ce(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{R(`failed to asynchronously prepare wasm: ${e}`),re(e)})}function le(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}u.locateFile?oe(ne="decoder-pro-f-simd-mt-worker.wasm")||(ne=C(ne)):ne=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 ue=e=>{e.terminate(),e.onmessage=e=>{}},pe=e=>{var t=Ce.pthreads[e];Ce.returnWorkerToPool(t)},fe=e=>{var t=Ce.getNewWorker();if(!t)return 6;Ce.runningWorkers.push(t),Ce.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return w&&t.unref(),t.postMessage(r,e.transferList),0},he=0,me=()=>ke||he>0,ge="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ye=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&ge)return ge.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,a):e.subarray(t,a));for(var i="";t<a;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var d=o-65536;i+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i},ve=(e,t)=>e?ye(n(),e,t):"",be=function(e,t){var r,n,a,i=arguments.length-2,o=arguments;return r=()=>{for(var r=i,n=Wr(8*r),a=n>>3,s=0;s<i;s++){var d=o[2+s];c()[a+s]=d}return kr(e,r,n,t)},n=Mr(),a=r(),Br(n),a};function we(e){if(_)return be(0,1,e);M=e,me()||(Ce.terminateAllThreads(),u.onExit&&u.onExit(e),N=!0),y(e,new le(e))}var _e=(e,t)=>{if(M=e,_)throw Ee(e),"unwind";we(e)},Ae=e=>{if(e instanceof le||"unwind"==e)return M;y(1,e)},Ce={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){_?Ce.initWorker():Ce.initMainThread()},initMainThread(){for(var e=4;e--;)Ce.allocateUnusedWorker();Q(()=>{ee(),Ce.loadWasmModuleToAllWorkers(()=>te())})},initWorker(){ke=!1},setExitStatus:e=>{M=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Ce.runningWorkers)ue(e);for(var e of Ce.unusedWorkers)ue(e);Ce.unusedWorkers=[],Ce.runningWorkers=[],Ce.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete Ce.pthreads[t],Ce.unusedWorkers.push(e),Ce.runningWorkers.splice(Ce.runningWorkers.indexOf(e),1),e.pthread_ptr=0,$r(t)},receiveObjectTransfer(e){},threadInitTLS(){Ce.tlsInitFunctions.forEach(e=>e())},loadWasmModuleToWorker:e=>new Promise(t=>{e.onmessage=r=>{var n=r.data,a=n.cmd;if(n.targetThread&&n.targetThread!=Er()){var i=Ce.pthreads[n.targetThread];i?i.postMessage(n,n.transferList):R(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var o;"checkMailbox"===a?Yt():"spawnThread"===a?fe(n):"cleanupThread"===a?pe(n.thread):"killThread"===a?(e=>{var t=Ce.pthreads[e];delete Ce.pthreads[e],ue(t),$r(e),Ce.runningWorkers.splice(Ce.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(n.thread):"cancelThread"===a?(o=n.thread,Ce.pthreads[o].postMessage({cmd:"cancel"})):"loaded"===a?(e.loaded=!0,w&&!e.pthread_ptr&&e.unref(),t(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?u[n.handler](...n.args):a&&R(`worker sent an unknown command ${a}`)}},e.onerror=e=>{throw R(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},w&&(e.on("message",t=>e.onmessage({data:t})),e.on("error",t=>e.onerror(t)));var r=[];for(var n of["onExit","onAbort","print","printErr"])u.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:u.mainScriptUrlOrBlob,wasmMemory:$,wasmModule:D})}),loadWasmModuleToAllWorkers(e){if(_)return e();Promise.all(Ce.unusedWorkers.map(Ce.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(u.locateFile){var t=C("decoder-pro-f-simd-mt-worker.worker.js");e=new Worker(t,{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"});Ce.unusedWorkers.push(e)},getNewWorker:()=>(0==Ce.unusedWorkers.length&&(Ce.allocateUnusedWorker(),Ce.loadWasmModuleToWorker(Ce.unusedWorkers[0])),Ce.unusedWorkers.pop())};u.PThread=Ce;var Se=e=>{for(;e.length>0;)e.shift()(u)};function Ee(e){if(_)return be(1,0,e);_e(e)}u.establishStackSpace=()=>{var e=Er(),t=s()[e+52>>2],r=s()[e+56>>2];Rr(t,t-r),Br(t)};var Te,Ie=[],Pe=e=>{var t=Ie[e];return t||(e>=Ie.length&&(Ie.length=e+1),Ie[e]=t=Te.get(e)),t};u.invokeEntryPoint=(e,t)=>{!function(e){me()?Ce.setExitStatus(e):Dr(e)}(Pe(e)(t))};var ke=u.noExitRuntime||!0,$e=e=>{Ce.tlsInitFunctions.push(e)};function De(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,r()[this.ptr+12|0]=e},this.get_caught=function(){return 0!=r()[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,r()[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=r()[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ur(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}function Fe(e,t,r,n){return _?be(2,1,e,t,r,n):Re(e,t,r,n)}var Re=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return R("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(_&&0===a.length)return Fe(e,t,r,n);var i={startRoutine:r,pthread_ptr:e,arg:n,transferList:a};return _?(i.cmd="spawnThread",postMessage(i,a),0):fe(i)};function Me(e,t,r){return _?be(3,1,e,t,r):0}function Be(e,t,r,n){if(_)return be(4,1,e,t,r,n)}var We,Ue,Ve,Oe=e=>{for(var t="",r=e;n()[r];)t+=We[n()[r++]];return t},xe={},Le={},je={},Ne=e=>{throw new Ue(e)},He=e=>{throw new Ve(e)},Ge=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&He("Mismatched type converter count");for(var a=0;a<e.length;++a)ze(e[a],n[a])}e.forEach(function(e){je[e]=t});var a=new Array(t.length),i=[],o=0;t.forEach((e,t)=>{Le.hasOwnProperty(e)?a[t]=Le[e]:(i.push(e),xe.hasOwnProperty(e)||(xe[e]=[]),xe[e].push(()=>{a[t]=Le[e],++o===i.length&&n(a)}))}),0===i.length&&n(a)};function ze(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||Ne(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Ne(`Cannot register type '${n}' twice`)}if(Le[e]=t,delete je[e],xe.hasOwnProperty(e)){var a=xe[e];delete xe[e],a.forEach(e=>e())}}(e,t,r)}var qe,Je=e=>{Ne(e.$$.ptrType.registeredClass.name+" instance already deleted")},Ye=!1,Qe=e=>{},Ze=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},Ke=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=Ke(e,t,r.baseClass);return null===n?null:r.downcast(n)},Xe={},et=()=>Object.keys(it).length,tt=()=>{var e=[];for(var t in it)it.hasOwnProperty(t)&&e.push(it[t]);return e},rt=[],nt=()=>{for(;rt.length;){var e=rt.pop();e.$$.deleteScheduled=!1,e.delete()}},at=e=>{qe=e,rt.length&&qe&&qe(nt)},it={},ot=(e,t)=>(t=((e,t)=>{for(void 0===t&&Ne("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),it[t]),st=(e,t)=>(t.ptrType&&t.ptr||He("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&He("Both smartPtrType and smartPtr must be specified"),t.count={value:1},dt(Object.create(e,{$$:{value:t}})));function ct(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=ot(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?st(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):st(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,o=this.registeredClass.getActualType(t),s=Xe[o];if(!s)return a.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=Ke(t,this.registeredClass,i.registeredClass);return null===c?a.call(this):this.isSmartPointer?st(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):st(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}var dt=e=>"undefined"==typeof FinalizationRegistry?(dt=e=>e,e):(Ye=new FinalizationRegistry(e=>{Ze(e.$$)}),dt=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Ye.register(e,r,e)}return e},Qe=e=>Ye.unregister(e),dt(e));function lt(){}var ut=(e,t)=>Object.defineProperty(t,"name",{value:e}),pt=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Ne(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}};function ft(e,t,r,n,a,i,o,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var ht=(e,t,r)=>{for(;t!==r;)t.upcast||Ne(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function mt(e,t){if(null===t)return this.isReference&&Ne(`null is not a valid ${this.name}`),0;t.$$||Ne(`Cannot pass "${Bt(t)}" as a ${this.name}`),t.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return ht(t.$$.ptr,r,this.registeredClass)}function gt(e,t){var r;if(null===t)return this.isReference&&Ne(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Ne(`Cannot pass "${Bt(t)}" as a ${this.name}`),t.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&Ne(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=ht(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Ne("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Ne(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var a=t.clone();r=this.rawShare(r,Rt.toHandle(()=>a.delete())),null!==e&&e.push(this.rawDestructor,r)}break;default:Ne("Unsupporting sharing policy")}return r}function yt(e,t){if(null===t)return this.isReference&&Ne(`null is not a valid ${this.name}`),0;t.$$||Ne(`Cannot pass "${Bt(t)}" as a ${this.name}`),t.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&Ne(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return ht(t.$$.ptr,r,this.registeredClass)}function vt(e){return this.fromWireType(s()[e>>2])}function bt(e,t,r,n,a,i,o,s,c,d,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=d,this.rawDestructor=l,a||void 0!==t.baseClass?this.toWireType=gt:n?(this.toWireType=mt,this.destructorFunction=null):(this.toWireType=yt,this.destructorFunction=null)}var wt,_t=(e,t,r)=>e.includes("j")?((e,t,r)=>{var n=u["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):Pe(t).apply(null,r),At=(e,t)=>{var r,n,a,i=(e=Oe(e)).includes("j")?(r=e,n=t,a=[],function(){return a.length=0,Object.assign(a,arguments),_t(r,n,a)}):Pe(t);return"function"!=typeof i&&Ne(`unknown function pointer with signature ${e}: ${t}`),i},Ct=e=>{var t=Tr(e),r=Oe(t);return Cr(t),r},St=(e,t)=>{var r=[],n={};throw t.forEach(function e(t){n[t]||Le[t]||(je[t]?je[t].forEach(e):(r.push(t),n[t]=!0))}),new wt(`${e}: `+r.map(Ct).join([", "]))},Et=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(s()[t+4*n>>2]);return r},Tt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function It(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=ut(e.name||"unknownFunctionName",function(){});r.prototype=e.prototype;var n=new r,a=e.apply(n,t);return a instanceof Object?a:n}function Pt(e,t,r,n,a,i){var o=t.length;o<2&&Ne("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,c=!1,d=1;d<t.length;++d)if(null!==t[d]&&void 0===t[d].destructorFunction){c=!0;break}var l="void"!==t[0].name,u="",p="";for(d=0;d<o-2;++d)u+=(0!==d?", ":"")+"arg"+d,p+=(0!==d?", ":"")+"arg"+d+"Wired";var f=`\n        return function (${u}) {\n        if (arguments.length !== ${o-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${o-2}');\n        }`;c&&(f+="var destructors = [];\n");var h=c?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Ne,n,a,Tt,t[0],t[1]];for(s&&(f+="var thisWired = classParam.toWireType("+h+", this);\n"),d=0;d<o-2;++d)f+="var arg"+d+"Wired = argType"+d+".toWireType("+h+", arg"+d+"); // "+t[d+2].name+"\n",m.push("argType"+d),g.push(t[d+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),f+=(l||i?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",c)f+="runDestructors(destructors);\n";else for(d=s?1:2;d<t.length;++d){var y=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==t[d].destructorFunction&&(f+=y+"_dtor("+y+"); // "+t[d].name+"\n",m.push(y+"_dtor"),g.push(t[d].destructorFunction))}l&&(f+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),f+="}\n",m.push(f);var v=It(Function,m).apply(null,g);return ut(e,v)}function kt(){this.allocated=[void 0],this.freelist=[]}var $t=new kt,Dt=e=>{e>=$t.reserved&&0===--$t.get(e).refcount&&$t.free(e)},Ft=()=>{for(var e=0,t=$t.reserved;t<$t.allocated.length;++t)void 0!==$t.allocated[t]&&++e;return e},Rt={toValue:e=>(e||Ne("Cannot use deleted val. handle = "+e),$t.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 $t.allocate({refcount:1,value:e})}}};function Mt(e){return this.fromWireType(o()[e>>2])}var Bt=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Wt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(($.buffer!=B.buffer&&H(),L)[e>>2])};case 8:return function(e){return this.fromWireType(c()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ut=(e,t,c)=>{switch(t){case 1:return c?e=>r()[0|e]:e=>n()[0|e];case 2:return c?e=>a()[e>>1]:e=>i()[e>>1];case 4:return c?e=>o()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Vt=(e,t,r)=>((e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,i=r+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a})(e,n(),t,r),Ot=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},xt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Lt=(e,t)=>{for(var r=e,o=r>>1,s=o+t/2;!(o>=s)&&i()[o];)++o;if((r=o<<1)-e>32&&xt)return xt.decode(n().slice(e,r));for(var c="",d=0;!(d>=t/2);++d){var l=a()[e+2*d>>1];if(0==l)break;c+=String.fromCharCode(l)}return c},jt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);a()[t>>1]=s,t+=2}return a()[t>>1]=0,t-n},Nt=e=>2*e.length,Ht=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=o()[e+4*r>>2];if(0==a)break;if(++r,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n},Gt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,a=n+r-4,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)),o()[t>>2]=s,(t+=4)+4>a)break}return o()[t>>2]=0,t-n},zt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},qt=e=>{if(!N)try{e(),(()=>{if(!me())try{_?Dr(M):_e(M)}catch(e){Ae(e)}})()}catch(e){Ae(e)}},Jt=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(o(),e>>2,e).value.then(Yt);var t=e+128;Atomics.store(o(),t>>2,1)}};u.__emscripten_thread_mailbox_await=Jt;var Yt=()=>{var e=Er();e&&(Jt(e),qt(Fr))};u.checkMailbox=Yt;var Qt,Zt=[],Kt={},Xt=[],er=(e,t)=>{var r=Le[e];return void 0===r&&Ne(t+" has unknown type "+Ct(e)),r},tr=(e,t,r)=>{var n=[],a=e.toWireType(n,r);return n.length&&(s()[t>>2]=Rt.toHandle(n)),a},rr=[0,31,60,91,121,152,182,213,244,274,305,335],nr=[0,31,59,90,120,151,181,212,243,273,304,334],ar=e=>{var t=Ot(e)+1,r=Sr(t);return r&&Vt(e,r,t),r};Qt=()=>performance.timeOrigin+performance.now();var ir=e=>{var t=(e-$.buffer.byteLength+65535)/65536;try{return $.grow(t),H(),1}catch(e){}},or={},sr=()=>{if(!sr.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",_:g||"./this.program"};for(var t in or)void 0===or[t]?delete e[t]:e[t]=or[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);sr.strings=r}return sr.strings},cr=function(e,t){if(_)return be(5,1,e,t);var n=0;return sr().forEach((a,i)=>{var o=t+n;s()[e+4*i>>2]=o,((e,t)=>{for(var n=0;n<e.length;++n)r()[0|t++]=e.charCodeAt(n);r()[0|t]=0})(a,o),n+=a.length+1}),0},dr=function(e,t){if(_)return be(6,1,e,t);var r=sr();s()[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),s()[t>>2]=n,0};function lr(e){return _?be(7,1,e):52}function ur(e,t){if(_)return be(8,1,e,t);var n=0;return 0==e?n=2:1!=e&&2!=e||(n=64),r()[0|t]=2,a()[t+2>>1]=1,ie=[n>>>0,(ae=n,+Math.abs(ae)>=1?ae>0?+Math.floor(ae/4294967296)>>>0:~~+Math.ceil((ae-+(~~ae>>>0))/4294967296)>>>0:0)],o()[t+8>>2]=ie[0],o()[t+12>>2]=ie[1],ie=[0,(ae=0,+Math.abs(ae)>=1?ae>0?+Math.floor(ae/4294967296)>>>0:~~+Math.ceil((ae-+(~~ae>>>0))/4294967296)>>>0:0)],o()[t+16>>2]=ie[0],o()[t+20>>2]=ie[1],0}function pr(e,t,r,n){return _?be(9,1,e,t,r,n):52}function fr(e,t,r,n,a){return _?be(10,1,e,t,r,n,a):70}var hr,mr,gr,yr=[null,[],[]],vr=(e,t)=>{var r=yr[e];0===t||10===t?((1===e?F:R)(ye(r,0)),r.length=0):r.push(t)};function br(e,t,r,a){if(_)return be(11,1,e,t,r,a);for(var i=0,o=0;o<r;o++){var c=s()[t>>2],d=s()[t+4>>2];t+=8;for(var l=0;l<d;l++)vr(e,n()[c+l]);i+=d}return s()[a>>2]=i,0}Ce.init(),(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);We=e})(),Ue=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ve=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(lt.prototype,{isAliasOf(e){if(!(this instanceof lt))return!1;if(!(e instanceof lt))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return t===n&&r===a},clone(){if(this.$$.ptr||Je(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=dt(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Je(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ne("Object already scheduled for deletion"),Qe(this),Ze(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Je(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ne("Object already scheduled for deletion"),rt.push(this),1===rt.length&&qe&&qe(nt),this.$$.deleteScheduled=!0,this}}),u.getInheritedInstanceCount=et,u.getLiveInheritedInstances=tt,u.flushPendingDeletes=nt,u.setDelayFunction=at,Object.assign(bt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:vt,deleteObject(e){null!==e&&e.delete()},fromWireType:ct}),wt=u.UnboundTypeError=(hr=Error,(gr=ut(mr="UnboundTypeError",function(e){this.name=mr,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))})).prototype=Object.create(hr.prototype),gr.prototype.constructor=gr,gr.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},gr),Object.assign(kt.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),$t.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),$t.reserved=$t.allocated.length,u.count_emval_handles=Ft;var wr=[we,Ee,Fe,Me,Be,cr,dr,lr,ur,pr,fr,br],_r={g:(e,t,r,n)=>{re(`Assertion failed: ${ve(e)}, at: `+[t?ve(t):"unknown filename",r,n?ve(n):"unknown function"])},s:(e,t,r)=>{throw new De(e).init(t,r),e},G:e=>{Ir(e,!b,1,!v,8388608,!1),Ce.threadInitTLS()},m:e=>{_?postMessage({cmd:"cleanupThread",thread:e}):pe(e)},B:Re,P:Me,D:Be,v:(e,t,r,n,a)=>{},R:(e,t,r,a)=>{ze(e,{name:t=Oe(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:a},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},O:(e,t,r,n,a,i,o,s,c,d,l,p,f)=>{l=Oe(l),i=At(a,i),s&&(s=At(o,s)),d&&(d=At(c,d)),f=At(p,f);var h=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(l);((e,t,r)=>{u.hasOwnProperty(e)?((void 0===r||void 0!==u[e].overloadTable&&void 0!==u[e].overloadTable[r])&&Ne(`Cannot register public name '${e}' twice`),pt(u,e,e),u.hasOwnProperty(r)&&Ne(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),u[e].overloadTable[r]=t):(u[e]=t,void 0!==r&&(u[e].numArguments=r))})(h,function(){St(`Cannot construct ${l} due to unbound types`,[n])}),Ge([e,t,r],n?[n]:[],function(t){var r,a;t=t[0],a=n?(r=t.registeredClass).instancePrototype:lt.prototype;var o=ut(l,function(){if(Object.getPrototypeOf(this)!==c)throw new Ue("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new Ue(l+" has no accessible constructor");var e=p.constructor_body[arguments.length];if(void 0===e)throw new Ue(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),c=Object.create(a,{constructor:{value:o}});o.prototype=c;var p=new ft(l,o,c,f,r,i,s,d);p.baseClass&&(void 0===p.baseClass.__derivedClasses&&(p.baseClass.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var m=new bt(l,p,!0,!1,!1),g=new bt(l+"*",p,!1,!1,!1),y=new bt(l+" const*",p,!1,!0,!1);return Xe[e]={pointerType:g,constPointerType:y},((e,t,r)=>{u.hasOwnProperty(e)||He("Replacing nonexistant public symbol"),void 0!==u[e].overloadTable&&void 0!==r?u[e].overloadTable[r]=t:(u[e]=t,u[e].argCount=r)})(h,o),[m,g,y]})},F:(e,t,r,n,a,i)=>{var o=Et(t,r);a=At(n,a),Ge([],[e],function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Ue(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{St(`Cannot construct ${e.name} due to unbound types`,o)},Ge([],o,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Pt(r,n,null,a,i),[])),[]})},k:(e,t,r,n,a,i,o,s,c)=>{var d=Et(r,n);t=(e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e})(t=Oe(t)),i=At(a,i),Ge([],[e],function(e){var n=`${(e=e[0]).name}.${t}`;function a(){St(`Cannot call ${n} due to unbound types`,d)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,u=l[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===r-2?(a.argCount=r-2,a.className=e.name,l[t]=a):(pt(l,t,n),l[t].overloadTable[r-2]=a),Ge([],d,function(a){var s=Pt(n,a,e,i,o,c);return void 0===l[t].overloadTable?(s.argCount=r-2,l[t]=s):l[t].overloadTable[r-2]=s,[]}),[]})},Q:(e,t)=>{ze(e,{name:t=Oe(t),fromWireType:e=>{var t=Rt.toValue(e);return Dt(e),t},toWireType:(e,t)=>Rt.toHandle(t),argPackAdvance:8,readValueFromPointer:Mt,destructorFunction:null})},p:(e,t,r)=>{ze(e,{name:t=Oe(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:Wt(t,r),destructorFunction:null})},d:(e,t,r,n,a)=>{t=Oe(t);var i=e=>e;if(0===n){var o=32-8*r;i=e=>e<<o>>>o}var s=t.includes("unsigned");ze(e,{name:t,fromWireType:i,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:Ut(t,r,0!==n),destructorFunction:null})},c:(e,t,n)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=s()[e>>2],n=s()[e+4>>2];return new a(r().buffer,n,t)}ze(e,{name:n=Oe(n),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},q:(e,t)=>{var r="std::string"===(t=Oe(t));ze(e,{name:t,fromWireType(e){var t,a=s()[e>>2],i=e+4;if(r)for(var o=i,c=0;c<=a;++c){var d=i+c;if(c==a||0==n()[d]){var l=ve(o,d-o);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),o=d+1}}else{var u=new Array(a);for(c=0;c<a;++c)u[c]=String.fromCharCode(n()[i+c]);t=u.join("")}return Cr(e),t},toWireType(e,t){var a;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var i="string"==typeof t;i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Ne("Cannot pass non-string to std::string"),a=r&&i?Ot(t):t.length;var o=Sr(4+a+1),c=o+4;if(s()[o>>2]=a,r&&i)Vt(t,c,a+1);else if(i)for(var d=0;d<a;++d){var l=t.charCodeAt(d);l>255&&(Cr(c),Ne("String has UTF-16 code units that do not fit in 8 bits")),n()[c+d]=l}else for(d=0;d<a;++d)n()[c+d]=t[d];return null!==e&&e.push(Cr,o),o},argPackAdvance:8,readValueFromPointer:vt,destructorFunction(e){Cr(e)}})},l:(e,t,r)=>{var n,a,o,c,d;r=Oe(r),2===t?(n=Lt,a=jt,c=Nt,o=()=>i(),d=1):4===t&&(n=Ht,a=Gt,c=zt,o=()=>s(),d=2),ze(e,{name:r,fromWireType:e=>{for(var r,a=s()[e>>2],i=o(),c=e+4,l=0;l<=a;++l){var u=e+4+l*t;if(l==a||0==i[u>>d]){var p=n(c,u-c);void 0===r?r=p:(r+=String.fromCharCode(0),r+=p),c=u+t}}return Cr(e),r},toWireType:(e,n)=>{"string"!=typeof n&&Ne(`Cannot pass non-string to C++ string type ${r}`);var i=c(n),o=Sr(4+i+t);return s()[o>>2]=i>>d,a(n,o+4,i+t),null!==e&&e.push(Cr,o),o},argPackAdvance:8,readValueFromPointer:Mt,destructorFunction(e){Cr(e)}})},S:(e,t)=>{ze(e,{isVoid:!0,name:t=Oe(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},y:(e,t,r)=>{if(e==t)setTimeout(()=>Yt());else if(_)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=Ce.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},C:(e,t,r,n)=>{Zt.length=r;for(var a=n>>3,i=0;i<r;i++)Zt[i]=c()[a+i];var o=wr[e];Ce.currentProxiedOperationCallerThread=t;var s=o.apply(null,Zt);return Ce.currentProxiedOperationCallerThread=0,s},E:Jt,L:e=>{w&&Ce.pthreads[e].ref()},j:(e,t,r,n,a)=>{var i,o;return(e=Xt[e])(t=Rt.toValue(t),t[r=void 0===(o=Kt[i=r])?Oe(i):o],n,a)},r:Dt,i:(e,t,r)=>{var n=((e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=er(s()[t+4*n>>2],"parameter "+n);return r})(e,t),a=n.shift();e--;var i="return function (obj, func, destructorsRef, args) {\n",o=0,c=[];0===r&&c.push("obj");for(var d=["retType"],l=[a],u=0;u<e;++u)c.push("arg"+u),d.push("argType"+u),l.push(n[u]),i+=`  var arg${u} = argType${u}.readValueFromPointer(args${o?"+"+o:""});\n`,o+=n[u].argPackAdvance;for(i+=`  var rv = ${1===r?"new func":"func.call"}(${c.join(", ")});\n`,u=0;u<e;++u)n[u].deleteObject&&(i+=`  argType${u}.deleteObject(arg${u});\n`);a.isVoid||(d.push("emval_returnValue"),l.push(tr),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",d.push(i);var p,f,h=It(Function,d).apply(null,l),m=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${a.name}>`;return p=ut(m,h),f=Xt.length,Xt.push(p),f},h:e=>{var t=Rt.toValue(e);Tt(t),Dt(e)},t:function(e,t,r){var n,a,i=(a=t)+2097152>>>0<4194305-!!(n=e)?(n>>>0)+4294967296*a:NaN,s=new Date(1e3*i);o()[r>>2]=s.getSeconds(),o()[r+4>>2]=s.getMinutes(),o()[r+8>>2]=s.getHours(),o()[r+12>>2]=s.getDate(),o()[r+16>>2]=s.getMonth(),o()[r+20>>2]=s.getFullYear()-1900,o()[r+24>>2]=s.getDay();var c=0|(e=>{var t;return((t=e.getFullYear())%4!=0||t%100==0&&t%400!=0?nr:rr)[e.getMonth()]+e.getDate()-1})(s);o()[r+28>>2]=c,o()[r+36>>2]=-60*s.getTimezoneOffset();var d=new Date(s.getFullYear(),0,1),l=new Date(s.getFullYear(),6,1).getTimezoneOffset(),u=d.getTimezoneOffset(),p=0|(l!=u&&s.getTimezoneOffset()==Math.min(u,l));o()[r+32>>2]=p},x:(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),i=new Date(n,6,1),c=a.getTimezoneOffset(),d=i.getTimezoneOffset(),l=Math.max(c,d);function u(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*l,o()[t>>2]=Number(c!=d);var p=u(a),f=u(i),h=ar(p),m=ar(f);d<c?(s()[r>>2]=h,s()[r+4>>2]=m):(s()[r>>2]=m,s()[r+4>>2]=h)},b:()=>{re("")},n:()=>{},f:()=>Date.now(),K:()=>{throw he+=1,"unwind"},e:Qt,z:()=>w?S("os").cpus().length:navigator.hardwareConcurrency,w:e=>{var t=n().length;if((e>>>=0)<=t)return!1;var r=805306368;if(e>r)return!1;for(var a=(e,t)=>e+(t-e%t)%t,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var s=Math.min(r,a(Math.max(e,o),65536));if(ir(s))return!0}return!1},I:cr,J:dr,A:_e,o:lr,H:ur,N:pr,u:fr,M:br,a:$||u.wasmMemory},Ar=function(){var e,t,r,n,a={a:_r};function i(e,t){var r;return Ar=e.exports,$e(Ar.X),Te=Ar._,r=Ar.T,q.unshift(r),D=t,te(),Ar}if(ee(),u.instantiateWasm)try{return u.instantiateWasm(a,i)}catch(e){R(`Module.instantiateWasm callback failed with error: ${e}`),l(e)}return(e=k,t=ne,r=a,n=function(e){i(e.instance,e.module)},e||"function"!=typeof WebAssembly.instantiateStreaming||oe(t)||se(t)||w||"function"!=typeof fetch?de(t,r,n):fetch(t,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,r).then(n,function(e){return R(`wasm streaming compile failed: ${e}`),R("falling back to ArrayBuffer instantiation"),de(t,r,n)}))).catch(l),{}}(),Cr=e=>(Cr=Ar.U)(e),Sr=e=>(Sr=Ar.V)(e),Er=u._pthread_self=()=>(Er=u._pthread_self=Ar.W)();u.__emscripten_tls_init=()=>(u.__emscripten_tls_init=Ar.X)();var Tr=e=>(Tr=Ar.Y)(e);u.__embind_initialize_bindings=()=>(u.__embind_initialize_bindings=Ar.Z)();var Ir=u.__emscripten_thread_init=(e,t,r,n,a,i)=>(Ir=u.__emscripten_thread_init=Ar.$)(e,t,r,n,a,i);u.__emscripten_thread_crashed=()=>(u.__emscripten_thread_crashed=Ar.aa)();var Pr,kr=(e,t,r,n)=>(kr=Ar.ba)(e,t,r,n),$r=e=>($r=Ar.ca)(e),Dr=u.__emscripten_thread_exit=e=>(Dr=u.__emscripten_thread_exit=Ar.da)(e),Fr=()=>(Fr=Ar.ea)(),Rr=(e,t)=>(Rr=Ar.fa)(e,t),Mr=()=>(Mr=Ar.ga)(),Br=e=>(Br=Ar.ha)(e),Wr=e=>(Wr=Ar.ia)(e),Ur=e=>(Ur=Ar.ja)(e);function Vr(){if(!(K>0)){if(_)return d(u),Y(),void startWorker(u);!function(){if(u.preRun)for("function"==typeof u.preRun&&(u.preRun=[u.preRun]);u.preRun.length;)Q(u.preRun.shift());Se(z)}(),K>0||(u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),e()},1)):e())}function e(){Pr||(Pr=!0,u.calledRun=!0,N||(Y(),d(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),function(){if(!_){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;)Z(u.postRun.shift());Se(J)}}()))}}if(u.dynCall_jiji=(e,t,r,n,a)=>(u.dynCall_jiji=Ar.ka)(e,t,r,n,a),u._ff_h264_cabac_tables=99061,u.wasmMemory=$,u.keepRuntimeAlive=me,u.ExitStatus=le,u.PThread=Ce,X=function e(){Pr||Vr(),Pr||(X=e)},u.preInit)for("function"==typeof u.preInit&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return Vr(),t.ready}),r=(()=>{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(t={}){var r,n,a;(a=t).ready=new Promise((e,t)=>{r=e,n=t}),(a=void 0!==a?a:{}).locateFile=function(e,t){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:t+e};var i,o,s,c=Object.assign({},a),d="./this.program",l="object"==typeof window,u="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,f="";if(p){const{createRequire:e}=await import("module");var h=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),m=h("fs"),g=h("path");f=u?g.dirname(f)+"/":h("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)),i=(e,t)=>(e=H(e)?new URL(e):g.normalize(e),m.readFileSync(e,t?void 0:"utf8")),s=e=>{var t=i(e,!0);return t.buffer||(t=new Uint8Array(t)),t},o=(e,t,r,n=!0)=>{e=H(e)?new URL(e):g.normalize(e),m.readFile(e,n?void 0:"utf8",(e,a)=>{e?r(e):t(n?a.buffer:a)})},!a.thisProgram&&process.argv.length>1&&(d=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),a.inspect=()=>"[Emscripten Module object]"}else(l||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},u&&(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var y,v,b=a.print||console.log.bind(console),w=a.printErr||console.error.bind(console);Object.assign(a,c),c=null,a.arguments&&a.arguments,a.thisProgram&&(d=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(y=a.wasmBinary),"object"!=typeof WebAssembly&&V("no native wasm support detected");var _,A,C,S,E,T,I,P,k=!1;function $(){var e=v.buffer;a.HEAP8=_=new Int8Array(e),a.HEAP16=C=new Int16Array(e),a.HEAPU8=A=new Uint8Array(e),a.HEAPU16=S=new Uint16Array(e),a.HEAP32=E=new Int32Array(e),a.HEAPU32=T=new Uint32Array(e),a.HEAPF32=I=new Float32Array(e),a.HEAPF64=P=new Float64Array(e)}var D=[],F=[],R=[];function M(e){D.unshift(e)}function B(e){R.unshift(e)}var W=0,U=null;function V(e){a.onAbort&&a.onAbort(e),w(e="Aborted("+e+")"),k=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var O,x,L,j,N=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function G(e){if(e==O&&y)return new Uint8Array(y);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function z(e,t,r){return function(e){if(!y&&(l||u)){if("function"==typeof fetch&&!H(e))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>G(e));if(o)return new Promise((t,r)=>{o(e,e=>t(new Uint8Array(e)),r)})}return Promise.resolve().then(()=>G(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{w(`failed to asynchronously prepare wasm: ${e}`),V(e)})}a.locateFile?N(O="decoder-pro-audio.wasm")||(x=O,O=a.locateFile?a.locateFile(x,f):f+x):O=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 q=e=>{for(;e.length>0;)e.shift()(a)};function J(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){T[this.ptr+4>>2]=e},this.get_type=function(){return T[this.ptr+4>>2]},this.set_destructor=function(e){T[this.ptr+8>>2]=e},this.get_destructor=function(){return T[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,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){T[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return T[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Rt(this.get_type()))return T[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}a.noExitRuntime;var Y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Q=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&Y)return Y.decode(e.subarray(t,a));for(var i="";t<a;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var d=o-65536;i+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i},Z=(e,t)=>e?Q(A,e,t):"";var K,X,ee,te=e=>{for(var t="",r=e;A[r];)t+=K[A[r++]];return t},re={},ne={},ae={},ie=e=>{throw new X(e)},oe=e=>{throw new ee(e)},se=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&oe("Mismatched type converter count");for(var a=0;a<e.length;++a)ce(e[a],n[a])}e.forEach(function(e){ae[e]=t});var a=new Array(t.length),i=[],o=0;t.forEach((e,t)=>{ne.hasOwnProperty(e)?a[t]=ne[e]:(i.push(e),re.hasOwnProperty(e)||(re[e]=[]),re[e].push(()=>{a[t]=ne[e],++o===i.length&&n(a)}))}),0===i.length&&n(a)};function ce(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||ie(`type "${n}" must have a positive integer typeid pointer`),ne.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ie(`Cannot register type '${n}' twice`)}if(ne[e]=t,delete ae[e],re.hasOwnProperty(e)){var a=re[e];delete re[e],a.forEach(e=>e())}}(e,t,r)}var de,le=e=>{ie(e.$$.ptrType.registeredClass.name+" instance already deleted")},ue=!1,pe=e=>{},fe=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},he=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=he(e,t,r.baseClass);return null===n?null:r.downcast(n)},me={},ge=()=>Object.keys(_e).length,ye=()=>{var e=[];for(var t in _e)_e.hasOwnProperty(t)&&e.push(_e[t]);return e},ve=[],be=()=>{for(;ve.length;){var e=ve.pop();e.$$.deleteScheduled=!1,e.delete()}},we=e=>{de=e,ve.length&&de&&de(be)},_e={},Ae=(e,t)=>(t=((e,t)=>{for(void 0===t&&ie("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),_e[t]),Ce=(e,t)=>(t.ptrType&&t.ptr||oe("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&oe("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ee(Object.create(e,{$$:{value:t}})));function Se(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Ae(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?Ce(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ce(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,o=this.registeredClass.getActualType(t),s=me[o];if(!s)return a.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=he(t,this.registeredClass,i.registeredClass);return null===c?a.call(this):this.isSmartPointer?Ce(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):Ce(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}var Ee=e=>"undefined"==typeof FinalizationRegistry?(Ee=e=>e,e):(ue=new FinalizationRegistry(e=>{fe(e.$$)}),Ee=e=>{var t=e.$$;if(!!t.smartPtr){var r={$$:t};ue.register(e,r,e)}return e},pe=e=>ue.unregister(e),Ee(e));function Te(){}var Ie=(e,t)=>Object.defineProperty(t,"name",{value:e}),Pe=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ie(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}};function ke(e,t,r,n,a,i,o,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var $e=(e,t,r)=>{for(;t!==r;)t.upcast||ie(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function De(e,t){if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return $e(t.$$.ptr,r,this.registeredClass)}function Fe(e,t){var r;if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ie(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=$e(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ie("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ie(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var a=t.clone();r=this.rawShare(r,Ke.toHandle(()=>a.delete())),null!==e&&e.push(this.rawDestructor,r)}break;default:ie("Unsupporting sharing policy")}return r}function Re(e,t){if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ie(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return $e(t.$$.ptr,r,this.registeredClass)}function Me(e){return this.fromWireType(T[e>>2])}function Be(e,t,r,n,a,i,o,s,c,d,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=d,this.rawDestructor=l,a||void 0!==t.baseClass?this.toWireType=Fe:n?(this.toWireType=De,this.destructorFunction=null):(this.toWireType=Re,this.destructorFunction=null)}var We,Ue,Ve=[],Oe=e=>{var t=Ve[e];return t||(e>=Ve.length&&(Ve.length=e+1),Ve[e]=t=We.get(e)),t},xe=(e,t,r)=>e.includes("j")?((e,t,r)=>{var n=a["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):Oe(t).apply(null,r),Le=(e,t)=>{var r,n,a,i=(e=te(e)).includes("j")?(r=e,n=t,a=[],function(){return a.length=0,Object.assign(a,arguments),xe(r,n,a)}):Oe(t);return"function"!=typeof i&&ie(`unknown function pointer with signature ${e}: ${t}`),i},je=e=>{var t=Dt(e),r=te(t);return $t(t),r},Ne=(e,t)=>{var r=[],n={};throw t.forEach(function e(t){n[t]||ne[t]||(ae[t]?ae[t].forEach(e):(r.push(t),n[t]=!0))}),new Ue(`${e}: `+r.map(je).join([", "]))},He=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(T[t+4*n>>2]);return r},Ge=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function ze(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Ie(e.name||"unknownFunctionName",function(){});r.prototype=e.prototype;var n=new r,a=e.apply(n,t);return a instanceof Object?a:n}function qe(e,t,r,n,a,i){var o=t.length;o<2&&ie("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,c=!1,d=1;d<t.length;++d)if(null!==t[d]&&void 0===t[d].destructorFunction){c=!0;break}var l="void"!==t[0].name,u="",p="";for(d=0;d<o-2;++d)u+=(0!==d?", ":"")+"arg"+d,p+=(0!==d?", ":"")+"arg"+d+"Wired";var f=`\n        return function (${u}) {\n        if (arguments.length !== ${o-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${o-2}');\n        }`;c&&(f+="var destructors = [];\n");var h=c?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[ie,n,a,Ge,t[0],t[1]];s&&(f+="var thisWired = classParam.toWireType("+h+", this);\n");for(d=0;d<o-2;++d)f+="var arg"+d+"Wired = argType"+d+".toWireType("+h+", arg"+d+"); // "+t[d+2].name+"\n",m.push("argType"+d),g.push(t[d+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),f+=(l||i?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",c)f+="runDestructors(destructors);\n";else for(d=s?1:2;d<t.length;++d){var y=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==t[d].destructorFunction&&(f+=y+"_dtor("+y+"); // "+t[d].name+"\n",m.push(y+"_dtor"),g.push(t[d].destructorFunction))}l&&(f+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),f+="}\n",m.push(f);var v=ze(Function,m).apply(null,g);return Ie(e,v)}function Je(){this.allocated=[void 0],this.freelist=[]}var Ye=new Je,Qe=e=>{e>=Ye.reserved&&0===--Ye.get(e).refcount&&Ye.free(e)},Ze=()=>{for(var e=0,t=Ye.reserved;t<Ye.allocated.length;++t)void 0!==Ye.allocated[t]&&++e;return e},Ke={toValue:e=>(e||ie("Cannot use deleted val. handle = "+e),Ye.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 Ye.allocate({refcount:1,value:e})}}};function Xe(e){return this.fromWireType(E[e>>2])}var et=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},tt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(I[e>>2])};case 8:return function(e){return this.fromWireType(P[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rt=(e,t,r)=>{switch(t){case 1:return r?e=>_[e|0]:e=>A[e|0];case 2:return r?e=>C[e>>1]:e=>S[e>>1];case 4:return r?e=>E[e>>2]:e=>T[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},nt=(e,t,r)=>((e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,i=r+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a})(e,A,t,r),at=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},it="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ot=(e,t)=>{for(var r=e,n=r>>1,a=n+t/2;!(n>=a)&&S[n];)++n;if((r=n<<1)-e>32&&it)return it.decode(A.subarray(e,r));for(var i="",o=0;!(o>=t/2);++o){var s=C[e+2*o>>1];if(0==s)break;i+=String.fromCharCode(s)}return i},st=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,a=(r-=2)<2*e.length?r/2:e.length,i=0;i<a;++i){var o=e.charCodeAt(i);C[t>>1]=o,t+=2}return C[t>>1]=0,t-n},ct=e=>2*e.length,dt=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=E[e+4*r>>2];if(0==a)break;if(++r,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n},lt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,a=n+r-4,i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i);if(E[t>>2]=o,(t+=4)+4>a)break}return E[t>>2]=0,t-n},ut=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},pt={},ft=[],ht=(e,t)=>{var r=ne[e];return void 0===r&&ie(t+" has unknown type "+je(e)),r},mt=(e,t,r)=>{var n=[],a=e.toWireType(n,r);return n.length&&(T[t>>2]=Ke.toHandle(n)),a},gt=[0,31,60,91,121,152,182,213,244,274,305,335],yt=[0,31,59,90,120,151,181,212,243,273,304,334];var vt=e=>{var t=at(e)+1,r=Ft(t);return r&&nt(e,r,t),r},bt=e=>{var t=(e-v.buffer.byteLength+65535)/65536;try{return v.grow(t),$(),1}catch(e){}},wt={},_t=()=>{if(!_t.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",_:d||"./this.program"};for(var t in wt)void 0===wt[t]?delete e[t]:e[t]=wt[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);_t.strings=r}return _t.strings};var At,Ct,St,Et=[null,[],[]],Tt=(e,t)=>{var r=Et[e];0===t||10===t?((1===e?b:w)(Q(r,0)),r.length=0):r.push(t)};(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);K=e})(),X=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},ee=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(Te.prototype,{isAliasOf(e){if(!(this instanceof Te))return!1;if(!(e instanceof Te))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return t===n&&r===a},clone(){if(this.$$.ptr||le(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Ee(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||le(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ie("Object already scheduled for deletion"),pe(this),fe(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||le(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ie("Object already scheduled for deletion"),ve.push(this),1===ve.length&&de&&de(be),this.$$.deleteScheduled=!0,this}}),a.getInheritedInstanceCount=ge,a.getLiveInheritedInstances=ye,a.flushPendingDeletes=be,a.setDelayFunction=we,Object.assign(Be.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Me,deleteObject(e){null!==e&&e.delete()},fromWireType:Se}),Ue=a.UnboundTypeError=(At=Error,(St=Ie(Ct="UnboundTypeError",function(e){this.name=Ct,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))})).prototype=Object.create(At.prototype),St.prototype.constructor=St,St.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},St),Object.assign(Je.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),Ye.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Ye.reserved=Ye.allocated.length,a.count_emval_handles=Ze;var It,Pt={o:(e,t,r)=>{throw new J(e).init(t,r),e},C:function(e,t,r){return 0},u:function(e,t,r,n){},r:(e,t,r,n,a)=>{},E:(e,t,r,n)=>{ce(e,{name:t=te(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(A[e])},destructorFunction:null})},F:(e,t,r,n,i,o,s,c,d,l,u,p,f)=>{u=te(u),o=Le(i,o),c&&(c=Le(s,c)),l&&(l=Le(d,l)),f=Le(p,f);var h=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(u);((e,t,r)=>{a.hasOwnProperty(e)?((void 0===r||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[r])&&ie(`Cannot register public name '${e}' twice`),Pe(a,e,e),a.hasOwnProperty(r)&&ie(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[e].overloadTable[r]=t):(a[e]=t,void 0!==r&&(a[e].numArguments=r))})(h,function(){Ne(`Cannot construct ${u} due to unbound types`,[n])}),se([e,t,r],n?[n]:[],function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:Te.prototype;var s=Ie(u,function(){if(Object.getPrototypeOf(this)!==d)throw new X("Use 'new' to construct "+u);if(void 0===p.constructor_body)throw new X(u+" has no accessible constructor");var e=p.constructor_body[arguments.length];if(void 0===e)throw new X(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),d=Object.create(i,{constructor:{value:s}});s.prototype=d;var p=new ke(u,s,d,f,r,o,c,l);p.baseClass&&(void 0===p.baseClass.__derivedClasses&&(p.baseClass.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var m=new Be(u,p,!0,!1,!1),g=new Be(u+"*",p,!1,!1,!1),y=new Be(u+" const*",p,!1,!0,!1);return me[e]={pointerType:g,constPointerType:y},((e,t,r)=>{a.hasOwnProperty(e)||oe("Replacing nonexistant public symbol"),void 0!==a[e].overloadTable&&void 0!==r?a[e].overloadTable[r]=t:(a[e]=t,a[e].argCount=r)})(h,s),[m,g,y]})},A:(e,t,r,n,a,i)=>{var o=He(t,r);a=Le(n,a),se([],[e],function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new X(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Ne(`Cannot construct ${e.name} due to unbound types`,o)},se([],o,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=qe(r,n,null,a,i),[])),[]})},h:(e,t,r,n,a,i,o,s,c)=>{var d=He(r,n);t=(e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e})(t=te(t)),i=Le(a,i),se([],[e],function(e){var n=`${(e=e[0]).name}.${t}`;function a(){Ne(`Cannot call ${n} due to unbound types`,d)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,u=l[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===r-2?(a.argCount=r-2,a.className=e.name,l[t]=a):(Pe(l,t,n),l[t].overloadTable[r-2]=a),se([],d,function(a){var s=qe(n,a,e,i,o,c);return void 0===l[t].overloadTable?(s.argCount=r-2,l[t]=s):l[t].overloadTable[r-2]=s,[]}),[]})},D:(e,t)=>{ce(e,{name:t=te(t),fromWireType:e=>{var t=Ke.toValue(e);return Qe(e),t},toWireType:(e,t)=>Ke.toHandle(t),argPackAdvance:8,readValueFromPointer:Xe,destructorFunction:null})},l:(e,t,r)=>{ce(e,{name:t=te(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:tt(t,r),destructorFunction:null})},c:(e,t,r,n,a)=>{t=te(t);var i=e=>e;if(0===n){var o=32-8*r;i=e=>e<<o>>>o}var s=t.includes("unsigned");ce(e,{name:t,fromWireType:i,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:rt(t,r,0!==n),destructorFunction:null})},b:(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function a(e){var t=T[e>>2],r=T[e+4>>2];return new n(_.buffer,r,t)}ce(e,{name:r=te(r),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},m:(e,t)=>{var r="std::string"===(t=te(t));ce(e,{name:t,fromWireType(e){var t,n=T[e>>2],a=e+4;if(r)for(var i=a,o=0;o<=n;++o){var s=a+o;if(o==n||0==A[s]){var c=Z(i,s-i);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),i=s+1}}else{var d=new Array(n);for(o=0;o<n;++o)d[o]=String.fromCharCode(A[a+o]);t=d.join("")}return $t(e),t},toWireType(e,t){var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var a="string"==typeof t;a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ie("Cannot pass non-string to std::string"),n=r&&a?at(t):t.length;var i=Ft(4+n+1),o=i+4;if(T[i>>2]=n,r&&a)nt(t,o,n+1);else if(a)for(var s=0;s<n;++s){var c=t.charCodeAt(s);c>255&&($t(o),ie("String has UTF-16 code units that do not fit in 8 bits")),A[o+s]=c}else for(s=0;s<n;++s)A[o+s]=t[s];return null!==e&&e.push($t,i),i},argPackAdvance:8,readValueFromPointer:Me,destructorFunction(e){$t(e)}})},i:(e,t,r)=>{var n,a,i,o,s;r=te(r),2===t?(n=ot,a=st,o=ct,i=()=>S,s=1):4===t&&(n=dt,a=lt,o=ut,i=()=>T,s=2),ce(e,{name:r,fromWireType:e=>{for(var r,a=T[e>>2],o=i(),c=e+4,d=0;d<=a;++d){var l=e+4+d*t;if(d==a||0==o[l>>s]){var u=n(c,l-c);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),c=l+t}}return $t(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ie(`Cannot pass non-string to C++ string type ${r}`);var i=o(n),c=Ft(4+i+t);return T[c>>2]=i>>s,a(n,c+4,i+t),null!==e&&e.push($t,c),c},argPackAdvance:8,readValueFromPointer:Xe,destructorFunction(e){$t(e)}})},n:(e,t)=>{ce(e,{isVoid:!0,name:t=te(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},f:(e,t,r,n,a)=>{var i,o;return(e=ft[e])(t=Ke.toValue(t),t[r=void 0===(o=pt[i=r])?te(i):o],n,a)},j:Qe,e:(e,t,r)=>{var n=((e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=ht(T[t+4*n>>2],"parameter "+n);return r})(e,t),a=n.shift();e--;var i="return function (obj, func, destructorsRef, args) {\n",o=0,s=[];0===r&&s.push("obj");for(var c=["retType"],d=[a],l=0;l<e;++l)s.push("arg"+l),c.push("argType"+l),d.push(n[l]),i+=`  var arg${l} = argType${l}.readValueFromPointer(args${o?"+"+o:""});\n`,o+=n[l].argPackAdvance;i+=`  var rv = ${1===r?"new func":"func.call"}(${s.join(", ")});\n`;for(l=0;l<e;++l)n[l].deleteObject&&(i+=`  argType${l}.deleteObject(arg${l});\n`);a.isVoid||(c.push("emval_returnValue"),d.push(mt),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",c.push(i);var u,p,f=ze(Function,c).apply(null,d),h=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${a.name}>`;return u=Ie(h,f),p=ft.length,ft.push(u),p},d:e=>{var t=Ke.toValue(e);Ge(t),Qe(e)},p:function(e,t,r){var n,a,i=(a=t)+2097152>>>0<4194305-!!(n=e)?(n>>>0)+4294967296*a:NaN,o=new Date(1e3*i);E[r>>2]=o.getSeconds(),E[r+4>>2]=o.getMinutes(),E[r+8>>2]=o.getHours(),E[r+12>>2]=o.getDate(),E[r+16>>2]=o.getMonth(),E[r+20>>2]=o.getFullYear()-1900,E[r+24>>2]=o.getDay();var s=0|(e=>{var t;return((t=e.getFullYear())%4!=0||t%100==0&&t%400!=0?yt:gt)[e.getMonth()]+e.getDate()-1})(o);E[r+28>>2]=s,E[r+36>>2]=-60*o.getTimezoneOffset();var c=new Date(o.getFullYear(),0,1),d=new Date(o.getFullYear(),6,1).getTimezoneOffset(),l=c.getTimezoneOffset(),u=0|(d!=l&&o.getTimezoneOffset()==Math.min(l,d));E[r+32>>2]=u},t:(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),i=new Date(n,6,1),o=a.getTimezoneOffset(),s=i.getTimezoneOffset(),c=Math.max(o,s);function d(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}T[e>>2]=60*c,E[t>>2]=Number(o!=s);var l=d(a),u=d(i),p=vt(l),f=vt(u);s<o?(T[r>>2]=p,T[r+4>>2]=f):(T[r>>2]=f,T[r+4>>2]=p)},a:()=>{V("")},g:()=>Date.now(),y:(e,t,r)=>A.copyWithin(e,t,t+r),s:e=>{var t=A.length,r=33554432;if((e>>>=0)>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,a=1;a<=4;a*=2){var i=t*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(r,n(Math.max(e,i),65536));if(bt(o))return!0}return!1},w:(e,t)=>{var r=0;return _t().forEach((n,a)=>{var i=t+r;T[e+4*a>>2]=i,((e,t)=>{for(var r=0;r<e.length;++r)_[0|t++]=e.charCodeAt(r);_[0|t]=0})(n,i),r+=n.length+1}),0},x:(e,t)=>{var r=_t();T[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),T[t>>2]=n,0},k:e=>52,v:(e,t)=>{var r=0;return 0==e?r=2:1!=e&&2!=e||(r=64),_[t|0]=2,C[t+2>>1]=1,j=[r>>>0,(L=r,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+8>>2]=j[0],E[t+12>>2]=j[1],j=[0,(L=0,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+16>>2]=j[0],E[t+20>>2]=j[1],0},B:(e,t,r,n)=>52,q:function(e,t,r,n,a){return 70},z:(e,t,r,n)=>{for(var a=0,i=0;i<r;i++){var o=T[t>>2],s=T[t+4>>2];t+=8;for(var c=0;c<s;c++)Tt(e,A[o+c]);a+=s}return T[n>>2]=a,0}},kt=function(){var e,t,r,i,o={a:Pt};function s(e,t){var r;return kt=e.exports,v=kt.G,$(),We=kt.K,r=kt.H,F.unshift(r),function(){if(W--,a.monitorRunDependencies&&a.monitorRunDependencies(W),0==W&&U){var e=U;U=null,e()}}(),kt}if(W++,a.monitorRunDependencies&&a.monitorRunDependencies(W),a.instantiateWasm)try{return a.instantiateWasm(o,s)}catch(e){w(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return(e=y,t=O,r=o,i=function(e){s(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||N(t)||H(t)||p||"function"!=typeof fetch?z(t,r,i):fetch(t,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,r).then(i,function(e){return w(`wasm streaming compile failed: ${e}`),w("falling back to ArrayBuffer instantiation"),z(t,r,i)}))).catch(n),{}}(),$t=e=>($t=kt.I)(e),Dt=e=>(Dt=kt.J)(e),Ft=e=>(Ft=kt.L)(e),Rt=e=>(Rt=kt.M)(e);function Mt(){function e(){It||(It=!0,a.calledRun=!0,k||(q(F),r(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)B(a.postRun.shift());q(R)}()))}W>0||(!function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)M(a.preRun.shift());q(D)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),e()},1)):e()))}if(a.dynCall_jij=(e,t,r,n)=>(a.dynCall_jij=kt.N)(e,t,r,n),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=kt.O)(e,t,r),a.dynCall_viiijj=(e,t,r,n,i,o,s,c)=>(a.dynCall_viiijj=kt.P)(e,t,r,n,i,o,s,c),a.dynCall_jiji=(e,t,r,n,i)=>(a.dynCall_jiji=kt.Q)(e,t,r,n,i),U=function e(){It||Mt(),It||(U=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Mt(),t.ready}})();const n=C;!function(e){const t=C,r=e();for(;;)try{if(485912===-parseInt(t(819))/1*(parseInt(t(518))/2)+-parseInt(t(921))/3*(-parseInt(t(690))/4)+parseInt(t(629))/5*(parseInt(t(762))/6)+-parseInt(t(685))/7*(parseInt(t(824))/8)+-parseInt(t(933))/9+parseInt(t(965))/10+-parseInt(t(676))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(P);const a={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(435),n(806),n(928),n(707),n(575),n(806),n(928),n(707),n(917),n(610),n(575);const i={player:n(822),playerAudio:n(627),playbackTF:n(540),talk:n(621),playVod:n(790)},o={mp4:n(709),webm:"webm",flv:n(498),mov:n(649)},s="flv";n(801),n(928),n(917),n(895),n(897),n(884),n(575),n(927),n(473);n(439),n(937),n(423),n(742),n(834),n(803),n(453);const c={mse:"mse",wcs:n(609),offscreen:"offscreen",wasm:n(755),simd:"simd",simdFFmpeg:"simdFFmpeg",mt:"mt",webrtc:n(707),hls:n(928),aliyunRtc:n(575),browser:n(692)},d={canvas:n(839),video:n(636)},l={debug:n(612),warn:n(886)},u={click:n(943),mouseDownAndUp:n(651)},p={normal:"normal",simple:n(430)},f={normal:n(827),small:n(680)},h={drop:n(628),accelerate:n(462)};n(446);const m=n(900),g=4080;n(752),n(893);n(622),n(908),n(850);const y={average:n(550),all:n(496)};n(665),n(494),n(452),n(715),n(601),n(558),n(797),n(797),n(797),n(802),n(658),n(414),n(486),n(686),n(802),n(558),n(797),n(682),n(682),n(903),n(953),n(953),n(777),n(913),n(528),n(777),n(543),n(953),n(816),n(603),n(784),n(735),n(421),n(777),n(836),n(412),n(412),n(410),n(602),n(703),n(410),n(866);n(822),n(612),n(827),n(650),n(570),n(451),n(710),n(749),n(795),n(512),n(827),n(806),n(755),n(709),n(912),n(943),n(492),n(492),n(496);n(641),n(879),n(766),n(465),n(555),n(598),n(589),n(923),n(890),n(789),n(915),n(860),n(773),n(516),n(969),n(568),n(480),n(855),n(591),n(760),n(719),n(500),n(545),n(467);const v={init:n(539),initVideo:n(740),render:n(670),playAudio:n(417),initAudio:"initAudio",kBps:"kBps",decode:n(425),audioCode:n(704),audioNalu:n(867),audioAACSequenceHeader:n(745),videoCode:n(424),videoCodec:n(495),videoNalu:n(843),videoPayload:"videoPayload",audioPayload:"audioPayload",wasmError:n(471),workerFetch:"workerFetch",iframeIntervalTs:n(863),isDropping:n(780),workerEnd:n(548),networkDelay:n(475),playbackStreamVideoFps:n(566),wasmWidthOrHeightChange:n(788),simdDecodeError:n(807),simdH264DecodeVideoWidthIsTooLarge:n(693),simdDecodeDelayTimeout:n(561),websocketOpen:n(765),websocketStringMsg:n(845),closeEnd:"closeEnd",tempStream:"tempStream",videoSEI:"videoSEI",flvScriptData:n(932),aacSequenceHeader:n(408),videoSequenceHeader:"videoSequenceHeader",flvBufferData:n(918),checkFirstIFrame:n(870),mseHandle:n(668),mseFirstRenderTime:"mseFirstRenderTime",mseError:"mseError",notSupportNewWasm:"notSupportNewWasm",outOfMemoryWasm:n(592),failedToAsynchronouslyPrepareWasm:n(675),mtStreamStats:n(726),videoStreamStats:n(810),audioStreamStats:n(554),tsError:n(652),tsPrivateData:"tsPrivateData",videoInitedAndNotFirstVideoIFrame:n(448)};n(769),n(539),n(425),n(413),n(864),n(662),n(514),n(712),n(635),n(581),n(842),n(772),n(536),n(557),n(482),n(751),n(882),n(450),n(569),n(846),n(529),n(539),n(660),n(806),n(882),n(450),n(569),n(898),n(527);const b={fullscreenInner:n(515),fullscreen:"fullscreen",fullscreenEndInner:n(724),fullScreenByStart:"fullScreenByStart",webFullscreen:n(938),decoderWorkerInit:n(875),play:n(646),playing:"playing",pause:"pause",mute:n(653),load:"load",loading:n(776),zooming:n(955),drawingRect:n(618),drawingRectInfo:n(944),videoInfo:n(586),timeUpdate:n(625),audioInfo:"audioInfo",log:n(563),error:n(946),kBps:n(885),timeout:n(760),delayTimeout:n(506),delayTimeoutRetryEnd:n(672),loadingTimeout:n(719),loadingTimeoutRetryEnd:n(537),stats:n(785),performance:n(730),videoSmooth:n(562),faceDetectActive:n(608),objectDetectActive:n(794),occlusionDetectActive:n(872),imageDetectActive:n(438),licensePlateDetectActive:"licensePlateDetectActive",record:n(585),recording:n(968),recordingTimestamp:n(559),recordStart:"recordStart",recordEnd:n(815),recordCreateError:"recordCreateError",recordBlob:n(689),recordCancel:n(817),buffer:"buffer",videoFrame:"videoFrame",videoSEI:n(808),videoSEISyncPts:n(970),start:n(574),startInner:n(779),metadata:n(901),resize:n(714),volumechange:n(907),volume:n(768),destroy:n(882),beforeDestroy:n(941),streamEnd:n(809),streamRate:n(571),streamAbps:"streamAbps",streamVbps:n(718),streamDts:n(942),streamSuccess:"streamSuccess",streamMessage:n(531),streamError:"streamError",streamStats:"streamStats",streamEndInner:"streamEndInner",mseSourceOpen:n(615),mseSourceClose:n(849),mseSourceended:n(600),mseSourceStartStreaming:"mseSourceStartStreaming",mseSourceEndStreaming:"mseSourceEndStreaming",mseSourceBufferError:n(624),mseAddSourceBufferError:n(599),mseWorkerAddSourceBufferError:n(952),mseSourceBufferBusy:n(698),mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:"videoWaiting",videoTimeUpdate:n(511),videoSyncAudio:n(920),playToRenderTimes:n(828),playbackTime:n(950),playbackTimestamp:"playbackTimestamp",playbackTimeScroll:n(626),playbackPrecision:n(896),playbackShowPrecisionChange:n(767),playbackJustTime:"playbackJustTime",playbackStats:"playbackStats",playbackSeek:n(507),playbackPause:n(464),playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:n(484),playbackPreRateChange:n(422),playbackEndInner:n(931),playbackEnd:n(800),playbackEndedAndReplay:"playbackEndedAndReplay",playbackNextFrame:"playbackNextFrame",playbackNextIFrame:n(772),playVodStats:"playVodStats",playVodPause:n(851),playVodPauseOrResume:n(708),playVodRateChange:n(862),playVodTime:"playVodTime",playVodBufferedTime:n(538),playVodTimeCache:n(463),playVodSeek:n(853),playVodSeeking:n(799),playVodSeekEnd:n(564),playVodVideoSeekingByMse:n(436),playVodVideoSeekedByMse:"playVodVideoSeekedByMse",playVodCanplay:n(856),playVodWaiting:"playVodWaiting",playVodEndedAndReplay:"playVodEndedAndReplay",playVodEndedInner:n(861),playVodEnded:n(483),playVodNextFrame:n(557),playVodNextIFrame:n(482),playVodDuration:n(595),ptz:n(582),streamQualityChange:n(517),visibilityChange:n(532),netBuf:n(791),close:"close",networkDelayTimeout:"networkDelayTimeout",togglePerformancePanel:n(771),viewResizeChange:n(440),flvDemuxBufferSizeTooLarge:n(659),talkGetUserMediaSuccess:n(811),talkGetUserMediaFail:"talkGetUserMediaFail",talkGetUserMediaTimeout:n(734),talkStreamStart:n(831),talkStreamOpen:n(936),talkStreamClose:"talkStreamClose",talkStreamError:n(939),talkStreamInactive:n(587),talkStreamMsg:n(457),webrtcDisconnect:n(757),webrtcFailed:n(552),webrtcClosed:"webrtcClosed",webrtcChecking:n(645),webrtcConnected:n(868),webrtcCompleted:n(459),webrtcOnConnectionStateChange:"webrtcOnConnectionStateChange",webrtcOnIceConnectionStateChange:n(741),webrtcLowFps:n(764),webrtcIceCandidate:"webrtcIceCandidate",webrtcDataChannelOpen:n(508),webrtcDataChannelMsg:n(648),crashLog:n(711),focus:n(677),blur:"blur",inView:n(679),visibilityHiddenTimeout:n(702),websocketOpen:n(765),websocketClose:"websocketClose",websocketError:n(898),websocketStringMsg:n(845),aiObjectDetectorInfo:"aiObjectDetectorInfo",aiFaceDetectorInfo:n(874),aiOcclusionDetectResult:n(461),aiImageDetectResult:n(818),playFailedAndPaused:"playFailedAndPaused",audioResumeState:"audioResumeState",webrtcStreamH265:"webrtcStreamH265",flvMetaData:n(857),talkFailedAndStop:n(565),removeLoadingBgImage:n(723),memoryLog:n(759),downloadMemoryLog:n(695),pressureObserverCpu:"pressureObserverCpu",currentPts:n(597),online:"online",offline:n(449),networkState:n(578),clickInitPlayer:n(911),audioSplitBuffer:n(721),tsPrivateData:n(519),videoRectContentClick:n(444),hls264UseOldDemuxer:n(869),hlsTsVideoTrackPidList:n(878),tsVideoTrackPidList:"tsVideoTrackPidList"};n(505),n(586),n(885),n(574),n(719),n(537),n(506),n(672),n(854),n(972),n(938),n(646),n(902),n(653),n(613),n(815),n(689),n(817),n(559),n(523),n(828),n(582),n(711),n(677),n(697),n(702),n(532),n(765),n(845),n(567),n(681),n(584),n(648),n(808),n(809),n(857),n(679),n(578),n(768),n(911),n(519),n(944),n(444),n(663),n(874),n(461),n(818),n(507),n(551),n(422),n(484),n(767),n(800),n(483),n(708),n(862),n(470),n(538),n(853),n(799),n(564),n(829),n(542),n(587),n(734),n(565),n(457),n(505),n(625),n(533),n(946),n(885),n(574),n(760),n(719),n(537),n(506),n(672),n(646),n(653),n(785),n(828),n(765),n(527),n(567);const w={talkStreamError:b[n(939)],talkStreamClose:b[n(542)]};n(787),n(898),n(694),n(796),n(683),n(798),n(560),n(958),n(905),n(699),n(416),n(487),n(717),n(447),n(929),n(624),n(952),n(887),n(691),n(738),n(727),n(623),n(739),n(807),n(561),n(605),n(971),n(504),n(468),n(604),n(788),n(642),n(774),n(744),n(634),n(510),n(579),n(833),n(454),n(576),n(809),n(506),n(460),n(792),n(924),n(814),n(892),n(592),n(503),n(611),n(835),n(761),n(967),n(477),n(891),n(493),n(572);n(787),n(499),n(731),n(946),n(883),n(633),n(813),n(619),n(630),n(821),n(619),n(821),n(485),n(427),n(423);const _={h264:7,h265:12,av1:13,mpeg4:99};n(485),n(705);const A={PCM:1,AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8,G722_1:12};n(922),n(476),n(541),n(781),n(754),n(541);function C(e,t){const r=P();return(C=function(e,t){return r[e-=408]})(e,t)}n(588),n(418),n(639),n(701),n(928),n(707),n(839),n(419),n(638),n(910),n(431),n(661),n(722),n(881),n(914),n(841),n(731),n(930),Math[n(926)](40),n(951),n(479),n(490),n(852),n(880),n(525),n(951),n(963),n(524),n(614),n(961),n(812),n(823),n(411),n(524),n(614),n(573),n(502),n(673),n(478),n(945),n(409),n(655),n(838),n(526),n(620),n(889),n(876),n(607),n(782);n(637),n(877),n(927),n(481);n(544),n(455),n(644),n(700),n(671),n(488),n(894),n(720),n(725),n(756),n(904),n(732),n(737),n(733),n(736),n(902),n(646),n(687),n(750),n(583),n(907),n(925);const S={h264:n(840),h265:n(640),av1:n(940)};n(825),n(426),n(664),n(535),n(696),n(859),n(428),n(687),n(606),n(882);const E={sequenceHeader:0,nalu:1},T={keyFrame:1,interFrame:2};n(883),n(433),n(437);n(957),n(731),n(946),n(832);n(521);n(637),n(899),n(546),n(521),n(858),n(935),n(547),n(534),n(873),n(960),n(763),n(472),n(654),n(830),n(916),n(466),n(553),n(758),n(522),n(580),n(748),n(636),n(886),n(806),n(429),n(594),n(906),n(847),n(747),n(632),n(934),n(684),n(501),n(964),n(770),n(420),n(489),n(805),n(783),n(656),n(909),n(956),n(946),n(713),n(443),n(667),n(716),n(631),n(530),n(728),n(415),n(837),n(445),n(590),n(778),n(577),n(729),n(474),n(706),n(678),n(520),n(617),n(497),n(848),n(871),n(593),n(844),n(643),n(966),n(746),n(804),n(688),n(743),n(657),n(596),n(865),n(761),n(775),n(674),n(954),n(481),n(793),n(432),n(669),n(959),n(509),n(616),n(687);const I="object"==typeof window&&window[n(442)]===window?window:"object"==typeof self&&self.self===self?self:typeof global===n(434)&&global[n(919)]===global?global:void 0;function P(){const e=["updateForwardMaxRateDecodeIFrame","/crypto/","退出全屏","MULAW","wasm","loadedmetadata","webrtcDisconnect","3-1","memoryLog","timeout","playVodMp4UseSrcVideoError","3608502MiQpgy","multiMouseover","webrtcLowFps","websocketOpen","isSpecialPlaybackVod","playbackShowPrecisionChange","volume","Invalid NAL unit size","load-complete","togglePerformancePanel","playbackNextIFrame","isWebrtcForOthers","wcsWidthOrHeightChange","ulaw","loading","请求失败","Failed to send video packet for decoding","startInner","isDropping","ALAW","wiperClose","remove-buffer","加载超时重播失败","stats","性能面板激活","fetchError","wasmWidthOrHeightChange","isNakedFlow","playVod","netBuf","fullscreenError","webrtc-connected","objectDetectActive","decoder-pro-video-only.js","webtransportError","初始化解码器失败","webcodecsDecodeError","playVodSeeking","playbackEnd","m7s","流异常","MPEG-PS","transport","no-audio-track","fetch","simdDecodeError","videoSEI","streamEnd","videoStreamStats","talkGetUserMediaSuccess","left-down","full","mseWaitVideoCanplayTimeout","recordEnd","解析视频分辨率失败","recordCancel","aiImageDetectResult","533jvKUMX","云台激活","blob","player","right-down","8jncMvj","A key frame is required after configure() or flush()","Simd","normal","playToRenderTimes","tsVideoTrackPidList","multiMousedown","talkStreamStart","message","videoElementPlayingFailedForWebrtc","AliyunRtc","playVodMp4UseSrcError","初始化解码worker超时","video decode error","focusFar","canvas","avc","ended","playbackIsPause","videoNalu","remote-outbound-rtp","websocketStringMsg","fetchErrorWorker","demuxed-track","outbound-rtp","mseSourceClose","NV12","playVodPause","30min","playVodSeek","playFailedAndPaused","defaultStreamQuality","playVodCanplay","flvMetaData","script","AbortError","isWebrtc","playVodEndedInner","playVodRateChange","iframeIntervalTs","videoDecode","streamError","TS流包大小异常","audioNalu","webrtcConnected","hls264UseOldDemuxer","checkFirstIFrame","peer-connection","occlusionDetectActive","#000","aiFaceDetectorInfo","decoderWorkerInit","fogOpen","g711u","hlsTsVideoTrackPidList","playbackForwardMaxRateDecodeIFrame","10min",'video/mp4;codecs="hvc1.1.6.L120.90"',"destroy","empty","mpeg4","kBps","warn","mediaSourceAppendBufferError","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","cruiseStop","isMpeg4","mp4Error","notSupportNewWasm","jbprov","canplay","nakedFlow","playbackPrecision","fmp4","websocketError","rtp","JessibucaPro","metadata","pause","首帧解码超时","canplaythrough","webcodecsAudioInitTimeout","hls-level-loaded","volumechange","I420","switch-url-failed",'video/mp4; codecs="hev1.1.6.L123.b0"',"clickInitPlayer","vertical","请求结束",'video/mp4; codecs="av01.0.05M.08"',"isHls","multiMousemove","webTransport","flvBufferData","global","videoSyncAudio","3489BEWGib","ALAW(g711a)","isFmp4","aliyunRtcError","readystatechange","ceil","pcm","hls","mseSourceBufferFull","closed","playbackEndInner","flvScriptData","1347075HYPCPA","ttfb","active","talkStreamOpen","FMP4","webFullscreen","talkStreamError","av1","beforeDestroy","streamDts","click","drawingRectInfo","zoomExpand","error","ZLMediaKit","SRS","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","playbackTime","oneHour","mseWorkerAddSourceBufferError","video自动渲染失败","mp3","zooming","switch-url-success","playback","webcodecsDecodeConfigureError","webrtc-failed","multiDblSelected","right-up","性能面板","fiveMin","speed","8569210rQhVyl","stream","playVodFlvError","recording","ghostWatermarkConfig","videoSEISyncPts","webrtcError","fullscreen","aacSequenceHeader","apertureFar","点播MP4文件格式异常","right","wasm初始化异常","audioDecode","初始化音频解码器失败","audio packet","webcodecsAudioDecodeError","playAudio","webgl2","key","load-response-headers","音频通道错误","playbackPreRateChange","MPEG4","videoCode","decode","Cannot call 'decode' on a closed codec","AV1","Fetch is aborted","decoder-pro-audio-player.js","simple",'video/mp4;codecs="hev1.1.6.L120.90"',"webrtc-completed","jtt","object","websocket","playVodVideoSeekingByMse","udp","imageDetectActive","FLV","viewResizeChange","wifi","window","MEDIA_ERR_ABORTED","videoRectContentClick","Media failed to decode","lowNetwork","mediaSourceAudioNoDataTimeout","videoInitedAndNotFirstVideoIFrame","offline","destroyEnd","decoder-pro-audio.js","Video not supported","DHav","decoderWorkerWasmError","image/webp","电子放大","talkStreamMsg","FSimd","webrtcCompleted","networkDelayTimeout","aiOcclusionDetectResult","accelerate","playVodTimeCache","playbackPause","isMulti","multiDragenter","waitingCheckFirstIframeTimeoutAutoWasmAndNoCheck","webrtcIceCandidateError","物品识别","playVodTime","wasmError","multiMouseout","dhav","memory access out of bounds","networkDelay","MULAW(g711u)","playVodMseDecodeVideoError","fiStop","halfHour","watermarkConfig","opus","playVodNextIFrame","playVodEnded","playbackRateChange","H264(AVC)","等待音频数据超时","mediaSourceH265NotSupport","qualitychange","sei","half-hour","人脸识别激活","white","hlsM3u8Empty","G711 not supported","videoCodec","all","local-candidate","flv","notConnect","heartTimeout","load-start","leftDown","playVodMp4Error","webrtcClosed","load","delayTimeout","playbackSeek","webrtcDataChannelOpen","webrtc-closed","webglContextLostError","videoTimeUpdate","default","关闭电子放大","resetDecode","fullscreen$2","isAliyunRtc","streamQualityChange","1768jnZEos","tsPrivateData","data-channel","worklet","4-1","recordCreateError","down","5min","focusNear","websocketClose","流异常结束","fetchSuccess","video decoder initialization failed","streamMessage","visibilityChange","audioInfo","#FFCC00","Decoding error","playVodFps","loadingTimeoutRetryEnd","playVodBufferedTime","init","playbackTF","MP3","talkStreamClose","初始化worker失败","image/png","playVodMp4UseSrc","0000000000","#343434","workerEnd","遮挡物检查激活","average","playbackStats","webrtcFailed","multiDrop","audioStreamStats","pauseAndNextPlayUseLastFrameShow","Momibuca","playVodNextFrame","不支持硬解码H265","recordingTimestamp","webcodecsUnsupportedConfigurationError","simdDecodeDelayTimeout","videoSmooth","log","playVodSeekEnd","talkFailedAndStop","playbackStreamVideoFps","audioResumeState","dynamicWatermarkConfig","buffer","decoder-pro-old.js","streamRate","hlsM3u8Error","leftUp","start","aliyunRtc","decoderWorkerUncaughtError","Failed to send audio packet for decoding","networkState","videoElementPlayingFailed","1-1","mseUpdateVideoTimestamp","ptz","suspend","webrtcIceCandidate","record","videoInfo","talkStreamInactive","webgl","isFlv","Error Domain=NSOSStatusErrorDomain","videoRenderSupportScale","outOfMemoryWasm","remote-inbound-rtp","hls-manifest-loaded","playVodDuration","wcsDecodeError","currentPts","widthOrHeightChangeReplayDelayTime","mseAddSourceBufferError","mseSourceended","webgl 上下文丢失","点播FLV文件异常","webrtc不支持H265","webglAlignmentError","hlsError","paused","fogClose","faceDetectActive","wcs","worker","playVodMp4NotMoovError","debug","recordStart","left","mseSourceOpen","created","inbound-rtp","drawingRect","download","cruiseStart","talk","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAIAAABKoV4MAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAO0lEQVRYhe3NIQEAMAgAsHNLAPp3JMAFDW4wW4FFVZ0l3X237qHX6/V6vV6v1+v1er1er9frP0RmLvYPXx0DlQ6vy9kAAAAASUVORK5CYII=","wasmDecodeError","mseSourceBufferError","timeUpdate","playbackTimeScroll","playerAudio","drop","5OcERoF","base64","MEDIA_ERR_SRC_NOT_SUPPORTED","metadata-parsed","buffering","audioChannelError","resetVideoDecode","video","g711a",'video/mp4; codecs="avc1.64002A"',"webgpu","hevc","playType","mseWidthOrHeightChange","sender","sourceopen","webrtcChecking","play","ethernet","webrtcDataChannelMsg","mov","decoder-pro.js","mouseDownAndUp","tsError","mute","multiMouseup","apertureNear","buffereos","mseDecodeError","硬解码不支持G711a/u音频格式","flvDemuxBufferSizeTooLarge","bufferByteLength",'video/mp4;codecs="hev1.2.4.L120.90"',"updateConfig","aiObjectDetectorInfo","Unsupported configuration","HEVC not supported","停止录制","MEDIA_ERR_NETWORK","mseHandle","webrtc-disconnected","render","endstreaming","delayTimeoutRetryEnd","stop","alaw","failedToAsynchronouslyPrepareWasm","5265579dEQbNB","focus","csrc","inView","small","webrtcOnConnectionStateChange","解码失败","webcodecsH265NotSupport","load-retry","1194326mCXBIU","MediaSource解码使用canvas渲染失败","playing","media-source","recordBlob","1024jqDjRy","mediaSourceTsIsMaxDiff","browser","simdH264DecodeVideoWidthIsTooLarge","websocketOpenTimeout","downloadMemoryLog","The user aborted a request","blur","mseSourceBufferBusy","webcodecsAudioNoDataTimeout","sourceended","offscreen","visibilityHiddenTimeout","点播解码器异常","audioCode","H265(HEVC)","codec","webrtc","playVodPauseOrResume","mp4","decoder-pro-hard.js","crashLog","resetAudioDecode","idle","resize","Webgl 渲染失败","MEDIA_ERR_DECODE","mediaSourceAudioG711NotSupport","streamVbps","loadingTimeout","timeupdate","audioSplitBuffer",'video/mp4;codecs="hev1.4.10.L120.90"',"removeLoadingBgImage","fullscreenEndInner","ratechange","mtStreamStats","mediaSourceBufferedIsZeroError","DECODER_ERROR_NOT_SUPPORTED","NotAllowedError","performance","open","complete","loadeddata","talkGetUserMediaTimeout","播放超时重播失败","loadstart","durationchange","mediaSourceUseCanvasRenderPlayFailed","wasmUseVideoRenderError","initVideo","webrtcOnIceConnectionStateChange","WebTransport","ws1006","tallWebsocketClosedByError","audioAACSequenceHeader","track","flv-script-data","container","decoder-pro-audio-only.js","seeking"];return(P=function(){return e})()}n(946),n(753),n(666),n(820),n(456),n(513),n(962),n(786),n(491),n(469),n(549);const k={wasm:"Wasm",simd:n(826),fSimd:n(458)};n(947),n(948),n(556),n(647),n(441),n(949),n(888);var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=Object.freeze({__proto__:null,commonjsGlobal:$,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,t){return e(t={exports:{}},t.exports),t.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}}),F=M;function R(){var e=["isEnabled","6CCcnbV","change","screenfull","webkitfullscreenchange","6vbPgXx","MSFullscreenError","exitFullscreen","fullscreenElement","msRequestFullscreen","webkitExitFullscreen","webkitfullscreenerror","exit","exports","webkitFullscreenEnabled","then","request","object","webkitFullscreenElement","requestFullscreen","isFullscreen","bind","2638VfdkCJ","catch","23307650Isojpi","59766zqmfZE","defineProperties","createCommonjsModule","msFullscreenElement","8689955JXBMLb","removeEventListener","msFullscreenEnabled","2536074DEChuU","addEventListener","fullscreenerror","document","mozCancelFullScreen","documentElement","2715608zVNYzu","1394WCAnOK","webkitCancelFullScreen","fullscreenchange","6671608jnkvCE","mozFullScreenElement","length","mozRequestFullScreen","undefined","fullscreenEnabled"];return(R=function(){return e})()}function M(e,t){var r=R();return(M=function(e,t){return r[e-=237]})(e,t)}!function(e){for(var t=M,r=e();;)try{if(995307===-parseInt(t(266))/1*(-parseInt(t(283))/2)+-parseInt(t(245))/3*(parseInt(t(282))/4)+-parseInt(t(273))/5*(-parseInt(t(249))/6)+-parseInt(t(269))/7+parseInt(t(238))/8+parseInt(t(276))/9+-parseInt(t(268))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(R),D[F(271)](function(e){var t,r,n,a,i,o;t=M,r=typeof window!==t(242)&&void 0!==window[t(279)]?window[t(279)]:{},n=t(261)!==t(242)&&e[t(257)],a=function(){for(var e,n=t,a=[[n(263),n(251),n(252),n(243),n(237),"fullscreenerror"],["webkitRequestFullscreen",n(254),n(262),n(258),n(248),n(255)],["webkitRequestFullScreen",n(284),"webkitCurrentFullScreenElement",n(284),n(248),"webkitfullscreenerror"],[n(241),n(280),n(239),"mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],[n(253),"msExitFullscreen",n(272),n(275),"MSFullscreenChange",n(250)]],i=0,o=a[n(240)],s={};i<o;i++)if((e=a[i])&&e[1]in r){for(i=0;i<e[n(240)];i++)s[a[0][i]]=e[i];return s}return!1}(),i={change:a[t(237)],error:a[t(278)]},o={request:function(e,n){return new Promise(function(t,i){var o=M,s=function(){var e=M;this.off(e(246),s),t()}[o(265)](this);this.on("change",s);var c=(e=e||r[o(281)])[a[o(263)]](n);c instanceof Promise&&c[o(259)](s).catch(i)}[t(265)](this))},exit:function(){return new Promise(function(e,t){var n=M;if(this[n(264)]){var i=function(){var t=n;this.off(t(246),i),e()}.bind(this);this.on(n(246),i);var o=r[a[n(251)]]();o instanceof Promise&&o.then(i)[n(267)](t)}else e()}[t(265)](this))},toggle:function(e,r){var n=t;return this.isFullscreen?this[n(256)]():this[n(260)](e,r)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var a=i[e];a&&r[t(277)](a,n,!1)},off:function(e,n){var a=i[e];a&&r[t(274)](a,n,!1)},raw:a},a?(Object[t(270)](o,{isFullscreen:{get:function(){return Boolean(r[a[t(252)]])}},element:{enumerable:!0,get:function(){return r[a[t(252)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(r[a.fullscreenEnabled])}}}),n?e[t(257)]=o:window[t(247)]=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})[F(244)];const B=V;function W(){const e=["_buffer_index","buffer","getUint32","readByte","213764BqlxTh","ExpGolomb: readBits() bits exceeded max 32bits!","23583EEDkVT","2620422IpxoWj","ExpGolomb: _fillCurrentWord() but no bytes available","_buffer","_current_word_bits_left","readUEG","readBool","byteLength","readSEG","min","_total_bytes","7881312mSegIL","722wYSCRI","_fillCurrentWord","_skipLeadingZero","2463TNVbGM","_current_word","_total_bits","38004270XaRplC","readBits","553699ufFuRI","522abawkd","75huSZGQ","error"];return(W=function(){return e})()}!function(e){const t=V,r=e();for(;;)try{if(579307===-parseInt(t(517))/1+-parseInt(t(509))/2*(parseInt(t(512))/3)+-parseInt(t(525))/4*(parseInt(t(519))/5)+-parseInt(t(518))/6*(parseInt(t(527))/7)+-parseInt(t(508))/8+-parseInt(t(498))/9+parseInt(t(515))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(W);class U{constructor(e){const t=V;this[t(500)]=e,this[t(521)]=0,this[t(507)]=e[t(504)],this[t(514)]=8*e.byteLength,this[t(513)]=0,this[t(501)]=0}destroy(){this[V(500)]=null}_fillCurrentWord(){const e=V;let t=this._total_bytes-this[e(521)];if(t<=0)return void console[e(520)](e(499),this[e(507)],this[e(521)]);let r=Math.min(4,t),n=new Uint8Array(4);n.set(this._buffer.subarray(this[e(521)],this[e(521)]+r)),this[e(513)]=new DataView(n[e(522)])[e(523)](0,!1),this[e(521)]+=r,this[e(501)]=8*r}readBits(e){const t=V;if(e>32&&console[t(520)](t(526)),e<=this[t(501)]){let r=this._current_word>>>32-e;return this._current_word<<=e,this[t(501)]-=e,r}let r=this[t(501)]?this[t(513)]:0;r>>>=32-this[t(501)];let n=e-this[t(501)];this[t(510)]();let a=Math[t(506)](n,this[t(501)]),i=this[t(513)]>>>32-a;return this[t(513)]<<=a,this[t(501)]-=a,r=r<<a|i,r}[B(503)](){return 1===this.readBits(1)}[B(524)](){return this[B(516)](8)}[B(511)](){const e=B;let t;for(t=0;t<this[e(501)];t++)if(this[e(513)]&2147483648>>>t)return this[e(513)]<<=t,this[e(501)]-=t,t;return this[e(510)](),t+this[e(511)]()}readUEG(){const e=B;let t=this._skipLeadingZero();return this[e(516)](t+1)-1}[B(505)](){let e=this[B(502)]();return 1&e?e+1>>>1:-1*(e>>>1)}}function V(e,t){const r=W();return(V=function(e,t){return r[e-=498]})(e,t)}const O=x;!function(e){const t=x,r=e();for(;;)try{if(499851===-parseInt(t(183))/1+parseInt(t(160))/2*(parseInt(t(195))/3)+parseInt(t(180))/4+-parseInt(t(172))/5*(-parseInt(t(171))/6)+parseInt(t(153))/7+parseInt(t(162))/8*(parseInt(t(213))/9)+-parseInt(t(157))/10*(parseInt(t(188))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(L);function x(e,t){const r=L();return(x=function(e,t){return r[e-=142]})(e,t)}function L(){const e=["warn","sampling_freq_index","look","length","6551468PcYbal","findNextSyncwordOffset","subarray","mp4a.40.","1275110TVqBuf","destroy","sample_rate","131202RfTRRv","more than 2 numProgram Not Supported","1305880kGpyUE","object_type","unshift","bufpos","indexOf","read","eof_flag_","byteLength","StreamMuxConfig Missing","174414FOovpq","145YrIybB","readBool","getIncompleteData","channel_config","other_data_present","readByte","userAgent","set","1376312PRxrCW","data","ext_object_type","74216BRkxMT","chan_config","bufoff","getLATMValue","current_syncword_offset_","176wAvcQL","profile: ","Flv: AAC invalid sampling frequency index!","push","navigator","has_last_incomplete_data","log","15UIkAQp","iserro","aac","readBits","toLowerCase","audio_object_type","mp4a.40.2","AAC","sampling_index","frameLengthType = ","audioMuxVersionA is Not Supported","buflen","firefox","aacEncoderConfigurationRecord","sbr","data_","sampling_frequency","android","9YiaolJ","buffer","Could not found ADTS syncword until payload end","error","more than 2 numSubFrames Not Supported","read_golomb","hasIncompleteData","Flv: AAC invalid channel configuration","channels","channel: "];return(L=function(){return e})()}function j(e){return function(e){const t=x;return e[0]>>4===A[t(202)]}(e)&&e[1]===E.sequenceHeader}const N=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];O(167),O(151),O(144);O(145),O(174);O(154),O(186),O(145),O(174);function H(e,t){const r=G();return(H=function(e,t){return r[e-=196]})(e,t)}function G(){const e=["toString","337464JIWbOl","266790FwmsHj","pps","byteLength","error","162522FNdBMB","setUint32","233611lFThVv","set","vps","slice","subarray","length","data","72XBjkTl","padStart","shift","Error writing parameter set: buffer overflow","183387etoPqv","33VDLCcz","4WfqvWi","7069800DkQqth","4aPgqud","187809CCYQSJ","sps","push","15eOxGbH"];return(G=function(){return e})()}!function(e){const t=H,r=e();for(;;)try{if(247337===parseInt(t(199))/1*(parseInt(t(201))/2)+parseInt(t(204))/3*(parseInt(t(203))/4)+-parseInt(t(207))/5*(-parseInt(t(209))/6)+-parseInt(t(216))/7*(-parseInt(t(223))/8)+parseInt(t(214))/9+-parseInt(t(210))/10*(parseInt(t(200))/11)+-parseInt(t(202))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(G);const z=K;function q(){return Date.now()}!function(e){const t=K,r=e();for(;;)try{if(143492===-parseInt(t(576))/1*(parseInt(t(700))/2)+parseInt(t(592))/3*(-parseInt(t(647))/4)+-parseInt(t(605))/5*(parseInt(t(387))/6)+-parseInt(t(588))/7*(parseInt(t(680))/8)+-parseInt(t(723))/9+-parseInt(t(420))/10*(parseInt(t(624))/11)+parseInt(t(398))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Q),(()=>{const e=K;try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly[e(594)]){const t=new(WebAssembly[e(492)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly[e(492)])return new(WebAssembly[e(706)])(t)instanceof WebAssembly.Instance}}catch(e){}})();const J=z(442);z(453);const Y=J===z(735);z(439);function Q(){const e=["toLowerCase","src","getDay","copyright","application/mozilla-npqihooquicklogin","rgba(0,0,0,0)","TB/s","resume","opera","performance","renderer","error","left","fromCharCode","demuxUseWorker","676089pghUxn","port","min","getHours","useMThreading","nettype/","slice","data-","getParameter","MediaStream","hev4","getExtension",'"delaytime"',"VideoEncoder.isConfigSupported is not a function","MediaSource","substring","block","application/asx","hev","numberOfChannels","isFFmpegSIMD","green","toFixed","f32-planar","map","fillStyle","scrollTop","paused","target","bottom","repeat","isTypeSupported","backgroundColor","hash","html","apple","prototype","xSpace","Bytes","B/s","reduce","WebGLRenderingContext","PB/s","-ms-user-select","objectFit","close","270510dkjUow","imageSmoothingEnabled","HarmonyOS","indexOf","dingtalk","scrollLeft","webgl","children","MB/s","setInt32","sequenceHeader","13763136ZfCXBK","clientY","iFrame","click","vps","9999999","forEach","webgl2","angle","ALAW","mediaDevices","sampleRate","right","borderStyle","style","keyFrame","type","strokeStyle","innerHTML","kSliceBLA_W_RADL","UNMASKED_VENDOR_WEBGL","test","10jjonSN","top","kSliceRSV_IRAP_VCL22","Anonymous","numberOfFrames","xxxx","set","[object Number]","high","useMSE","replace","avc1.","file","experimental-webgl","none","stringify","chrome","pageY","canPlayType","2401027200000","true","Edge",'"production"',"download","version","filter","toUpperCase","origin","useOffscreen","setUint16","KB/s","split","localhost",'"12-25-2025"',"push","green yuv","GB/s","canConstructInDedicatedWorker","getAttribute","360SE","removeAttribute","toLocaleLowerCase","hardwareConcurrency","AudioData","hostname","getFullYear","data:","getUint8","edg","line","useWasm","attachShadow","element","amd","href","status","validate","h264","pathname","borderColor","appendChild","canvas","apply","clearRect","webkitConnection","rect","body","assign","keys","encTypeCode","audioWorklet","pps","Module","floor","overflow","fmt ","0 KB/s","fontSize","createBufferSource","mozGetUserMedia","clientX","YB/s","buffer","msGetUserMedia","out of memory","wow32","content","length","substr","putImageData","crossOrigin","location","pageX","getDate","transferControlToOffscreen","save","onerror","getMinutes","VideoDecoder","charCodeAt","quality","0 Bytes","navigator","image","supported","data","ended","application/vnd.chromium.remoting-viewer","undefined","-webkit-text-size-adjust","visibility","getMilliseconds","application/360softmgrplugin","touchmove","createTextNode","document","removeChild","then","createElement","VideoEncoder is not supported","requestVideoFrameCallback","getPropertyValue","win32","mozConnection","ActiveXObject","function","360EE","ManagedMediaSource","second","charAt","contain","toDataURL","srcElement","imageSmoothingQuality","memory","host","event","getMonth","-o-user-select","-webkit-touch-callout","object","hev3","100%","ySpace","color","absolute","nvidia","onload","search","MouseEvents","match","effectiveType","trim","lineWidth","getTime","{y}-{m}-{d} {h}:{i}:{s}","252785ntcjbb","atob","drawImage","round","connection","opacity","hev2","EB/s","illegal icc","hvc","user-select","revokeObjectURL","49623OQgtry","addModule","destination","useWCS","203493udgruJ","h265","instantiate","string","documentElement","WEBGL_debug_renderer_info","setInt8","-moz-user-select","toString","AudioDecoder","display","isArray","fontFamily","25MmLbjY","copyToChannel","isFullscreen","hasAudio","byteLength","hidden","craNut","fillText","-webkit-user-select","setAttribute","webkitFullscreenElement","hev5","setUint8",'video/mp4; codecs="',"createBuffer","text/javascript","moz-webgl","wow64","createEvent","1732654kcyNKD","message",";base64","img","pointer-events: none !important; display: block !important","isConfigSupported","msFullscreenElement","hev1.1.6.L120.90","failed to asynchronously prepare wasm","max","mimeTypes","Worker","getContext","protocol","text","getSeconds","webm","image/png","PressureObserver","unknown","nLp","WebGL2RenderingContext","restore","16rcfAOa","hour","pow","noteOn","createObjectURL","#000","createImageBitmap","height","edge","container","360","subarray","If you want to help, upload a sample of this file to","Edg","vendor","dataset","-webkit-tap-highlight-color","font","Safari","[object DOMException]","call","NaN","getImageData","setInt16","shadowRoot","sps","getUserMedia","[object Error]","AAC","showModalDialog","endsWith","QQBrowser","px 宋体","24uUbcRw","safari","Reserved SBR extensions is not implemented","join","application/vnd.apple.mpegurl","webkitGetUserMedia","format","zIndex","intel","now","log","userAgent","application/hwepass2001.installepass2001","RIFF","kSliceRSV_IRAP_VCL23","random","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","getElementById","setUint32","ArkWeb","2swnjFP","URL","xxxxxxxxxxxx4xxx","div","strokeRect","width","Instance","video"];return(Q=function(){return e})()}function Z(e){return e&&typeof e===z(545)}function K(e,t){const r=Q();return(K=function(e,t){return r[e-=381]})(e,t)}function X(e){const t=z;return e[0]>>4===T[t(413)]&&e[1]===E[t(397)]}function ee(e){return!0!==e&&e!==z(440)}const te=re;function re(e,t){const r=ae();return(re=function(e,t){return r[e-=128]})(e,t)}!function(e){const t=re,r=e();for(;;)try{if(541293===-parseInt(t(148))/1*(parseInt(t(129))/2)+-parseInt(t(132))/3*(parseInt(t(136))/4)+parseInt(t(139))/5+parseInt(t(134))/6+-parseInt(t(133))/7+-parseInt(t(137))/8*(parseInt(t(130))/9)+parseInt(t(144))/10*(parseInt(t(146))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ae);class ne{on(e,t,r){const n=re,a=this.e||(this.e={});return(a[e]||(a[e]=[]))[n(138)]({fn:t,ctx:r}),this}[te(145)](e,t,r){const n=this;function a(...i){n[re(128)](e,a),t.apply(r,i)}return a._=t,this.on(e,a,r)}[te(147)](e,...t){const r=te,n=((this.e||(this.e={}))[e]||[])[r(142)]();for(let e=0;e<n.length;e+=1)n[e].fn[r(143)](n[e][r(140)],t);return this}[te(128)](e,t){const r=te,n=this.e||(this.e={});if(!e)return Object[r(141)](n)[r(135)](e=>{delete n[e]}),void delete this.e;const a=n[e],i=[];if(a&&t)for(let e=0,n=a.length;e<n;e+=1)a[e].fn!==t&&a[e].fn._!==t&&i[r(138)](a[e]);return i[r(131)]?n[e]=i:delete n[e],this}}function ae(){const e=["24288jHykdW","push","1874305miEutZ","ctx","keys","slice","apply","76870YAZANA","once","1991bdJEin","emit","344837qXPcRX","off","2cWEOfz","1071arhaWr","length","770343qotiUZ","4954159NBYAuB","5755716EmWXBi","forEach","12rzghfI"];return(ae=function(){return e})()}const ie=oe;function oe(e,t){const r=de();return(oe=function(e,t){return r[e-=207]})(e,t)}!function(e){const t=oe,r=e();for(;;)try{if(582969===-parseInt(t(236))/1*(-parseInt(t(239))/2)+parseInt(t(229))/3*(-parseInt(t(222))/4)+parseInt(t(208))/5*(parseInt(t(221))/6)+-parseInt(t(226))/7*(parseInt(t(212))/8)+-parseInt(t(207))/9+-parseInt(t(228))/10*(-parseInt(t(234))/11)+-parseInt(t(227))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(de);const se={init:0,findFirstStartCode:1,findSecondStartCode:2};class ce extends ne{constructor(e){const t=oe;super(),this.player=e,this[t(237)]=t(218),this[t(211)]=!1,this[t(231)](),this.tempBuffer=new Uint8Array(0),this[t(210)][t(215)](this[t(237)],"init")}destroy(){const e=oe;this[e(211)]=!0,this[e(213)](),this[e(231)](),this.player.debugLog(this[e(237)],e(219))}[ie(231)](){const e=ie;this.stats=se.init,this.tempBuffer=null,this[e(233)]=0,this[e(224)]=0}dispatch(e,t){const r=ie;let n=new Uint8Array(this[r(225)][r(223)]+e[r(223)]);for(n[r(238)](this[r(225)],0),n.set(e,this[r(225)][r(223)]),this[r(225)]=n;!this[r(211)];){if(this[r(217)]==se.Init){let e=!1;for(;this[r(225)].length-this[r(233)]>=2&&!this[r(211)];)if(255==this[r(225)][this[r(233)]]){if(!(!1&this.tempBuffer[this.parsedOffset+1])){this.versionLayer=this[r(225)][this[r(233)]+1],this[r(217)]=se[r(230)],this[r(216)]=this[r(233)],this.parsedOffset+=2,e=!0;break}this[r(233)]++}else this.parsedOffset++;if(e)continue;break}if(this.state==se[r(230)]){let e=!1;for(;this[r(225)][r(223)]-this[r(233)]>=2&&!this[r(211)];)if(255==this[r(225)][this[r(233)]]){if(this[r(225)][this[r(233)]+1]==this[r(224)]){this[r(217)]=se[r(235)],this[r(214)]=this[r(233)],this[r(233)]+=2,e=!0;break}this[r(233)]++}else this.parsedOffset++;if(e)continue;break}if(this[r(217)]==se[r(235)]){let e=this[r(225)][r(220)](this[r(216)],this[r(214)]);this[r(232)](r(209),e,t),this[r(225)]=this[r(225)].slice(this[r(214)]),this.fisrtStartCodeOffset=0,this[r(233)]=2,this[r(217)]=se[r(230)]}}}}function de(){const e=["7421022AVQhDG","5DvoQKA","data","player","isDestroyed","1205288wQpDED","off","secondStartCodeOffset","debugLog","fisrtStartCodeOffset","state","Mp3Demux","destroy","slice","2486364PUcKob","4HUDZUy","length","versionLayer","tempBuffer","21vRPuff","6202824NlSNaY","410qKoUzW","73695WnPbYE","findFirstStartCode","reset","emit","parsedOffset","268631pQoKLk","findSecondStartCode","492661Ojubhf","TAG_NAME","set","4ZRaewA"];return(de=function(){return e})()}const le=fe;function ue(){const e=["_ebsp2rbsp","subarray","4967210TnbrKa","buffer","4:2:0","34600ATSJdA","331195FvwaTi","readByte","_skipScalingList","getLevelString","84343uBWkSF","68cNsZKM","destroy","High444","getChromaFormatString","byteLength","readBool","High422","High10","readBits","4:4:4","parseSPS$2","Unknown","readSEG","Baseline","Extended","parseSPS","length","getProfileString","ceil","4:2:2","1246816GqVOmy","readUEG","2367uRLsur","258726zbeyvC","Main","2ZPahPq","12PQKCxR","16802929cmpkbJ"];return(ue=function(){return e})()}!function(e){const t=fe,r=e();for(;;)try{if(851e3===-parseInt(t(249))/1*(parseInt(t(244))/2)+parseInt(t(247))/3+-parseInt(t(263))/4*(parseInt(t(258))/5)+parseInt(t(250))/6*(-parseInt(t(262))/7)+-parseInt(t(257))/8*(-parseInt(t(246))/9)+parseInt(t(254))/10+parseInt(t(251))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ue);class pe{static[le(252)](e){const t=le;let r=e,n=r[t(267)],a=new Uint8Array(n),i=0;for(let e=0;e<n;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(a[i]=r[e],i++);return new Uint8Array(a[t(255)],0,i)}static[le(239)](e){const t=le;let r=pe._ebsp2rbsp(e),n=new U(r);n.readByte();let a=n[t(259)]();n[t(259)]();let i=n.readByte();n.readUEG();let o=pe[t(241)](a),s=pe.getLevelString(i),c=1,d=420,l=[0,420,422,444],u=8;if((100===a||110===a||122===a||244===a||44===a||83===a||86===a||118===a||128===a||138===a||144===a)&&(c=n[t(245)](),3===c&&n[t(271)](1),c<=3&&(d=l[c]),u=n[t(245)]()+8,n[t(245)](),n[t(271)](1),n.readBool())){let e=3!==c?8:12;for(let r=0;r<e;r++)n[t(268)]()&&(r<6?pe[t(260)](n,16):pe._skipScalingList(n,64))}n[t(245)]();let p=n[t(245)]();if(0===p)n[t(245)]();else if(1===p){n[t(271)](1),n[t(275)](),n[t(275)]();let e=n[t(245)]();for(let r=0;r<e;r++)n[t(275)]()}let f=n[t(245)]();n[t(271)](1);let h=n[t(245)](),m=n[t(245)](),g=n[t(271)](1);0===g&&n.readBits(1),n[t(271)](1);let y=0,v=0,b=0,w=0;n[t(268)]()&&(y=n[t(245)](),v=n[t(245)](),b=n[t(245)](),w=n.readUEG());let _=1,A=1,C=0,S=!0,E=0,T=0;if(n.readBool()){if(n.readBool()){let e=n[t(259)]();e>0&&e<16?(_=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],A=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(_=n[t(259)]()<<8|n[t(259)](),A=n.readByte()<<8|n[t(259)]())}if(n[t(268)]()&&n[t(268)](),n[t(268)]()&&(n[t(271)](4),n.readBool()&&n[t(271)](24)),n[t(268)]()&&(n.readUEG(),n[t(245)]()),n[t(268)]()){let e=n.readBits(32),r=n[t(271)](32);S=n[t(268)](),E=r,T=2*e,C=E/T}}let I=1;(1!==_||1!==A)&&(I=_/A);let P=0,k=0;if(0===c)P=1,k=2-g;else{P=3===c?1:2,k=(1===c?2:1)*(2-g)}let $=16*(h+1),D=16*(m+1)*(2-g);$-=(y+v)*P,D-=(b+w)*k;let F=Math[t(242)]($*I);return n.destroy(),n=null,{profile_string:o,level_string:s,bit_depth:u,ref_frames:f,chroma_format:d,chroma_format_string:pe[t(266)](d),frame_rate:{fixed:S,fps:C,fps_den:T,fps_num:E},sar_ratio:{width:_,height:A},codec_size:{width:$,height:D},present_size:{width:F,height:D}}}static[le(273)](e){const t=le;let r=e[t(253)](1,4),n="avc1.";for(let e=0;e<3;e++){let a=r[e].toString(16);a[t(240)]<2&&(a="0"+a),n+=a}let a=pe[t(252)](e),i=new U(a);i[t(259)]();let o=i.readByte();i[t(259)]();let s=i[t(259)]();i[t(245)]();let c=pe[t(241)](o),d=pe[t(261)](s),l=1,u=420,p=[0,420,422,444],f=8,h=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(l=i[t(245)](),3===l&&i[t(271)](1),l<=3&&(u=p[l]),f=i[t(245)]()+8,h=i[t(245)]()+8,i.readBits(1),i[t(268)]())){let e=3!==l?8:12;for(let r=0;r<e;r++)i[t(268)]()&&(r<6?pe._skipScalingList(i,16):pe[t(260)](i,64))}i[t(245)]();let m=i[t(245)]();if(0===m)i[t(245)]();else if(1===m){i[t(271)](1),i[t(275)](),i.readSEG();let e=i.readUEG();for(let r=0;r<e;r++)i[t(275)]()}let g=i[t(245)]();i.readBits(1);let y=i[t(245)](),v=i[t(245)](),b=i[t(271)](1);0===b&&i.readBits(1),i.readBits(1);let w=0,_=0,A=0,C=0;i[t(268)]()&&(w=i[t(245)](),_=i[t(245)](),A=i[t(245)](),C=i[t(245)]());let S=1,E=1,T=0,I=!0,P=0,k=0;if(i.readBool()){if(i[t(268)]()){let e=i[t(259)]();e>0&&e<16?(S=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],E=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(S=i[t(259)]()<<8|i[t(259)](),E=i.readByte()<<8|i[t(259)]())}if(i[t(268)]()&&i[t(268)](),i[t(268)]()&&(i[t(271)](4),i.readBool()&&i.readBits(24)),i[t(268)]()&&(i[t(245)](),i.readUEG()),i.readBool()){let e=i[t(271)](32),r=i.readBits(32);I=i[t(268)](),P=r,k=2*e,T=P/k}}let $=1;(1!==S||1!==E)&&($=S/E);let D=0,F=0;if(0===l)D=1,F=2-b;else{D=3===l?1:2,F=(1===l?2:1)*(2-b)}let R=16*(y+1),M=16*(v+1)*(2-b);R-=(w+_)*D,M-=(A+C)*F;let B=Math[t(242)](R*$);return i[t(264)](),i=null,{codec_mimetype:n,profile_idc:o,level_idc:s,profile_string:c,level_string:d,chroma_format_idc:l,bit_depth:f,bit_depth_luma:f,bit_depth_chroma:h,ref_frames:g,chroma_format:u,chroma_format_string:pe[t(266)](u),frame_rate:{fixed:I,fps:T,fps_den:k,fps_num:P},sar_ratio:{width:S,height:E},codec_size:{width:R,height:M},present_size:{width:B,height:M}}}static _skipScalingList(e,t){let r=8,n=8,a=0;for(let i=0;i<t;i++)0!==n&&(a=e.readSEG(),n=(r+a+256)%256),r=0===n?r:n}static[le(241)](e){const t=le;switch(e){case 66:return t(276);case 77:return t(248);case 88:return t(238);case 100:return"High";case 110:return t(270);case 122:return t(269);case 244:return t(265);default:return t(274)}}static[le(261)](e){return(e/10).toFixed(1)}static[le(266)](e){const t=le;switch(e){case 420:return t(256);case 422:return t(243);case 444:return t(272);default:return t(274)}}}function fe(e,t){const r=ue();return(fe=function(e,t){return r[e-=238]})(e,t)}const he=me;function me(e,t){const r=ge();return(me=function(e,t){return r[e-=397]})(e,t)}function ge(){const e=["3DAlCjf","read","45995UmWWNM","664qdAdUO","bufpos","10Vharac","15349914JjJApz","look","read_golomb","buflen","bufoff","buffer","10341989sjneBs","33735009gtKaEV","3498306rVXTCO","4541409SYGgpc","447114ZJtfyc","8MLhWXW","iserro"];return(ge=function(){return e})()}!function(e){const t=me,r=e();for(;;)try{if(999621===-parseInt(t(398))/1*(-parseInt(t(414))/2)+parseInt(t(413))/3+parseInt(t(401))/4*(parseInt(t(400))/5)+parseInt(t(412))/6+-parseInt(t(410))/7*(-parseInt(t(415))/8)+parseInt(t(404))/9*(-parseInt(t(403))/10)+-parseInt(t(411))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ge);he(405),he(406);const ye=be;function ve(){const e=["Cannot read more than 32 bits","skipScalingList","No bytes available","1095282ecieMK","byteLength","1458rydUpv","45208tZTJnr","716499FSYmQs","readBits","subarray","2119805IlqHsW","readBool","281518ApUNUg","2eJpXtq","readEG","529200kkLUxp","readUEG","_bytesAvailable","_data","_loadWord","864714AwebPj","skipUEG","skipBits","_bitsAvailable","readSliceType","readUByte","skipLZ","buffer","set","_word","min","getUint32"];return(ve=function(){return e})()}function be(e,t){const r=ve();return(be=function(e,t){return r[e-=319]})(e,t)}!function(e){const t=be,r=e();for(;;)try{if(230859===-parseInt(t(328))/1*(-parseInt(t(327))/2)+parseInt(t(335))/3+-parseInt(t(330))/4+parseInt(t(325))/5+parseInt(t(350))/6+parseInt(t(322))/7+-parseInt(t(321))/8*(parseInt(t(320))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ve);ye(334),ye(337),ye(323),ye(341),ye(336),ye(329),ye(326),ye(340),ye(348),ye(339);function we(){const e=["present_size","2349780TZrOIj","refSampleDuration","readUEG","log","shift","skipBits","width","presentHeight","Could not find H264 startcode until payload end!","readUByte","readUE"," Strange AVCDecoderConfigurationRecord: SPS Count = ","h264","parseSPS","read","fps_num","bit_depth","frameRate","timescale","sps","pps","currentStartcodeOffset","fps_den","setInt16","Invalid AVCDecoderConfigurationRecord: No PPS'","1333240wkNguh","push","read_golomb","readBool","126KSKNdm","Error parsing slice header:","correctionConfigurationVersion","kSliceNonIDR","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] AVC profile (0) detected, correct to Baseline Profile (66)","2230pZIfjp","Invalid AVCDecoderConfigurationRecord, lack of data!","type","getUint8","JbPro[xxx][❌❌❌][parseAVCDecoderConfigurationRecord] invalid version ","bit","iFrame","sar_ratio","sarRatio","readBit","profile_string","skipScalingList","byteLength","codec_size","Strange AVCDecoderConfigurationRecord: PPS Count = ","295512GzoOIj","40PjIUmu","skipUEG","eofFlag","readBits","level","394FMAoXU","length","setUint8","getUint16","parseSPS$2","pos","nb_sps","setUint32","codecWidth","kSliceSEI","frame_rate","chroma_format","correctionConfigurationProfileIndication","JbPro[xxx][❌❌❌][parseAVCDecoderConfigurationRecord] invalid AVC profile (0) detected, and return","toString","profile","kReserved0","4051140HiDNBm","level_string","avc1.","buffer","codec","height","bitDepth",", valid version is 1 and return","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] invalid version ","set","Strange NaluLengthSizeMinusOne: ","2255607WcjEar","subarray","readNextNaluPayload","data","chroma_format_idc","8530864aCrrwM","ceil","bit_depth_luma","codecHeight","fixed","nalu","presentWidth","findNextStartCodeOffset","chromaFormat","error"];return(we=function(){return e})()}const _e=Ce;function Ae(e,t={}){const r=Ce,n={};let a=function(){const e=Ce;let t=new ArrayBuffer(2);return new DataView(t)[e(387)](0,256,!0),256===new Int16Array(t)[0]}();const i=new DataView(e[r(340)]);let o=i[r(401)](0),s=i.getUint8(1);if(i[r(401)](2),i[r(401)](3),1!==o){if(!t[r(395)])return console.error(r(402)+o+r(344)),{};{console[r(367)](r(345)+o+", correct to 1");let e=252&i[r(401)](0)|1;i[r(322)](0,e)}}if(0===s){if(!t[r(332)])return console.error(r(333)),{};console.log(r(397)),i[r(322)](1,66)}const c=1+(3&i[r(401)](4));if(3!==c&&4!==c)return{};let d=31&i[r(401)](5);if(0===d)return{};let l=6;for(let t=0;t<d;t++){let o=i[r(323)](l,!a);if(l+=2,0===o)continue;let s=new Uint8Array(e.buffer,l,o);l+=o;let c=pe[r(377)](s);if(0!==t)continue;n[r(383)]=s,n[r(382)]=1e3,n[r(328)]=c[r(312)][r(370)],n[r(356)]=c[r(312)][r(342)],n.presentWidth=c[r(363)][r(370)],n[r(371)]=c[r(363)][r(342)],n.profile=c[r(309)],n[r(319)]=c[r(338)],n.bitDepth=c.bit_depth,n[r(361)]=c.chroma_format,n[r(307)]=c.sar_ratio,n[r(381)]=c[r(330)],(!1===c[r(330)][r(357)]||0===c[r(330)][r(379)]||0===c[r(330)].fps_den)&&(n[r(381)]={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let d=n.frameRate[r(386)],u=n[r(381)].fps_num;n.refSampleDuration=n[r(382)]*(d/u);let p=s.subarray(1,4),f=r(339);for(let e=0;e<3;e++){let t=p[e][r(334)](16);t.length<2&&(t="0"+t),f+=t}n[r(341)]=f}let u=i[r(401)](l);if(0===u)return{};l++;for(let t=0;t<u;t++){let t=i[r(323)](l,!a);if(l+=2,0===t)continue;let o=new Uint8Array(e.buffer,l,t);l+=t,n.pps=o}if(n.videoType=S[r(376)],n[r(383)]){const e=n[r(383)][r(311)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),a=new Uint8Array(e+4);a.set(t,0),a[r(346)](n[r(383)],4),n[r(383)]=a}if(n[r(384)]){const e=n[r(384)].byteLength,t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),a=new Uint8Array(e+4);a[r(346)](t,0),a[r(346)](n[r(384)],4),n[r(384)]=a}return n}function Ce(e,t){const r=we();return(Ce=function(e,t){return r[e-=307]})(e,t)}!function(e){const t=Ce,r=e();for(;;)try{if(664818===parseInt(t(320))/1*(-parseInt(t(398))/2)+parseInt(t(364))/3+parseInt(t(389))/4+parseInt(t(337))/5+parseInt(t(393))/6*(-parseInt(t(314))/7)+parseInt(t(353))/8+parseInt(t(348))/9*(-parseInt(t(315))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(we);_e(308),_e(318),_e(374);_e(350);function Se(e,t){const r=Te();return(Se=function(e,t){return r[e-=297]})(e,t)}const Ee=Se;!function(e){const t=Se,r=e();for(;;)try{if(139646===parseInt(t(313))/1*(-parseInt(t(315))/2)+parseInt(t(318))/3+-parseInt(t(316))/4+-parseInt(t(314))/5*(-parseInt(t(298))/6)+parseInt(t(307))/7+parseInt(t(317))/8+parseInt(t(312))/9*(-parseInt(t(308))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Te);Ee(297),Ee(311),Ee(304);function Te(){const e=["1495830SnIMSz","70aUINwQ","GetBit","GetWord","GetUE","409590QacYYt","48308ABspth","51155IDtssM","8KmtHFP","661652pbNFcf","1763608ndrFFn","503607knpoQp","GetBYTE","126ZWcYuj","m_byte","m_len","m_idx","m_bits","length","GetSE","m_data","m_zeros"];return(Te=function(){return e})()}const Ie=ke;function Pe(){const e=["GetWord","SPSParser chroma_format_idc > 3","byteLength","GetUE","419922mklrEp","SPSParser bit_depth_luma_minus8 != bit_depth_chroma_minus8","7YJArty","1615144FDZnIX","_ebsp2rbsp","139510smxRAC","234cJOgLH","113844pljAsS","560525LclZMD","parseSPS","4WttOWy","warn","48849rfYiGI","buffer","SPSParser sps_max_sub_layers_minus1 > 6","1447116TCYkez"];return(Pe=function(){return e})()}!function(e){const t=ke,r=e();for(;;)try{if(128016===-parseInt(t(252))/1+-parseInt(t(265))/2+parseInt(t(257))/3+-parseInt(t(255))/4*(-parseInt(t(253))/5)+-parseInt(t(260))/6*(parseInt(t(247))/7)+parseInt(t(248))/8+-parseInt(t(251))/9*(-parseInt(t(250))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pe);Ie(249),Ie(254);function ke(e,t){const r=Pe();return(ke=function(e,t){return r[e-=246]})(e,t)}function $e(e,t){const r=De();return($e=function(e,t){return r[e-=431]})(e,t)}function De(){const e=["11ccqsZE","push","hvc1.","destroy","buffer","1555668fwWiTi",".1.L",".B0","readUEG","4:2:2","4:2:0","readBool","7BtCmvJ","readByte","readBits","4:4:4","19143880GuDvMj","readSEG","2145QHxAuq","2fdInvj","1479816IQDLrl","10430172DsldGg","byteLength","4:0:0","toFixed","4759629Wlzxdt","9836qKduXl","8590432jEZdcC"];return(De=function(){return e})()}!function(e){const t=$e,r=e();for(;;)try{if(926924===-parseInt(t(457))/1*(-parseInt(t(456))/2)+-parseInt(t(434))/3+parseInt(t(435))/4*(-parseInt(t(455))/5)+parseInt(t(442))/6+parseInt(t(449))/7*(parseInt(t(436))/8)+-parseInt(t(458))/9+parseInt(t(453))/10*(parseInt(t(437))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(De);const Fe=Me;function Re(){const e=["destroy","toFixed","getLevelString",".1.L","hvc1.","4icIOur","readBool","4:0:0","4:4:4","readByte","10rcdiZH","4:2:2","1122xPsbML","buffer","push","1858743dRDvsq","1008hnZsJV","parsePPS","336498YlKvZE","SCC","min","getProfileString","readSEG","_ebsp2rbsp","7364WRMrJT","getChromaFormatString","MainSP","Unknown","readUEG","parseSPS","743646OUvUjh","8051417ITYNAO","37863vqYjrT","Main","Rext","324575CTWNfj","readBits","parseVPS"];return(Re=function(){return e})()}function Me(e,t){const r=Re();return(Me=function(e,t){return r[e-=236]})(e,t)}!function(e){const t=Me,r=e();for(;;)try{if(321232===-parseInt(t(260))/1+parseInt(t(272))/2+-parseInt(t(257))/3*(-parseInt(t(247))/4)+parseInt(t(239))/5+-parseInt(t(254))/6*(parseInt(t(266))/7)+parseInt(t(258))/8*(parseInt(t(236))/9)+-parseInt(t(252))/10*(parseInt(t(273))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Re);class Be{static[Fe(265)](e){const t=Fe;let r=e,n=r.byteLength,a=new Uint8Array(n),i=0;for(let e=0;e<n;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(a[i]=r[e],i++);return new Uint8Array(a[t(255)],0,i)}static[Fe(241)](e){const t=Fe;let r=Be[t(265)](e),n=new U(r);return n[t(251)](),n.readByte(),n[t(240)](4),n[t(240)](2),n[t(240)](6),{num_temporal_layers:n.readBits(3)+1,temporal_id_nested:n[t(248)]()}}static[Fe(271)](e){const t=Fe;let r=Be[t(265)](e),n=new U(r);n[t(251)](),n.readByte();let a=0,i=0,o=0,s=0;n.readBits(4);let c=n[t(240)](3);n[t(248)]();let d=n[t(240)](2),l=n[t(248)](),u=n[t(240)](5),p=n[t(251)](),f=n.readByte(),h=n[t(251)](),m=n[t(251)](),g=n[t(251)](),y=n[t(251)](),v=n[t(251)](),b=n.readByte(),w=n[t(251)](),_=n.readByte(),A=n[t(251)](),C=[],S=[];for(let e=0;e<c;e++)C[t(256)](n[t(248)]()),S[t(256)](n[t(248)]());if(c>0)for(let e=c;e<8;e++)n[t(240)](2);for(let e=0;e<c;e++)C[e]&&(n[t(251)](),n[t(251)](),n.readByte(),n[t(251)](),n[t(251)](),n[t(251)](),n[t(251)](),n[t(251)](),n[t(251)](),n[t(251)](),n[t(251)]()),S[e]&&n[t(251)]();n[t(270)]();let E=n.readUEG();3==E&&n[t(240)](1);let T=n.readUEG(),I=n[t(270)]();n[t(248)]()&&(a+=n[t(270)](),i+=n.readUEG(),o+=n[t(270)](),s+=n[t(270)]());let P=n[t(270)](),k=n[t(270)](),$=n.readUEG();for(let e=n[t(248)]()?0:c;e<=c;e++)n[t(270)](),n.readUEG(),n[t(270)]();if(n.readUEG(),n[t(270)](),n[t(270)](),n[t(270)](),n[t(270)](),n[t(270)](),n[t(248)]()){if(n[t(248)]())for(let e=0;e<4;e++)for(let r=0;r<(3===e?2:6);r++){if(n[t(248)]()){let r=Math[t(262)](64,1<<4+(e<<1));e>1&&n[t(264)]();for(let e=0;e<r;e++)n[t(264)]()}else n[t(270)]()}}n[t(248)](),n[t(248)](),n.readBool()&&(n[t(251)](),n[t(270)](),n.readUEG(),n[t(248)]());let D=n[t(270)](),F=0;for(let e=0;e<D;e++){let r=!1;if(0!==e&&(r=n[t(248)]()),r){e===D&&n.readUEG(),n.readBool(),n[t(270)]();let r=0;for(let e=0;e<=F;e++){let e=n[t(248)](),a=!1;!e&&(a=n[t(248)]()),(e||a)&&r++}F=r}else{let e=n[t(270)](),r=n.readUEG();F=e+r;for(let t=0;t<e;t++)n.readUEG(),n.readBool();for(let e=0;e<r;e++)n[t(270)](),n[t(248)]()}}if(n[t(248)]()){let e=n[t(270)]();for(let r=0;r<e;r++){for(let e=0;e<$+4;e++)n[t(240)](1);n.readBits(1)}}let R=!1,M=0,B=1,W=1,V=!1,O=1,x=1;if(n.readBool(),n.readBool(),n[t(248)]()){if(n[t(248)]()){let e=n[t(251)]();e>0&&e<=16?(B=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],W=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(B=n[t(240)](16),W=n.readBits(16))}if(n[t(248)]()&&n[t(248)](),n[t(248)]()){n[t(240)](3),n[t(248)](),n.readBool()&&(n[t(251)](),n[t(251)](),n.readByte())}if(n.readBool()&&(n[t(270)](),n[t(270)]()),n[t(248)](),n.readBool(),n[t(248)](),R=n.readBool(),R&&(n.readUEG(),n[t(270)](),n.readUEG(),n[t(270)]()),n.readBool()){if(O=n.readBits(32),x=n[t(240)](32),n[t(248)]()&&n[t(270)](),n[t(248)]()){let e=!1,r=!1,a=!1;e=n[t(248)](),r=n[t(248)](),(e||r)&&(a=n.readBool(),a&&(n[t(251)](),n[t(240)](5),n.readBool(),n[t(240)](5)),n[t(240)](4),n[t(240)](4),a&&n.readBits(4),n.readBits(5),n[t(240)](5),n[t(240)](5));for(let i=0;i<=c;i++){let i=n[t(248)]();V=i;let o=!0,s=1;!i&&(o=n[t(248)]());let c=!1;if(o?n.readUEG():c=n[t(248)](),!c&&(s=n.readUEG()+1),e){for(let e=0;e<s;e++)n[t(270)](),n[t(270)](),a&&(n[t(270)](),n[t(270)]());n[t(248)]()}if(r){for(let e=0;e<s;e++)n.readUEG(),n[t(270)](),a&&(n.readUEG(),n[t(270)]());n[t(248)]()}}}}n[t(248)]()&&(n[t(248)](),n[t(248)](),n[t(248)](),M=n.readUEG(),n[t(270)](),n.readUEG(),n[t(270)](),n.readUEG())}n.readBool();let L=t(246)+u+t(245)+A+".B0",j=T-(a+i)*(1===E||2===E?2:1),N=I-(o+s)*(1===E?2:1),H=1;return 1!==B&&1!==W&&(H=B/W),n[t(242)](),n=null,{codec_mimetype:L,profile_string:Be[t(263)](u),level_string:Be.getLevelString(A),profile_idc:u,bit_depth:P+8,ref_frames:1,chroma_format:E,chroma_format_string:Be[t(267)](E),general_level_idc:A,general_profile_space:d,general_tier_flag:l,general_profile_idc:u,general_profile_compatibility_flags_1:p,general_profile_compatibility_flags_2:f,general_profile_compatibility_flags_3:h,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:y,general_constraint_indicator_flags_3:v,general_constraint_indicator_flags_4:b,general_constraint_indicator_flags_5:w,general_constraint_indicator_flags_6:_,min_spatial_segmentation_idc:M,constant_frame_rate:0,chroma_format_idc:E,bit_depth_luma_minus8:P,bit_depth_chroma_minus8:k,frame_rate:{fixed:V,fps:x/O,fps_den:O,fps_num:x},sar_ratio:{width:B,height:W},codec_size:{width:j,height:N},present_size:{width:j*H,height:N}}}static[Fe(259)](e){const t=Fe;let r=Be[t(265)](e),n=new U(r);n.readByte(),n[t(251)](),n[t(270)](),n[t(270)](),n[t(248)](),n[t(248)](),n[t(240)](3),n[t(248)](),n.readBool(),n[t(270)](),n[t(270)](),n.readSEG(),n.readBool(),n[t(248)](),n[t(248)]()&&n.readUEG(),n.readSEG(),n[t(264)](),n.readBool(),n[t(248)](),n[t(248)](),n.readBool();let a=n[t(248)](),i=n[t(248)](),o=1;return i&&a?o=0:i?o=3:a&&(o=2),{parallelismType:o}}static[Fe(267)](e){const t=Fe;switch(e){case 0:return t(249);case 1:return"4:2:0";case 2:return t(253);case 3:return t(250);default:return t(269)}}static[Fe(263)](e){const t=Fe;switch(e){case 1:return t(237);case 2:return"Main10";case 3:return t(268);case 4:return t(238);case 9:return t(261);default:return t(269)}}static[Fe(244)](e){return(e/30)[Fe(243)](1)}}const We=Ue;function Ue(e,t){const r=Ve();return(Ue=function(e,t){return r[e-=145]})(e,t)}function Ve(){const e=["readUEG","sub_layer_interlaced_source_flag","push","profile_string","chroma_format","lengthSizeMinusOne","buffer","parseHEVCDecoderConfigurationRecord$2","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","length","conf_win_bottom_offset","codecWidth","general_profile_space","sub_layer_tier_flag","sps_temporal_id_nesting_flag","sub_layer_profile_compatibility_flag","sar_ratio","chroma_format_idc","generalLevelIdc","present_size","bitDepthChromaMinus8","slice","max","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] Invalid, lack of data! ","general_profile_compatibility_flags_1","bit_depth"," and naluLengthSize is ","parseHEVCDecoderConfigurationRecord$3","frame_rate",", valid version is 1 or 0","type"," < 22","h265","parseSPS","general_constraint_indicator_flags_3","generalConstraintIndicatorFlags","parseHEVCDecoderVPSAndSPSAndPPS and pps tag is ","sarRatio","level_idc","temporalIdNested","sub_layer_level_present_flag","conf_win_left_offset","level","vps","setInt16","width","getUint8","pic_width_in_luma_samples","currentStartcodeOffset","general_constraint_indicator_flags_2","6Gqjbxk","parallelismType","general_constraint_indicator_flags_1","sub_layer_level_idc","sei","presentWidth","eofFlag","sub_layer_non_packed_constraint_flag","codecHeight","subarray","1744760oFWsQI","general_profile_compatibility_flags","numTemporalLayers","sub_layer_frame_only_constraint_flag","bitDepthLumaMinus8","level_string","general_profile_compatibility_flags_4","pps","avgFrameRate","general_constraint_indicator_flags","40NMMXQa","assign"," < 23","sps","readUByte","fps_num","readBits","generalTierFlag","presentHeight","parseHEVCDecoderVPSAndSPSAndPPS and sps tag is ","sps_video_parameter_set_id","general_level_idc","profile_idc","log","correctionConfigurationProfileIndication","sub_layer_profile_space","profile","tier_flag","min_spatial_segmentation_idc","general_constraint_indicator_flags_6","general_profile_idc","error","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid version ","look","chromaFormat","general_frame_only_constraint_flag","conf_win_top_offset","generalProfileIdc","sub_layer_progressive_source_flag","correctionConfigurationVersion","temporal_id_nested","setUint32","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","fixed","bitDepth","Could not find H265 startcode until payload end!","byteLength","chromaFormatIdc","codec_mimetype","1259731kBePnU","sub_layer_profile_idc","findNextStartCodeOffset","5142sEBuQN","profile_space","hev1.1.6.L93.B0","setUint8","frameRate","25148vpltSH","885275LZzNBv","read_golomb","readNextNaluPayload","set","conf_win_right_offset","sub_layer_profile_present_flag","hvcc","pic_height_in_luma_samples","fps_den","num_temporal_layers","psps","parseHEVCDecoderVPSAndSPSAndPPS and vpsTag is ","57oqrBQT","sps_max_sub_layers_minus1","bit_depth_chroma_minus8","warn","general_constraint_indicator_flags_5","general_interlaced_source_flag",", correct to Main Profile (1)","timescale","general_profile_compatibility_flags_2","refSampleDuration","read","separate_colour_plane_flag","arrayBuffer.length ","1237293BwiFzm","height",", valid hevc profile is Main Profile (1), Main 10 Profile (2),Main Still Picture Profile (3)","codec_size","1430940EHKyiY","48AaejvX","general_profile_compatibility_flags_3","profile_compatibility_flags","data"];return(Ve=function(){return e})()}!function(e){const t=Ue,r=e();for(;;)try{if(117262===parseInt(t(251))/1*(parseInt(t(233))/2)+parseInt(t(269))/3*(parseInt(t(238))/4)+parseInt(t(239))/5*(parseInt(t(171))/6)+-parseInt(t(268))/7+parseInt(t(181))/8+parseInt(t(264))/9+-parseInt(t(191))/10*(parseInt(t(230))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ve);We(241);const Oe=xe;function xe(e,t){const r=je();return(xe=function(e,t){return r[e-=191]})(e,t)}!function(e){const t=xe,r=e();for(;;)try{if(349574===-parseInt(t(270))/1*(parseInt(t(316))/2)+parseInt(t(301))/3*(-parseInt(t(205))/4)+-parseInt(t(310))/5*(parseInt(t(333))/6)+-parseInt(t(294))/7*(-parseInt(t(324))/8)+-parseInt(t(330))/9*(-parseInt(t(350))/10)+parseInt(t(217))/11+-parseInt(t(328))/12*(-parseInt(t(198))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(je);class Le extends ne{constructor(e,t={}){const r=xe;super(),this.player=e,this[r(303)]=t,this[r(311)]=r(235),this[r(308)](),this.audioBufferSize=t.audioBufferSize||1024,this[r(223)]=t.sampleRate||48e3,this[r(284)]=null,this[r(194)]=null,this[r(317)]=null,this.audioDecoder=null,this[r(231)]=null,this.prevDecodedVideoFrameLocalTimestamp=null,this.prevDecodeVideoFrameLocalTimestamp=null,this[r(202)]={_handleModuleAudioError:this[r(266)][r(276)](this),_handleModuleVideoError:this._handleModuleVideoError.bind(this),_updateStreamRateAndStats:this[r(312)][r(276)](this)},this[r(286)]=null,this[r(260)]=!!ee(e[r(303)][r(343)]),this[r(345)]=!1,this.init()}[Oe(259)](){const e=Oe;if(this[e(345)]=!0,this[e(285)](),this[e(295)](),this[e(305)]){try{Z(this.audioDecoder[e(293)])&&this.audioDecoder[e(293)](),Z(this[e(305)][e(204)])&&this[e(305)].delete()}catch(e){}this[e(305)]=null}if(this.videoDecoder){try{Z(this[e(317)].clear)&&this[e(317)][e(293)](),Z(this.videoDecoder[e(204)])&&this[e(317)][e(204)]()}catch(e){}this[e(317)]=null}if(this[e(194)][e(298)]&&Z(this[e(194)][e(298)].terminateAllThreads))try{this[e(194)][e(298)].terminateAllThreads()}catch(e){}this.ModuleVideo=null,this[e(284)]=null,this[e(231)]=null,this.mp3Demuxer&&(this.mp3Demuxer[e(259)](),this[e(199)]=null),this[e(238)]=null,this[e(224)]=null,this[e(202)]=null,this._reset(),this.player[e(267)](this[e(311)],e(259))}_reset(){const e=Oe;this.audioDecoder=null,this[e(317)]=null,this[e(197)]=null,this[e(230)]=0,this[e(315)]=0,this[e(211)]=0,this[e(193)]=0,this[e(221)]=0,this.hasInitAudioCodec=!1,this[e(229)]=!1,this.mp3Demuxer=null,this[e(260)]=!1,this[e(332)]=!1,this[e(246)]=!1,this.lastDecodeVideoFrameTimestamp=null,this[e(292)]=null,this.wasmDecodeErrorStartTime=null,this[e(335)]=null,this.isSimdDecodeDelayTimeout=!1,this[e(201)]=0,this.iframeIntervalTimestamp=0,this.tempAudioBuffer=[]}[Oe(251)](){}[Oe(213)](){}clearBuffer(){this[Oe(260)]=!1}_updateStreamRateAndStats(){const e=Oe;let t=0;null!==this[e(335)]&&null!==this[e(252)]&&(t=parseInt(this[e(252)]-this.newDecodedVideoFrameTimestamp,10));const r=this[e(307)]();if(this.emit(v[e(256)],{wasmDecodeDelay:t,wasmVideoTotalMB:r.videoTotalMB,wasmAudioTotalMB:r[e(273)]}),this.firstDecodeVideoFrameTimestamp&&this[e(321)]()&&null===this[e(335)]){q()-this[e(292)]>1e3*this[e(297)]._opt[e(331)]&&(this.player.debugLog(this[e(311)],e(228)+t+e(253)),this.isSimdDecodeDelayTimeout=!0,this[e(336)](v[e(352)]))}}[Oe(195)](){const e=Oe;this.stopStreamRateAndStatsInterval(),this[e(286)]=setInterval(this[e(202)][e(312)],1e3),this[e(312)]()}[Oe(295)](){const e=Oe;this[e(286)]&&(clearInterval(this[e(286)]),this[e(286)]=null)}_handleModuleAudioError(e){const t=Oe;(function(e){const t=z;return!(!e||-1===e.indexOf("not compiled with thread support")&&-1===e[t(390)](t(584))&&-1===e[t(390)](t(659))&&-1===e[t(390)](t(682)))})(e)||this[t(297)][t(349)](this.TAG_NAME,t(299),e)}_handleModuleVideoError(e){const t=Oe;var r;(r=e)&&-1!==r[z(390)]("not compiled with thread support, using thread emulation")||(this[t(297)][t(349)](this[t(311)],t(279),e),!function(e){const t=z;return!(!e||-1===e[t(708)]().indexOf(t(504)))}(e)?function(e){const t=z;return!(!e||-1===e[t(708)]()[t(390)](t(632)))}(e)&&this[t(336)](v[t(247)],e):this[t(336)](v[t(283)],e))}calcWasmMemoryUsed(){const e=Oe;if(!this[e(305)]||!this[e(317)])return{videoTotalMB:0,audioTotalMB:0};let t=0,r=0;this[e(317)]&&(t=this[e(194)][e(290)][e(239)]),this[e(305)]&&(r=this.ModuleAudio[e(290)][e(239)]);return{videoTotalMB:(t/1048576).toFixed(2),audioTotalMB:(r/1048576)[e(318)](2)}}[Oe(329)](){const e=Oe;if(!this.player.isPlayer())return;const t=q();null===this[e(238)]&&(this.prevDecodedVideoFrameLocalTimestamp=t);const r=t-this.prevDecodedVideoFrameLocalTimestamp;r>85&&this[e(297)].debugLog(this.TAG_NAME,"yuvData() and diff time is "+r+" more than 85ms, video is stuck"),this.prevDecodedVideoFrameLocalTimestamp=t}[Oe(234)](){const e=Oe;if(!this.player.isPlayer())return;const t=q();null===this.prevDecodeVideoFrameLocalTimestamp&&(this[e(224)]=t);const r=t-this[e(224)];r>85&&this[e(297)][e(267)](this[e(311)],e(255)+r+e(353)+85+"ms, video is stuck"),this[e(224)]=t}[Oe(313)](e,t){const r=Oe,n=15&e[0],a=this[r(297)];if(ee(this.videoDecoder&&Z(this[r(317)][r(326)])))a[r(349)](this.TAG_NAME,r(219));else if(X(e))if(n===_.h264||n===_[r(300)]){a[r(267)](this.TAG_NAME,r(208)+n);const t=e[r(282)](5);if(n===_[r(268)]&&this[r(321)]()){const e=Ae(t,this.player[r(340)]());if(e[r(207)]>g||e[r(241)]>g)return this[r(336)](v[r(220)],r(242)+e[r(207)]+r(212)+g+r(281)+e[r(241)]+r(212)+g),void a[r(265)](this.TAG_NAME,"setCodecVideo: SIMD H264 decode video width is too large, width is "+e.codecWidth+r(200)+e[r(241)])}const i=new Uint8Array(e);this[r(229)]=!0,this[r(317)][r(326)](n,t,this[r(337)]()),this[r(336)](v[r(264)],{code:n}),this.emit(v.videoCodec,{buffer:i,codecId:n})}else a.debugWarn(this.TAG_NAME,r(243)+n+" is not H264 or H265");else a[r(265)](this[r(311)],r(192)+n+" and isIFrame is "+t+r(236)+e[1])}[Oe(320)](e,t){const r=Oe,n=e[0]>>4,a=e[0]>>1&1;if(n===A[r(227)]?this[r(221)]=a?16:8:this[r(221)]=0===a?8:16,ee(this[r(305)]&&Z(this[r(305)].setCodec)))return void this[r(297)][r(349)](this[r(311)],r(258));const i=this.player;if(j(e)||n===A[r(250)]||n===A[r(274)]||n===A[r(322)]){this.player[r(267)](this[r(311)],"setCodecAudio: init audio codec, codeId is "+n+r(325)+this[r(223)]);const a=n===A[r(227)]?e[r(282)](2):new Uint8Array(0);if(n===A.AAC){const e=function(e){const t=x;let r=new Uint8Array(e),n=null,a=0,i=0,o=0,s=null;if(a=i=r[0]>>>3,o=(7&r[0])<<1|r[1]>>>7,o<0||o>=N[t(152)])return void console.error(t(190));let c=N[o],d=(120&r[1])>>>3;if(d<0||d>=8)return void console[t(194)](t(146));5===a&&(s=(7&r[1])<<1|r[2]>>>7,r[2]);let l=I[t(192)][t(178)][t(199)]();return-1!==l[t(166)](t(207))?o>=6?(a=5,n=new Array(4),s=o-3):(a=2,n=new Array(2),s=o):-1!==l[t(166)](t(212))?(a=2,n=new Array(2),s=o):(a=5,s=o,n=new Array(4),o>=6?s=o-3:1===d&&(a=2,n=new Array(2),s=o)),n[0]=a<<3,n[0]|=(15&o)>>>1,n[1]=(15&o)<<7,n[1]|=(15&d)<<3,5===a&&(n[1]|=(15&s)>>>1,n[2]=(1&s)<<7,n[2]|=8,n[3]=0),{audioType:t(197),config:n,sampleRate:c,channelCount:d,objectType:a,codec:t(156)+a,originalCodec:t(156)+i}}(a);if(!e)return this[r(297)].debugWarn(this[r(311)],r(248)),void this[r(297)].setAudioDisabled();const t=e.channelCount;if(t>2)return this[r(297)][r(265)](this.TAG_NAME,r(206)+t+r(212)+2+" so not support, set has audio false and return"),void this.player.setAudioDisabled();this[r(336)](v.audioAACSequenceHeader,{buffer:a})}if(this.audioDecoder[r(326)](n,this.sampleRate,a,this[r(337)]()),this.hasInitAudioCodec=!0,n!==A[r(227)]&&(n===A.MP3?(!this[r(199)]&&(this[r(199)]=new ce(this),this.mp3Demuxer.on("data",(e,t)=>{const n=r;this[n(305)][n(203)](e,t)})),this[r(199)][r(222)](e.slice(1),t)):this[r(305)][r(203)](e.slice(1),t)),ee(Y)){const e=Number("1")||1;setTimeout(()=>{const e=r;this[e(297)]?this[e(297)][e(349)](this[e(311)],e(319)):console[e(249)](e(240)+this[e(311)]+"]  "),this[e(259)](),this.emit(v[e(291)])},60*e*60*1e3)}}else this[r(297)]._opt[r(346)]&&i.debugWarn(this.TAG_NAME,r(277),n)}decodeAudio(e,t){const r=Oe;if(this[r(345)])return;if(this[r(297)][r(225)]())return void this[r(297)][r(267)](this[r(311)],"decodeAudio, decoder is destroyed and return");const n=e[0]>>4;if(this[r(338)]){if(j(e))return void this[r(297)][r(267)](this[r(311)],r(272));n===A.MP3?this[r(199)][r(222)](e[r(282)](1),t):this[r(305)].decode(n===A[r(227)]?e[r(282)](2):e[r(282)](1),t)}else this[r(320)](e,t)}[Oe(232)](e,t,r,n=0){const a=Oe;if(!this[a(345)])if(this[a(297)][a(225)]())this.player[a(267)](this[a(311)],a(296));else if(this[a(229)])if(null===this[a(297)][a(344)]&&(this[a(297)][a(267)](this.TAG_NAME,a(263)),this[a(297)][a(344)]=!0),!this[a(260)]&&r&&(this[a(260)]=!0,this.player[a(267)](this[a(311)],a(280)+t+", so set isVideoInitedAndNotFirstVideoIFrame = false"),this.player[a(344)]=!1),this[a(260)]){if(r&&X(e)){const t=15&e[0];let r={},n=e[a(282)](5);const i=this[a(297)][a(340)]();t===_.h264?r=Ae(n,i):t===_[a(300)]&&(r=function(e,t={}){const r=Ue,n=e;if(n.length<22)return console.error(r(296)+n.length+r(152)),{};let a={codecWidth:0,codecHeight:0,videoType:S[r(153)],timescale:1e3},i=function(){const e=r;let t=new ArrayBuffer(2);return new DataView(t)[e(165)](0,256,!0),256===new Int16Array(t)[0]}(),o=new DataView(n[r(279)]),s=o.getUint8(0),c=31&o[r(167)](1);if(1!==s&&0!==s){if(!t[r(220)])return console[r(212)]("JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] invalid version "+s+r(150)),{};{console[r(204)](r(213)+s+", correct to 1");let e=252&o[r(167)](0)|1;o[r(236)](0,e)}}if(0===c){if(!t[r(205)])return console[r(212)](r(281)+c+r(266)),{};{console[r(204)](r(223)+c+r(257));let e=224&o[r(167)](1)|1;o[r(236)](1,e)}}let d=1+(3&o[r(167)](21));if(3!==d&&4!==d)return console[r(212)]("JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord], invalid Strange NaluLengthSizeMinusOne: "+(d-1)+r(147)+d+" ,"),{};let l=o[r(167)](22);for(let e=0,t=23;e<l;e++){let e=63&o[r(167)](t+0),s=o.getUint16(t+1,!i);t+=3;for(let c=0;c<s;c++){let s=o.getUint16(t+0,!i);if(0===c)if(33===e){t+=2;let e=new Uint8Array(n[r(279)],t,s),i=Be[r(154)](e);a[r(284)]=i.codec_size[r(166)],a[r(179)]=i[r(267)][r(265)],a[r(176)]=i[r(292)][r(166)],a[r(199)]=i.present_size.height,a.profile=i[r(276)],a[r(163)]=i[r(186)],a[r(225)]=i.bit_depth,a.chromaFormat=i[r(277)],a.sarRatio=i[r(289)],a[r(237)]=i[r(149)],(!1===i[r(149)][r(224)]||0===i.frame_rate[r(196)]||0===i.frame_rate[r(247)])&&(a[r(237)]={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3});let o=a[r(237)][r(247)],c=a[r(237)][r(196)];a[r(260)]=a.timescale*(o/c),a.codec=i[r(229)],t+=s}else t+=2+s;else t+=2+s}}return a[r(245)]=new Uint8Array(n),a}(n,i)),r[a(207)]&&r[a(241)]&&this[a(230)]&&this[a(315)]&&(r[a(207)]!==this[a(230)]||r.codecHeight!==this.videoHeight)&&(this[a(297)][a(265)](this[a(311)],"\n                            decodeVideo: video width or height is changed,\n                            old width is "+this[a(230)]+a(347)+this.videoHeight+a(244)+r.codecWidth+a(261)+r[a(241)]+a(354)),this[a(332)]=!0,this[a(336)](v[a(323)],a(242)+this[a(230)]+"->"+r[a(207)]+a(281)+this[a(315)]+"->"+r[a(241)]))}if(this.isWidthOrHeightChanged)return void this[a(297)][a(265)](this.TAG_NAME,a(306));if(this[a(246)])return void this[a(297)][a(265)](this.TAG_NAME,"decodeVideo: simd decode error, and return");if(this[a(309)])return void this[a(297)][a(265)](this.TAG_NAME,a(237));if(X(e))return void this[a(297)][a(267)](this.TAG_NAME,a(257));if(e[a(214)]<12)return void this[a(297)][a(265)](this[a(311)],"decodeVideo and payload is too small , payload length is "+e.byteLength);this[a(252)]=t,null===this.firstDecodeVideoFrameTimestamp&&(this[a(292)]=q()),this.updatePrevDecodeVideoFrameLocalTimestamp();const n=e.slice(5);this[a(317)][a(203)](n,r?1:0,t)}else this[a(297)][a(267)](this[a(311)],a(304));else this[a(313)](e,r)}[Oe(302)](e,t,r){const n=Oe;this[n(336)](v[n(264)],{code:e}),this.emit(v[n(278)],{w:t,h:r}),this[n(230)]=t,this.videoHeight=r,this[n(195)]()}audioInfo(e,t,r){const n=Oe;this[n(336)](v[n(327)],{code:e}),this[n(336)](v[n(289)],{sampleRate:t,channels:r,depth:this[n(221)]}),this.audioChannels=r,this[n(193)]=t}[Oe(218)](e,t){const r=Oe;if(this[r(345)])return;if(this[r(297)].isDestroyed())return void this.player[r(267)](this[r(311)],r(216));if(ee(this[r(260)]))return void this[r(297)][r(267)](this.TAG_NAME,"yuvData, isVideoFirstIFrame is false and return");this[r(329)]();const n=this[r(230)]*this[r(315)]*3/2;try{let a=this[r(194)][r(290)][r(288)](e,e+n),i=new Uint8Array(a);this[r(271)]=null,this[r(335)]=t,this[r(336)](v[r(342)],{output:i,ts:t})}catch(e){this[r(297)][r(265)](this[r(311)],r(341)+t+r(314),e,e.toString())}}pcmData(e,t,r){const n=Oe;if(this._isDestroyed)return;if(this.player.isDestroyed())return void this.player[n(267)](this[n(311)],n(275));let a=t,i=[],o=0;try{let s=this[n(223)],c=this[n(197)];for(let t=0;t<this[n(211)];t++){let r=this.ModuleAudio.HEAPU32[(e>>2)+t]>>2;i[t]=this[n(284)].HEAPF32[n(288)](r,r+a)}if(this[n(201)]){if(!(a>=(t=c-this.audioRemain)))return this.audioRemain+=a,this.tempAudioBuffer[0]=Float32Array.of(...this.tempAudioBuffer[0],...i[0]),void(2==this[n(211)]&&(this[n(245)][1]=Float32Array.of(...this.tempAudioBuffer[1],...i[1])));{let e=[];e[0]=Float32Array.of(...this[n(245)][0],...i[0][n(288)](0,t)),2==this[n(211)]&&(e[1]=Float32Array.of(...this[n(245)][1],...i[1][n(288)](0,t)));let d=r;if(null!==this.prevAudioTs&&r==this[n(231)]){const e=Math[n(233)](1e3*c/s);d=this.prevAudioTs+e}this[n(336)](v.playAudio,{buffer:e,ts:d}),o=t,a-=t,this[n(231)]=d}}for(this[n(201)]=a;this.audioRemain>=c;this[n(201)]-=c){let e=[];e[0]=i[0][n(282)](o,o+=c),2==this[n(211)]&&(e[1]=i[1][n(282)](o-c,o));let t=r;if(null!==this[n(231)]&&r==this[n(231)]){const e=Math[n(233)](1e3*c/s);t=this[n(231)]+e}this[n(336)](v.playAudio,{buffer:e,ts:t}),this[n(231)]=t}this[n(201)]&&(this[n(245)][0]=i[0][n(282)](o),2==this[n(211)]&&(this[n(245)][1]=i[1][n(282)](o))),i=[]}catch(e){this[n(297)].debugWarn(n(269),n(348)+r+n(314),e,e[n(215)]())}}errorInfo(e){const t=Oe;null===this.wasmDecodeErrorStartTime&&(this[t(271)]=q());const r=q(),n=function(e,t,r){const n=K;return Math[n(633)](Math[n(725)](e,Math[n(633)](t,r)),Math[n(725)](t,r))}(this[t(191)]>0?2*this[t(191)]:5e3,1e3,5e3),a=r-this[t(271)];a>n&&(this.player[t(265)](this[t(311)],t(334)+this.iframeIntervalTimestamp+t(226)+a+t(254)+n+t(262)),this[t(246)]=!0,this[t(336)](v.simdDecodeError))}getBuildTime(){return m+"-20251202"}[Oe(321)](){const e=Oe;return this[e(297)]._opt[e(209)]&&!this[e(297)][e(303)][e(196)]}[Oe(210)](){const e=Oe;return this[e(297)]._opt[e(209)]&&this[e(297)][e(303)][e(196)]}[Oe(287)](){const e=Oe;this[e(297)][e(349)](this[e(311)]," "),this.destroy(),this[e(336)](v[e(291)])}[Oe(351)](){const e=Oe;this[e(297)][e(349)](this[e(311)],e(339))}}function je(){const e=["byteLength","toString","yuvData, decoder is destroyed and return","3277263zFiMCv","yuvData","setCodecVideo, videoDecoder is not exist or setCodec is not a function","simdH264DecodeVideoWidthIsTooLarge","audioDepth","dispatch","sampleRate","prevDecodeVideoFrameLocalTimestamp","isDestroyed"," and diff is ","AAC","firstDecodeDelay is ","hasInitVideoCodec","videoWidth","prevAudioTs","decodeVideo","floor","updatePrevDecodeVideoFrameLocalTimestamp","MtWasmDecoder"," and packetType is ","decodeVideo: simd decode delay timeout, and return","prevDecodedVideoFrameLocalTimestamp","length","JbPro[❌❌❌][","codecHeight","width: ","setCodecVideo: hasInitVideoCodec is false, codecId is ",",\n                            new width is ","tempAudioBuffer","isSimdDecodeError","notSupportNewWasm","setCodecAudio: is aac and metaInfo is null, set has audio false and return","log","ALAW","init","lastDecodeVideoFrameTimestamp"," ms and isSimdDecodeDelayTimeout is true, emit simdDecodeDelayTimeout"," and maxDiff is ","decodeVideo and diff time is ","mtStreamStats","decodeVideo and payload is video sequence header so drop this frame","setCodecAudio, audioDecoder is not exist or setCodec is not a function","destroy","isVideoFirstIFrame",", new height is ","\n                and replay","decodeVideo has init, and init isVideoInitedAndNotFirstVideoIFrame = true","videoCode","debugWarn","_handleModuleAudioError","debugLog","h264","worker","596915ehSrFe","wasmDecodeErrorStartTime","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","audioTotalMB","MULAW","pcmData, decoder is destroyed and return","bind","setCodecAudio: hasInitAudioCodec is false, codecId is ","initVideo","video wasm error:","decodeVideo and is first iframe and ts is ",", height: ","slice","outOfMemoryWasm","ModuleAudio","off","streamRateAndStatsInterval","timeEnd","subarray","initAudio","HEAPU8","workerEnd","firstDecodeVideoFrameTimestamp","clear","161HvenRI","stopStreamRateAndStatsInterval","decodeVideo, decoder is destroyed and return","player","PThread","audio wasm error:","h265","289149pxvLSm","videoInfo","_opt","decodeVideo first frame is not iFrame","audioDecoder","decodeVideo: video width or height is changed, and return","calcWasmMemoryUsed","_reset","isSimdDecodeDelayTimeout","357055zlAMBt","TAG_NAME","_updateStreamRateAndStats","setCodecVideo"," create uint8Array error :","videoHeight","2mxMopi","videoDecoder","toFixed"," ","setCodecAudio","isUseSIMDAndroid","MP3","wasmWidthOrHeightChange","64048cQygbG"," _opt.sampleRate is ","setCodec","audioCode","1284JMLnLC","updatePrevDecodedVideoFrameLocalTimestamp","951363frBTtB","wasmSimdFirstFrameDecodeDelayTimeout","isWidthOrHeightChanged","30vsfIes","errorInfo() emit simdDecodeError and\n                iframeIntervalTimestamp is ","newDecodedVideoFrameTimestamp","emit","getBuildTime","hasInitAudioCodec","validatedFailed, please contact the author to get the correct license","getCorrectionConfiguration","yuvData ts ","render","checkFirstIFrame","isVideoInitedAndNotFirstVideoIFrame","_isDestroyed","hasAudio",", old height is ","pcmData ts ","debugError","30LxGoDZ","validatedFailed","simdDecodeDelayTimeout"," more than ",",\n                            and emit change event","iframeIntervalTimestamp","decodeVideo: hasInitVideoCodec is false, codecId is ","audioOriginalSampleRate","ModuleVideo","startStreamRateAndStatsInterval","isFFmpegSIMD","audioBufferSize","143247fXppMW","mp3Demuxer",", height is ","audioRemain","bound","decode","delete","28KBagTm","setCodecAudio: is aac and channelCount ","codecWidth","setCodecVideo: init video codec , codecId is ","useSIMD","isUseSIMDFfmpeg","audioChannels"," > ","_initSuccess"];return(je=function(){return e})()}const Ne=He;function He(e,t){const r=Ge();return(He=function(e,t){return r[e-=307]})(e,t)}!function(e){const t=He,r=e();for(;;)try{if(659837===parseInt(t(319))/1*(parseInt(t(309))/2)+parseInt(t(338))/3*(parseInt(t(313))/4)+-parseInt(t(320))/5+parseInt(t(308))/6*(parseInt(t(317))/7)+-parseInt(t(326))/8*(parseInt(t(316))/9)+parseInt(t(330))/10*(parseInt(t(327))/11)+-parseInt(t(314))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ge);function Ge(){const e=["videoDecoder","9081qsRqyG","35aSDbtc","debugLog","253PlZtMu","3653165QyVBIA","fSimd","init wasm error","push","then","audioDecoder","10328YQmpqQ","11rdXinE","player","TAG_NAME","12390890OBUHLs","toString","catch","_handleModuleAudioError","JessibucaProMtFSimdDecoder","VideoDecoder","ModuleAudio","MtFSimdDecoder","2908179UoqlIt","AudioDecoder","1392828hmbwVD","9658UrsQRw","all","init","debugError","4QurZSA","22773840NNGjPM"];return(Ge=function(){return e})()}window[Ne(334)]=class extends Le{constructor(e){const t=He;super(e),this.TAG_NAME=t(337),this.mtType=k[t(321)],this.player.debugLog(this[t(329)],t(311))}init(){const e=He,n=[];n[e(323)](r({printErr:this.bound[e(333)]}),t({printErr:this.bound._handleModuleVideoError})),Promise[e(310)](n)[e(324)](([t,r])=>{const n=e;this[n(336)]=t,this.ModuleVideo=r,r.VideoDecoder&&(this[n(315)]=new(r[n(335)])(this)),t[n(307)]&&(this[n(325)]=new(t[n(307)])(this)),this.emit(v[n(311)]),this._initSuccess(),this[n(328)][n(318)](this.TAG_NAME,n(311))})[e(332)](t=>{const r=e;this.player[r(312)](this[r(329)],r(322),t,t[r(331)]())})}}});