opus-codec-worker 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/worker.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opus-codec-worker",
3
3
  "license": "MIT",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "files": [
6
6
  "**/*.{js,d.ts,map}"
7
7
  ]
package/worker.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={910:(e,t)=>{"use strict";var r;function n(){return crypto.getRandomValues(new Int32Array(4)).join("-")}Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFloat=t.createEncoder=t.RequestType=t.destroyEncoder=t.setToEncoder=t.getFromEncoder=void 0,t.getFromEncoder=function(e){return{type:r.OpusGetRequest,data:e,requestId:n()}},t.setToEncoder=function(e){return{type:r.OpusSetRequest,data:e,requestId:n()}},t.destroyEncoder=function(e){return{type:r.DestroyEncoder,data:e,requestId:n()}},function(e){e[e.CreateEncoder=0]="CreateEncoder",e[e.EncodeFloat=1]="EncodeFloat",e[e.DestroyEncoder=2]="DestroyEncoder",e[e.OpusGetRequest=3]="OpusGetRequest",e[e.OpusSetRequest=4]="OpusSetRequest"}(r=t.RequestType||(t.RequestType={})),t.createEncoder=function(e){return{data:e,requestId:n(),type:r.CreateEncoder}},t.encodeFloat=function(e){return{data:e,requestId:n(),type:r.EncodeFloat,transfer:[e.pcm.buffer]}}},215:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OPUS_GET_PITCH=t.OPUS_GET_LAST_PACKET_DURATION=t.OPUS_GET_GAIN=t.OPUS_SET_GAIN=t.OPUS_GET_IN_DTX=t.OPUS_GET_PHASE_INVERSION_DISABLED=t.OPUS_SET_PHASE_INVERSION_DISABLED=t.OPUS_GET_SAMPLE_RATE=t.OPUS_GET_BANDWIDTH=t.OPUS_GET_PREDICTION_DISABLED=t.OPUS_SET_PREDICTION_DISABLED=t.OPUS_GET_EXPERT_FRAME_DURATION=t.OPUS_SET_EXPERT_FRAME_DURATION=t.OPUS_GET_LSB_DEPTH=t.OPUS_SET_LSB_DEPTH=t.OPUS_GET_DTX=t.OPUS_SET_DTX=t.OPUS_GET_PACKET_LOSS_PERC=t.OPUS_SET_PACKET_LOSS_PERC=t.OPUS_GET_INBAND_FEC=t.OPUS_SET_INBAND_FEC=t.OPUS_GET_LOOKAHEAD=t.OPUS_GET_APPLICATION=t.OPUS_SET_APPLICATION=t.OPUS_GET_SIGNAL=t.OPUS_SET_SIGNAL=t.OPUS_SET_BANDWIDTH=t.OPUS_GET_MAX_BANDWIDTH=t.OPUS_SET_MAX_BANDWIDTH=t.OPUS_GET_FORCE_CHANNELS=t.OPUS_SET_FORCE_CHANNELS=t.OPUS_GET_VBR_CONSTRAINT=t.OPUS_SET_VBR_CONSTRAINT=t.OPUS_GET_VBR=t.OPUS_SET_VBR=t.OPUS_GET_BITRATE=t.OPUS_SET_BITRATE=t.OPUS_GET_COMPLEXITY=t.OPUS_SET_COMPLEXITY=t.OpusRequest=void 0,function(e){e.SetComplexity="OPUS_SET_COMPLEXITY",e.GetComplexity="OPUS_GET_COMPLEXITY",e.SetBitrate="OPUS_SET_BITRATE",e.GetBitrate="OPUS_GET_BITRATE",e.SetVbr="OPUS_SET_VBR",e.GetVbr="OPUS_GET_VBR",e.SetVbrConstraint="OPUS_SET_VBR_CONSTRAINT",e.GetVbrConstraint="OPUS_GET_VBR_CONSTRAINT",e.SetForceChannels="OPUS_SET_FORCE_CHANNELS",e.GetForceChannels="OPUS_GET_FORCE_CHANNELS",e.SetMaxBandwidth="OPUS_SET_MAX_BANDWIDTH",e.GetMaxBandwidth="OPUS_GET_MAX_BANDWIDTH",e.SetBandwidth="OPUS_SET_BANDWIDTH",e.SetSignal="OPUS_SET_SIGNAL",e.GetSignal="OPUS_GET_SIGNAL",e.SetApplication="OPUS_SET_APPLICATION",e.GetApplication="OPUS_GET_APPLICATION",e.GetLookahead="OPUS_GET_LOOKAHEAD",e.SetInbandFec="OPUS_SET_INBAND_FEC",e.GetInbandFec="OPUS_GET_INBAND_FEC",e.SetPacketLossperc="OPUS_SET_PACKET_LOSS_PERC",e.GetPacketLossperc="OPUS_GET_PACKET_LOSS_PERC",e.SetDtx="OPUS_SET_DTX",e.GetDtx="OPUS_GET_DTX",e.SetLsbDepth="OPUS_SET_LSB_DEPTH",e.GetLsbDepth="OPUS_GET_LSB_DEPTH",e.SetExpertFrameduration="OPUS_SET_EXPERT_FRAME_DURATION",e.GetExpertFrameduration="OPUS_GET_EXPERT_FRAME_DURATION",e.SetPredictionDisabled="OPUS_SET_PREDICTION_DISABLED",e.GetPredictionDisabled="OPUS_GET_PREDICTION_DISABLED",e.GetBandwidth="OPUS_GET_BANDWIDTH",e.GetSampleRate="OPUS_GET_SAMPLE_RATE",e.SetPhaseInversiondisabled="OPUS_SET_PHASE_INVERSION_DISABLED",e.GetPhaseInversiondisabled="OPUS_GET_PHASE_INVERSION_DISABLED",e.GetInDtx="OPUS_GET_IN_DTX",e.SetGain="OPUS_SET_GAIN",e.GetGain="OPUS_GET_GAIN",e.GetLastPacketduration="OPUS_GET_LAST_PACKET_DURATION",e.GetPitch="OPUS_GET_PITCH"}(r=t.OpusRequest||(t.OpusRequest={})),t.OPUS_SET_COMPLEXITY=function(e,t){return{encoderId:e,type:r.SetComplexity,value:t}},t.OPUS_GET_COMPLEXITY=function(e){return{encoderId:e,type:r.GetComplexity}},t.OPUS_SET_BITRATE=function(e,t){return{encoderId:e,type:r.SetBitrate,value:t}},t.OPUS_GET_BITRATE=function(e){return{encoderId:e,type:r.GetBitrate}},t.OPUS_SET_VBR=function(e,t){return{encoderId:e,type:r.SetVbr,value:t}},t.OPUS_GET_VBR=function(e){return{encoderId:e,type:r.GetVbr}},t.OPUS_SET_VBR_CONSTRAINT=function(e,t){return{encoderId:e,type:r.SetVbrConstraint,value:t}},t.OPUS_GET_VBR_CONSTRAINT=function(e){return{encoderId:e,type:r.GetVbrConstraint}},t.OPUS_SET_FORCE_CHANNELS=function(e,t){return{encoderId:e,type:r.SetForceChannels,value:t}},t.OPUS_GET_FORCE_CHANNELS=function(e){return{encoderId:e,type:r.GetForceChannels}},t.OPUS_SET_MAX_BANDWIDTH=function(e,t){return{encoderId:e,type:r.SetMaxBandwidth,value:t}},t.OPUS_GET_MAX_BANDWIDTH=function(e){return{encoderId:e,type:r.GetMaxBandwidth}},t.OPUS_SET_BANDWIDTH=function(e,t){return{encoderId:e,type:r.SetBandwidth,value:t}},t.OPUS_SET_SIGNAL=function(e,t){return{encoderId:e,type:r.SetSignal,value:t}},t.OPUS_GET_SIGNAL=function(e){return{encoderId:e,type:r.GetSignal}},t.OPUS_SET_APPLICATION=function(e,t){return{encoderId:e,type:r.SetApplication,value:t}},t.OPUS_GET_APPLICATION=function(e){return{encoderId:e,type:r.GetApplication}},t.OPUS_GET_LOOKAHEAD=function(e){return{encoderId:e,type:r.GetLookahead}},t.OPUS_SET_INBAND_FEC=function(e,t){return{encoderId:e,type:r.SetInbandFec,value:t}},t.OPUS_GET_INBAND_FEC=function(e){return{encoderId:e,type:r.GetInbandFec}},t.OPUS_SET_PACKET_LOSS_PERC=function(e,t){return{encoderId:e,type:r.SetPacketLossperc,value:t}},t.OPUS_GET_PACKET_LOSS_PERC=function(e){return{encoderId:e,type:r.GetPacketLossperc}},t.OPUS_SET_DTX=function(e,t){return{encoderId:e,type:r.SetDtx,value:t}},t.OPUS_GET_DTX=function(e){return{encoderId:e,type:r.GetDtx}},t.OPUS_SET_LSB_DEPTH=function(e,t){return{encoderId:e,type:r.SetLsbDepth,value:t}},t.OPUS_GET_LSB_DEPTH=function(e){return{encoderId:e,type:r.GetLsbDepth}},t.OPUS_SET_EXPERT_FRAME_DURATION=function(e,t){return{encoderId:e,type:r.SetExpertFrameduration,value:t}},t.OPUS_GET_EXPERT_FRAME_DURATION=function(e){return{encoderId:e,type:r.GetExpertFrameduration}},t.OPUS_SET_PREDICTION_DISABLED=function(e,t){return{encoderId:e,type:r.SetPredictionDisabled,value:t}},t.OPUS_GET_PREDICTION_DISABLED=function(e){return{encoderId:e,type:r.GetPredictionDisabled}},t.OPUS_GET_BANDWIDTH=function(e){return{encoderId:e,type:r.GetBandwidth}},t.OPUS_GET_SAMPLE_RATE=function(e){return{encoderId:e,type:r.GetSampleRate}},t.OPUS_SET_PHASE_INVERSION_DISABLED=function(e,t){return{encoderId:e,type:r.SetPhaseInversiondisabled,value:t}},t.OPUS_GET_PHASE_INVERSION_DISABLED=function(e){return{encoderId:e,type:r.GetPhaseInversiondisabled}},t.OPUS_GET_IN_DTX=function(e){return{encoderId:e,type:r.GetInDtx}},t.OPUS_SET_GAIN=function(e,t){return{encoderId:e,type:r.SetGain,value:t}},t.OPUS_GET_GAIN=function(e){return{encoderId:e,type:r.GetGain}},t.OPUS_GET_LAST_PACKET_DURATION=function(e){return{encoderId:e,type:r.GetLastPacketduration}},t.OPUS_GET_PITCH=function(e){return{encoderId:e,type:r.GetPitch}}},827:(e,t,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e={}){var t,o;(e=void 0!==e?e:{}).ready=new Promise((function(e,r){t=e,o=r})),["_size_of_int","_size_of_void_ptr","_malloc","_free","_opus_decoder_create","_opus_decoder_destroy","_opus_decode_float","_opus_encoder_create","_opus_encoder_destroy","_opus_encoder_ctl","_opus_encode_float","_opus_set_complexity","_opus_get_complexity","_opus_set_bitrate","_opus_get_bitrate","_opus_set_vbr","_opus_get_vbr","_opus_set_vbr_constraint","_opus_get_vbr_constraint","_opus_set_force_channels","_opus_get_force_channels","_opus_set_max_bandwidth","_opus_get_max_bandwidth","_opus_set_bandwidth","_opus_set_signal","_opus_get_signal","_opus_set_application","_opus_get_application","_opus_get_lookahead","_opus_set_inband_fec","_opus_get_inband_fec","_opus_set_packet_loss_perc","_opus_get_packet_loss_perc","_opus_set_dtx","_opus_get_dtx","_opus_set_lsb_depth","_opus_get_lsb_depth","_opus_set_expert_frame_duration","_opus_get_expert_frame_duration","_opus_set_prediction_disabled","_opus_get_prediction_disabled","_opus_get_bandwidth","_opus_get_sample_rate","_opus_set_phase_inversion_disabled","_opus_get_phase_inversion_disabled","_opus_get_in_dtx","_opus_set_gain","_opus_get_gain","_opus_get_last_packet_duration","_opus_get_pitch","_fflush","onRuntimeInitialized"].forEach((t=>{Object.getOwnPropertyDescriptor(e.ready,t)||Object.defineProperty(e.ready,t,{get:()=>C("You are getting "+t+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),set:()=>C("You are setting "+t+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")})}));var i=Object.assign({},e),s="object"==typeof window,a="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_=!s&&!u&&!a;if(e.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var d,c,l="";if(u){if("undefined"==typeof process||!process.release||"node"!==process.release.name)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");var f=process.versions.node,p=f.split(".").slice(0,3);if((p=1e4*p[0]+100*p[1]+1*p[2])<101900)throw new Error("This emscripten-generated code requires node v10.19.19.0 (detected v"+f+")");var h=r(194),S=r(472);l=a?S.dirname(l)+"/":"//",d=(e,t)=>(e=V(e)?new URL(e):S.normalize(e),h.readFileSync(e,t?void 0:"utf8")),c=e=>{var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),b(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"}}else if(_){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(d=function(e){return read(e)}),c=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),b("object"==typeof t),t)},"undefined"==typeof clearTimeout&&(globalThis.clearTimeout=e=>{}),"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!s&&!a)throw new Error("environment detection error");if(a?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var E,O,m,g=e.print||console.log.bind(console),P=e.printErr||console.warn.bind(console);Object.assign(e,i),i=null,E="fetchSettings",Object.getOwnPropertyDescriptor(e,E)&&C("`Module."+E+"` was supplied but `"+E+"` not included in INCOMING_MODULE_JS_API"),e.arguments&&e.arguments,z("arguments","arguments_"),e.thisProgram&&e.thisProgram,z("thisProgram","thisProgram"),e.quit&&e.quit,z("quit","quit_"),b(void 0===e.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.read,"Module.read option was removed (modify read_ in JS)"),b(void 0===e.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),b(void 0===e.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),b(void 0===e.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),b(void 0===e.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),z("read","read_"),z("readAsync","readAsync"),z("readBinary","readBinary"),z("setWindowTitle","setWindowTitle"),b(!s,"web environment detected but not enabled at build time. Add 'web' to `-sENVIRONMENT` to enable."),b(!_,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."),e.wasmBinary&&(O=e.wasmBinary),z("wasmBinary","wasmBinary"),e.noExitRuntime,z("noExitRuntime","noExitRuntime"),"object"!=typeof WebAssembly&&C("no native wasm support detected");var T=!1;function b(e,t){e||C("Assertion failed"+(t?": "+t:""))}var y,I,v,R="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function A(){if(!T){var e=oe();0==e&&(e+=4);var t=v[e>>2],r=v[e+4>>2];34821223==t&&2310721022==r||C("Stack overflow! Stack cookie has been overwritten at "+J(e)+", expected hex dwords 0x89BACDFE and 0x2135467, but received "+J(r)+" "+J(t)),1668509029!==v[0]&&C("Runtime error: The application has corrupted its heap memory area (address zero)!")}}b(!e.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),b("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support"),b(!e.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally"),b(!e.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)"}();var w=[],U=[],D=[],L=!1;b(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var F=0,G=null,N=null,M={};function C(t){e.onAbort&&e.onAbort(t),P(t="Aborted("+t+")"),T=!0;var r=new WebAssembly.RuntimeError(t);throw o(r),r}var B={error:function(){C("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -sFORCE_FILESYSTEM")},init:function(){B.error()},createDataFile:function(){B.error()},createPreloadedFile:function(){B.error()},createLazyFile:function(){B.error()},open:function(){B.error()},mkdev:function(){B.error()},registerDevice:function(){B.error()},analyzePath:function(){B.error()},loadFilesFromDB:function(){B.error()},ErrnoError:function(){B.error()}};e.FS_createDataFile=B.createDataFile,e.FS_createPreloadedFile=B.createPreloadedFile;var k,x,q;function H(e){return e.startsWith("data:application/octet-stream;base64,")}function V(e){return e.startsWith("file://")}function K(t,r){return function(){var n=t,o=r;return r||(o=e.asm),b(L,"native function `"+n+"` called before runtime initialization"),o[t]||b(o[t],"exported native function `"+n+"` not found"),o[t].apply(null,arguments)}}function j(e){try{if(e==k&&O)return new Uint8Array(O);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}catch(e){C(e)}}function W(e,t,r){return function(e){return O||!s&&!a||"function"!=typeof fetch?Promise.resolve().then((function(){return j(e)})):fetch(e,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((function(){return j(e)}))}(e).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(e){return e})).then(r,(function(e){P("failed to asynchronously prepare wasm: "+e),V(k)&&P("warning: Loading from a file URI ("+k+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),C(e)}))}function z(t,r){Object.getOwnPropertyDescriptor(e,t)||Object.defineProperty(e,t,{configurable:!0,get:function(){C("Module."+t+" has been replaced with plain "+r+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}function Y(e){return"FS_createPath"===e||"FS_createDataFile"===e||"FS_createPreloadedFile"===e||"FS_unlink"===e||"addRunDependency"===e||"FS_createLazyFile"===e||"FS_createDevice"===e||"removeRunDependency"===e}function X(t){Object.getOwnPropertyDescriptor(e,t)||Object.defineProperty(e,t,{configurable:!0,get:function(){var e="'"+t+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";Y(t)&&(e+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),C(e)}})}function Z(t){for(;t.length>0;)t.shift()(e)}function J(e){return b("number"==typeof e),"0x"+e.toString(16).padStart(8,"0")}function $(e){$.shown||($.shown={}),$.shown[e]||($.shown[e]=1,u&&(e="warning: "+e),P(e))}H(k="index.wasm")||(x=k,k=e.locateFile?e.locateFile(x,l):l+x),q="buffer","undefined"!=typeof globalThis&&Object.defineProperty(globalThis,q,{configurable:!0,get:function(){$("`"+q+"` is not longer defined by emscripten. Please use HEAP8.buffer or wasmMemory.buffer")}});var Q=[null,[],[]];function ee(e,t){var r=Q[e];b(r),0===t||10===t?((1===e?g:P)(function(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&R)return R.decode(e.subarray(t,o));for(var i="";t<o;){var s=e[t++];if(128&s){var a=63&e[t++];if(192!=(224&s)){var u=63&e[t++];if(224==(240&s)?s=(15&s)<<12|a<<6|u:(240!=(248&s)&&$("Invalid UTF-8 leading byte "+J(s)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),s=(7&s)<<18|a<<12|u<<6|63&e[t++]),s<65536)i+=String.fromCharCode(s);else{var _=s-65536;i+=String.fromCharCode(55296|_>>10,56320|1023&_)}}else i+=String.fromCharCode((31&s)<<6|a)}else i+=String.fromCharCode(s)}return i}(r,0)),r.length=0):r.push(t)}var te,re={abort:function(){C("native code called abort()")},emscripten_memcpy_big:function(e,t,r){I.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){I.length,function(e){C("Cannot enlarge memory arrays to size "+e+" bytes (OOM). Either (1) compile with -sINITIAL_MEMORY=X with X higher than the current value "+y.length+", (2) compile with -sALLOW_MEMORY_GROWTH which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -sABORTING_MALLOC=0")}(e>>>=0)},fd_close:function(e){C("fd_close called without SYSCALLS_REQUIRE_FILESYSTEM")},fd_seek:function(e,t,r,n,o){return 70},fd_write:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var s=v[t>>2],a=v[t+4>>2];t+=8;for(var u=0;u<a;u++)ee(e,I[s+u]);o+=a}return v[n>>2]=o,0}},ne=(function(){var t,r={env:re,wasi_snapshot_preview1:re};function n(t,r){var n,o,i=t.exports;return e.asm=i,b(m=e.asm.memory,"memory not found in wasm exports"),n=m.buffer,e.HEAP8=y=new Int8Array(n),e.HEAP16=new Int16Array(n),e.HEAP32=new Int32Array(n),e.HEAPU8=I=new Uint8Array(n),e.HEAPU16=new Uint16Array(n),e.HEAPU32=v=new Uint32Array(n),e.HEAPF32=new Float32Array(n),e.HEAPF64=new Float64Array(n),b(e.asm.__indirect_function_table,"table not found in wasm exports"),o=e.asm.__wasm_call_ctors,U.unshift(o),function(t){if(F--,e.monitorRunDependencies&&e.monitorRunDependencies(F),t?(b(M[t]),delete M[t]):P("warning: run dependency removed without ID"),0==F&&(null!==G&&(clearInterval(G),G=null),N)){var r=N;N=null,r()}}("wasm-instantiate"),i}t="wasm-instantiate",F++,e.monitorRunDependencies&&e.monitorRunDependencies(F),t?(b(!M[t]),M[t]=1,null===G&&"undefined"!=typeof setInterval&&(G=setInterval((function(){if(T)return clearInterval(G),void(G=null);var e=!1;for(var t in M)e||(e=!0,P("still waiting on run dependencies:")),P("dependency: "+t);e&&P("(end of list)")}),1e4))):P("warning: run dependency added without ID");var i,s,a,_,d=e;if(e.instantiateWasm)try{return e.instantiateWasm(r,n)}catch(e){P("Module.instantiateWasm callback failed with error: "+e),o(e)}(i=O,s=k,a=r,_=function(t){b(e===d,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),d=null,n(t.instance)},i||"function"!=typeof WebAssembly.instantiateStreaming||H(s)||u||"function"!=typeof fetch?W(s,a,_):fetch(s,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(_,(function(e){return P("wasm streaming compile failed: "+e),P("falling back to ArrayBuffer instantiation"),W(s,a,_)}))}))).catch(o)}(),K("__wasm_call_ctors"),e._opus_decoder_create=K("opus_decoder_create"),e._opus_decode_float=K("opus_decode_float"),e._opus_decoder_destroy=K("opus_decoder_destroy"),e._opus_encoder_create=K("opus_encoder_create"),e._opus_encode_float=K("opus_encode_float"),e._opus_encoder_ctl=K("opus_encoder_ctl"),e._opus_encoder_destroy=K("opus_encoder_destroy"),e._size_of_int=K("size_of_int"),e._size_of_void_ptr=K("size_of_void_ptr"),e._opus_set_complexity=K("opus_set_complexity"),e._opus_get_complexity=K("opus_get_complexity"),e._opus_set_bitrate=K("opus_set_bitrate"),e._opus_get_bitrate=K("opus_get_bitrate"),e._opus_set_vbr=K("opus_set_vbr"),e._opus_get_vbr=K("opus_get_vbr"),e._opus_set_vbr_constraint=K("opus_set_vbr_constraint"),e._opus_get_vbr_constraint=K("opus_get_vbr_constraint"),e._opus_set_force_channels=K("opus_set_force_channels"),e._opus_get_force_channels=K("opus_get_force_channels"),e._opus_set_max_bandwidth=K("opus_set_max_bandwidth"),e._opus_get_max_bandwidth=K("opus_get_max_bandwidth"),e._opus_set_bandwidth=K("opus_set_bandwidth"),e._opus_set_signal=K("opus_set_signal"),e._opus_get_signal=K("opus_get_signal"),e._opus_set_application=K("opus_set_application"),e._opus_get_application=K("opus_get_application"),e._opus_get_lookahead=K("opus_get_lookahead"),e._opus_set_inband_fec=K("opus_set_inband_fec"),e._opus_get_inband_fec=K("opus_get_inband_fec"),e._opus_set_packet_loss_perc=K("opus_set_packet_loss_perc"),e._opus_get_packet_loss_perc=K("opus_get_packet_loss_perc"),e._opus_set_dtx=K("opus_set_dtx"),e._opus_get_dtx=K("opus_get_dtx"),e._opus_set_lsb_depth=K("opus_set_lsb_depth"),e._opus_get_lsb_depth=K("opus_get_lsb_depth"),e._opus_set_expert_frame_duration=K("opus_set_expert_frame_duration"),e._opus_get_expert_frame_duration=K("opus_get_expert_frame_duration"),e._opus_set_prediction_disabled=K("opus_set_prediction_disabled"),e._opus_get_prediction_disabled=K("opus_get_prediction_disabled"),e._opus_get_bandwidth=K("opus_get_bandwidth"),e._opus_get_sample_rate=K("opus_get_sample_rate"),e._opus_set_phase_inversion_disabled=K("opus_set_phase_inversion_disabled"),e._opus_get_phase_inversion_disabled=K("opus_get_phase_inversion_disabled"),e._opus_get_in_dtx=K("opus_get_in_dtx"),e._opus_set_gain=K("opus_set_gain"),e._opus_get_gain=K("opus_get_gain"),e._opus_get_last_packet_duration=K("opus_get_last_packet_duration"),e._opus_get_pitch=K("opus_get_pitch"),K("__errno_location"),e._fflush=K("fflush"),e._malloc=K("malloc"),e._free=K("free"),function(){return(ne=e.asm.emscripten_stack_init).apply(null,arguments)}),oe=function(){return(oe=e.asm.emscripten_stack_get_end).apply(null,arguments)};function ie(){function r(){te||(te=!0,e.calledRun=!0,T||(b(!L),L=!0,A(),Z(U),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),b(!e._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),function(){if(A(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),D.unshift(t);var t;Z(D)}()))}var n;F>0||(ne(),b(0==(3&(n=oe()))),0==n&&(n+=4),v[n>>2]=34821223,v[n+4>>2]=2310721022,v[0]=1668509029,function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),w.unshift(t);var t;Z(w)}(),F>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r(),A()))}if(K("stackSave"),K("stackRestore"),K("stackAlloc"),e.dynCall_jiji=K("dynCall_jiji"),["zeroMemory","stringToNewUTF8","exitJS","emscripten_realloc_buffer","setErrNo","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","getHostByName","getRandomDevice","traverseStack","convertPCtoSourceLocation","readEmAsmArgs","jstoi_q","jstoi_s","getExecutableName","listenOnce","autoResumeAudioContext","dynCallLegacy","getDynCaller","dynCall","handleException","runtimeKeepalivePush","runtimeKeepalivePop","callUserCallback","maybeExit","safeSetTimeout","asmjsMangle","asyncLoad","alignMemory","mmapAlloc","HandleAllocator","getNativeTypeSize","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertU32PairToI53","getCFunc","ccall","cwrap","uleb128Encode","sigToWasmTypes","generateFuncType","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","reallyNegative","unSign","strLen","reSign","formatString","intArrayFromString","intArrayToString","AsciiToString","stringToAscii","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","allocateUTF8","allocateUTF8OnStack","writeStringToMemory","writeArrayToMemory","writeAsciiToMemory","getSocketFromFD","getSocketAddress","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","findCanvasEventTarget","getBoundingClientRect","fillMouseEventData","registerMouseEventCallback","registerWheelEventCallback","registerUiEventCallback","registerFocusEventCallback","fillDeviceOrientationEventData","registerDeviceOrientationEventCallback","fillDeviceMotionEventData","registerDeviceMotionEventCallback","screenOrientation","fillOrientationChangeEventData","registerOrientationChangeEventCallback","fillFullscreenChangeEventData","registerFullscreenChangeEventCallback","JSEvents_requestFullscreen","JSEvents_resizeCanvasForFullscreen","registerRestoreOldStyle","hideEverythingExceptGivenElement","restoreHiddenElements","setLetterbox","softFullscreenResizeWebGLRenderTarget","doRequestFullscreen","fillPointerlockChangeEventData","registerPointerlockChangeEventCallback","registerPointerlockErrorEventCallback","requestPointerLock","fillVisibilityChangeEventData","registerVisibilityChangeEventCallback","registerTouchEventCallback","fillGamepadEventData","registerGamepadEventCallback","registerBeforeUnloadEventCallback","fillBatteryEventData","battery","registerBatteryEventCallback","setCanvasElementSize","getCanvasElementSize","demangle","demangleAll","jsStackTrace","stackTrace","getEnvStrings","checkWasiClock","createDyncallWrapper","setImmediateWrapped","clearImmediateWrapped","polyfillSetImmediate","getPromise","makePromise","makePromiseCallback","ExceptionInfo","exception_addRef","exception_decRef","setMainLoop","_setNetworkCallback","heapObjectForWebGLType","heapAccessShiftForWebGLHeap","emscriptenWebGLGet","computeUnpackAlignedImageSize","emscriptenWebGLGetTexPixelData","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","writeGLArray","SDL_unicode","SDL_ttfContext","SDL_audio","GLFW_Window","runAndAbortIfError","ALLOC_NORMAL","ALLOC_STACK","allocate"].forEach((function(e){"undefined"==typeof globalThis||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get:function(){var t="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",r=e;r.startsWith("_")||(r="$"+e),t+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+r+")",Y(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),$(t)}}),X(e)})),["run","UTF8ArrayToString","UTF8ToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","addOnPreRun","addOnInit","addOnPreMain","addOnExit","addOnPostRun","addRunDependency","removeRunDependency","FS_createFolder","FS_createPath","FS_createDataFile","FS_createPreloadedFile","FS_createLazyFile","FS_createLink","FS_createDevice","FS_unlink","out","err","callMain","abort","keepRuntimeAlive","wasmMemory","stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0","writeStackCookie","checkStackCookie","ptrToString","getHeapMax","abortOnCannotGrowMemory","ENV","ERRNO_CODES","ERRNO_MESSAGES","DNS","Protocols","Sockets","timers","warnOnce","UNWIND_CACHE","readEmAsmArgsArray","convertI32PairToI53Checked","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF16Decoder","SYSCALLS","JSEvents","specialHTMLTargets","currentFullscreenStrategy","restoreOldWindowedStyle","ExitStatus","flush_NO_FILESYSTEM","dlopenMissingError","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","Browser","wget","FS","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","GL","AL","SDL","SDL_gfx","GLUT","EGL","GLFW","GLEW","IDBStore"].forEach(X),N=function e(){te||ie(),te||(N=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return ie(),e.ready});e.exports=o},244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(704);t.default=class{#e;#t;#r;#n;#o;#i;#s;constructor(e,t,r,o){if(this.#s=o,this.#o=e,this.#n=new n.ResourcesHolder,this.#t=new n.Integer(e),this.#e=new n.Pointer(e,this.#t),this.#n.add(this.#t),this.#n.add(this.#e),this.#r=e.originalRuntime()._opus_decoder_create(t,r,this.#e.offset()),!this.#r||this.#t.value()<0)throw new Error("Failed to create decoder");this.#i=new n.Buffer(e,this.#s*r*Float32Array.BYTES_PER_ELEMENT)}#a=null;decodeFloat(e,t=0){let r=this.#a;r||(r=new n.Buffer(this.#o,e.byteLength)),r.data().byteLength<e.byteLength&&(r.destroy(),r=new n.Buffer(this.#o,e.byteLength)),r.data().set(e),this.#a=r;const o=this.#o.originalRuntime()._opus_decode_float(this.#r,r.offset(),e.byteLength,this.#i.offset(),this.#s,t);if(o<0)throw new Error("Failed to decode float");return o}decoded(){const e=this.#i.data();return new Float32Array(e.buffer,e.byteOffset,e.byteLength/Float32Array.BYTES_PER_ELEMENT)}destroy(){this.#o.originalRuntime()._opus_decoder_destroy(this.#r),this.#n.destroy(),this.#a?.destroy()}}},414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(704),o=r(961);class i extends o.OpusGettersAndSetters{#t;#o;#u;#_;#i;#n;constructor(e,t,r,o,i,s){const a=new n.Integer(e),u=e.originalRuntime()._opus_encoder_create(t,r,o,a.offset());if(super(e,u),this.#n=new n.ResourcesHolder,this.#t=a,this.#o=e,this.#i=new n.Buffer(e,s),this.#_=new n.Buffer(e,i),this.#n.add(this.#_),this.#n.add(this.#i),this.#n.add(this.#t),this.#u=u,a.value()<0)throw new Error("Failed to create encoder");if(!i)throw new Error("outBufferLength must be more than 0")}encoded(){return this.#_.data()}encodeFloat(e,t,r){if(r>this.#_.size())throw new Error(`encoded buffer length is ${this.#_.size()}, but maxDataBytes is ${r}`);this.#i.data().set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));const n=this.#o.originalRuntime()._opus_encode_float(this.#u,this.#i.offset(),t,this.#_.offset(),r);if(n<0)throw new Error("Failed to encode float");return n}destroy(){this.#n.destroy(),this.#o.originalRuntime()._opus_encoder_destroy(this.#u)}}t.default=i},961:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OpusGettersAndSetters=void 0;const o=r(704),i=n(r(288));t.OpusGettersAndSetters=class{#d;#o;#c;constructor(e,t){this.#o=e,this.#c=new o.Integer(e),this.#d=t}setComplexity(e){return this.#o.originalRuntime()._opus_set_complexity(this.#d,e)===i.default.OPUS_OK}getComplexity(){if(this.#o.originalRuntime()._opus_get_complexity(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_COMPLEXITY");return this.#c.value()}setBitrate(e){return this.#o.originalRuntime()._opus_set_bitrate(this.#d,e)===i.default.OPUS_OK}getBitrate(){if(this.#o.originalRuntime()._opus_get_bitrate(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_BITRATE");return this.#c.value()}setVbr(e){return this.#o.originalRuntime()._opus_set_vbr(this.#d,e)===i.default.OPUS_OK}getVbr(){if(this.#o.originalRuntime()._opus_get_vbr(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_VBR");return this.#c.value()}setVbrConstraint(e){return this.#o.originalRuntime()._opus_set_vbr_constraint(this.#d,e)===i.default.OPUS_OK}getVbrConstraint(){if(this.#o.originalRuntime()._opus_get_vbr_constraint(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_VBR_CONSTRAINT");return this.#c.value()}setForceChannels(e){return this.#o.originalRuntime()._opus_set_force_channels(this.#d,e)===i.default.OPUS_OK}getForceChannels(){if(this.#o.originalRuntime()._opus_get_force_channels(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_FORCE_CHANNELS");return this.#c.value()}setMaxBandwidth(e){return this.#o.originalRuntime()._opus_set_max_bandwidth(this.#d,e)===i.default.OPUS_OK}getMaxBandwidth(){if(this.#o.originalRuntime()._opus_get_max_bandwidth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_MAX_BANDWIDTH");return this.#c.value()}setBandwidth(e){return this.#o.originalRuntime()._opus_set_bandwidth(this.#d,e)===i.default.OPUS_OK}setSignal(e){return this.#o.originalRuntime()._opus_set_signal(this.#d,e)===i.default.OPUS_OK}getSignal(){if(this.#o.originalRuntime()._opus_get_signal(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_SIGNAL");return this.#c.value()}setApplication(e){return this.#o.originalRuntime()._opus_set_application(this.#d,e)===i.default.OPUS_OK}getApplication(){if(this.#o.originalRuntime()._opus_get_application(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_APPLICATION");return this.#c.value()}getLookahead(){if(this.#o.originalRuntime()._opus_get_lookahead(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LOOKAHEAD");return this.#c.value()}setInbandFec(e){return this.#o.originalRuntime()._opus_set_inband_fec(this.#d,e)===i.default.OPUS_OK}getInbandFec(){if(this.#o.originalRuntime()._opus_get_inband_fec(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_INBAND_FEC");return this.#c.value()}setPacketLossperc(e){return this.#o.originalRuntime()._opus_set_packet_loss_perc(this.#d,e)===i.default.OPUS_OK}getPacketLossperc(){if(this.#o.originalRuntime()._opus_get_packet_loss_perc(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PACKET_LOSS_PERC");return this.#c.value()}setDtx(e){return this.#o.originalRuntime()._opus_set_dtx(this.#d,e)===i.default.OPUS_OK}getDtx(){if(this.#o.originalRuntime()._opus_get_dtx(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_DTX");return this.#c.value()}setLsbDepth(e){return this.#o.originalRuntime()._opus_set_lsb_depth(this.#d,e)===i.default.OPUS_OK}getLsbDepth(){if(this.#o.originalRuntime()._opus_get_lsb_depth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LSB_DEPTH");return this.#c.value()}setExpertFrameduration(e){return this.#o.originalRuntime()._opus_set_expert_frame_duration(this.#d,e)===i.default.OPUS_OK}getExpertFrameduration(){if(this.#o.originalRuntime()._opus_get_expert_frame_duration(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_EXPERT_FRAME_DURATION");return this.#c.value()}setPredictionDisabled(e){return this.#o.originalRuntime()._opus_set_prediction_disabled(this.#d,e)===i.default.OPUS_OK}getPredictionDisabled(){if(this.#o.originalRuntime()._opus_get_prediction_disabled(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PREDICTION_DISABLED");return this.#c.value()}getBandwidth(){if(this.#o.originalRuntime()._opus_get_bandwidth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_BANDWIDTH");return this.#c.value()}getSampleRate(){if(this.#o.originalRuntime()._opus_get_sample_rate(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_SAMPLE_RATE");return this.#c.value()}setPhaseInversiondisabled(e){return this.#o.originalRuntime()._opus_set_phase_inversion_disabled(this.#d,e)===i.default.OPUS_OK}getPhaseInversiondisabled(){if(this.#o.originalRuntime()._opus_get_phase_inversion_disabled(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PHASE_INVERSION_DISABLED");return this.#c.value()}getInDtx(){if(this.#o.originalRuntime()._opus_get_in_dtx(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_IN_DTX");return this.#c.value()}setGain(e){return this.#o.originalRuntime()._opus_set_gain(this.#d,e)===i.default.OPUS_OK}getGain(){if(this.#o.originalRuntime()._opus_get_gain(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_GAIN");return this.#c.value()}getLastPacketduration(){if(this.#o.originalRuntime()._opus_get_last_packet_duration(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LAST_PACKET_DURATION");return this.#c.value()}getPitch(){if(this.#o.originalRuntime()._opus_get_pitch(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PITCH");return this.#c.value()}}},750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#l;#f;#p;#s;constructor(e){this.#f=0,this.#p=0,this.#l=new ArrayBuffer(4194304),this.#s=e}#h(){return new Float32Array(this.#l)}write(e){this.#S(e.length),this.#h().set(e,this.#p),this.#p+=e.length}read(){if(this.#p-this.#f>=this.#s){const e=this.#h().subarray(this.#f,this.#f+this.#s);return this.#f+=this.#s,this.#f>=this.#p&&(this.#p=0,this.#f=0),e}return null}#S(e){const t=e*Float32Array.BYTES_PER_ELEMENT;if(this.#h().length<=e){const e=this.#l;this.#l=new ArrayBuffer(e.byteLength+t+4194304),this.#h().set(new Uint8Array(e))}}}},288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={OPUS_OK:0,OPUS_BAD_ARG:-1,OPUS_BUFFER_TOO_SMALL:-2,OPUS_INTERNAL_ERROR:-3,OPUS_INVALID_PACKET:-4,OPUS_UNIMPLEMENTED:-5,OPUS_INVALID_STATE:-6," OPUS_ALLOC_FAIL":-7,OPUS_AUTO:-1e3,OPUS_BITRATE_MAX:-1,OPUS_APPLICATION_VOIP:2048,OPUS_APPLICATION_AUDIO:2049,OPUS_APPLICATION_RESTRICTED_LOWDELAY:2051,OPUS_SIGNAL_VOICE:3001,OPUS_SIGNAL_MUSIC:3002,OPUS_BANDWIDTH_NARROWBAND:1101,OPUS_BANDWIDTH_MEDIUMBAND:1102,OPUS_BANDWIDTH_WIDEBAND:1103,OPUS_BANDWIDTH_SUPERWIDEBAND:1104,OPUS_BANDWIDTH_FULLBAND:1105,OPUS_FRAMESIZE_ARG:5e3,OPUS_FRAMESIZE_2_5_MS:5001,OPUS_FRAMESIZE_5_MS:5002,OPUS_FRAMESIZE_10_MS:5003,OPUS_FRAMESIZE_20_MS:5004,OPUS_FRAMESIZE_40_MS:5005,OPUS_FRAMESIZE_60_MS:5006,OPUS_FRAMESIZE_80_MS:5007,OPUS_FRAMESIZE_100_MS:5008,OPUS_FRAMESIZE_120_MS:5009}},426:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.RingBuffer=t.Decoder=t.Encoder=void 0;var o=r(414);Object.defineProperty(t,"Encoder",{enumerable:!0,get:function(){return n(o).default}});var i=r(244);Object.defineProperty(t,"Decoder",{enumerable:!0,get:function(){return n(i).default}});var s=r(750);Object.defineProperty(t,"RingBuffer",{enumerable:!0,get:function(){return n(s).default}});var a=r(288);Object.defineProperty(t,"constants",{enumerable:!0,get:function(){return n(a).default}})},263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#E;#O;#o;constructor(e,t){this.#o=e,this.#O=t,this.#E=e.malloc(t)}offset(){return this.#E}data(){return this.#o.subarray(this.#E,this.#E+this.#O)}size(){return this.#O}destroy(){this.#o.free(this.#E),this.#E=0}}},877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#o;#E;constructor(e){this.#o=e,this.#E=e.malloc(e.originalRuntime()._size_of_int())}value(){if(4!==this.#o.originalRuntime()._size_of_int())throw new Error("invalid integer byte size");return this.#o.view().getInt32(this.#E,!0)}set(e){this.#o.view().setInt32(this.#E,e,!0)}size(){return this.#o.originalRuntime()._size_of_int()}offset(){return this.#E}destroy(){this.#o.free(this.#E),this.#E=0}}},577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#E;#o;constructor(e,t){this.#o=e,this.#E=e.malloc(e.originalRuntime()._size_of_void_ptr()),this.#o.view().setUint32(this.#E,t.offset(),!0)}offset(){return this.#E}destroy(){this.#o.free(this.#E)}value(){return this.#o.view().getUint32(this.#E,!0)}}},438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#m=new Set;constructor(){}add(e){this.#m.add(e)}destroy(){for(const e of this.#m)e.destroy()}}},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#o;constructor(e){this.#o=e}originalRuntime(){return this.#o}subarray(e,t){return this.#o.HEAPU8.subarray(e,t)}free(e){this.#o._free(e)}view(){return new DataView(this.#o.HEAPU8.buffer)}malloc(e){const t=this.#o._malloc(e);if(!t)throw new Error(`failed to allocate ${e} bytes`);return t}}},704:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesHolder=t.Buffer=t.Runtime=t.Pointer=t.Integer=void 0;var o=r(877);Object.defineProperty(t,"Integer",{enumerable:!0,get:function(){return n(o).default}});var i=r(577);Object.defineProperty(t,"Pointer",{enumerable:!0,get:function(){return n(i).default}});var s=r(714);Object.defineProperty(t,"Runtime",{enumerable:!0,get:function(){return n(s).default}});var a=r(263);Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return n(a).default}});var u=r(438);Object.defineProperty(t,"ResourcesHolder",{enumerable:!0,get:function(){return n(u).default}})},977:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(426),i=r(910),s=n(r(827)),a=r(704),u=r(864),_=(0,s.default)({locateFile:()=>"/opus/index.wasm"}),d=new Map;onmessage=async e=>{const t=new a.Runtime(await _),r=e.data;switch(r.type){case i.RequestType.CreateEncoder:{const e=new o.Encoder(t,r.data.sampleRate,r.data.channels,r.data.application,r.data.outBufferLength,r.data.pcmBufferLength),n=crypto.getRandomValues(new Uint32Array(4)).join("-");d.set(n,{ringBuffer:new o.RingBuffer(r.data.pcmBufferLength/Float32Array.BYTES_PER_ELEMENT),encoder:e});const i={requestId:r.requestId,value:n};postMessage(i);break}case i.RequestType.OpusGetRequest:break;case i.RequestType.DestroyEncoder:{const e=d.get(r.data);if(!e)throw new Error("Failed to get encoder");e.encoder.destroy(),d.delete(r.data);const t={requestId:r.requestId,value:r.data};postMessage(t);break}case i.RequestType.EncodeFloat:{const e=d.get(r.data.encoderId);if(!e)throw new Error("Failed to get encoder");e.ringBuffer.write(r.data.pcm);const t=e.ringBuffer.read(),n={requestId:r.requestId,value:{encoded:null}};if(null===t)return void postMessage(n);const o=e.encoder.encodeFloat(t,r.data.frameSize,r.data.maxDataBytes);n.value.encoded=new ArrayBuffer(o),new Uint8Array(n.value.encoded).set(e.encoder.encoded().subarray(0,o)),postMessage(n,[n.value.encoded]);break}case i.RequestType.OpusSetRequest:{const e=d.get(r.data.encoderId),t=e?.encoder?{value:(0,u.setToEncoder)(e.encoder,r.data),requestId:r.requestId}:{requestId:r.requestId,failures:[`no encoder found for: ${r.data.encoderId}`]};postMessage(t);break}case i.RequestType.OpusGetRequest:{const e=d.get(r.data.encoderId),t=e?.encoder?{value:(0,u.getFromEncoder)(e.encoder,r.data),requestId:r.requestId}:{requestId:r.requestId,failures:[`no encoder found for: ${r.data.encoderId}`]};postMessage(t);break}}}},864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFromEncoder=t.setToEncoder=void 0;const n=r(215);t.setToEncoder=function(e,t){let r;switch(t.type){case n.OpusRequest.SetComplexity:r=e.setComplexity(t.value);break;case n.OpusRequest.SetBitrate:r=e.setBitrate(t.value);break;case n.OpusRequest.SetVbr:r=e.setVbr(t.value);break;case n.OpusRequest.SetVbrConstraint:r=e.setVbrConstraint(t.value);break;case n.OpusRequest.SetForceChannels:r=e.setForceChannels(t.value);break;case n.OpusRequest.SetMaxBandwidth:r=e.setMaxBandwidth(t.value);break;case n.OpusRequest.SetBandwidth:r=e.setBandwidth(t.value);break;case n.OpusRequest.SetSignal:r=e.setSignal(t.value);break;case n.OpusRequest.SetApplication:r=e.setApplication(t.value);break;case n.OpusRequest.SetInbandFec:r=e.setInbandFec(t.value);break;case n.OpusRequest.SetPacketLossperc:r=e.setPacketLossperc(t.value);break;case n.OpusRequest.SetDtx:r=e.setDtx(t.value);break;case n.OpusRequest.SetLsbDepth:r=e.setLsbDepth(t.value);break;case n.OpusRequest.SetExpertFrameduration:r=e.setExpertFrameduration(t.value);break;case n.OpusRequest.SetPredictionDisabled:r=e.setPredictionDisabled(t.value);break;case n.OpusRequest.SetPhaseInversiondisabled:r=e.setPhaseInversiondisabled(t.value);break;case n.OpusRequest.SetGain:r=e.setGain(t.value)}return r},t.getFromEncoder=function(e,t){let r;switch(t.type){case n.OpusRequest.GetComplexity:r=e.getComplexity();break;case n.OpusRequest.GetBitrate:r=e.getBitrate();break;case n.OpusRequest.GetVbr:r=e.getVbr();break;case n.OpusRequest.GetVbrConstraint:r=e.getVbrConstraint();break;case n.OpusRequest.GetForceChannels:r=e.getForceChannels();break;case n.OpusRequest.GetMaxBandwidth:r=e.getMaxBandwidth();break;case n.OpusRequest.GetSignal:r=e.getSignal();break;case n.OpusRequest.GetApplication:r=e.getApplication();break;case n.OpusRequest.GetLookahead:r=e.getLookahead();break;case n.OpusRequest.GetInbandFec:r=e.getInbandFec();break;case n.OpusRequest.GetPacketLossperc:r=e.getPacketLossperc();break;case n.OpusRequest.GetDtx:r=e.getDtx();break;case n.OpusRequest.GetLsbDepth:r=e.getLsbDepth();break;case n.OpusRequest.GetExpertFrameduration:r=e.getExpertFrameduration();break;case n.OpusRequest.GetPredictionDisabled:r=e.getPredictionDisabled();break;case n.OpusRequest.GetBandwidth:r=e.getBandwidth();break;case n.OpusRequest.GetSampleRate:r=e.getSampleRate();break;case n.OpusRequest.GetPhaseInversiondisabled:r=e.getPhaseInversiondisabled();break;case n.OpusRequest.GetInDtx:r=e.getInDtx();break;case n.OpusRequest.GetGain:r=e.getGain();break;case n.OpusRequest.GetLastPacketduration:r=e.getLastPacketduration();break;case n.OpusRequest.GetPitch:r=e.getPitch()}return r}},194:()=>{},472:()=>{}},t={};!function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(977)})();
1
+ (()=>{var e={910:(e,t)=>{"use strict";var r;function n(){return crypto.getRandomValues(new Int32Array(4)).join("-")}Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFloat=t.createEncoder=t.RequestType=t.destroyEncoder=t.setToEncoder=t.getFromEncoder=void 0,t.getFromEncoder=function(e){return{type:r.OpusGetRequest,data:e,requestId:n()}},t.setToEncoder=function(e){return{type:r.OpusSetRequest,data:e,requestId:n()}},t.destroyEncoder=function(e){return{type:r.DestroyEncoder,data:e,requestId:n()}},function(e){e[e.CreateEncoder=0]="CreateEncoder",e[e.EncodeFloat=1]="EncodeFloat",e[e.DestroyEncoder=2]="DestroyEncoder",e[e.OpusGetRequest=3]="OpusGetRequest",e[e.OpusSetRequest=4]="OpusSetRequest"}(r=t.RequestType||(t.RequestType={})),t.createEncoder=function(e){return{data:e,requestId:n(),type:r.CreateEncoder}},t.encodeFloat=function(e){return{data:e,requestId:n(),type:r.EncodeFloat,transfer:[e.pcm.buffer]}}},215:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OPUS_GET_PITCH=t.OPUS_GET_LAST_PACKET_DURATION=t.OPUS_GET_GAIN=t.OPUS_SET_GAIN=t.OPUS_GET_IN_DTX=t.OPUS_GET_PHASE_INVERSION_DISABLED=t.OPUS_SET_PHASE_INVERSION_DISABLED=t.OPUS_GET_SAMPLE_RATE=t.OPUS_GET_BANDWIDTH=t.OPUS_GET_PREDICTION_DISABLED=t.OPUS_SET_PREDICTION_DISABLED=t.OPUS_GET_EXPERT_FRAME_DURATION=t.OPUS_SET_EXPERT_FRAME_DURATION=t.OPUS_GET_LSB_DEPTH=t.OPUS_SET_LSB_DEPTH=t.OPUS_GET_DTX=t.OPUS_SET_DTX=t.OPUS_GET_PACKET_LOSS_PERC=t.OPUS_SET_PACKET_LOSS_PERC=t.OPUS_GET_INBAND_FEC=t.OPUS_SET_INBAND_FEC=t.OPUS_GET_LOOKAHEAD=t.OPUS_GET_APPLICATION=t.OPUS_SET_APPLICATION=t.OPUS_GET_SIGNAL=t.OPUS_SET_SIGNAL=t.OPUS_SET_BANDWIDTH=t.OPUS_GET_MAX_BANDWIDTH=t.OPUS_SET_MAX_BANDWIDTH=t.OPUS_GET_FORCE_CHANNELS=t.OPUS_SET_FORCE_CHANNELS=t.OPUS_GET_VBR_CONSTRAINT=t.OPUS_SET_VBR_CONSTRAINT=t.OPUS_GET_VBR=t.OPUS_SET_VBR=t.OPUS_GET_BITRATE=t.OPUS_SET_BITRATE=t.OPUS_GET_COMPLEXITY=t.OPUS_SET_COMPLEXITY=t.OpusRequest=void 0,function(e){e.SetComplexity="OPUS_SET_COMPLEXITY",e.GetComplexity="OPUS_GET_COMPLEXITY",e.SetBitrate="OPUS_SET_BITRATE",e.GetBitrate="OPUS_GET_BITRATE",e.SetVbr="OPUS_SET_VBR",e.GetVbr="OPUS_GET_VBR",e.SetVbrConstraint="OPUS_SET_VBR_CONSTRAINT",e.GetVbrConstraint="OPUS_GET_VBR_CONSTRAINT",e.SetForceChannels="OPUS_SET_FORCE_CHANNELS",e.GetForceChannels="OPUS_GET_FORCE_CHANNELS",e.SetMaxBandwidth="OPUS_SET_MAX_BANDWIDTH",e.GetMaxBandwidth="OPUS_GET_MAX_BANDWIDTH",e.SetBandwidth="OPUS_SET_BANDWIDTH",e.SetSignal="OPUS_SET_SIGNAL",e.GetSignal="OPUS_GET_SIGNAL",e.SetApplication="OPUS_SET_APPLICATION",e.GetApplication="OPUS_GET_APPLICATION",e.GetLookahead="OPUS_GET_LOOKAHEAD",e.SetInbandFec="OPUS_SET_INBAND_FEC",e.GetInbandFec="OPUS_GET_INBAND_FEC",e.SetPacketLossperc="OPUS_SET_PACKET_LOSS_PERC",e.GetPacketLossperc="OPUS_GET_PACKET_LOSS_PERC",e.SetDtx="OPUS_SET_DTX",e.GetDtx="OPUS_GET_DTX",e.SetLsbDepth="OPUS_SET_LSB_DEPTH",e.GetLsbDepth="OPUS_GET_LSB_DEPTH",e.SetExpertFrameduration="OPUS_SET_EXPERT_FRAME_DURATION",e.GetExpertFrameduration="OPUS_GET_EXPERT_FRAME_DURATION",e.SetPredictionDisabled="OPUS_SET_PREDICTION_DISABLED",e.GetPredictionDisabled="OPUS_GET_PREDICTION_DISABLED",e.GetBandwidth="OPUS_GET_BANDWIDTH",e.GetSampleRate="OPUS_GET_SAMPLE_RATE",e.SetPhaseInversiondisabled="OPUS_SET_PHASE_INVERSION_DISABLED",e.GetPhaseInversiondisabled="OPUS_GET_PHASE_INVERSION_DISABLED",e.GetInDtx="OPUS_GET_IN_DTX",e.SetGain="OPUS_SET_GAIN",e.GetGain="OPUS_GET_GAIN",e.GetLastPacketduration="OPUS_GET_LAST_PACKET_DURATION",e.GetPitch="OPUS_GET_PITCH"}(r=t.OpusRequest||(t.OpusRequest={})),t.OPUS_SET_COMPLEXITY=function(e,t){return{encoderId:e,type:r.SetComplexity,value:t}},t.OPUS_GET_COMPLEXITY=function(e){return{encoderId:e,type:r.GetComplexity}},t.OPUS_SET_BITRATE=function(e,t){return{encoderId:e,type:r.SetBitrate,value:t}},t.OPUS_GET_BITRATE=function(e){return{encoderId:e,type:r.GetBitrate}},t.OPUS_SET_VBR=function(e,t){return{encoderId:e,type:r.SetVbr,value:t}},t.OPUS_GET_VBR=function(e){return{encoderId:e,type:r.GetVbr}},t.OPUS_SET_VBR_CONSTRAINT=function(e,t){return{encoderId:e,type:r.SetVbrConstraint,value:t}},t.OPUS_GET_VBR_CONSTRAINT=function(e){return{encoderId:e,type:r.GetVbrConstraint}},t.OPUS_SET_FORCE_CHANNELS=function(e,t){return{encoderId:e,type:r.SetForceChannels,value:t}},t.OPUS_GET_FORCE_CHANNELS=function(e){return{encoderId:e,type:r.GetForceChannels}},t.OPUS_SET_MAX_BANDWIDTH=function(e,t){return{encoderId:e,type:r.SetMaxBandwidth,value:t}},t.OPUS_GET_MAX_BANDWIDTH=function(e){return{encoderId:e,type:r.GetMaxBandwidth}},t.OPUS_SET_BANDWIDTH=function(e,t){return{encoderId:e,type:r.SetBandwidth,value:t}},t.OPUS_SET_SIGNAL=function(e,t){return{encoderId:e,type:r.SetSignal,value:t}},t.OPUS_GET_SIGNAL=function(e){return{encoderId:e,type:r.GetSignal}},t.OPUS_SET_APPLICATION=function(e,t){return{encoderId:e,type:r.SetApplication,value:t}},t.OPUS_GET_APPLICATION=function(e){return{encoderId:e,type:r.GetApplication}},t.OPUS_GET_LOOKAHEAD=function(e){return{encoderId:e,type:r.GetLookahead}},t.OPUS_SET_INBAND_FEC=function(e,t){return{encoderId:e,type:r.SetInbandFec,value:t}},t.OPUS_GET_INBAND_FEC=function(e){return{encoderId:e,type:r.GetInbandFec}},t.OPUS_SET_PACKET_LOSS_PERC=function(e,t){return{encoderId:e,type:r.SetPacketLossperc,value:t}},t.OPUS_GET_PACKET_LOSS_PERC=function(e){return{encoderId:e,type:r.GetPacketLossperc}},t.OPUS_SET_DTX=function(e,t){return{encoderId:e,type:r.SetDtx,value:t}},t.OPUS_GET_DTX=function(e){return{encoderId:e,type:r.GetDtx}},t.OPUS_SET_LSB_DEPTH=function(e,t){return{encoderId:e,type:r.SetLsbDepth,value:t}},t.OPUS_GET_LSB_DEPTH=function(e){return{encoderId:e,type:r.GetLsbDepth}},t.OPUS_SET_EXPERT_FRAME_DURATION=function(e,t){return{encoderId:e,type:r.SetExpertFrameduration,value:t}},t.OPUS_GET_EXPERT_FRAME_DURATION=function(e){return{encoderId:e,type:r.GetExpertFrameduration}},t.OPUS_SET_PREDICTION_DISABLED=function(e,t){return{encoderId:e,type:r.SetPredictionDisabled,value:t}},t.OPUS_GET_PREDICTION_DISABLED=function(e){return{encoderId:e,type:r.GetPredictionDisabled}},t.OPUS_GET_BANDWIDTH=function(e){return{encoderId:e,type:r.GetBandwidth}},t.OPUS_GET_SAMPLE_RATE=function(e){return{encoderId:e,type:r.GetSampleRate}},t.OPUS_SET_PHASE_INVERSION_DISABLED=function(e,t){return{encoderId:e,type:r.SetPhaseInversiondisabled,value:t}},t.OPUS_GET_PHASE_INVERSION_DISABLED=function(e){return{encoderId:e,type:r.GetPhaseInversiondisabled}},t.OPUS_GET_IN_DTX=function(e){return{encoderId:e,type:r.GetInDtx}},t.OPUS_SET_GAIN=function(e,t){return{encoderId:e,type:r.SetGain,value:t}},t.OPUS_GET_GAIN=function(e){return{encoderId:e,type:r.GetGain}},t.OPUS_GET_LAST_PACKET_DURATION=function(e){return{encoderId:e,type:r.GetLastPacketduration}},t.OPUS_GET_PITCH=function(e){return{encoderId:e,type:r.GetPitch}}},827:(e,t,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e={}){var t,o;(e=void 0!==e?e:{}).ready=new Promise((function(e,r){t=e,o=r})),["_size_of_int","_size_of_void_ptr","_malloc","_free","_opus_decoder_create","_opus_decoder_destroy","_opus_decode_float","_opus_encoder_create","_opus_encoder_destroy","_opus_encoder_ctl","_opus_encode_float","_opus_set_complexity","_opus_get_complexity","_opus_set_bitrate","_opus_get_bitrate","_opus_set_vbr","_opus_get_vbr","_opus_set_vbr_constraint","_opus_get_vbr_constraint","_opus_set_force_channels","_opus_get_force_channels","_opus_set_max_bandwidth","_opus_get_max_bandwidth","_opus_set_bandwidth","_opus_set_signal","_opus_get_signal","_opus_set_application","_opus_get_application","_opus_get_lookahead","_opus_set_inband_fec","_opus_get_inband_fec","_opus_set_packet_loss_perc","_opus_get_packet_loss_perc","_opus_set_dtx","_opus_get_dtx","_opus_set_lsb_depth","_opus_get_lsb_depth","_opus_set_expert_frame_duration","_opus_get_expert_frame_duration","_opus_set_prediction_disabled","_opus_get_prediction_disabled","_opus_get_bandwidth","_opus_get_sample_rate","_opus_set_phase_inversion_disabled","_opus_get_phase_inversion_disabled","_opus_get_in_dtx","_opus_set_gain","_opus_get_gain","_opus_get_last_packet_duration","_opus_get_pitch","_fflush","onRuntimeInitialized"].forEach((t=>{Object.getOwnPropertyDescriptor(e.ready,t)||Object.defineProperty(e.ready,t,{get:()=>C("You are getting "+t+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),set:()=>C("You are setting "+t+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")})}));var i=Object.assign({},e),s="object"==typeof window,a="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_=!s&&!u&&!a;if(e.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var d,c,l="";if(u){if("undefined"==typeof process||!process.release||"node"!==process.release.name)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");var f=process.versions.node,p=f.split(".").slice(0,3);if((p=1e4*p[0]+100*p[1]+1*p[2])<101900)throw new Error("This emscripten-generated code requires node v10.19.19.0 (detected v"+f+")");var h=r(194),S=r(472);l=a?S.dirname(l)+"/":"//",d=(e,t)=>(e=V(e)?new URL(e):S.normalize(e),h.readFileSync(e,t?void 0:"utf8")),c=e=>{var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),b(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"}}else if(_){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(d=function(e){return read(e)}),c=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),b("object"==typeof t),t)},"undefined"==typeof clearTimeout&&(globalThis.clearTimeout=e=>{}),"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!s&&!a)throw new Error("environment detection error");if(a?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var E,O,m,g=e.print||console.log.bind(console),P=e.printErr||console.warn.bind(console);Object.assign(e,i),i=null,E="fetchSettings",Object.getOwnPropertyDescriptor(e,E)&&C("`Module."+E+"` was supplied but `"+E+"` not included in INCOMING_MODULE_JS_API"),e.arguments&&e.arguments,z("arguments","arguments_"),e.thisProgram&&e.thisProgram,z("thisProgram","thisProgram"),e.quit&&e.quit,z("quit","quit_"),b(void 0===e.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),b(void 0===e.read,"Module.read option was removed (modify read_ in JS)"),b(void 0===e.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),b(void 0===e.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),b(void 0===e.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),b(void 0===e.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),z("read","read_"),z("readAsync","readAsync"),z("readBinary","readBinary"),z("setWindowTitle","setWindowTitle"),b(!s,"web environment detected but not enabled at build time. Add 'web' to `-sENVIRONMENT` to enable."),b(!_,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."),e.wasmBinary&&(O=e.wasmBinary),z("wasmBinary","wasmBinary"),e.noExitRuntime,z("noExitRuntime","noExitRuntime"),"object"!=typeof WebAssembly&&C("no native wasm support detected");var T=!1;function b(e,t){e||C("Assertion failed"+(t?": "+t:""))}var y,I,v,R="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function A(){if(!T){var e=oe();0==e&&(e+=4);var t=v[e>>2],r=v[e+4>>2];34821223==t&&2310721022==r||C("Stack overflow! Stack cookie has been overwritten at "+J(e)+", expected hex dwords 0x89BACDFE and 0x2135467, but received "+J(r)+" "+J(t)),1668509029!==v[0]&&C("Runtime error: The application has corrupted its heap memory area (address zero)!")}}b(!e.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),b("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support"),b(!e.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally"),b(!e.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)"}();var w=[],U=[],D=[],L=!1;b(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),b(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var F=0,G=null,N=null,M={};function C(t){e.onAbort&&e.onAbort(t),P(t="Aborted("+t+")"),T=!0;var r=new WebAssembly.RuntimeError(t);throw o(r),r}var B={error:function(){C("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -sFORCE_FILESYSTEM")},init:function(){B.error()},createDataFile:function(){B.error()},createPreloadedFile:function(){B.error()},createLazyFile:function(){B.error()},open:function(){B.error()},mkdev:function(){B.error()},registerDevice:function(){B.error()},analyzePath:function(){B.error()},loadFilesFromDB:function(){B.error()},ErrnoError:function(){B.error()}};e.FS_createDataFile=B.createDataFile,e.FS_createPreloadedFile=B.createPreloadedFile;var k,x,q;function H(e){return e.startsWith("data:application/octet-stream;base64,")}function V(e){return e.startsWith("file://")}function K(t,r){return function(){var n=t,o=r;return r||(o=e.asm),b(L,"native function `"+n+"` called before runtime initialization"),o[t]||b(o[t],"exported native function `"+n+"` not found"),o[t].apply(null,arguments)}}function j(e){try{if(e==k&&O)return new Uint8Array(O);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}catch(e){C(e)}}function W(e,t,r){return function(e){return O||!s&&!a||"function"!=typeof fetch?Promise.resolve().then((function(){return j(e)})):fetch(e,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((function(){return j(e)}))}(e).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(e){return e})).then(r,(function(e){P("failed to asynchronously prepare wasm: "+e),V(k)&&P("warning: Loading from a file URI ("+k+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),C(e)}))}function z(t,r){Object.getOwnPropertyDescriptor(e,t)||Object.defineProperty(e,t,{configurable:!0,get:function(){C("Module."+t+" has been replaced with plain "+r+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}function Y(e){return"FS_createPath"===e||"FS_createDataFile"===e||"FS_createPreloadedFile"===e||"FS_unlink"===e||"addRunDependency"===e||"FS_createLazyFile"===e||"FS_createDevice"===e||"removeRunDependency"===e}function X(t){Object.getOwnPropertyDescriptor(e,t)||Object.defineProperty(e,t,{configurable:!0,get:function(){var e="'"+t+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";Y(t)&&(e+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),C(e)}})}function Z(t){for(;t.length>0;)t.shift()(e)}function J(e){return b("number"==typeof e),"0x"+e.toString(16).padStart(8,"0")}function $(e){$.shown||($.shown={}),$.shown[e]||($.shown[e]=1,u&&(e="warning: "+e),P(e))}H(k="index.wasm")||(x=k,k=e.locateFile?e.locateFile(x,l):l+x),q="buffer","undefined"!=typeof globalThis&&Object.defineProperty(globalThis,q,{configurable:!0,get:function(){$("`"+q+"` is not longer defined by emscripten. Please use HEAP8.buffer or wasmMemory.buffer")}});var Q=[null,[],[]];function ee(e,t){var r=Q[e];b(r),0===t||10===t?((1===e?g:P)(function(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&R)return R.decode(e.subarray(t,o));for(var i="";t<o;){var s=e[t++];if(128&s){var a=63&e[t++];if(192!=(224&s)){var u=63&e[t++];if(224==(240&s)?s=(15&s)<<12|a<<6|u:(240!=(248&s)&&$("Invalid UTF-8 leading byte "+J(s)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),s=(7&s)<<18|a<<12|u<<6|63&e[t++]),s<65536)i+=String.fromCharCode(s);else{var _=s-65536;i+=String.fromCharCode(55296|_>>10,56320|1023&_)}}else i+=String.fromCharCode((31&s)<<6|a)}else i+=String.fromCharCode(s)}return i}(r,0)),r.length=0):r.push(t)}var te,re={abort:function(){C("native code called abort()")},emscripten_memcpy_big:function(e,t,r){I.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){I.length,function(e){C("Cannot enlarge memory arrays to size "+e+" bytes (OOM). Either (1) compile with -sINITIAL_MEMORY=X with X higher than the current value "+y.length+", (2) compile with -sALLOW_MEMORY_GROWTH which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -sABORTING_MALLOC=0")}(e>>>=0)},fd_close:function(e){C("fd_close called without SYSCALLS_REQUIRE_FILESYSTEM")},fd_seek:function(e,t,r,n,o){return 70},fd_write:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var s=v[t>>2],a=v[t+4>>2];t+=8;for(var u=0;u<a;u++)ee(e,I[s+u]);o+=a}return v[n>>2]=o,0}},ne=(function(){var t,r={env:re,wasi_snapshot_preview1:re};function n(t,r){var n,o,i=t.exports;return e.asm=i,b(m=e.asm.memory,"memory not found in wasm exports"),n=m.buffer,e.HEAP8=y=new Int8Array(n),e.HEAP16=new Int16Array(n),e.HEAP32=new Int32Array(n),e.HEAPU8=I=new Uint8Array(n),e.HEAPU16=new Uint16Array(n),e.HEAPU32=v=new Uint32Array(n),e.HEAPF32=new Float32Array(n),e.HEAPF64=new Float64Array(n),b(e.asm.__indirect_function_table,"table not found in wasm exports"),o=e.asm.__wasm_call_ctors,U.unshift(o),function(t){if(F--,e.monitorRunDependencies&&e.monitorRunDependencies(F),t?(b(M[t]),delete M[t]):P("warning: run dependency removed without ID"),0==F&&(null!==G&&(clearInterval(G),G=null),N)){var r=N;N=null,r()}}("wasm-instantiate"),i}t="wasm-instantiate",F++,e.monitorRunDependencies&&e.monitorRunDependencies(F),t?(b(!M[t]),M[t]=1,null===G&&"undefined"!=typeof setInterval&&(G=setInterval((function(){if(T)return clearInterval(G),void(G=null);var e=!1;for(var t in M)e||(e=!0,P("still waiting on run dependencies:")),P("dependency: "+t);e&&P("(end of list)")}),1e4))):P("warning: run dependency added without ID");var i,s,a,_,d=e;if(e.instantiateWasm)try{return e.instantiateWasm(r,n)}catch(e){P("Module.instantiateWasm callback failed with error: "+e),o(e)}(i=O,s=k,a=r,_=function(t){b(e===d,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),d=null,n(t.instance)},i||"function"!=typeof WebAssembly.instantiateStreaming||H(s)||u||"function"!=typeof fetch?W(s,a,_):fetch(s,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(_,(function(e){return P("wasm streaming compile failed: "+e),P("falling back to ArrayBuffer instantiation"),W(s,a,_)}))}))).catch(o)}(),K("__wasm_call_ctors"),e._opus_decoder_create=K("opus_decoder_create"),e._opus_decode_float=K("opus_decode_float"),e._opus_decoder_destroy=K("opus_decoder_destroy"),e._opus_encoder_create=K("opus_encoder_create"),e._opus_encode_float=K("opus_encode_float"),e._opus_encoder_ctl=K("opus_encoder_ctl"),e._opus_encoder_destroy=K("opus_encoder_destroy"),e._size_of_int=K("size_of_int"),e._size_of_void_ptr=K("size_of_void_ptr"),e._opus_set_complexity=K("opus_set_complexity"),e._opus_get_complexity=K("opus_get_complexity"),e._opus_set_bitrate=K("opus_set_bitrate"),e._opus_get_bitrate=K("opus_get_bitrate"),e._opus_set_vbr=K("opus_set_vbr"),e._opus_get_vbr=K("opus_get_vbr"),e._opus_set_vbr_constraint=K("opus_set_vbr_constraint"),e._opus_get_vbr_constraint=K("opus_get_vbr_constraint"),e._opus_set_force_channels=K("opus_set_force_channels"),e._opus_get_force_channels=K("opus_get_force_channels"),e._opus_set_max_bandwidth=K("opus_set_max_bandwidth"),e._opus_get_max_bandwidth=K("opus_get_max_bandwidth"),e._opus_set_bandwidth=K("opus_set_bandwidth"),e._opus_set_signal=K("opus_set_signal"),e._opus_get_signal=K("opus_get_signal"),e._opus_set_application=K("opus_set_application"),e._opus_get_application=K("opus_get_application"),e._opus_get_lookahead=K("opus_get_lookahead"),e._opus_set_inband_fec=K("opus_set_inband_fec"),e._opus_get_inband_fec=K("opus_get_inband_fec"),e._opus_set_packet_loss_perc=K("opus_set_packet_loss_perc"),e._opus_get_packet_loss_perc=K("opus_get_packet_loss_perc"),e._opus_set_dtx=K("opus_set_dtx"),e._opus_get_dtx=K("opus_get_dtx"),e._opus_set_lsb_depth=K("opus_set_lsb_depth"),e._opus_get_lsb_depth=K("opus_get_lsb_depth"),e._opus_set_expert_frame_duration=K("opus_set_expert_frame_duration"),e._opus_get_expert_frame_duration=K("opus_get_expert_frame_duration"),e._opus_set_prediction_disabled=K("opus_set_prediction_disabled"),e._opus_get_prediction_disabled=K("opus_get_prediction_disabled"),e._opus_get_bandwidth=K("opus_get_bandwidth"),e._opus_get_sample_rate=K("opus_get_sample_rate"),e._opus_set_phase_inversion_disabled=K("opus_set_phase_inversion_disabled"),e._opus_get_phase_inversion_disabled=K("opus_get_phase_inversion_disabled"),e._opus_get_in_dtx=K("opus_get_in_dtx"),e._opus_set_gain=K("opus_set_gain"),e._opus_get_gain=K("opus_get_gain"),e._opus_get_last_packet_duration=K("opus_get_last_packet_duration"),e._opus_get_pitch=K("opus_get_pitch"),K("__errno_location"),e._fflush=K("fflush"),e._malloc=K("malloc"),e._free=K("free"),function(){return(ne=e.asm.emscripten_stack_init).apply(null,arguments)}),oe=function(){return(oe=e.asm.emscripten_stack_get_end).apply(null,arguments)};function ie(){function r(){te||(te=!0,e.calledRun=!0,T||(b(!L),L=!0,A(),Z(U),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),b(!e._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),function(){if(A(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),D.unshift(t);var t;Z(D)}()))}var n;F>0||(ne(),b(0==(3&(n=oe()))),0==n&&(n+=4),v[n>>2]=34821223,v[n+4>>2]=2310721022,v[0]=1668509029,function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),w.unshift(t);var t;Z(w)}(),F>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r(),A()))}if(K("stackSave"),K("stackRestore"),K("stackAlloc"),e.dynCall_jiji=K("dynCall_jiji"),["zeroMemory","stringToNewUTF8","exitJS","emscripten_realloc_buffer","setErrNo","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","getHostByName","getRandomDevice","traverseStack","convertPCtoSourceLocation","readEmAsmArgs","jstoi_q","jstoi_s","getExecutableName","listenOnce","autoResumeAudioContext","dynCallLegacy","getDynCaller","dynCall","handleException","runtimeKeepalivePush","runtimeKeepalivePop","callUserCallback","maybeExit","safeSetTimeout","asmjsMangle","asyncLoad","alignMemory","mmapAlloc","HandleAllocator","getNativeTypeSize","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertU32PairToI53","getCFunc","ccall","cwrap","uleb128Encode","sigToWasmTypes","generateFuncType","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","reallyNegative","unSign","strLen","reSign","formatString","intArrayFromString","intArrayToString","AsciiToString","stringToAscii","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","allocateUTF8","allocateUTF8OnStack","writeStringToMemory","writeArrayToMemory","writeAsciiToMemory","getSocketFromFD","getSocketAddress","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","findCanvasEventTarget","getBoundingClientRect","fillMouseEventData","registerMouseEventCallback","registerWheelEventCallback","registerUiEventCallback","registerFocusEventCallback","fillDeviceOrientationEventData","registerDeviceOrientationEventCallback","fillDeviceMotionEventData","registerDeviceMotionEventCallback","screenOrientation","fillOrientationChangeEventData","registerOrientationChangeEventCallback","fillFullscreenChangeEventData","registerFullscreenChangeEventCallback","JSEvents_requestFullscreen","JSEvents_resizeCanvasForFullscreen","registerRestoreOldStyle","hideEverythingExceptGivenElement","restoreHiddenElements","setLetterbox","softFullscreenResizeWebGLRenderTarget","doRequestFullscreen","fillPointerlockChangeEventData","registerPointerlockChangeEventCallback","registerPointerlockErrorEventCallback","requestPointerLock","fillVisibilityChangeEventData","registerVisibilityChangeEventCallback","registerTouchEventCallback","fillGamepadEventData","registerGamepadEventCallback","registerBeforeUnloadEventCallback","fillBatteryEventData","battery","registerBatteryEventCallback","setCanvasElementSize","getCanvasElementSize","demangle","demangleAll","jsStackTrace","stackTrace","getEnvStrings","checkWasiClock","createDyncallWrapper","setImmediateWrapped","clearImmediateWrapped","polyfillSetImmediate","getPromise","makePromise","makePromiseCallback","ExceptionInfo","exception_addRef","exception_decRef","setMainLoop","_setNetworkCallback","heapObjectForWebGLType","heapAccessShiftForWebGLHeap","emscriptenWebGLGet","computeUnpackAlignedImageSize","emscriptenWebGLGetTexPixelData","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","writeGLArray","SDL_unicode","SDL_ttfContext","SDL_audio","GLFW_Window","runAndAbortIfError","ALLOC_NORMAL","ALLOC_STACK","allocate"].forEach((function(e){"undefined"==typeof globalThis||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get:function(){var t="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",r=e;r.startsWith("_")||(r="$"+e),t+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+r+")",Y(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),$(t)}}),X(e)})),["run","UTF8ArrayToString","UTF8ToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","addOnPreRun","addOnInit","addOnPreMain","addOnExit","addOnPostRun","addRunDependency","removeRunDependency","FS_createFolder","FS_createPath","FS_createDataFile","FS_createPreloadedFile","FS_createLazyFile","FS_createLink","FS_createDevice","FS_unlink","out","err","callMain","abort","keepRuntimeAlive","wasmMemory","stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0","writeStackCookie","checkStackCookie","ptrToString","getHeapMax","abortOnCannotGrowMemory","ENV","ERRNO_CODES","ERRNO_MESSAGES","DNS","Protocols","Sockets","timers","warnOnce","UNWIND_CACHE","readEmAsmArgsArray","convertI32PairToI53Checked","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF16Decoder","SYSCALLS","JSEvents","specialHTMLTargets","currentFullscreenStrategy","restoreOldWindowedStyle","ExitStatus","flush_NO_FILESYSTEM","dlopenMissingError","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","Browser","wget","FS","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","GL","AL","SDL","SDL_gfx","GLUT","EGL","GLFW","GLEW","IDBStore"].forEach(X),N=function e(){te||ie(),te||(N=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return ie(),e.ready});e.exports=o},244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(704);t.default=class{#e;#t;#r;#n;#o;#i;#s;constructor(e,t,r,o){if(this.#s=o,this.#o=e,this.#n=new n.ResourcesHolder,this.#t=new n.Integer(e),this.#e=new n.Pointer(e,this.#t),this.#n.add(this.#t),this.#n.add(this.#e),this.#r=e.originalRuntime()._opus_decoder_create(t,r,this.#e.offset()),!this.#r||this.#t.value()<0)throw new Error("Failed to create decoder");this.#i=new n.Buffer(e,this.#s*r*Float32Array.BYTES_PER_ELEMENT)}#a=null;decodeFloat(e,t=0){let r=this.#a;r||(r=new n.Buffer(this.#o,e.byteLength)),r.data().byteLength<e.byteLength&&(r.destroy(),r=new n.Buffer(this.#o,e.byteLength)),r.data().set(e),this.#a=r;const o=this.#o.originalRuntime()._opus_decode_float(this.#r,r.offset(),e.byteLength,this.#i.offset(),this.#s,t);if(o<0)throw new Error("Failed to decode float");return o}decoded(){const e=this.#i.data();return new Float32Array(e.buffer,e.byteOffset,e.byteLength/Float32Array.BYTES_PER_ELEMENT)}destroy(){this.#o.originalRuntime()._opus_decoder_destroy(this.#r),this.#n.destroy(),this.#a?.destroy()}}},414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(704),o=r(961);class i extends o.OpusGettersAndSetters{#t;#o;#u;#_;#i;#n;constructor(e,t,r,o,i,s){const a=new n.Integer(e),u=e.originalRuntime()._opus_encoder_create(t,r,o,a.offset());if(super(e,u),this.#n=new n.ResourcesHolder,this.#t=a,this.#o=e,this.#i=new n.Buffer(e,s),this.#_=new n.Buffer(e,i),this.#n.add(this.#_),this.#n.add(this.#i),this.#n.add(this.#t),this.#u=u,a.value()<0)throw new Error("Failed to create encoder");if(!i)throw new Error("outBufferLength must be more than 0")}encoded(){return this.#_.data()}encodeFloat(e,t,r){if(r>this.#_.size())throw new Error(`encoded buffer length is ${this.#_.size()}, but maxDataBytes is ${r}`);this.#i.data().set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));const n=this.#o.originalRuntime()._opus_encode_float(this.#u,this.#i.offset(),t,this.#_.offset(),r);if(n<0)throw new Error("Failed to encode float");return n}destroy(){this.#n.destroy(),this.#o.originalRuntime()._opus_encoder_destroy(this.#u)}}t.default=i},961:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OpusGettersAndSetters=void 0;const o=r(704),i=n(r(288));t.OpusGettersAndSetters=class{#d;#o;#c;constructor(e,t){this.#o=e,this.#c=new o.Integer(e),this.#d=t}setComplexity(e){return this.#o.originalRuntime()._opus_set_complexity(this.#d,e)===i.default.OPUS_OK}getComplexity(){if(this.#o.originalRuntime()._opus_get_complexity(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_COMPLEXITY");return this.#c.value()}setBitrate(e){return this.#o.originalRuntime()._opus_set_bitrate(this.#d,e)===i.default.OPUS_OK}getBitrate(){if(this.#o.originalRuntime()._opus_get_bitrate(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_BITRATE");return this.#c.value()}setVbr(e){return this.#o.originalRuntime()._opus_set_vbr(this.#d,e)===i.default.OPUS_OK}getVbr(){if(this.#o.originalRuntime()._opus_get_vbr(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_VBR");return this.#c.value()}setVbrConstraint(e){return this.#o.originalRuntime()._opus_set_vbr_constraint(this.#d,e)===i.default.OPUS_OK}getVbrConstraint(){if(this.#o.originalRuntime()._opus_get_vbr_constraint(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_VBR_CONSTRAINT");return this.#c.value()}setForceChannels(e){return this.#o.originalRuntime()._opus_set_force_channels(this.#d,e)===i.default.OPUS_OK}getForceChannels(){if(this.#o.originalRuntime()._opus_get_force_channels(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_FORCE_CHANNELS");return this.#c.value()}setMaxBandwidth(e){return this.#o.originalRuntime()._opus_set_max_bandwidth(this.#d,e)===i.default.OPUS_OK}getMaxBandwidth(){if(this.#o.originalRuntime()._opus_get_max_bandwidth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_MAX_BANDWIDTH");return this.#c.value()}setBandwidth(e){return this.#o.originalRuntime()._opus_set_bandwidth(this.#d,e)===i.default.OPUS_OK}setSignal(e){return this.#o.originalRuntime()._opus_set_signal(this.#d,e)===i.default.OPUS_OK}getSignal(){if(this.#o.originalRuntime()._opus_get_signal(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_SIGNAL");return this.#c.value()}setApplication(e){return this.#o.originalRuntime()._opus_set_application(this.#d,e)===i.default.OPUS_OK}getApplication(){if(this.#o.originalRuntime()._opus_get_application(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_APPLICATION");return this.#c.value()}getLookahead(){if(this.#o.originalRuntime()._opus_get_lookahead(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LOOKAHEAD");return this.#c.value()}setInbandFec(e){return this.#o.originalRuntime()._opus_set_inband_fec(this.#d,e)===i.default.OPUS_OK}getInbandFec(){if(this.#o.originalRuntime()._opus_get_inband_fec(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_INBAND_FEC");return this.#c.value()}setPacketLossperc(e){return this.#o.originalRuntime()._opus_set_packet_loss_perc(this.#d,e)===i.default.OPUS_OK}getPacketLossperc(){if(this.#o.originalRuntime()._opus_get_packet_loss_perc(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PACKET_LOSS_PERC");return this.#c.value()}setDtx(e){return this.#o.originalRuntime()._opus_set_dtx(this.#d,e)===i.default.OPUS_OK}getDtx(){if(this.#o.originalRuntime()._opus_get_dtx(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_DTX");return this.#c.value()}setLsbDepth(e){return this.#o.originalRuntime()._opus_set_lsb_depth(this.#d,e)===i.default.OPUS_OK}getLsbDepth(){if(this.#o.originalRuntime()._opus_get_lsb_depth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LSB_DEPTH");return this.#c.value()}setExpertFrameduration(e){return this.#o.originalRuntime()._opus_set_expert_frame_duration(this.#d,e)===i.default.OPUS_OK}getExpertFrameduration(){if(this.#o.originalRuntime()._opus_get_expert_frame_duration(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_EXPERT_FRAME_DURATION");return this.#c.value()}setPredictionDisabled(e){return this.#o.originalRuntime()._opus_set_prediction_disabled(this.#d,e)===i.default.OPUS_OK}getPredictionDisabled(){if(this.#o.originalRuntime()._opus_get_prediction_disabled(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PREDICTION_DISABLED");return this.#c.value()}getBandwidth(){if(this.#o.originalRuntime()._opus_get_bandwidth(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_BANDWIDTH");return this.#c.value()}getSampleRate(){if(this.#o.originalRuntime()._opus_get_sample_rate(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_SAMPLE_RATE");return this.#c.value()}setPhaseInversiondisabled(e){return this.#o.originalRuntime()._opus_set_phase_inversion_disabled(this.#d,e)===i.default.OPUS_OK}getPhaseInversiondisabled(){if(this.#o.originalRuntime()._opus_get_phase_inversion_disabled(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PHASE_INVERSION_DISABLED");return this.#c.value()}getInDtx(){if(this.#o.originalRuntime()._opus_get_in_dtx(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_IN_DTX");return this.#c.value()}setGain(e){return this.#o.originalRuntime()._opus_set_gain(this.#d,e)===i.default.OPUS_OK}getGain(){if(this.#o.originalRuntime()._opus_get_gain(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_GAIN");return this.#c.value()}getLastPacketduration(){if(this.#o.originalRuntime()._opus_get_last_packet_duration(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_LAST_PACKET_DURATION");return this.#c.value()}getPitch(){if(this.#o.originalRuntime()._opus_get_pitch(this.#d,this.#c.offset())!=i.default.OPUS_OK)throw new Error("Failed to set OPUS_GET_PITCH");return this.#c.value()}}},750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#l;#f;#p;#s;constructor(e){this.#f=0,this.#p=0,this.#l=new ArrayBuffer(4194304),this.#s=e}#h(){return new Float32Array(this.#l)}write(e){this.#S(e.length),this.#h().set(e,this.#p),this.#p+=e.length}read(){if(this.#p-this.#f>=this.#s){const e=this.#h().subarray(this.#f,this.#f+this.#s);return this.#f+=this.#s,this.#f>=this.#p&&(this.#p=0,this.#f=0),e}return null}#S(e){const t=e*Float32Array.BYTES_PER_ELEMENT;if(this.#h().length<=e){const e=this.#l;this.#l=new ArrayBuffer(e.byteLength+t+4194304),this.#h().set(new Uint8Array(e))}}}},288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={OPUS_OK:0,OPUS_BAD_ARG:-1,OPUS_BUFFER_TOO_SMALL:-2,OPUS_INTERNAL_ERROR:-3,OPUS_INVALID_PACKET:-4,OPUS_UNIMPLEMENTED:-5,OPUS_INVALID_STATE:-6," OPUS_ALLOC_FAIL":-7,OPUS_AUTO:-1e3,OPUS_BITRATE_MAX:-1,OPUS_APPLICATION_VOIP:2048,OPUS_APPLICATION_AUDIO:2049,OPUS_APPLICATION_RESTRICTED_LOWDELAY:2051,OPUS_SIGNAL_VOICE:3001,OPUS_SIGNAL_MUSIC:3002,OPUS_BANDWIDTH_NARROWBAND:1101,OPUS_BANDWIDTH_MEDIUMBAND:1102,OPUS_BANDWIDTH_WIDEBAND:1103,OPUS_BANDWIDTH_SUPERWIDEBAND:1104,OPUS_BANDWIDTH_FULLBAND:1105,OPUS_FRAMESIZE_ARG:5e3,OPUS_FRAMESIZE_2_5_MS:5001,OPUS_FRAMESIZE_5_MS:5002,OPUS_FRAMESIZE_10_MS:5003,OPUS_FRAMESIZE_20_MS:5004,OPUS_FRAMESIZE_40_MS:5005,OPUS_FRAMESIZE_60_MS:5006,OPUS_FRAMESIZE_80_MS:5007,OPUS_FRAMESIZE_100_MS:5008,OPUS_FRAMESIZE_120_MS:5009}},426:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.RingBuffer=t.Decoder=t.Encoder=void 0;var o=r(414);Object.defineProperty(t,"Encoder",{enumerable:!0,get:function(){return n(o).default}});var i=r(244);Object.defineProperty(t,"Decoder",{enumerable:!0,get:function(){return n(i).default}});var s=r(750);Object.defineProperty(t,"RingBuffer",{enumerable:!0,get:function(){return n(s).default}});var a=r(288);Object.defineProperty(t,"constants",{enumerable:!0,get:function(){return n(a).default}})},263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#E;#O;#o;constructor(e,t){this.#o=e,this.#O=t,this.#E=e.malloc(t)}offset(){return this.#E}data(){return this.#o.subarray(this.#E,this.#E+this.#O)}size(){return this.#O}destroy(){this.#o.free(this.#E),this.#E=0}}},877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#o;#E;constructor(e){this.#o=e,this.#E=e.malloc(e.originalRuntime()._size_of_int())}value(){if(4!==this.#o.originalRuntime()._size_of_int())throw new Error("invalid integer byte size");return this.#o.view().getInt32(this.#E,!0)}set(e){this.#o.view().setInt32(this.#E,e,!0)}size(){return this.#o.originalRuntime()._size_of_int()}offset(){return this.#E}destroy(){this.#o.free(this.#E),this.#E=0}}},577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#E;#o;constructor(e,t){this.#o=e,this.#E=e.malloc(e.originalRuntime()._size_of_void_ptr()),this.#o.view().setUint32(this.#E,t.offset(),!0)}offset(){return this.#E}destroy(){this.#o.free(this.#E)}value(){return this.#o.view().getUint32(this.#E,!0)}}},438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#m=new Set;constructor(){}add(e){this.#m.add(e)}destroy(){for(const e of this.#m)e.destroy()}}},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{#o;constructor(e){this.#o=e}originalRuntime(){return this.#o}subarray(e,t){return this.#o.HEAPU8.subarray(e,t)}free(e){this.#o._free(e)}view(){return new DataView(this.#o.HEAPU8.buffer)}malloc(e){const t=this.#o._malloc(e);if(!t)throw new Error(`failed to allocate ${e} bytes`);return t}}},704:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesHolder=t.Buffer=t.Runtime=t.Pointer=t.Integer=void 0;var o=r(877);Object.defineProperty(t,"Integer",{enumerable:!0,get:function(){return n(o).default}});var i=r(577);Object.defineProperty(t,"Pointer",{enumerable:!0,get:function(){return n(i).default}});var s=r(714);Object.defineProperty(t,"Runtime",{enumerable:!0,get:function(){return n(s).default}});var a=r(263);Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return n(a).default}});var u=r(438);Object.defineProperty(t,"ResourcesHolder",{enumerable:!0,get:function(){return n(u).default}})},977:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(426),i=r(910),s=n(r(827)),a=r(704),u=r(864),_=(0,s.default)({locateFile:()=>"/opus/index.wasm"}),d=new Map;onmessage=async e=>{const t=new a.Runtime(await _),r=e.data;switch(r.type){case i.RequestType.CreateEncoder:{const e=new o.Encoder(t,r.data.sampleRate,r.data.channels,r.data.application,r.data.outBufferLength,r.data.pcmBufferLength),n=crypto.getRandomValues(new Uint32Array(4)).join("-");d.set(n,{ringBuffer:new o.RingBuffer(r.data.pcmBufferLength/Float32Array.BYTES_PER_ELEMENT),encoder:e});const i={requestId:r.requestId,value:n};postMessage(i);break}case i.RequestType.DestroyEncoder:{const e=d.get(r.data);if(!e)throw new Error("Failed to get encoder");e.encoder.destroy(),d.delete(r.data);const t={requestId:r.requestId,value:r.data};postMessage(t);break}case i.RequestType.EncodeFloat:{const e=d.get(r.data.encoderId);if(!e)throw new Error("Failed to get encoder");e.ringBuffer.write(r.data.pcm);const t=e.ringBuffer.read(),n={requestId:r.requestId,value:{encoded:null}};if(null===t)return void postMessage(n);const o=e.encoder.encodeFloat(t,r.data.frameSize,r.data.maxDataBytes);n.value.encoded=new ArrayBuffer(o),new Uint8Array(n.value.encoded).set(e.encoder.encoded().subarray(0,o)),postMessage(n,[n.value.encoded]);break}case i.RequestType.OpusSetRequest:{const e=d.get(r.data.encoderId),t=e?.encoder?{value:(0,u.setToEncoder)(e.encoder,r.data),requestId:r.requestId}:{requestId:r.requestId,failures:[`no encoder found for: ${r.data.encoderId}`]};postMessage(t);break}case i.RequestType.OpusGetRequest:{const e=d.get(r.data.encoderId),t=e?.encoder?{value:(0,u.getFromEncoder)(e.encoder,r.data),requestId:r.requestId}:{requestId:r.requestId,failures:[`no encoder found for: ${r.data.encoderId}`]};postMessage(t);break}}}},864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFromEncoder=t.setToEncoder=void 0;const n=r(215);t.setToEncoder=function(e,t){let r;switch(t.type){case n.OpusRequest.SetComplexity:r=e.setComplexity(t.value);break;case n.OpusRequest.SetBitrate:r=e.setBitrate(t.value);break;case n.OpusRequest.SetVbr:r=e.setVbr(t.value);break;case n.OpusRequest.SetVbrConstraint:r=e.setVbrConstraint(t.value);break;case n.OpusRequest.SetForceChannels:r=e.setForceChannels(t.value);break;case n.OpusRequest.SetMaxBandwidth:r=e.setMaxBandwidth(t.value);break;case n.OpusRequest.SetBandwidth:r=e.setBandwidth(t.value);break;case n.OpusRequest.SetSignal:r=e.setSignal(t.value);break;case n.OpusRequest.SetApplication:r=e.setApplication(t.value);break;case n.OpusRequest.SetInbandFec:r=e.setInbandFec(t.value);break;case n.OpusRequest.SetPacketLossperc:r=e.setPacketLossperc(t.value);break;case n.OpusRequest.SetDtx:r=e.setDtx(t.value);break;case n.OpusRequest.SetLsbDepth:r=e.setLsbDepth(t.value);break;case n.OpusRequest.SetExpertFrameduration:r=e.setExpertFrameduration(t.value);break;case n.OpusRequest.SetPredictionDisabled:r=e.setPredictionDisabled(t.value);break;case n.OpusRequest.SetPhaseInversiondisabled:r=e.setPhaseInversiondisabled(t.value);break;case n.OpusRequest.SetGain:r=e.setGain(t.value)}return r},t.getFromEncoder=function(e,t){let r;switch(t.type){case n.OpusRequest.GetComplexity:r=e.getComplexity();break;case n.OpusRequest.GetBitrate:r=e.getBitrate();break;case n.OpusRequest.GetVbr:r=e.getVbr();break;case n.OpusRequest.GetVbrConstraint:r=e.getVbrConstraint();break;case n.OpusRequest.GetForceChannels:r=e.getForceChannels();break;case n.OpusRequest.GetMaxBandwidth:r=e.getMaxBandwidth();break;case n.OpusRequest.GetSignal:r=e.getSignal();break;case n.OpusRequest.GetApplication:r=e.getApplication();break;case n.OpusRequest.GetLookahead:r=e.getLookahead();break;case n.OpusRequest.GetInbandFec:r=e.getInbandFec();break;case n.OpusRequest.GetPacketLossperc:r=e.getPacketLossperc();break;case n.OpusRequest.GetDtx:r=e.getDtx();break;case n.OpusRequest.GetLsbDepth:r=e.getLsbDepth();break;case n.OpusRequest.GetExpertFrameduration:r=e.getExpertFrameduration();break;case n.OpusRequest.GetPredictionDisabled:r=e.getPredictionDisabled();break;case n.OpusRequest.GetBandwidth:r=e.getBandwidth();break;case n.OpusRequest.GetSampleRate:r=e.getSampleRate();break;case n.OpusRequest.GetPhaseInversiondisabled:r=e.getPhaseInversiondisabled();break;case n.OpusRequest.GetInDtx:r=e.getInDtx();break;case n.OpusRequest.GetGain:r=e.getGain();break;case n.OpusRequest.GetLastPacketduration:r=e.getLastPacketduration();break;case n.OpusRequest.GetPitch:r=e.getPitch()}return r}},194:()=>{},472:()=>{}},t={};!function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(977)})();