"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6065],{16065:(e,t,n)=>{let r;n.r(t),n.d(t,{default:()=>p,initSync:()=>y,mel_spectrogram_db:()=>d});let i=0,o=null;function a(){return(null===o||0===o.byteLength)&&(o=new Uint8Array(r.memory.buffer)),o}let l="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},s="function"==typeof l.encodeInto?function(e,t){return l.encodeInto(e,t)}:function(e,t){let n=l.encode(e);return t.set(n),{read:e.length,written:n.length}},u=null;function c(){return(null===u||!0===u.buffer.detached||void 0===u.buffer.detached&&u.buffer!==r.memory.buffer)&&(u=new DataView(r.memory.buffer)),u}let f="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&f.decode();let b=null;function d(e,t,n,o,a,l,s,u,c){let f=function(e,t){let n=t(4*e.length,4)>>>0;return((null===b||0===b.byteLength)&&(b=new Float32Array(r.memory.buffer)),b).set(e,n/4),i=e.length,n}(t,r.__wbindgen_malloc),d=i;return r.mel_spectrogram_db(e,f,d,n,o,a,l,s,u,c)}async function g(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"!=e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function w(){let e={};return e.wbg={},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_set_37837023f3d740e8=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_debug_string=function(e,t){let n=function(e,t,n){if(void 0===n){let n=l.encode(e),r=t(n.length,1)>>>0;return a().subarray(r,r+n.length).set(n),i=n.length,r}let r=e.length,o=t(r,1)>>>0,u=a(),c=0;for(;c<r;c++){let t=e.charCodeAt(c);if(t>127)break;u[o+c]=t}if(c!==r){0!==c&&(e=e.slice(c)),o=n(o,r,r=c+3*e.length,1)>>>0;let t=s(e,a().subarray(o+c,o+r));c+=t.written,o=n(o,r,c,1)>>>0}return i=c,o}(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;c().setInt32(e+4,o,!0),c().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=r.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_throw=function(e,t){var n;throw Error((n=e>>>0,f.decode(a().subarray(n,n+t))))},e}function _(e,t){return r=e.exports,m.__wbindgen_wasm_module=t,u=null,b=null,o=null,r.__wbindgen_start(),r}function y(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=w();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),_(new WebAssembly.Instance(e,t),e)}async function m(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new n.U(n(51949)));let t=w();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await g(await e,t);return _(i,o)}let p=m},51949:(e,t,n)=>{e.exports=n.p+"static/media/rust_melspec_wasm_bg.e056390a.wasm"}}]);