Spaces:
Running
Running
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[398],{4208:function(e,t,r){"use strict";let n,i,o;r.d(t,{Z:function(){return J}});let _=(e,t)=>t.some(t=>e instanceof t),u=new WeakMap,a=new WeakMap,c=new WeakMap,s=new WeakMap,f=new WeakMap,b={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return g(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function g(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(g(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&u.set(t,e)}).catch(()=>{}),f.set(t,e),t}(e);if(s.has(e))return s.get(e);let r="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(l(this),e),g(u.get(this))}:function(...e){return g(t.apply(l(this),e))}:function(e,...r){let n=t.call(l(this),e,...r);return c.set(n,e.sort?e.sort():[e]),g(n)}:(t instanceof IDBTransaction&&function(e){if(a.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});a.set(e,t)}(t),_(t,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,b):t;return r!==e&&(s.set(e,r),f.set(r,e)),r}let l=e=>f.get(e),d=["get","getKey","getAll","getAllKeys","count"],w=["put","add","delete","clear"],p=new Map;function h(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(p.get(t))return p.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=w.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||d.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),_=o.store;return n&&(_=_.index(t.shift())),(await Promise.all([_[r](...t),i&&o.done]))[0]};return p.set(t,o),o}b={...I=b,get:(e,t,r)=>h(e,t)||I.get(e,t,r),has:(e,t)=>!!h(e,t)||I.has(e,t)};let m=["continue","continuePrimaryKey","advance"],y={},x=new WeakMap,v=new WeakMap,B={get(e,t){if(!m.includes(t))return e[t];let r=y[t];return r||(r=y[t]=function(...e){x.set(this,v.get(this)[t](...e))}),r}};async function*S(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,B);for(v.set(r,t),f.set(r,l(t));t;)yield r,t=await (x.get(r)||t.continue()),x.delete(r)}function T(e,t){return t===Symbol.asyncIterator&&_(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&_(e,[IDBIndex,IDBObjectStore])}b={...k=b,get:(e,t,r)=>T(e,t)?S:k.get(e,t,r),has:(e,t)=>T(e,t)||k.has(e,t)};let E="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var I,k,D={randomUUID:E};let O=new Uint8Array(16);function P(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(O)}let C=[];for(let A=0;A<256;++A)C.push((A+256).toString(16).slice(1));var j=function(e,t,r){if(D.randomUUID&&!t&&!e)return D.randomUUID();e=e||{};let n=e.random||(e.rng||P)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return function(e,t=0){return C[e[t+0]]+C[e[t+1]]+C[e[t+2]]+C[e[t+3]]+"-"+C[e[t+4]]+C[e[t+5]]+"-"+C[e[t+6]]+C[e[t+7]]+"-"+C[e[t+8]]+C[e[t+9]]+"-"+C[e[t+10]]+C[e[t+11]]+C[e[t+12]]+C[e[t+13]]+C[e[t+14]]+C[e[t+15]]}(n)},M=r(9485),R=r(8032);let L=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]);class W extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}let G=(e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},U=e=>L.has(e),V=e=>void 0===globalThis.DOMException?Error(e):new DOMException(e);async function z(e,t){return new Promise((r,n)=>{t={onFailedAttempt(){},retries:10,...t};let i=R.operation(t);i.attempt(async o=>{try{r(await e(o))}catch(u){if(!(u instanceof Error)){n(TypeError(`Non-error was thrown: "${u}". You should only throw errors.`));return}if(u instanceof W)i.stop(),n(u.originalError);else if(u instanceof TypeError&&!U(u.message))i.stop(),n(u);else{G(u,o,t);try{await t.onFailedAttempt(u)}catch(_){n(_);return}i.retry(u)||n(i.mainError())}}}),t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",()=>{i.stop();let e=void 0===t.signal.reason?V("The operation was aborted."):t.signal.reason;n(e instanceof Error?e:V(e))},{once:!0})})}var N=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function _(e){try{a(n.next(e))}catch(t){o(t)}}function u(e){try{a(n.throw(e))}catch(t){o(t)}}function a(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(_,u)}a((n=n.apply(e,t||[])).next())})};class J{static create(){return N(this,void 0,void 0,function*(){let e=yield function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let _=indexedDB.open(e,1),u=g(_);return n&&_.addEventListener("upgradeneeded",e=>{n(g(_.result),e.oldVersion,e.newVersion,g(_.transaction),e)}),r&&_.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),u.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),u}("models",0,{upgrade(e){let t=e.createObjectStore("models");t.createIndex("modelID","modelID"),e.createObjectStore("availableModels");let r=e.createObjectStore("tokenizer");r.createIndex("modelID","modelID")}});return new J(e)})}fetchBytes(e,t){return N(this,void 0,void 0,function*(){let r=()=>N(this,void 0,void 0,function*(){let r=yield fetch(e);if(!r.ok)return M.x4.err(Error("Fetch failed: ".concat(r.status)));let n=+r.headers.get("Content-Length"),i=r.body.getReader(),o=0,_=new Uint8Array(n);for(;;){let{done:u,value:a}=yield i.read();if(u)break;_.set(a,o),o+=a.length,t&&t(o/n*100)}return M.x4.ok(_)});return yield z(r,{retries:3})})}_getModel(e){return N(this,void 0,void 0,function*(){if(!this.db)return M.x4.err(Error("ModelDB not initialized"));let t=this.db.transaction("models","readonly"),r=t.objectStore("models"),n=yield r.get(e);return n?M.x4.ok(n):M.x4.err(Error("Model not found"))})}getTokenizer(e){return N(this,void 0,void 0,function*(){if(!this.db)return M.x4.err(Error("ModelDB not initialized"));let t=yield this.db.getFromIndex("tokenizer","modelID",e);if(!t){let r=yield this.fetchBytes("https://huggingface.co/openai/whisper-large-v2/raw/main/tokenizer.json");if(r.isErr)return M.x4.err(r.error);let n=r.value;t={modelID:e,bytes:n},this.db.put("tokenizer",t,e),t=yield this.db.getFromIndex("tokenizer","modelID",e)}return M.x4.ok(t)})}getModel(e,t){return N(this,void 0,void 0,function*(){if(!this.db)return M.x4.err(Error("ModelDB not initialized"));let r=yield this.db.get("availableModels",e);return r||(yield this.fetchRemote(e,t),r=yield this.db.get("availableModels",e)),yield this._getModel(r)})}fetchRemote(e,t){return N(this,void 0,void 0,function*(){let r="".concat(this.remoteUrl,"/whisper-turbo/").concat(e,"-q8g16.bin"),n=yield this.fetchBytes(r,t);if(n.isErr)return M.x4.err(n.error);let i=n.value,o=j();return this.db.put("availableModels",o,e),this.db.put("models",{name:e,ID:o,bytes:i},o),this.getTokenizer(o),M.x4.ok(void 0)})}constructor(e){this.remoteUrl="https://rmbl.us",this.db=e}}},8032:function(e,t,r){e.exports=r(4215)},4215:function(e,t,r){var n=r(5310);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(e,t){return e-t}),n},t.createTimeout=function(e,t){return Math.min(Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e)),t.maxTimeout)},t.wrap=function(e,r,n){if(r instanceof Array&&(n=r,r=null),!n)for(var i in n=[],e)"function"==typeof e[i]&&n.push(i);for(var o=0;o<n.length;o++){var _=n[o],u=e[_];e[_]=(function(n){var i=t.operation(r),o=Array.prototype.slice.call(arguments,1),_=o.pop();o.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),_.apply(this,arguments))}),i.attempt(function(){n.apply(e,o)})}).bind(e,u),e[_].options=r}}},5310:function(e){function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1)}var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,_=(e[o]||0)+1;e[o]=_,_>=r&&(t=i,r=_)}return t}},8054:function(e,t,r){"use strict";let n;r.d(t,{hE:function(){return T}}),e=r.hmd(e);let i=Array(128).fill(void 0);i.push(void 0,null,!0,!1);let o=i.length;function _(e){let t=i[e];return e<132||(i[e]=o,o=e),t}let u="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&u.decode();let a=null;function c(){return(null===a||0===a.byteLength)&&(a=new Uint8Array(n.memory.buffer)),a}function s(e,t){return e>>>=0,u.decode(c().subarray(e,e+t))}function f(e){o===i.length&&i.push(i.length+1);let t=o;return o=i[t],i[t]=e,t}let b=0,g="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof g.encodeInto?function(e,t){return g.encodeInto(e,t)}:function(e,t){let r=g.encode(e);return t.set(r),{read:e.length,written:r.length}};function d(e,t,r){if(void 0===r){let n=g.encode(e),i=t(n.length,1)>>>0;return c().subarray(i,i+n.length).set(n),b=n.length,i}let o=e.length,_=t(o,1)>>>0,u=c(),a=0;for(;a<o;a++){let s=e.charCodeAt(a);if(s>127)break;u[_+a]=s}if(a!==o){0!==a&&(e=e.slice(a)),_=r(_,o,o=a+3*e.length,1)>>>0;let f=c().subarray(_+a,_+o),d=l(e,f);a+=d.written}return b=a,_}let w=null;function p(){return(null===w||0===w.byteLength)&&(w=new Int32Array(n.memory.buffer)),w}function h(e,t,r,i){let o={a:e,b:t,cnt:1,dtor:r},_=(...e)=>{o.cnt++;let t=o.a;o.a=0;try{return i(t,o.b,...e)}finally{0==--o.cnt?n.__wbindgen_export_2.get(o.dtor)(t,o.b):o.a=t}};return _.original=o,_}function m(e,t,r){n.__wbindgen_export_3(e,t,f(r))}function y(e,t){let r=t(1*e.length,1)>>>0;return c().set(e,r/1),b=e.length,r}function x(e,t){try{return e.apply(this,t)}catch(r){n.__wbindgen_export_5(f(r))}}let v=null;function B(e,t){return e>>>=0,((null===v||0===v.byteLength)&&(v=new Uint32Array(n.memory.buffer)),v).subarray(e/4,e/4+t)}class S{static __wrap(e){e>>>=0;let t=Object.create(S.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){let e=this.__destroy_into_raw();n.__wbg_session_free(e)}run(e){let t=y(e,n.__wbindgen_export_0),r=b,i=n.session_run(this.__wbg_ptr,t,r);return _(i)}stream(e,t,r){let i=y(e,n.__wbindgen_export_0),o=b,u=n.session_stream(this.__wbg_ptr,i,o,t,f(r));return _(u)}}class T{static __wrap(e){e>>>=0;let t=Object.create(T.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){let e=this.__destroy_into_raw();n.__wbg_sessionbuilder_free(e)}constructor(){let e=n.sessionbuilder_new();return T.__wrap(e)}setTokenizer(e){let t=this.__destroy_into_raw(),r=y(e,n.__wbindgen_export_0),i=b,o=n.sessionbuilder_setTokenizer(t,r,i);return T.__wrap(o)}setModel(e){let t=this.__destroy_into_raw(),r=y(e,n.__wbindgen_export_0),i=b,o=n.sessionbuilder_setModel(t,r,i);return T.__wrap(o)}build(){let e=this.__destroy_into_raw(),t=n.sessionbuilder_build(e);return _(t)}}class E{static __wrap(e){e>>>=0;let t=Object.create(E.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){let e=this.__destroy_into_raw();n.__wbg_sessionerror_free(e)}static new(e){let t=d(e,n.__wbindgen_export_0,n.__wbindgen_export_1),r=b,i=n.sessionerror_new(t,r);return E.__wrap(i)}toString(){let e,t;try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.sessionerror_toString(r,this.__wbg_ptr);var i=p()[r/4+0],o=p()[r/4+1];return e=i,t=o,s(i,o)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export_4(e,t,1)}}}async function I(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){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",r);else throw r}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}async function k(t){if(void 0!==n)return n;void 0===t&&(t=new r.U(r(5178)));let o=function(){let t={};return t.wbg={},t.wbg.__wbg_Window_17fd8eee712535f9=function(e){let t=i[e].Window;return f(t)},t.wbg.__wbindgen_is_undefined=function(e){let t=void 0===i[e];return t},t.wbg.__wbindgen_object_drop_ref=function(e){_(e)},t.wbg.__wbg_WorkerGlobalScope_f93b9996824ad878=function(e){let t=i[e].WorkerGlobalScope;return f(t)},t.wbg.__wbg_navigator_7c9103698acde322=function(e){let t=i[e].navigator;return f(t)},t.wbg.__wbg_gpu_24536c9523d924b1=function(e){let t=i[e].gpu;return f(t)},t.wbg.__wbg_navigator_41bd88b80ed4685e=function(e){let t=i[e].navigator;return f(t)},t.wbg.__wbg_gpu_1678673f109c8aeb=function(e){let t=i[e].gpu;return f(t)},t.wbg.__wbg_session_new=function(e){let t=S.__wrap(e);return f(t)},t.wbg.__wbg_call_01734de55d61e11d=function(){return x(function(e,t,r){let n=i[e].call(i[t],i[r]);return f(n)},arguments)},t.wbg.__wbg_new_b51585de1b234aff=function(){return f({})},t.wbg.__wbg_new_898a68150f225f2e=function(){return f([])},t.wbg.__wbg_set_502d29070ea18557=function(e,t,r){i[e][t>>>0]=_(r)},t.wbg.__wbg_set_20cbc34131e76824=function(e,t,r){i[e][_(t)]=_(r)},t.wbg.__wbg_sessionerror_new=function(e){let t=E.__wrap(e);return f(t)},t.wbg.__wbg_new_43f1b47c28813cbd=function(e,t){try{var r={a:e,b:t},i=(e,t)=>{let i=r.a;r.a=0;try{var o;return o=r.b,void n.__wbindgen_export_6(i,o,f(e),f(t))}finally{r.a=i}};let o=new Promise(i);return f(o)}finally{r.a=r.b=0}},t.wbg.__wbindgen_string_new=function(e,t){let r=s(e,t);return f(r)},t.wbg.__wbindgen_number_new=function(e){return f(e)},t.wbg.__wbg_new_abda76e883ba8a5f=function(){let e=Error();return f(e)},t.wbg.__wbg_stack_658279fe44541cf6=function(e,t){let r=i[t].stack,o=d(r,n.__wbindgen_export_0,n.__wbindgen_export_1),_=b;p()[e/4+1]=_,p()[e/4+0]=o},t.wbg.__wbg_error_f851667af71bcfc6=function(e,t){let r,i;try{r=e,i=t,console.error(s(e,t))}finally{n.__wbindgen_export_4(r,i,1)}},t.wbg.__wbg_crypto_c48a774b022d20ac=function(e){let t=i[e].crypto;return f(t)},t.wbg.__wbindgen_is_object=function(e){let t=i[e];return"object"==typeof t&&null!==t},t.wbg.__wbg_process_298734cf255a885d=function(e){let t=i[e].process;return f(t)},t.wbg.__wbg_versions_e2e78e134e3e5d01=function(e){let t=i[e].versions;return f(t)},t.wbg.__wbg_node_1cd7a5d853dbea79=function(e){let t=i[e].node;return f(t)},t.wbg.__wbindgen_is_string=function(e){let t="string"==typeof i[e];return t},t.wbg.__wbg_msCrypto_bcb970640f50a1e8=function(e){let t=i[e].msCrypto;return f(t)},t.wbg.__wbg_newwithlength_e5d69174d6984cd7=function(e){let t=new Uint8Array(e>>>0);return f(t)},t.wbg.__wbg_require_8f08ceecec0f4fee=function(){return x(function(){let t=e.require;return f(t)},arguments)},t.wbg.__wbindgen_is_function=function(e){let t="function"==typeof i[e];return t},t.wbg.__wbindgen_memory=function(){let e=n.memory;return f(e)},t.wbg.__wbg_buffer_085ec1f694018c4f=function(e){let t=i[e].buffer;return f(t)},t.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa=function(e,t,r){let n=new Uint8Array(i[e],t>>>0,r>>>0);return f(n)},t.wbg.__wbg_randomFillSync_dc1e9a60c158336d=function(){return x(function(e,t){i[e].randomFillSync(_(t))},arguments)},t.wbg.__wbg_subarray_13db269f57aa838d=function(e,t,r){let n=i[e].subarray(t>>>0,r>>>0);return f(n)},t.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab=function(){return x(function(e,t){i[e].getRandomValues(i[t])},arguments)},t.wbg.__wbg_new_8125e318e6245eed=function(e){let t=new Uint8Array(i[e]);return f(t)},t.wbg.__wbg_set_5cf90238115182c3=function(e,t,r){i[e].set(i[t],r>>>0)},t.wbg.__wbg_get_97b561fb56f034b5=function(){return x(function(e,t){let r=Reflect.get(i[e],i[t]);return f(r)},arguments)},t.wbg.__wbg_now_0cfdc90c97d0c24b=function(e){let t=i[e].now();return t},t.wbg.__wbg_self_1ff1d729e9aae938=function(){return x(function(){let e=self.self;return f(e)},arguments)},t.wbg.__wbg_window_5f4faef6c12b79ec=function(){return x(function(){let e=window.window;return f(e)},arguments)},t.wbg.__wbg_globalThis_1d39714405582d3c=function(){return x(function(){let e=globalThis.globalThis;return f(e)},arguments)},t.wbg.__wbg_global_651f05c6a0944d1c=function(){return x(function(){let e=r.g.global;return f(e)},arguments)},t.wbg.__wbg_newnoargs_581967eacc0e2604=function(e,t){let r=Function(s(e,t));return f(r)},t.wbg.__wbg_call_cb65541d95d71282=function(){return x(function(e,t){let r=i[e].call(i[t]);return f(r)},arguments)},t.wbg.__wbindgen_object_clone_ref=function(e){let t=i[e];return f(t)},t.wbg.__wbindgen_debug_string=function(e,t){let r=function e(t){let r;let n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){let i=t.description;return null==i?"Symbol":`Symbol(${i})`}if("function"==n){let o=t.name;return"string"==typeof o&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){let _=t.length,u="[";_>0&&(u+=e(t[0]));for(let a=1;a<_;a++)u+=", "+e(t[a]);return u+"]"}let c=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!(c.length>1))return toString.call(t);if("Object"==(r=c[1]))try{return"Object("+JSON.stringify(t)+")"}catch(s){return"Object"}return t instanceof Error?`${t.name}: ${t.message} | |
${t.stack}`:r}(i[t]),o=d(r,n.__wbindgen_export_0,n.__wbindgen_export_1),_=b;p()[e/4+1]=_,p()[e/4+0]=o},t.wbg.__wbindgen_throw=function(e,t){throw Error(s(e,t))},t.wbg.__wbg_then_b2267541e2a73865=function(e,t,r){let n=i[e].then(i[t],i[r]);return f(n)},t.wbg.__wbindgen_cb_drop=function(e){let t=_(e).original;return 1==t.cnt--&&(t.a=0,!0)},t.wbg.__wbg_resolve_53698b95aaf7fcf8=function(e){let t=Promise.resolve(i[e]);return f(t)},t.wbg.__wbg_then_f7e06ee3c11698eb=function(e,t){let r=i[e].then(i[t]);return f(r)},t.wbg.__wbg_set_092e06b0f9d71865=function(){return x(function(e,t,r){let n=Reflect.set(i[e],i[t],i[r]);return n},arguments)},t.wbg.__wbg_debug_9a6b3243fbbebb61=function(e){console.debug(i[e])},t.wbg.__wbg_error_788ae33f81d3b84b=function(e){console.error(i[e])},t.wbg.__wbg_info_2e30e8204b29d91d=function(e){console.info(i[e])},t.wbg.__wbg_log_1d3ae0273d8f4f8a=function(e){console.log(i[e])},t.wbg.__wbg_warn_d60e832f9882c1b2=function(e){console.warn(i[e])},t.wbg.__wbg_performance_e5eb61626698b7a4=function(e){let t=i[e].performance;return f(t)},t.wbg.__wbg_now_928014da6271b17c=function(e){let t=i[e].now();return t},t.wbg.__wbg_instanceof_GpuAdapter_c0a5a310603ba618=function(e){let t;try{t=i[e]instanceof GPUAdapter}catch{t=!1}let r=t;return r},t.wbg.__wbg_queue_f2aeb5c277e56f93=function(e){let t=i[e].queue;return f(t)},t.wbg.__wbindgen_string_get=function(e,t){let r=i[t],o="string"==typeof r?r:void 0;var _=null==o?0:d(o,n.__wbindgen_export_0,n.__wbindgen_export_1),u=b;p()[e/4+1]=u,p()[e/4+0]=_},t.wbg.__wbg_has_8720889cf3ad610c=function(e,t,r){let n=i[e].has(s(t,r));return n},t.wbg.__wbg_maxTextureDimension1D_4d1ddb46ed9dc470=function(e){let t=i[e].maxTextureDimension1D;return t},t.wbg.__wbg_maxTextureDimension2D_37a46e61490c8297=function(e){let t=i[e].maxTextureDimension2D;return t},t.wbg.__wbg_maxTextureDimension3D_7e3a97204d211743=function(e){let t=i[e].maxTextureDimension3D;return t},t.wbg.__wbg_maxTextureArrayLayers_fee4db585706a5eb=function(e){let t=i[e].maxTextureArrayLayers;return t},t.wbg.__wbg_maxBindGroups_dc8a5f97ba653c91=function(e){let t=i[e].maxBindGroups;return t},t.wbg.__wbg_maxBindingsPerBindGroup_3d5ab311420be5df=function(e){let t=i[e].maxBindingsPerBindGroup;return t},t.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_6b839b7dc97f34f0=function(e){let t=i[e].maxDynamicUniformBuffersPerPipelineLayout;return t},t.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_5328cd2b9d884831=function(e){let t=i[e].maxDynamicStorageBuffersPerPipelineLayout;return t},t.wbg.__wbg_maxSampledTexturesPerShaderStage_ac006b00cf776b4a=function(e){let t=i[e].maxSampledTexturesPerShaderStage;return t},t.wbg.__wbg_maxSamplersPerShaderStage_dc092d6a272be20a=function(e){let t=i[e].maxSamplersPerShaderStage;return t},t.wbg.__wbg_maxStorageBuffersPerShaderStage_dc5b58734b9ab932=function(e){let t=i[e].maxStorageBuffersPerShaderStage;return t},t.wbg.__wbg_maxStorageTexturesPerShaderStage_2fec939cb0d5bbfd=function(e){let t=i[e].maxStorageTexturesPerShaderStage;return t},t.wbg.__wbg_maxUniformBuffersPerShaderStage_b30d53cbf89caeae=function(e){let t=i[e].maxUniformBuffersPerShaderStage;return t},t.wbg.__wbg_maxUniformBufferBindingSize_eec576e1342504b5=function(e){let t=i[e].maxUniformBufferBindingSize;return t},t.wbg.__wbg_maxStorageBufferBindingSize_1ef0cc5e43dad09b=function(e){let t=i[e].maxStorageBufferBindingSize;return t},t.wbg.__wbg_maxVertexBuffers_b4d31be9e3f93990=function(e){let t=i[e].maxVertexBuffers;return t},t.wbg.__wbg_maxBufferSize_2d8398a691b9a8ce=function(e){let t=i[e].maxBufferSize;return t},t.wbg.__wbg_maxVertexAttributes_904c5eb19a6f6c65=function(e){let t=i[e].maxVertexAttributes;return t},t.wbg.__wbg_maxVertexBufferArrayStride_6800975c373d83bc=function(e){let t=i[e].maxVertexBufferArrayStride;return t},t.wbg.__wbg_minUniformBufferOffsetAlignment_3af8c32faa30c5d8=function(e){let t=i[e].minUniformBufferOffsetAlignment;return t},t.wbg.__wbg_minStorageBufferOffsetAlignment_766ef8ea8f9fe6e1=function(e){let t=i[e].minStorageBufferOffsetAlignment;return t},t.wbg.__wbg_maxInterStageShaderComponents_b9f179b1cde06d08=function(e){let t=i[e].maxInterStageShaderComponents;return t},t.wbg.__wbg_maxComputeWorkgroupStorageSize_9318e498283b79fb=function(e){let t=i[e].maxComputeWorkgroupStorageSize;return t},t.wbg.__wbg_maxComputeInvocationsPerWorkgroup_2bfea723194ac5a0=function(e){let t=i[e].maxComputeInvocationsPerWorkgroup;return t},t.wbg.__wbg_maxComputeWorkgroupSizeX_91fc9ba04de4148f=function(e){let t=i[e].maxComputeWorkgroupSizeX;return t},t.wbg.__wbg_maxComputeWorkgroupSizeY_9052627dce4a7d1f=function(e){let t=i[e].maxComputeWorkgroupSizeY;return t},t.wbg.__wbg_maxComputeWorkgroupSizeZ_45a1a82f8446a750=function(e){let t=i[e].maxComputeWorkgroupSizeZ;return t},t.wbg.__wbg_maxComputeWorkgroupsPerDimension_100ee7392cc04c20=function(e){let t=i[e].maxComputeWorkgroupsPerDimension;return t},t.wbg.__wbg_push_ca1c26067ef907ac=function(e,t){let r=i[e].push(i[t]);return r},t.wbg.__wbg_createRenderPipeline_745f00bcb1ca6edf=function(e,t){let r=i[e].createRenderPipeline(i[t]);return f(r)},t.wbg.__wbg_error_f85e77a2651e41dc=function(e){let t=i[e].error;return f(t)},t.wbg.__wbg_valueOf_cefb0eb7807e83fb=function(e){let t=i[e].valueOf();return f(t)},t.wbg.__wbg_instanceof_GpuValidationError_af2aa2e306669317=function(e){let t;try{t=i[e]instanceof GPUValidationError}catch{t=!1}let r=t;return r},t.wbg.__wbg_message_c934153af8567cdb=function(e,t){let r=i[t].message,o=d(r,n.__wbindgen_export_0,n.__wbindgen_export_1),_=b;p()[e/4+1]=_,p()[e/4+0]=o},t.wbg.__wbg_instanceof_GpuOutOfMemoryError_45166ef4e2774fbe=function(e){let t;try{t=i[e]instanceof GPUOutOfMemoryError}catch{t=!1}let r=t;return r},t.wbg.__wbg_instanceof_Object_3daa8298c86298be=function(e){let t;try{t=i[e]instanceof Object}catch{t=!1}let r=t;return r},t.wbg.__wbg_buffer_f5b7059c439f330d=function(e){let t=i[e].buffer;return f(t)},t.wbg.__wbg_writeBuffer_becf0c8f0323ffd7=function(e,t,r,n,o,_){i[e].writeBuffer(i[t],r,i[n],o,_)},t.wbg.__wbg_instanceof_Window_9029196b662bc42a=function(e){let t;try{t=i[e]instanceof Window}catch{t=!1}let r=t;return r},t.wbg.__wbg_document_f7ace2b956f30a4f=function(e){let t=i[e].document;return null==t?0:f(t)},t.wbg.__wbg_querySelectorAll_c03e8664a5a0f0c5=function(){return x(function(e,t,r){let n=i[e].querySelectorAll(s(t,r));return f(n)},arguments)},t.wbg.__wbg_get_c77649dd3862b63a=function(e,t){let r=i[e][t>>>0];return null==r?0:f(r)},t.wbg.__wbg_getContext_7c5944ea807bf5d3=function(){return x(function(e,t,r){let n=i[e].getContext(s(t,r));return null==n?0:f(n)},arguments)},t.wbg.__wbg_instanceof_GpuCanvasContext_7a77e275c38d41d8=function(e){let t;try{t=i[e]instanceof GPUCanvasContext}catch{t=!1}let r=t;return r},t.wbg.__wbg_requestAdapter_d8298d7a27a391f0=function(e,t){let r=i[e].requestAdapter(i[t]);return f(r)},t.wbg.__wbg_requestDevice_068e794820eb88eb=function(e,t){let r=i[e].requestDevice(i[t]);return f(r)},t.wbg.__wbg_features_88901f43932fb28e=function(e){let t=i[e].features;return f(t)},t.wbg.__wbg_limits_a7f3fbf58768b61f=function(e){let t=i[e].limits;return f(t)},t.wbg.__wbg_getPreferredCanvasFormat_1f6c9ef810196b92=function(e){let t=i[e].getPreferredCanvasFormat();return f(t)},t.wbg.__wbg_setwidth_a667a942dba6656e=function(e,t){i[e].width=t>>>0},t.wbg.__wbg_setheight_a747d440760fe5aa=function(e,t){i[e].height=t>>>0},t.wbg.__wbg_setwidth_15266a5e81f43cf0=function(e,t){i[e].width=t>>>0},t.wbg.__wbg_setheight_2e9bab573f1775a6=function(e,t){i[e].height=t>>>0},t.wbg.__wbg_configure_93a57a4e5e0f8bcf=function(e,t){i[e].configure(i[t])},t.wbg.__wbg_getCurrentTexture_ecedc4f6f71990d2=function(e){let t=i[e].getCurrentTexture();return f(t)},t.wbg.__wbg_features_dfb2178c91fa1dd7=function(e){let t=i[e].features;return f(t)},t.wbg.__wbg_limits_45ceb777867eb768=function(e){let t=i[e].limits;return f(t)},t.wbg.__wbg_createShaderModule_59bbf537b8b5cf7c=function(e,t){let r=i[e].createShaderModule(i[t]);return f(r)},t.wbg.__wbg_createBindGroupLayout_af3b9d9ee0a1f5f9=function(e,t){let r=i[e].createBindGroupLayout(i[t]);return f(r)},t.wbg.__wbg_createBindGroup_fa5515d52f9c6a69=function(e,t){let r=i[e].createBindGroup(i[t]);return f(r)},t.wbg.__wbg_createPipelineLayout_1e10c8281fb85c01=function(e,t){let r=i[e].createPipelineLayout(i[t]);return f(r)},t.wbg.__wbg_createComputePipeline_89131452dfd12672=function(e,t){let r=i[e].createComputePipeline(i[t]);return f(r)},t.wbg.__wbg_createBuffer_36e159f52cc644a7=function(e,t){let r=i[e].createBuffer(i[t]);return f(r)},t.wbg.__wbg_createTexture_dbd00b550944125c=function(e,t){let r=i[e].createTexture(i[t]);return f(r)},t.wbg.__wbg_createSampler_09cd36835c9befb3=function(e,t){let r=i[e].createSampler(i[t]);return f(r)},t.wbg.__wbg_createQuerySet_ccb746122176f8e5=function(e,t){let r=i[e].createQuerySet(i[t]);return f(r)},t.wbg.__wbg_createCommandEncoder_a50a1dab2b499b95=function(e,t){let r=i[e].createCommandEncoder(i[t]);return f(r)},t.wbg.__wbg_createRenderBundleEncoder_ad2d0237f581427b=function(e,t){let r=i[e].createRenderBundleEncoder(i[t]);return f(r)},t.wbg.__wbg_setonuncapturederror_b3c814f611d5e585=function(e,t){i[e].onuncapturederror=i[t]},t.wbg.__wbg_pushErrorScope_0728aae3f2d3ed48=function(e,t){i[e].pushErrorScope(_(t))},t.wbg.__wbg_popErrorScope_19075fb98a08b740=function(e){let t=i[e].popErrorScope();return f(t)},t.wbg.__wbg_mapAsync_91acdcf41b7ae21d=function(e,t,r,n){let o=i[e].mapAsync(t>>>0,r,n);return f(o)},t.wbg.__wbg_getMappedRange_becef7e3d9dc5489=function(e,t,r){let n=i[e].getMappedRange(t,r);return f(n)},t.wbg.__wbg_length_72e2208bbc0efc61=function(e){let t=i[e].length;return t},t.wbg.__wbg_unmap_1677c09514e08e64=function(e){i[e].unmap()},t.wbg.__wbg_createView_3e46af1f54fdcd1f=function(e,t){let r=i[e].createView(i[t]);return f(r)},t.wbg.__wbg_destroy_9b5398e5b148e210=function(e){i[e].destroy()},t.wbg.__wbg_destroy_728f676d96e34538=function(e){i[e].destroy()},t.wbg.__wbg_getBindGroupLayout_20dc45d52b96fa42=function(e,t){let r=i[e].getBindGroupLayout(t>>>0);return f(r)},t.wbg.__wbg_getBindGroupLayout_dfc1b97f78c04beb=function(e,t){let r=i[e].getBindGroupLayout(t>>>0);return f(r)},t.wbg.__wbg_copyBufferToBuffer_79ac12f409453cf0=function(e,t,r,n,o,_){i[e].copyBufferToBuffer(i[t],r,i[n],o,_)},t.wbg.__wbg_copyBufferToTexture_ac956e6d47c24e73=function(e,t,r,n){i[e].copyBufferToTexture(i[t],i[r],i[n])},t.wbg.__wbg_copyTextureToBuffer_787ec8d8c4c216f1=function(e,t,r,n){i[e].copyTextureToBuffer(i[t],i[r],i[n])},t.wbg.__wbg_copyTextureToTexture_a86e849469b0ef38=function(e,t,r,n){i[e].copyTextureToTexture(i[t],i[r],i[n])},t.wbg.__wbg_beginComputePass_579a2563c561da68=function(e,t){let r=i[e].beginComputePass(i[t]);return f(r)},t.wbg.__wbg_end_dab719019df5969c=function(e){i[e].end()},t.wbg.__wbg_beginRenderPass_d04327f7231bd5af=function(e,t){let r=i[e].beginRenderPass(i[t]);return f(r)},t.wbg.__wbg_end_bdfb66792e0c59a2=function(e){i[e].end()},t.wbg.__wbg_label_c7970304720cf8b0=function(e,t){let r=i[t].label,o=d(r,n.__wbindgen_export_0,n.__wbindgen_export_1),_=b;p()[e/4+1]=_,p()[e/4+0]=o},t.wbg.__wbg_finish_d1049a13335e8326=function(e,t){let r=i[e].finish(i[t]);return f(r)},t.wbg.__wbg_finish_5153789564a5eee5=function(e){let t=i[e].finish();return f(t)},t.wbg.__wbg_clearBuffer_c370e7adb8398388=function(e,t,r){i[e].clearBuffer(i[t],r)},t.wbg.__wbg_clearBuffer_b8e6751290709d43=function(e,t,r,n){i[e].clearBuffer(i[t],r,n)},t.wbg.__wbg_writeTimestamp_107647519ce52436=function(e,t,r){i[e].writeTimestamp(i[t],r>>>0)},t.wbg.__wbg_resolveQuerySet_8ac49c71e15cdf6a=function(e,t,r,n,o,_){i[e].resolveQuerySet(i[t],r>>>0,n>>>0,i[o],_>>>0)},t.wbg.__wbg_finish_863657abae52896e=function(e){let t=i[e].finish();return f(t)},t.wbg.__wbg_finish_e580ef236d53f04b=function(e,t){let r=i[e].finish(i[t]);return f(r)},t.wbg.__wbg_usage_f5b34f3e0170424b=function(e){let t=i[e].usage;return t},t.wbg.__wbg_size_6540ddb49e0d7120=function(e){let t=i[e].size;return t},t.wbg.__wbg_writeTexture_465ecc6146e5052c=function(e,t,r,n,o){i[e].writeTexture(i[t],i[r],i[n],i[o])},t.wbg.__wbg_copyExternalImageToTexture_819ec294d299f624=function(e,t,r,n){i[e].copyExternalImageToTexture(i[t],i[r],i[n])},t.wbg.__wbg_submit_3104e9b014f75846=function(e,t){i[e].submit(i[t])},t.wbg.__wbg_setPipeline_598117fdeb73cf8f=function(e,t){i[e].setPipeline(i[t])},t.wbg.__wbg_setBindGroup_c619f49c16ef095b=function(e,t,r){i[e].setBindGroup(t>>>0,i[r])},t.wbg.__wbg_setBindGroup_dffce83253968cdd=function(e,t,r,n,o,_,u){i[e].setBindGroup(t>>>0,i[r],B(n,o),_,u>>>0)},t.wbg.__wbg_dispatchWorkgroups_c484cd3530a3801d=function(e,t,r,n){i[e].dispatchWorkgroups(t>>>0,r>>>0,n>>>0)},t.wbg.__wbg_dispatchWorkgroupsIndirect_2b89ee1731fab5f8=function(e,t,r){i[e].dispatchWorkgroupsIndirect(i[t],r)},t.wbg.__wbg_setPipeline_66f1e900256fc946=function(e,t){i[e].setPipeline(i[t])},t.wbg.__wbg_setBindGroup_e6d2dd2ab3573b6d=function(e,t,r){i[e].setBindGroup(t>>>0,i[r])},t.wbg.__wbg_setBindGroup_6bc8944422dbb3cd=function(e,t,r,n,o,_,u){i[e].setBindGroup(t>>>0,i[r],B(n,o),_,u>>>0)},t.wbg.__wbg_setIndexBuffer_4dc5432dc348458d=function(e,t,r,n){i[e].setIndexBuffer(i[t],_(r),n)},t.wbg.__wbg_setIndexBuffer_f3bae4da9e407eaf=function(e,t,r,n,o){i[e].setIndexBuffer(i[t],_(r),n,o)},t.wbg.__wbg_setVertexBuffer_c782d133fd439184=function(e,t,r,n){i[e].setVertexBuffer(t>>>0,i[r],n)},t.wbg.__wbg_setVertexBuffer_4da0a96267ce82db=function(e,t,r,n,o){i[e].setVertexBuffer(t>>>0,i[r],n,o)},t.wbg.__wbg_draw_3958097471a10642=function(e,t,r,n,o){i[e].draw(t>>>0,r>>>0,n>>>0,o>>>0)},t.wbg.__wbg_drawIndexed_8856cc4ccffa3498=function(e,t,r,n,o,_){i[e].drawIndexed(t>>>0,r>>>0,n>>>0,o,_>>>0)},t.wbg.__wbg_drawIndirect_95c6eb1494a44d06=function(e,t,r){i[e].drawIndirect(i[t],r)},t.wbg.__wbg_drawIndexedIndirect_0404fa6cb9a6db25=function(e,t,r){i[e].drawIndexedIndirect(i[t],r)},t.wbg.__wbg_setPipeline_18ce556bdea62cc5=function(e,t){i[e].setPipeline(i[t])},t.wbg.__wbg_setBindGroup_ed098a3302f084a7=function(e,t,r){i[e].setBindGroup(t>>>0,i[r])},t.wbg.__wbg_setBindGroup_ce4432036922cd83=function(e,t,r,n,o,_,u){i[e].setBindGroup(t>>>0,i[r],B(n,o),_,u>>>0)},t.wbg.__wbg_setIndexBuffer_1f4a86d1cc8c16d9=function(e,t,r,n){i[e].setIndexBuffer(i[t],_(r),n)},t.wbg.__wbg_setIndexBuffer_9f8493460611f96b=function(e,t,r,n,o){i[e].setIndexBuffer(i[t],_(r),n,o)},t.wbg.__wbg_setVertexBuffer_2a2c84d65c1063f9=function(e,t,r,n){i[e].setVertexBuffer(t>>>0,i[r],n)},t.wbg.__wbg_setVertexBuffer_176c2dff823c42c1=function(e,t,r,n,o){i[e].setVertexBuffer(t>>>0,i[r],n,o)},t.wbg.__wbg_draw_6357a5fbc8a6b097=function(e,t,r,n,o){i[e].draw(t>>>0,r>>>0,n>>>0,o>>>0)},t.wbg.__wbg_drawIndexed_5d1dd89d7375148c=function(e,t,r,n,o,_){i[e].drawIndexed(t>>>0,r>>>0,n>>>0,o,_>>>0)},t.wbg.__wbg_drawIndirect_8dd595dc622e21ac=function(e,t,r){i[e].drawIndirect(i[t],r)},t.wbg.__wbg_drawIndexedIndirect_526599171cfbbee5=function(e,t,r){i[e].drawIndexedIndirect(i[t],r)},t.wbg.__wbg_setBlendConstant_e89574db5137b2f6=function(e,t){i[e].setBlendConstant(i[t])},t.wbg.__wbg_setScissorRect_0af8c89e90a6e89c=function(e,t,r,n,o){i[e].setScissorRect(t>>>0,r>>>0,n>>>0,o>>>0)},t.wbg.__wbg_setViewport_9c5fb686baf1cf4f=function(e,t,r,n,o,_,u){i[e].setViewport(t,r,n,o,_,u)},t.wbg.__wbg_setStencilReference_71be0db67db2f7ab=function(e,t){i[e].setStencilReference(t>>>0)},t.wbg.__wbg_executeBundles_0a1fdfd83c1a3e57=function(e,t){i[e].executeBundles(i[t])},t.wbg.__wbindgen_closure_wrapper4020=function(e,t,r){let n=h(e,t,255,m);return f(n)},t.wbg.__wbindgen_closure_wrapper5256=function(e,t,r){let n=h(e,t,255,m);return f(n)},t.wbg.__wbindgen_closure_wrapper5263=function(e,t,r){let n=h(e,t,255,m);return f(n)},t}();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:u,module:c}=await I(await t,o);return n=u.exports,k.__wbindgen_wasm_module=c,w=null,v=null,a=null,n.__wbindgen_start(),n}t.ZP=k},5178:function(e,t,r){"use strict";e.exports=r.p+"static/media/whisper-webgpu_bg.0c5e8b45.wasm"},2467:function(e,t,r){"use strict";r.d(t,{b_:function(){return i},nj:function(){return n},pv:function(){return o}});let n=e=>null==e;function i(e,t){return void 0!==t?e(t):e}function o(e){if("object"!=typeof e||null===e||!("toString"in e)||"function"!=typeof e.toString)return JSON.stringify(e);{let t=e.toString();return"string"==typeof t?t:JSON.stringify(e)}}},4826:function(e,t,r){"use strict";let n;var i=r(2467);let o={Just:"Just",Nothing:"Nothing"};class _{constructor(e){if((0,i.nj)(e))return n||(this.repr=[o.Nothing],n=this),n;this.repr=[o.Just,e]}static of(e){return new u(e)}static just(e){if((0,i.nj)(e))throw Error(`attempted to call "just" with ${e}`);return new u(e)}static nothing(e){return new _}get variant(){return this.repr[0]}get value(){if(this.repr[0]===o.Nothing)throw Error("Cannot get the value of `Nothing`");return this.repr[1]}get isJust(){return this.repr[0]===o.Just}get isNothing(){return this.repr[0]===o.Nothing}map(e){return"Just"===this.repr[0]?u.just(e(this.repr[1])):this}mapOr(e,t){return"Just"===this.repr[0]?t(this.repr[1]):e}mapOrElse(e,t){return"Just"===this.repr[0]?t(this.repr[1]):e()}match(e){return"Just"===this.repr[0]?e.Just(this.repr[1]):e.Nothing()}or(e){return"Just"===this.repr[0]?this:e}orElse(e){return"Just"===this.repr[0]?this:e()}and(e){return"Just"===this.repr[0]?e:this}andThen(e){return"Just"===this.repr[0]?e(this.repr[1]):this}unwrapOr(e){return"Just"===this.repr[0]?this.repr[1]:e}unwrapOrElse(e){return"Just"===this.repr[0]?this.repr[1]:e()}toString(){return"Just"===this.repr[0]?`Just(${(0,i.pv)(this.repr[1])})`:"Nothing"}toJSON(){let e=this.repr[0];if("Just"!==e)return{variant:e};{let t=this.repr[1]instanceof u?this.repr[1].toJSON():this.repr[1];return{variant:e,value:t}}}equals(e){return this.repr[0]===e.repr[0]&&this.repr[1]===e.repr[1]}ap(e){return e.andThen(e=>this.map(t=>t(e)))}get(e){return this.andThen(function(e,t){let r=t=>u.of(t[e]);return(0,i.b_)(r,void 0)}(e))}}_.just,_.nothing,_.of;let u=_},3807:function(e,t,r){"use strict";r.d(t,{x4:function(){return u}});var n=r(1866),i=r(2467);let o={Ok:"Ok",Err:"Err"};class _{constructor(e){this.repr=e}static ok(e){return new _((0,i.nj)(e)?["Ok",n.Z]:["Ok",e])}static err(e){return new _((0,i.nj)(e)?["Err",n.Z]:["Err",e])}get variant(){return this.repr[0]}get value(){if(this.repr[0]===o.Err)throw Error("Cannot get the value of Err");return this.repr[1]}get error(){if(this.repr[0]===o.Ok)throw Error("Cannot get the error of Ok");return this.repr[1]}get isOk(){return this.repr[0]===o.Ok}get isErr(){return this.repr[0]===o.Err}map(e){return"Ok"===this.repr[0]?u.ok(e(this.repr[1])):this}mapOr(e,t){return"Ok"===this.repr[0]?t(this.repr[1]):e}mapOrElse(e,t){return"Ok"===this.repr[0]?t(this.repr[1]):e(this.repr[1])}match(e){return"Ok"===this.repr[0]?e.Ok(this.repr[1]):e.Err(this.repr[1])}mapErr(e){return"Ok"===this.repr[0]?this:u.err(e(this.repr[1]))}or(e){return"Ok"===this.repr[0]?this:e}orElse(e){return"Ok"===this.repr[0]?this:e(this.repr[1])}and(e){return"Ok"===this.repr[0]?e:this}andThen(e){return"Ok"===this.repr[0]?e(this.repr[1]):this}unwrapOr(e){return"Ok"===this.repr[0]?this.repr[1]:e}unwrapOrElse(e){return"Ok"===this.repr[0]?this.repr[1]:e(this.repr[1])}toString(){return`${this.repr[0]}(${(0,i.pv)(this.repr[1])})`}toJSON(){let e=this.repr[0];return"Ok"===e?{variant:e,value:this.repr[1]}:{variant:e,error:this.repr[1]}}equals(e){return this.repr[0]===e.repr[0]&&this.repr[1]===e.repr[1]}ap(e){return e.andThen(e=>this.map(t=>t(e)))}}_.ok,_.err;let u=_},113:function(e,t,r){"use strict";r(3807),r(4826)},1866:function(e,t,r){"use strict";let n=Object.create(null);t.Z=n}}]); |