@wasm-oj/browser 0.2.0
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.
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/THIRD_PARTY_NOTICES.md +302 -0
- package/dist/assets/compiler.worker-DU-Lr3eI.js +180 -0
- package/dist/assets/go-stage.worker-vdeY8dkX.js +2 -0
- package/dist/assets/index-CMYYN-aK.mjs +11 -0
- package/dist/assets/java-stage.worker-DhjZdteI.js +21 -0
- package/dist/assets/python-stage.worker-Ow1WQHJQ.js +22 -0
- package/dist/assets/runner.worker-C3ED68L7.js +281 -0
- package/dist/assets/runtime-core_bg-CRl4ulxe.wasm +0 -0
- package/dist/assets/rustc-stage.worker-CBlcwm7K.js +22 -0
- package/dist/assets/wasmer-thread.worker-DKlJE3cb.js +17 -0
- package/dist/assets/wasmer_js_bg-lccPpAdN.wasm +0 -0
- package/dist/index.d.ts +230 -0
- package/dist/index.js +52 -0
- package/licenses/es-module-lexer-MIT.txt +10 -0
- package/licenses/fflate-MIT.txt +21 -0
- package/licenses/runtime-core-dependencies.html +6253 -0
- package/licenses/runtime-core-dependencies.json +3041 -0
- package/licenses/wasmer-sdk-MIT.txt +21 -0
- package/licenses/wasmer-sdk-dependencies.html +6901 -0
- package/licenses/wasmer-sdk-dependencies.json +3013 -0
- package/package.json +56 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @wasmer/sdk
|
|
3
|
+
* Wasmer Javascript SDK. It allows interacting with Wasmer Packages in Node.js and the Browser.
|
|
4
|
+
*
|
|
5
|
+
* @version v0.8.0
|
|
6
|
+
* @author Wasmer Engineering Team <engineering@wasmer.io>
|
|
7
|
+
* @homepage https://github.com/wasmerio/wasmer-js
|
|
8
|
+
* @repository git+https://github.com/wasmerio/wasmer-js.git
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
let e,t=null;function n(){return null!==t&&t.buffer===e.memory.buffer||(t=new Uint8Array(e.memory.buffer)),t}let _="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&_.decode();let r=0;function i(e,t){return function(e,t){return r+=t,r>=2146435072&&(_="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}},_.decode(),r=t),_.decode(n().slice(e,e+t))}(e>>>=0,t)}let o=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}};function a(e,t,_){if(void 0===_){const _=c.encode(e),r=t(_.length,1)>>>0;return n().subarray(r,r+_.length).set(_),o=_.length,r}let r=e.length,i=t(r,1)>>>0;const a=n();let b=0;for(;b<r;b++){const t=e.charCodeAt(b);if(t>127)break;a[i+b]=t}if(b!==r){0!==b&&(e=e.slice(b)),i=_(i,r,r=b+3*e.length,1)>>>0;const t=function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}}(e,n().subarray(i+b,i+r));b+=t.written,i=_(i,r,b,1)>>>0}return o=b,i}let b=null;function s(){return null!==b&&b.buffer===e.memory.buffer||(b=new DataView(e.memory.buffer)),b}function g(e){return null==e}function w(t){const n=e.__externref_table_alloc();return e.__wbindgen_export_5.set(n,t),n}function u(t,n){try{return t.apply(this,n)}catch(t){const n=w(t);e.__wbindgen_exn_store(n)}}function f(e,t){return e>>>=0,n().subarray(e/1,e/1+t)}const d="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>{e.__wbindgen_export_6.get(t.dtor)(t.a,t.b)}));function l(t,n,_,r){const i={a:t,b:n,cnt:1,dtor:_},o=(...t)=>{i.cnt++;const n=i.a;i.a=0;try{return r(n,i.b,...t)}finally{0==--i.cnt?(e.__wbindgen_export_6.get(i.dtor)(n,i.b),d.unregister(i)):i.a=n}};return o.original=i,d.register(o,i,i),o}function p(t,n,_,r){const i={a:t,b:n,cnt:1,dtor:_},o=(...t)=>{i.cnt++;try{return r(i.a,i.b,...t)}finally{0==--i.cnt&&(e.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,d.unregister(i))}};return o.original=i,d.register(o,i,i),o}function y(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=y(e[0]));for(let _=1;_<t;_++)n+=", "+y(e[_]);return n+="]",n}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(!(n&&n.length>1))return toString.call(e);if(_=n[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function m(t){const n=e.__wbindgen_export_5.get(t);return e.__externref_table_dealloc(t),n}function h(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(t,n){return e.runWasix(t,n)}function k(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o,r=e.wat2wasm(n,_);if(r[2])throw m(r[1]);return m(r[0])}function A(){e.on_start()}function v(t){e.setSDKUrl(t)}function F(t){e.setWorkerUrl(t)}function z(t){var n=g(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;const r=e.initializeLogger(n,_);if(r[1])throw m(r[0])}function I(t,n,_){e.closure542_externref_shim(t,n,_)}function x(t,n,_){return e.closure752_externref_shim(t,n,_)}function O(t,n){return e.closure751_externref_shim(t,n)}function W(t,n,_){const r=e.closure1343_externref_shim_multivalue_shim(t,n,_);if(r[2])throw m(r[1]);return m(r[0])}function S(t,n,_){const r=e.closure1346_externref_shim_multivalue_shim(t,n,_);if(r[1])throw m(r[0])}const j=["blob","arraybuffer"],M=["omit","same-origin","include"],T=["same-origin","no-cors","cors","navigate"],U=["classic","module"],E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_atom_free(t>>>0,1)));class L{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_atom_free(t,0)}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_command_free(t>>>0,1)));class B{static __wrap(e){e>>>=0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_command_free(t,0)}get name(){return e.__wbg_get_command_name(this.__wbg_ptr)}set name(t){e.__wbg_set_command_name(this.__wbg_ptr,t)}run(t){return e.command_run(this.__wbg_ptr,g(t)?0:w(t))}binary(){return e.command_binary(this.__wbg_ptr)}}const C="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_deployedapp_free(t>>>0,1)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,C.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_deployedapp_free(t,0)}get id(){let t,n;try{const _=e.__wbg_get_deployedapp_id(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,_)}get created_at(){let t,n;try{const _=e.__wbg_get_deployedapp_created_at(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set created_at(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,_)}get version(){let t,n;try{const _=e.__wbg_get_deployedapp_version(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set version(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_version(this.__wbg_ptr,n,_)}get description(){const t=e.__wbg_get_deployedapp_description(this.__wbg_ptr);let n;return 0!==t[0]&&(n=i(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set description(t){var n=g(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_description(this.__wbg_ptr,n,_)}get yaml_config(){let t,n;try{const _=e.__wbg_get_deployedapp_yaml_config(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set yaml_config(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_yaml_config(this.__wbg_ptr,n,_)}get user_yaml_config(){let t,n;try{const _=e.__wbg_get_deployedapp_user_yaml_config(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set user_yaml_config(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_user_yaml_config(this.__wbg_ptr,n,_)}get config(){let t,n;try{const _=e.__wbg_get_deployedapp_config(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set config(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_config(this.__wbg_ptr,n,_)}get json_config(){let t,n;try{const _=e.__wbg_get_deployedapp_json_config(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set json_config(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_json_config(this.__wbg_ptr,n,_)}get url(){let t,n;try{const _=e.__wbg_get_deployedapp_url(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set url(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_url(this.__wbg_ptr,n,_)}get app_id(){const t=e.__wbg_get_deployedapp_app_id(this.__wbg_ptr);let n;return 0!==t[0]&&(n=i(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set app_id(t){var n=g(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_app_id(this.__wbg_ptr,n,_)}}const P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_directory_free(t>>>0,1)));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_directory_free(t,0)}__getClassname(){let t,n;try{const _=e.directory___getClassname(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){const n=e.directory_new(g(t)?0:w(t));if(n[2])throw m(n[1]);return this.__wbg_ptr=n[0]>>>0,P.register(this,this.__wbg_ptr,this),this}readDir(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_readDir(this.__wbg_ptr,n,_)}writeFile(t,n){const _=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_writeFile(this.__wbg_ptr,_,r,n)}readFile(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_readFile(this.__wbg_ptr,n,_)}readTextFile(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_readTextFile(this.__wbg_ptr,n,_)}createDir(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_createDir(this.__wbg_ptr,n,_)}removeDir(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_removeDir(this.__wbg_ptr,n,_)}removeFile(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;return e.directory_removeFile(this.__wbg_ptr,n,_)}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_instance_free(t>>>0,1)));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,$.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_instance_free(t,0)}get stdin(){return e.__wbg_get_instance_stdin(this.__wbg_ptr)}get stdout(){return e.__wbg_get_instance_stdout(this.__wbg_ptr)}get stderr(){return e.__wbg_get_instance_stderr(this.__wbg_ptr)}wait(){const t=this.__destroy_into_raw();return e.instance_wait(t)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_intounderlyingbytesource_free(t>>>0,1)));class V{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_intounderlyingbytesource_free(t,0)}get type(){let t,n;try{const _=e.intounderlyingbytesource_type(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}get autoAllocateChunkSize(){return e.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}start(t){e.intounderlyingbytesource_start(this.__wbg_ptr,t)}pull(t){return e.intounderlyingbytesource_pull(this.__wbg_ptr,t)}cancel(){const t=this.__destroy_into_raw();e.intounderlyingbytesource_cancel(t)}}const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_intounderlyingsink_free(t>>>0,1)));class J{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_intounderlyingsink_free(t,0)}write(t){return e.intounderlyingsink_write(this.__wbg_ptr,t)}close(){const t=this.__destroy_into_raw();return e.intounderlyingsink_close(t)}abort(t){const n=this.__destroy_into_raw();return e.intounderlyingsink_abort(n,t)}}const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_intounderlyingsource_free(t>>>0,1)));class Q{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_intounderlyingsource_free(t,0)}pull(t){return e.intounderlyingsource_pull(this.__wbg_ptr,t)}cancel(){const t=this.__destroy_into_raw();e.intounderlyingsource_cancel(t)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_publishpackageoutput_free(t>>>0,1)));class Z{static __wrap(e){e>>>=0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_publishpackageoutput_free(t,0)}get manifest(){return e.__wbg_get_publishpackageoutput_manifest(this.__wbg_ptr)}set manifest(t){e.__wbg_set_publishpackageoutput_manifest(this.__wbg_ptr,t)}get hash(){let t,n;try{const _=e.__wbg_get_publishpackageoutput_hash(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,_)}}const ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_readablestreamsource_free(t>>>0,1)));class te{static __wrap(e){e>>>=0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_readablestreamsource_free(t,0)}pull(t){return e.readablestreamsource_pull(this.__wbg_ptr,t)}cancel(){e.readablestreamsource_cancel(this.__wbg_ptr)}get type(){return e.readablestreamsource_type(this.__wbg_ptr)}}const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_runtime_free(t>>>0,1)));class _e{static __wrap(e){e>>>=0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_runtime_free(t,0)}__getClassname(){let t,n;try{const _=e.runtime___getClassname(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){const n=e.runtime_js_new(g(t)?0:w(t));if(n[2])throw m(n[1]);return this.__wbg_ptr=n[0]>>>0,ne.register(this,this.__wbg_ptr,this),this}static global(t){const n=e.runtime_global(g(t)?16777215:t?1:0);if(n[2])throw m(n[1]);return 0===n[0]?void 0:_e.__wrap(n[0])}}const re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_threadpoolworker_free(t>>>0,1)));class ie{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_threadpoolworker_free(t,0)}constructor(t){const n=e.threadpoolworker_new(t);return this.__wbg_ptr=n>>>0,re.register(this,this.__wbg_ptr,this),this}handle(t){return e.threadpoolworker_handle(this.__wbg_ptr,t)}}const oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_trap_free(t>>>0,1)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_trap_free(t,0)}static __wbg_wasmer_trap(){e.trap___wbg_wasmer_trap()}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_user_free(t>>>0,1)));class be{static __wrap(e){e>>>=0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,ae.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_user_free(t,0)}get id(){let t,n;try{const _=e.__wbg_get_user_id(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,_)}get username(){let t,n;try{const _=e.__wbg_get_user_username(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set username(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,_)}}const se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_userpackagedefinition_free(t>>>0,1)));class ge{static __wrap(e){e>>>=0;const t=Object.create(ge.prototype);return t.__wbg_ptr=e,se.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof ge?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_userpackagedefinition_free(t,0)}__getClassname(){let t,n;try{const _=e.userpackagedefinition___getClassname(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}get hash(){let t,n;try{const _=e.__wbg_get_userpackagedefinition_hash(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){const n=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=o;e.__wbg_set_userpackagedefinition_hash(this.__wbg_ptr,n,_)}}const we="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_volume_free(t>>>0,1)));class ue{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,we.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_volume_free(t,0)}}const fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_wasmer_free(t>>>0,1)));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,fe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fe.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_wasmer_free(t,0)}static createPackage(t){return e.wasmer_createPackage(t)}static publishPackage(t){h(t,de);return e.wasmer_publishPackage(t.__wbg_ptr)}static whoami(){return e.wasmer_whoami()}__getClassname(){let t,n;try{const _=e.wasmer___getClassname(this.__wbg_ptr);return t=_[0],n=_[1],i(_[0],_[1])}finally{e.canonical_abi_free(t,n,1)}}get entrypoint(){const t=e.__wbg_get_wasmer_entrypoint(this.__wbg_ptr);return 0===t?void 0:B.__wrap(t)}set entrypoint(t){let n=0;g(t)||(h(t,B),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_entrypoint(this.__wbg_ptr,n)}get commands(){return e.__wbg_get_wasmer_commands(this.__wbg_ptr)}set commands(t){e.__wbg_set_wasmer_commands(this.__wbg_ptr,t)}get pkg(){const t=e.__wbg_get_wasmer_pkg(this.__wbg_ptr);return 0===t?void 0:ge.__wrap(t)}set pkg(t){let n=0;g(t)||(h(t,ge),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_pkg(this.__wbg_ptr,n)}static fromRegistry(t,n){const _=a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.wasmer_fromRegistry(_,r,g(n)?0:w(n))}static fromFile(t,n){return e.wasmer_fromFile(t,g(n)?0:w(n))}static fromWasm(t,n){const _=e.wasmer_fromWasm(t,g(n)?0:w(n));if(_[2])throw m(_[1]);return de.__wrap(_[0])}static deployApp(t){return e.wasmer_deployApp(t)}static deleteApp(t){return e.wasmer_deleteApp(t)}}const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_wasmerpackage_free(t>>>0,1)));class pe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_wasmerpackage_free(t,0)}get manifest(){return e.__wbg_get_wasmerpackage_manifest(this.__wbg_ptr)}set manifest(t){e.__wbg_set_wasmerpackage_manifest(this.__wbg_ptr,t)}get data(){const t=e.__wbg_get_wasmerpackage_data(this.__wbg_ptr);var n=f(t[0],t[1]).slice();return e.canonical_abi_free(t[0],1*t[1],1),n}set data(t){const _=function(e,t){const _=t(1*e.length,1)>>>0;return n().set(e,_/1),o=e.length,_}(t,e.__wbindgen_malloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,_,r)}}const ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_writablestreamsink_free(t>>>0,1)));class me{static __wrap(e){e>>>=0;const t=Object.create(me.prototype);return t.__wbg_ptr=e,ye.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ye.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_writablestreamsink_free(t,0)}close(){return e.writablestreamsink_close(this.__wbg_ptr)}abort(t){e.writablestreamsink_abort(this.__wbg_ptr,t)}write(t){return e.writablestreamsink_write(this.__wbg_ptr,t)}}const he=new Set(["basic","cors","default"]);function Re(){const t={wbg:{}};return t.wbg.__wbg_BigInt_6e3a01c3311ee796=function(e){return BigInt(e)},t.wbg.__wbg_Error_0497d5bdba9362e5=function(e,t){return Error(i(e,t))},t.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){const _=a(String(n),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbg_abort_18ba44d46e13d7fe=function(e){e.abort()},t.wbg.__wbg_apiKey_136c64a1dd577ea4=function(t,n){const _=n.apiKey;var r=g(_)?0:a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;s().setInt32(t+4,i,!0),s().setInt32(t+0,r,!0)},t.wbg.__wbg_append_0342728346e47425=function(){return u((function(e,t,n,_,r){e.append(i(t,n),i(_,r))}),arguments)},t.wbg.__wbg_apply_8745fdcf855d21f5=function(){return u((function(e,t,n){return e.apply(t,n)}),arguments)},t.wbg.__wbg_apply_d49e9c0472b015cc=function(){return u((function(e,t,n){return Reflect.apply(e,t,n)}),arguments)},t.wbg.__wbg_args_ce3906bca5fd2b6f=function(e){const t=e.args;return g(t)?0:w(t)},t.wbg.__wbg_arrayBuffer_d58b858456021d7f=function(){return u((function(e){return e.arrayBuffer()}),arguments)},t.wbg.__wbg_assert_83d6354717cc805b=function(e,t){console.assert(0!==e,t)},t.wbg.__wbg_async_89f8ca583cefeb81=function(e){return e.async},t.wbg.__wbg_bind_1e748fe02d440d48=function(e,t,n){return e.bind(t,n)},t.wbg.__wbg_bind_d075481af636a524=function(e,t,n,_){return e.bind(t,n,_)},t.wbg.__wbg_buffer_a1a27a0dfa70165d=function(e){return e.buffer},t.wbg.__wbg_buffer_e495ba54cee589cc=function(e){return e.buffer},t.wbg.__wbg_byobRequest_56aa768ee4dfed17=function(e){const t=e.byobRequest;return g(t)?0:w(t)},t.wbg.__wbg_byteLength_937f8a52f9697148=function(e){return e.byteLength},t.wbg.__wbg_byteLength_bf6d30ef92bae19b=function(e){return e.byteLength},t.wbg.__wbg_byteOffset_4d94b7170e641898=function(e){return e.byteOffset},t.wbg.__wbg_call_f2db6205e5c51dc8=function(){return u((function(e,t,n){return e.call(t,n)}),arguments)},t.wbg.__wbg_call_fbe8be8bf6436ce5=function(){return u((function(e,t){return e.call(t)}),arguments)},t.wbg.__wbg_close_290fb040af98d3ac=function(){return u((function(e){e.close()}),arguments)},t.wbg.__wbg_close_b2641ef0870e518c=function(){return u((function(e){e.close()}),arguments)},t.wbg.__wbg_close_f203332f9561bf29=function(e){return e.close()},t.wbg.__wbg_colno_1fbc9165b6cd1b26=function(e){return e.colno},t.wbg.__wbg_command_new=function(e){return B.__wrap(e)},t.wbg.__wbg_constructor_1a4f07ad72d5cac3=function(e){return e.constructor},t.wbg.__wbg_createObjectURL_1acd82bf8749f5a9=function(){return u((function(t,n){const _=a(URL.createObjectURL(n),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)}),arguments)},t.wbg.__wbg_crypto_ed58b8e10a292839=function(e){return e.crypto},t.wbg.__wbg_customSections_3a8a19674e217d36=function(e,t,n){return WebAssembly.Module.customSections(e,i(t,n))},t.wbg.__wbg_cwd_13b069cde8a90c68=function(t,n){const _=n.cwd;var r=g(_)?0:a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;s().setInt32(t+4,i,!0),s().setInt32(t+0,r,!0)},t.wbg.__wbg_data_fffd43bf0ca75fff=function(e){return e.data},t.wbg.__wbg_defineProperty_6a428a581612fed4=function(e,t,n){return Object.defineProperty(e,t,n)},t.wbg.__wbg_deleteProperty_ec71c2c829351683=function(){return u((function(e,t){return Reflect.deleteProperty(e,t)}),arguments)},t.wbg.__wbg_deployedapp_new=function(e){return q.__wrap(e)},t.wbg.__wbg_desiredSize_dd7689d8aa7da7dd=function(e,t){const n=t.desiredSize;s().setFloat64(e+8,g(n)?0:n,!0),s().setInt32(e+0,!g(n),!0)},t.wbg.__wbg_done_4d01f352bade43b7=function(e){return e.done},t.wbg.__wbg_enqueue_a62faa171c4fd287=function(){return u((function(e,t){e.enqueue(t)}),arguments)},t.wbg.__wbg_entries_41651c850143b957=function(e){return Object.entries(e)},t.wbg.__wbg_env_6b7462d491e7d2ae=function(e){return e.env},t.wbg.__wbg_error_1950bd19b566135e=function(e,t){e.error(t)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){let _,r;try{_=t,r=n,console.error(i(t,n))}finally{e.canonical_abi_free(_,r,1)}},t.wbg.__wbg_exports_5cb55953fb23c405=function(e){return e.exports},t.wbg.__wbg_exports_93f662ec1dd2b1e2=function(e){return WebAssembly.Module.exports(e)},t.wbg.__wbg_fetch_03b6c973bb6da9b8=function(e){return fetch(e)},t.wbg.__wbg_fetch_6e679fcfa9759479=function(e,t){return e.fetch(t)},t.wbg.__wbg_fetch_a8e43a4e138dfc93=function(e,t){return e.fetch(t)},t.wbg.__wbg_filename_5c8881452d91f4fd=function(t,n){const _=a(n.filename,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbg_for_555902b1a859c603=function(e,t){return Symbol.for(i(e,t))},t.wbg.__wbg_from_12ff8e47307bd4c7=function(e){return Array.from(e)},t.wbg.__wbg_getPrototypeOf_a1794d62c12daab4=function(){return u((function(e){return Reflect.getPrototypeOf(e)}),arguments)},t.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return u((function(e,t){e.getRandomValues(t)}),arguments)},t.wbg.__wbg_getTime_2afe67905d873e92=function(e){return e.getTime()},t.wbg.__wbg_getTimezoneOffset_31f33c0868da345e=function(e){return e.getTimezoneOffset()},t.wbg.__wbg_get_92470be87867c2e5=function(){return u((function(e,t){return Reflect.get(e,t)}),arguments)},t.wbg.__wbg_get_a131a44bd1eb6979=function(e,t){return e[t>>>0]},t.wbg.__wbg_get_be8d302ec5bf8863=function(){return u((function(e,t){return e.get(t>>>0)}),arguments)},t.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,t){return e[t]},t.wbg.__wbg_grow_0a942972adfcde67=function(){return u((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_grow_ae9c73e837b2d936=function(e,t){return e.grow(t>>>0)},t.wbg.__wbg_grow_d034989fce14cc8e=function(){return u((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_hardwareConcurrency_10d7194b406e56d2=function(e){return e.hardwareConcurrency},t.wbg.__wbg_hardwareConcurrency_fd778a5fdf975150=function(e){return e.hardwareConcurrency},t.wbg.__wbg_has_809e438ee9d787a7=function(){return u((function(e,t){return Reflect.has(e,t)}),arguments)},t.wbg.__wbg_headers_0f0cbdc6290b6780=function(e){return e.headers},t.wbg.__wbg_headers_67fbc7839fe933b3=function(e){return e.headers},t.wbg.__wbg_imports_1f5c972c2e57dfb5=function(e){return WebAssembly.Module.imports(e)},t.wbg.__wbg_instance_new=function(e){return N.__wrap(e)},t.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc=function(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Blob_2688511ca2a71508=function(e){let t;try{t=e instanceof Blob}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Date_ef7e3d6f544a9d16=function(e){let t;try{t=e instanceof Date}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Error_58a92d81483a4b16=function(e){let t;try{t=e instanceof Error}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Function_4de5a228b53c20c3=function(e){let t;try{t=e instanceof Function}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Global_d43eb3e1373e574d=function(e){let t;try{t=e instanceof WebAssembly.Global}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Map_80cc65041c96417a=function(e){let t;try{t=e instanceof Map}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Memory_613951003465ef5c=function(e){let t;try{t=e instanceof WebAssembly.Memory}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Module_ac6579472cc013d8=function(e){let t;try{t=e instanceof WebAssembly.Module}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Object_9a05796038b7a8f6=function(e){let t;try{t=e instanceof Object}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_RangeError_67b19cb7651a2151=function(e){let t;try{t=e instanceof RangeError}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2=function(e){let t;try{t=e instanceof Response}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Table_a5fae5b77c0e21e8=function(e){let t;try{t=e instanceof WebAssembly.Table}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Tag_ff306496211677da=function(e){let t;try{t=e instanceof WebAssembly.Tag}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_TypeError_16d245a01d4dd626=function(e){let t;try{t=e instanceof TypeError}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827=function(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_Window_68f3f67bad1729c1=function(e){let t;try{t=e instanceof Window}catch(e){t=!1}return t},t.wbg.__wbg_instanceof_WorkerGlobalScope_11f8a14c11024785=function(e){let t;try{t=e instanceof WorkerGlobalScope}catch(e){t=!1}return t},t.wbg.__wbg_isArray_2a07fd175d45c496=function(e){return Array.isArray(e)},t.wbg.__wbg_isArray_5f090bed72bd4f89=function(e){return Array.isArray(e)},t.wbg.__wbg_isSafeInteger_90d7c4674047d684=function(e){return Number.isSafeInteger(e)},t.wbg.__wbg_is_49ee71a294f7d2fe=function(e,t){return Object.is(e,t)},t.wbg.__wbg_iterator_4068add5b2aef7a6=function(){return Symbol.iterator},t.wbg.__wbg_keys_42062809bf87339e=function(e){return Object.keys(e)},t.wbg.__wbg_length_865e6e8de4a8c6cb=function(e){return e.length},t.wbg.__wbg_length_ab6d22b5ead75c72=function(e){return e.length},t.wbg.__wbg_length_f00ec12454a5d9fd=function(e){return e.length},t.wbg.__wbg_lineno_9fe2a23a82cebd53=function(e){return e.lineno},t.wbg.__wbg_locked_c5cc88823268db66=function(e){return e.locked},t.wbg.__wbg_log_ea240990d83e374e=function(e){console.log(e)},t.wbg.__wbg_message_4159c15dac08c5e9=function(e){return e.message},t.wbg.__wbg_message_44ef9b801b7d8bc3=function(t,n){const _=a(n.message,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbg_mount_dfb06836b0f9b20b=function(e){return e.mount},t.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(e){return e.msCrypto},t.wbg.__wbg_navigator_6db993f5ffeb46be=function(e){return e.navigator},t.wbg.__wbg_navigator_fc64ba1417939b25=function(e){return e.navigator},t.wbg.__wbg_networkGateway_79e326cb5c82e7fd=function(t,n){const _=n.networkGateway;var r=g(_)?0:a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;s().setInt32(t+4,i,!0),s().setInt32(t+0,r,!0)},t.wbg.__wbg_new0_97314565408dea38=function(){return new Date},t.wbg.__wbg_new_07b483f72211fd66=function(){return new Object},t.wbg.__wbg_new_104a6fcd57ac32c0=function(){return u((function(){return new FileReader}),arguments)},t.wbg.__wbg_new_181343b7eb238d99=function(e){return new Int32Array(e)},t.wbg.__wbg_new_186abcfdff244e42=function(){return u((function(){return new AbortController}),arguments)},t.wbg.__wbg_new_2debb2b422bd07bd=function(){return u((function(e,t){return new WebAssembly.Global(e,t)}),arguments)},t.wbg.__wbg_new_39fae4e38868373c=function(){return u((function(e,t){return new Worker(i(e,t))}),arguments)},t.wbg.__wbg_new_476169e6d59f23ae=function(e,t){return new Error(i(e,t))},t.wbg.__wbg_new_4796e1cd2eb9ea6d=function(){return u((function(){return new Headers}),arguments)},t.wbg.__wbg_new_58353953ad2097cc=function(){return new Array},t.wbg.__wbg_new_5dd74caa1b362828=function(){return u((function(e){return new WebAssembly.Module(e)}),arguments)},t.wbg.__wbg_new_7449da607adc249f=function(){return u((function(e,t){return new WebAssembly.Instance(e,t)}),arguments)},t.wbg.__wbg_new_75fba833e24e4ae9=function(){return u((function(e){return new WebAssembly.Memory(e)}),arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},t.wbg.__wbg_new_a2957aa5684de228=function(e){return new Date(e)},t.wbg.__wbg_new_a4e7a0370d48e1b4=function(){return u((function(e){return new ReadableStreamDefaultReader(e)}),arguments)},t.wbg.__wbg_new_a979b4b45bd55c7f=function(){return new Map},t.wbg.__wbg_new_b60148568efca43b=function(e,t){return new TypeError(i(e,t))},t.wbg.__wbg_new_e30c39c06edaabf2=function(t,n){try{var _={a:t,b:n};const r=new Promise(((t,n)=>{const r=_.a;_.a=0;try{return function(t,n,_,r){e.closure191_externref_shim(t,n,_,r)}(r,_.b,t,n)}finally{_.a=r}}));return r}finally{_.a=_.b=0}},t.wbg.__wbg_new_e52b3efaaa774f96=function(e){return new Uint8Array(e)},t.wbg.__wbg_new_e769da3b652f0d9f=function(){return u((function(e){return new WebAssembly.Table(e)}),arguments)},t.wbg.__wbg_new_f42a001532528172=function(){return u((function(e,t){return new WebSocket(i(e,t))}),arguments)},t.wbg.__wbg_new_fd4b538754de98d6=function(){return u((function(e){return new WebAssembly.Tag(e)}),arguments)},t.wbg.__wbg_newfromslice_7c05ab1297cb2d88=function(e,t){return new Uint8Array(f(e,t))},t.wbg.__wbg_newnoargs_ff528e72d35de39a=function(e,t){return new Function(i(e,t))},t.wbg.__wbg_newwithargs_17a05078fc85d3aa=function(e,t,n,_){return new Function(i(e,t),i(n,_))},t.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},t.wbg.__wbg_newwithlength_08f872dc1e3ada2e=function(e){return new Uint8Array(e>>>0)},t.wbg.__wbg_newwithlength_6ee231411efd06b6=function(e){return new Array(e>>>0)},t.wbg.__wbg_newwithoptions_9931e161b714ebf9=function(){return u((function(e,t,n){return new Worker(i(e,t),n)}),arguments)},t.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37=function(){return u((function(e,t,n){return new Request(i(e,t),n)}),arguments)},t.wbg.__wbg_newwithu8arraysequenceandoptions_3b5b6ab7317ffd8f=function(){return u((function(e,t){return new Blob(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsinkandstrategy_481c2b5a223a4560=function(){return u((function(e,t){return new WritableStream(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsourceandstrategy_594ea2be3e0723ff=function(){return u((function(e,t){return new ReadableStream(e,t)}),arguments)},t.wbg.__wbg_next_8bb824d217961b5d=function(e){return e.next},t.wbg.__wbg_next_e2da48d8fff7439a=function(){return u((function(e){return e.next()}),arguments)},t.wbg.__wbg_node_02999533c4ea02e3=function(e){return e.node},t.wbg.__wbg_now_eb0821f3bd9f6529=function(){return Date.now()},t.wbg.__wbg_of_995ab9c48c3965f1=function(e,t,n){return Array.of(e,t,n)},t.wbg.__wbg_postMessage_54ce7f4b41ac732e=function(){return u((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_postMessage_95ef4554c6b7ca0c=function(){return u((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_process_5c1d670bc53614b8=function(e){return e.process},t.wbg.__wbg_program_0ccd177127e926dc=function(e){return e.program},t.wbg.__wbg_publishpackageoutput_new=function(e){return Z.__wrap(e)},t.wbg.__wbg_push_73fd7b5550ebf707=function(e,t){return e.push(t)},t.wbg.__wbg_queueMicrotask_46c1df247678729f=function(e){queueMicrotask(e)},t.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11=function(e){return e.queueMicrotask},t.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return u((function(e,t){e.randomFillSync(t)}),arguments)},t.wbg.__wbg_random_210bb7fbfa33591d=function(){return Math.random()},t.wbg.__wbg_readAsArrayBuffer_ec86f70be9ee80e9=function(){return u((function(e,t){e.readAsArrayBuffer(t)}),arguments)},t.wbg.__wbg_read_f4b89f69cc51efc7=function(e){return e.read()},t.wbg.__wbg_readablestreamsource_new=function(e){return te.__wrap(e)},t.wbg.__wbg_redirected_380499cd18bc27c0=function(e){return e.redirected},t.wbg.__wbg_registry_0193688f92324c7c=function(e){const t=e.registry;return g(t)?0:w(t)},t.wbg.__wbg_releaseLock_c589dd51c0812aca=function(e){e.releaseLock()},t.wbg.__wbg_require_79b1e9274cde3c87=function(){return u((function(){return module.require}),arguments)},t.wbg.__wbg_resolve_0dac8c580ffd4678=function(e){return Promise.resolve(e)},t.wbg.__wbg_respond_b227f1c3be2bb879=function(){return u((function(e,t){e.respond(t>>>0)}),arguments)},t.wbg.__wbg_result_142fc4d88cbccb26=function(){return u((function(e){return e.result}),arguments)},t.wbg.__wbg_runtime_3a007260b7cad09f=function(e){return e.runtime},t.wbg.__wbg_send_05456d2bf190b017=function(){return u((function(e,t){e.send(t)}),arguments)},t.wbg.__wbg_setTimeout_84a114fc6c4403f8=function(){return u((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_setTimeout_906fea9a7279f446=function(){return u((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,n){e[t]=n},t.wbg.__wbg_set_7422acbe992d64ab=function(e,t,n){e[t>>>0]=n},t.wbg.__wbg_set_b042eef31c50834d=function(){return u((function(e,t,n,_,r){e.set(i(t,n),i(_,r))}),arguments)},t.wbg.__wbg_set_c43293f93a35998a=function(){return u((function(e,t,n){return Reflect.set(e,t,n)}),arguments)},t.wbg.__wbg_set_d6bdfd275fb8a4ce=function(e,t,n){return e.set(t,n)},t.wbg.__wbg_set_eeace154fc5ce736=function(){return u((function(e,t,n){e.set(t>>>0,n)}),arguments)},t.wbg.__wbg_set_fe4e79d1ed3b0e9b=function(e,t,n){e.set(t,n>>>0)},t.wbg.__wbg_setbinaryType_52787d6025601cc5=function(e,t){e.binaryType=j[t]},t.wbg.__wbg_setbody_971ec015fc13d6b4=function(e,t){e.body=t},t.wbg.__wbg_setcredentials_920d91fb5984c94a=function(e,t){e.credentials=M[t]},t.wbg.__wbg_setheaders_65a4eb4c0443ae61=function(e,t){e.headers=t},t.wbg.__wbg_sethighwatermark_3017ad772d071dcb=function(e,t){e.highWaterMark=t},t.wbg.__wbg_setmethod_8ce1be0b4d701b7c=function(e,t,n){e.method=i(t,n)},t.wbg.__wbg_setmode_bd35f026f55b6247=function(e,t){e.mode=T[t]},t.wbg.__wbg_setname_9b01ac306adf8bfd=function(e,t,n){e.name=i(t,n)},t.wbg.__wbg_setonclose_c6db38f935250174=function(e,t){e.onclose=t},t.wbg.__wbg_setonerror_890bfd1ff86e9c78=function(e,t){e.onerror=t},t.wbg.__wbg_setonloadend_a6c211075855db45=function(e,t){e.onloadend=t},t.wbg.__wbg_setonmessage_49ca623a77cfb3e6=function(e,t){e.onmessage=t},t.wbg.__wbg_setonmessage_f6cf46183c427754=function(e,t){e.onmessage=t},t.wbg.__wbg_setonopen_1475cbeb761c101f=function(e,t){e.onopen=t},t.wbg.__wbg_setsignal_8e72abfe7ee03c97=function(e,t){e.signal=t},t.wbg.__wbg_setsize_13f2192310db9b34=function(e,t){e.size=t},t.wbg.__wbg_settype_acc38e64fddb9e3f=function(e,t,n){e.type=i(t,n)},t.wbg.__wbg_settype_ca83ae32b7117898=function(e,t){e.type=U[t]},t.wbg.__wbg_setvalue_bd9df7c968e4b416=function(e,t){e.value=t},t.wbg.__wbg_signal_b96223519a041faa=function(e){return e.signal},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){const _=a(n.stack,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d=function(){const e="undefined"==typeof global?null:global;return g(e)?0:w(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291=function(){const e="undefined"==typeof globalThis?null:globalThis;return g(e)?0:w(e)},t.wbg.__wbg_static_accessor_SELF_78c9e3071b912620=function(){const e="undefined"==typeof self?null:self;return g(e)?0:w(e)},t.wbg.__wbg_static_accessor_WINDOW_a093d21393777366=function(){const e="undefined"==typeof window?null:window;return g(e)?0:w(e)},t.wbg.__wbg_status_a54682bbe52f9058=function(e){return e.status},t.wbg.__wbg_stdin_4d05ba90fc2c39de=function(e){const t=e.stdin;return g(t)?0:w(t)},t.wbg.__wbg_stringify_c242842b97f054cc=function(){return u((function(e){return JSON.stringify(e)}),arguments)},t.wbg.__wbg_subarray_dd4ade7d53bd8e26=function(e,t,n){return e.subarray(t>>>0,n>>>0)},t.wbg.__wbg_terminate_af36b01db24a1745=function(e){e.terminate()},t.wbg.__wbg_text_ec0e22f60e30dd2f=function(){return u((function(e){return e.text()}),arguments)},t.wbg.__wbg_then_82ab9fb4080f1707=function(e,t,n){return e.then(t,n)},t.wbg.__wbg_then_db882932c0c714c6=function(e,t){return e.then(t)},t.wbg.__wbg_toString_2a748bb7135f7e4d=function(t,n,_){const r=a(n.toString(_),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;s().setInt32(t+4,i,!0),s().setInt32(t+0,r,!0)},t.wbg.__wbg_toString_bc7a05a172b5cf14=function(e){return e.toString()},t.wbg.__wbg_trap_new=function(e){return ce.__wrap(e)},t.wbg.__wbg_url_e6ed869ea05b7a71=function(t,n){const _=a(n.url,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbg_userAgent_470abfd84e4eedcb=function(){return u((function(t,n){const _=a(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)}),arguments)},t.wbg.__wbg_userAgent_a24a493cd80cbd00=function(){return u((function(t,n){const _=a(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)}),arguments)},t.wbg.__wbg_user_new=function(e){return be.__wrap(e)},t.wbg.__wbg_userpackagedefinition_unwrap=function(e){return ge.__unwrap(e)},t.wbg.__wbg_uses_7494620cc35a86ad=function(e){const t=e.uses;return g(t)?0:w(t)},t.wbg.__wbg_value_17b896954e14f896=function(e){return e.value},t.wbg.__wbg_value_c22dc41e42f5d813=function(e){return e.value},t.wbg.__wbg_value_f8fe3ce05407a213=function(e){return e.value},t.wbg.__wbg_versions_c71aa1626a93e0a1=function(e){return e.versions},t.wbg.__wbg_view_a9ad80dcbad7cf1c=function(e){const t=e.view;return g(t)?0:w(t)},t.wbg.__wbg_waitAsync_c3398694eaa5aeab=function(e,t,n){return Atomics.waitAsync(e,t>>>0,n)},t.wbg.__wbg_waitAsync_e36f18e2e26c3b7d=function(){return Atomics.waitAsync},t.wbg.__wbg_wasmer_new=function(e){return de.__wrap(e)},t.wbg.__wbg_writablestreamsink_new=function(e){return me.__wrap(e)},t.wbg.__wbindgen_array_new=function(){return[]},t.wbg.__wbindgen_array_push=function(e,t){e.push(t)},t.wbg.__wbindgen_as_number=function(e){return+e},t.wbg.__wbindgen_bigint_from_i64=function(e){return e},t.wbg.__wbindgen_bigint_from_u128=function(e,t){return BigInt.asUintN(64,e)<<BigInt(64)|BigInt.asUintN(64,t)},t.wbg.__wbindgen_bigint_from_u64=function(e){return BigInt.asUintN(64,e)},t.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const n="bigint"==typeof t?t:void 0;s().setBigInt64(e+8,g(n)?BigInt(0):n,!0),s().setInt32(e+0,!g(n),!0)},t.wbg.__wbindgen_boolean_get=function(e){return"boolean"==typeof e?e?1:0:2},t.wbg.__wbindgen_cb_drop=function(e){const t=e.original;if(1==t.cnt--)return t.a=0,!0;return!1},t.wbg.__wbindgen_closure_wrapper13762=function(e,t,n){return l(e,t,1342,W)},t.wbg.__wbindgen_closure_wrapper13766=function(e,t,n){return l(e,t,1342,W)},t.wbg.__wbindgen_closure_wrapper13769=function(e,t,n){return l(e,t,1342,S)},t.wbg.__wbindgen_closure_wrapper7191=function(e,t,n){return l(e,t,541,I)},t.wbg.__wbindgen_closure_wrapper7199=function(e,t,n){return l(e,t,541,I)},t.wbg.__wbindgen_closure_wrapper8876=function(e,t,n){return p(e,t,750,x)},t.wbg.__wbindgen_closure_wrapper9091=function(e,t,n){return p(e,t,750,O)},t.wbg.__wbindgen_closure_wrapper9126=function(e,t,n){return l(e,t,750,I)},t.wbg.__wbindgen_closure_wrapper9506=function(e,t,n){return l(e,t,750,I)},t.wbg.__wbindgen_debug_string=function(t,n){const _=a(y(n),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbindgen_function_table=function(){return e.__wbindgen_export_6},t.wbg.__wbindgen_in=function(e,t){return e in t},t.wbg.__wbindgen_init_externref_table=function(){const t=e.__wbindgen_export_5,n=t.grow(4);t.set(0,void 0),t.set(n+0,void 0),t.set(n+1,null),t.set(n+2,!0),t.set(n+3,!1)},t.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof e},t.wbg.__wbindgen_is_falsy=function(e){return!e},t.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},t.wbg.__wbindgen_is_null=function(e){return null===e},t.wbg.__wbindgen_is_object=function(e){return"object"==typeof e&&null!==e},t.wbg.__wbindgen_is_string=function(e){return"string"==typeof e},t.wbg.__wbindgen_is_undefined=function(e){return void 0===e},t.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},t.wbg.__wbindgen_jsval_loose_eq=function(e,t){return e==t},t.wbg.__wbindgen_link_db87ac8434ca3f93=function(t){const n="onmessage = function (ev) {\n let [ia, index, value] = ev.data;\n ia = new Int32Array(ia.buffer);\n let result = Atomics.wait(ia, index, value);\n postMessage(result);\n };\n ",_=a(void 0===URL.createObjectURL?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;s().setInt32(t+4,r,!0),s().setInt32(t+0,_,!0)},t.wbg.__wbindgen_lt=function(e,t){return e<t},t.wbg.__wbindgen_memory=function(){return e.memory},t.wbg.__wbindgen_module=function(){return Fe.__wbindgen_wasm_module},t.wbg.__wbindgen_neg=function(e){return-e},t.wbg.__wbindgen_number_get=function(e,t){const n="number"==typeof t?t:void 0;s().setFloat64(e+8,g(n)?0:n,!0),s().setInt32(e+0,!g(n),!0)},t.wbg.__wbindgen_number_new=function(e){return e},t.wbg.__wbindgen_rethrow=function(e){throw e},t.wbg.__wbindgen_shr=function(e,t){return e>>t},t.wbg.__wbindgen_string_get=function(t,n){const _="string"==typeof n?n:void 0;var r=g(_)?0:a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;s().setInt32(t+4,i,!0),s().setInt32(t+0,r,!0)},t.wbg.__wbindgen_string_new=function(e,t){return i(e,t)},t.wbg.__wbindgen_throw=function(e,t){throw new Error(i(e,t))},t}function ke(e,t){e.wbg.memory=t||new WebAssembly.Memory({initial:34,maximum:16384,shared:!0})}function Ae(n,_,r){if(e=n.exports,Fe.__wbindgen_wasm_module=_,b=null,t=null,void 0!==r&&("number"!=typeof r||0===r||r%65536!=0))throw"invalid stack size";return e.__wbindgen_start(r),e}function ve(t,n){if(void 0!==e)return e;let _;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module:t,memory:n,thread_stack_size:_}=t):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const r=Re();ke(r,n),t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));return Ae(new WebAssembly.Instance(t,r),t,_)}async function Fe(t,n){if(void 0!==e)return e;let _;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module_or_path:t,memory:n,thread_stack_size:_}=t):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL("wasmer_js_bg.wasm",import.meta.url));const r=Re();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t)),ke(r,n);const{instance:i,module:o}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!he.has(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;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)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await t,r);return Ae(i,o,_)}const ze=async(e,t)=>{e?(e instanceof WebAssembly.Module||e instanceof URL||e instanceof WebAssembly.Module)&&(t?(console.info("Passing the module and memory as first arguments to the init function is deprecated, please use: `init({module: WASM_MODULE, memory: WASM_MEMORY})`"),e={module:e,memory:t}):(console.info("Passing the module as first argument to the init function is deprecated, please use: `init({module: WASM_MODULE})`"),e={module:e})):e={},Ie(e);let n=await Fe(e.module,e.memory);return e.log&&z(e.log),e.workerUrl&&F(e.workerUrl.toString()),e.sdkUrl?v(e.sdkUrl.toString()):v(new URL("index.mjs",import.meta.url).toString()),n},Ie=e=>{globalThis.__WASMER_REGISTRY__={registryUrl:e.registryUrl,token:e.token}};export{L as Atom,B as Command,q as DeployedApp,G as Directory,N as Instance,V as IntoUnderlyingByteSource,J as IntoUnderlyingSink,Q as IntoUnderlyingSource,Z as PublishPackageOutput,te as ReadableStreamSource,_e as Runtime,ie as ThreadPoolWorker,ce as Trap,be as User,ge as UserPackageDefinition,ue as Volume,de as Wasmer,pe as WasmerPackage,me as WritableStreamSink,ze as init,ve as initSync,z as initializeLogger,A as on_start,R as runWasix,Ie as setRegistry,v as setSDKUrl,F as setWorkerUrl,k as wat2wasm};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @wasmer/sdk
|
|
3
|
+
* Wasmer Javascript SDK. It allows interacting with Wasmer Packages in Node.js and the Browser.
|
|
4
|
+
*
|
|
5
|
+
* @version v0.8.0
|
|
6
|
+
* @author Wasmer Engineering Team <engineering@wasmer.io>
|
|
7
|
+
* @homepage https://github.com/wasmerio/wasmer-js
|
|
8
|
+
* @repository git+https://github.com/wasmerio/wasmer-js.git
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
let e,t=null;function n(){return t!==null&&t.buffer===e.memory.buffer||(t=new Uint8Array(e.memory.buffer)),t}let r=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&r.decode();let i=0;function a(e,t){return function(e,t){return i+=t,i>=2146435072&&(r=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}},r.decode(),i=t),r.decode(n().slice(e,e+t))}(e>>>=0,t)}let o=0;const s=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}};function c(e,t,r){if(r===void 0){let r=s.encode(e),i=t(r.length,1)>>>0;return n().subarray(i,i+r.length).set(r),o=r.length,i}let i=e.length,a=t(i,1)>>>0,c=n(),l=0;for(;l<i;l++){let t=e.charCodeAt(l);if(t>127)break;c[a+l]=t}if(l!==i){l!==0&&(e=e.slice(l)),a=r(a,i,i=l+3*e.length,1)>>>0;let t=function(e,t){let n=s.encode(e);return t.set(n),{read:e.length,written:n.length}}(e,n().subarray(a+l,a+i));l+=t.written,a=r(a,i,l,1)>>>0}return o=l,a}let l=null;function u(){return l!==null&&l.buffer===e.memory.buffer||(l=new DataView(e.memory.buffer)),l}function d(e){return e==null}function f(t){let n=e.__externref_table_alloc();return e.__wbindgen_export_5.set(n,t),n}function p(t,n){try{return t.apply(this,n)}catch(t){let n=f(t);e.__wbindgen_exn_store(n)}}function ee(e,t){return e>>>=0,n().subarray(e/1,e/1+t)}const m=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>{e.__wbindgen_export_6.get(t.dtor)(t.a,t.b)}));function h(t,n,r,i){let a={a:t,b:n,cnt:1,dtor:r},o=(...t)=>{a.cnt++;let n=a.a;a.a=0;try{return i(n,a.b,...t)}finally{--a.cnt==0?(e.__wbindgen_export_6.get(a.dtor)(n,a.b),m.unregister(a)):a.a=n}};return o.original=a,m.register(o,a,a),o}function te(t,n,r,i){let a={a:t,b:n,cnt:1,dtor:r},o=(...t)=>{a.cnt++;try{return i(a.a,a.b,...t)}finally{--a.cnt==0&&(e.__wbindgen_export_6.get(a.dtor)(a.a,a.b),a.a=0,m.unregister(a))}};return o.original=a,m.register(o,a,a),o}function g(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=g(e[0]));for(let r=1;r<t;r++)n+=`, `+g(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(!(n&&n.length>1))return toString.call(e);if(r=n[1],r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function _(t){let n=e.__wbindgen_export_5.get(t);return e.__externref_table_dealloc(t),n}function v(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function ne(t){e.setSDKUrl(t)}function re(t){e.setWorkerUrl(t)}function ie(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;let i=e.initializeLogger(n,r);if(i[1])throw _(i[0])}function y(t,n,r){e.closure542_externref_shim(t,n,r)}function ae(t,n,r){return e.closure752_externref_shim(t,n,r)}function oe(t,n){return e.closure751_externref_shim(t,n)}function se(t,n,r){let i=e.closure1343_externref_shim_multivalue_shim(t,n,r);if(i[2])throw _(i[1]);return _(i[0])}function ce(t,n,r){let i=e.closure1346_externref_shim_multivalue_shim(t,n,r);if(i[1])throw _(i[0])}const le=[`blob`,`arraybuffer`],ue=[`omit`,`same-origin`,`include`],de=[`same-origin`,`no-cors`,`cors`,`navigate`],fe=[`classic`,`module`];typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_atom_free(t>>>0,1)));const pe=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_command_free(t>>>0,1)));var b=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,pe.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_command_free(t,0)}get name(){return e.__wbg_get_command_name(this.__wbg_ptr)}set name(t){e.__wbg_set_command_name(this.__wbg_ptr,t)}run(t){return e.command_run(this.__wbg_ptr,d(t)?0:f(t))}binary(){return e.command_binary(this.__wbg_ptr)}};const me=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_deployedapp_free(t>>>0,1)));var he=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,me.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,me.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_deployedapp_free(t,0)}get id(){let t,n;try{let r=e.__wbg_get_deployedapp_id(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}get created_at(){let t,n;try{let r=e.__wbg_get_deployedapp_created_at(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set created_at(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,r)}get version(){let t,n;try{let r=e.__wbg_get_deployedapp_version(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set version(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_version(this.__wbg_ptr,n,r)}get description(){let t=e.__wbg_get_deployedapp_description(this.__wbg_ptr),n;return t[0]!==0&&(n=a(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set description(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_description(this.__wbg_ptr,n,r)}get yaml_config(){let t,n;try{let r=e.__wbg_get_deployedapp_yaml_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set yaml_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_yaml_config(this.__wbg_ptr,n,r)}get user_yaml_config(){let t,n;try{let r=e.__wbg_get_deployedapp_user_yaml_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set user_yaml_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_user_yaml_config(this.__wbg_ptr,n,r)}get config(){let t,n;try{let r=e.__wbg_get_deployedapp_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_config(this.__wbg_ptr,n,r)}get json_config(){let t,n;try{let r=e.__wbg_get_deployedapp_json_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set json_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_json_config(this.__wbg_ptr,n,r)}get url(){let t,n;try{let r=e.__wbg_get_deployedapp_url(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set url(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_url(this.__wbg_ptr,n,r)}get app_id(){let t=e.__wbg_get_deployedapp_app_id(this.__wbg_ptr),n;return t[0]!==0&&(n=a(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set app_id(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_app_id(this.__wbg_ptr,n,r)}};const ge=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_directory_free(t>>>0,1)));var _e=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ge.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_directory_free(t,0)}__getClassname(){let t,n;try{let r=e.directory___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){let n=e.directory_new(d(t)?0:f(t));if(n[2])throw _(n[1]);return this.__wbg_ptr=n[0]>>>0,ge.register(this,this.__wbg_ptr,this),this}readDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readDir(this.__wbg_ptr,n,r)}writeFile(t,n){let r=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;return e.directory_writeFile(this.__wbg_ptr,r,i,n)}readFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readFile(this.__wbg_ptr,n,r)}readTextFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readTextFile(this.__wbg_ptr,n,r)}createDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_createDir(this.__wbg_ptr,n,r)}removeDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_removeDir(this.__wbg_ptr,n,r)}removeFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_removeFile(this.__wbg_ptr,n,r)}};const ve=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_instance_free(t>>>0,1)));var ye=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,ve.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ve.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_instance_free(t,0)}get stdin(){return e.__wbg_get_instance_stdin(this.__wbg_ptr)}get stdout(){return e.__wbg_get_instance_stdout(this.__wbg_ptr)}get stderr(){return e.__wbg_get_instance_stderr(this.__wbg_ptr)}wait(){let t=this.__destroy_into_raw();return e.instance_wait(t)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingbytesource_free(t>>>0,1))),typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingsink_free(t>>>0,1))),typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingsource_free(t>>>0,1)));const be=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_publishpackageoutput_free(t>>>0,1)));var xe=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,be.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,be.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_publishpackageoutput_free(t,0)}get manifest(){return e.__wbg_get_publishpackageoutput_manifest(this.__wbg_ptr)}set manifest(t){e.__wbg_set_publishpackageoutput_manifest(this.__wbg_ptr,t)}get hash(){let t,n;try{let r=e.__wbg_get_publishpackageoutput_hash(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}};const Se=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_readablestreamsource_free(t>>>0,1)));var Ce=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,Se.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Se.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_readablestreamsource_free(t,0)}pull(t){return e.readablestreamsource_pull(this.__wbg_ptr,t)}cancel(){e.readablestreamsource_cancel(this.__wbg_ptr)}get type(){return e.readablestreamsource_type(this.__wbg_ptr)}};const x=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_runtime_free(t>>>0,1)));var we=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,x.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_runtime_free(t,0)}__getClassname(){let t,n;try{let r=e.runtime___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){let n=e.runtime_js_new(d(t)?0:f(t));if(n[2])throw _(n[1]);return this.__wbg_ptr=n[0]>>>0,x.register(this,this.__wbg_ptr,this),this}static global(n){let r=e.runtime_global(d(n)?16777215:+!!n);if(r[2])throw _(r[1]);return r[0]===0?void 0:t.__wrap(r[0])}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_threadpoolworker_free(t>>>0,1)));const Te=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_trap_free(t>>>0,1)));var Ee=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,Te.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Te.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_trap_free(t,0)}static __wbg_wasmer_trap(){e.trap___wbg_wasmer_trap()}};const De=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_user_free(t>>>0,1)));var Oe=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,De.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,De.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_user_free(t,0)}get id(){let t,n;try{let r=e.__wbg_get_user_id(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}get username(){let t,n;try{let r=e.__wbg_get_user_username(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set username(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,r)}};const S=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_userpackagedefinition_free(t>>>0,1)));var C=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,S.register(n,n.__wbg_ptr,n),n}static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_userpackagedefinition_free(t,0)}__getClassname(){let t,n;try{let r=e.userpackagedefinition___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}get hash(){let t,n;try{let r=e.__wbg_get_userpackagedefinition_hash(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_userpackagedefinition_hash(this.__wbg_ptr,n,r)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_volume_free(t>>>0,1)));const ke=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_wasmer_free(t>>>0,1)));var Ae=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,ke.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ke.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_wasmer_free(t,0)}static createPackage(t){return e.wasmer_createPackage(t)}static publishPackage(n){return v(n,t),e.wasmer_publishPackage(n.__wbg_ptr)}static whoami(){return e.wasmer_whoami()}__getClassname(){let t,n;try{let r=e.wasmer___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}get entrypoint(){let t=e.__wbg_get_wasmer_entrypoint(this.__wbg_ptr);return t===0?void 0:b.__wrap(t)}set entrypoint(t){let n=0;d(t)||(v(t,b),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_entrypoint(this.__wbg_ptr,n)}get commands(){return e.__wbg_get_wasmer_commands(this.__wbg_ptr)}set commands(t){e.__wbg_set_wasmer_commands(this.__wbg_ptr,t)}get pkg(){let t=e.__wbg_get_wasmer_pkg(this.__wbg_ptr);return t===0?void 0:C.__wrap(t)}set pkg(t){let n=0;d(t)||(v(t,C),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_pkg(this.__wbg_ptr,n)}static fromRegistry(t,n){let r=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;return e.wasmer_fromRegistry(r,i,d(n)?0:f(n))}static fromFile(t,n){return e.wasmer_fromFile(t,d(n)?0:f(n))}static fromWasm(n,r){let i=e.wasmer_fromWasm(n,d(r)?0:f(r));if(i[2])throw _(i[1]);return t.__wrap(i[0])}static deployApp(t){return e.wasmer_deployApp(t)}static deleteApp(t){return e.wasmer_deleteApp(t)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_wasmerpackage_free(t>>>0,1)));const je=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_writablestreamsink_free(t>>>0,1)));var Me=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,je.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,je.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_writablestreamsink_free(t,0)}close(){return e.writablestreamsink_close(this.__wbg_ptr)}abort(t){e.writablestreamsink_abort(this.__wbg_ptr,t)}write(t){return e.writablestreamsink_write(this.__wbg_ptr,t)}};const Ne=new Set([`basic`,`cors`,`default`]);function Pe(){let t={wbg:{}};return t.wbg.__wbg_BigInt_6e3a01c3311ee796=function(e){return BigInt(e)},t.wbg.__wbg_Error_0497d5bdba9362e5=function(e,t){return Error(a(e,t))},t.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){let r=c(String(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_abort_18ba44d46e13d7fe=function(e){e.abort()},t.wbg.__wbg_apiKey_136c64a1dd577ea4=function(t,n){let r=n.apiKey;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_append_0342728346e47425=function(){return p((function(e,t,n,r,i){e.append(a(t,n),a(r,i))}),arguments)},t.wbg.__wbg_apply_8745fdcf855d21f5=function(){return p((function(e,t,n){return e.apply(t,n)}),arguments)},t.wbg.__wbg_apply_d49e9c0472b015cc=function(){return p((function(e,t,n){return Reflect.apply(e,t,n)}),arguments)},t.wbg.__wbg_args_ce3906bca5fd2b6f=function(e){let t=e.args;return d(t)?0:f(t)},t.wbg.__wbg_arrayBuffer_d58b858456021d7f=function(){return p((function(e){return e.arrayBuffer()}),arguments)},t.wbg.__wbg_assert_83d6354717cc805b=function(e,t){console.assert(e!==0,t)},t.wbg.__wbg_async_89f8ca583cefeb81=function(e){return e.async},t.wbg.__wbg_bind_1e748fe02d440d48=function(e,t,n){return e.bind(t,n)},t.wbg.__wbg_bind_d075481af636a524=function(e,t,n,r){return e.bind(t,n,r)},t.wbg.__wbg_buffer_a1a27a0dfa70165d=function(e){return e.buffer},t.wbg.__wbg_buffer_e495ba54cee589cc=function(e){return e.buffer},t.wbg.__wbg_byobRequest_56aa768ee4dfed17=function(e){let t=e.byobRequest;return d(t)?0:f(t)},t.wbg.__wbg_byteLength_937f8a52f9697148=function(e){return e.byteLength},t.wbg.__wbg_byteLength_bf6d30ef92bae19b=function(e){return e.byteLength},t.wbg.__wbg_byteOffset_4d94b7170e641898=function(e){return e.byteOffset},t.wbg.__wbg_call_f2db6205e5c51dc8=function(){return p((function(e,t,n){return e.call(t,n)}),arguments)},t.wbg.__wbg_call_fbe8be8bf6436ce5=function(){return p((function(e,t){return e.call(t)}),arguments)},t.wbg.__wbg_close_290fb040af98d3ac=function(){return p((function(e){e.close()}),arguments)},t.wbg.__wbg_close_b2641ef0870e518c=function(){return p((function(e){e.close()}),arguments)},t.wbg.__wbg_close_f203332f9561bf29=function(e){return e.close()},t.wbg.__wbg_colno_1fbc9165b6cd1b26=function(e){return e.colno},t.wbg.__wbg_command_new=function(e){return b.__wrap(e)},t.wbg.__wbg_constructor_1a4f07ad72d5cac3=function(e){return e.constructor},t.wbg.__wbg_createObjectURL_1acd82bf8749f5a9=function(){return p((function(t,n){let r=c(URL.createObjectURL(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_crypto_ed58b8e10a292839=function(e){return e.crypto},t.wbg.__wbg_customSections_3a8a19674e217d36=function(e,t,n){return WebAssembly.Module.customSections(e,a(t,n))},t.wbg.__wbg_cwd_13b069cde8a90c68=function(t,n){let r=n.cwd;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_data_fffd43bf0ca75fff=function(e){return e.data},t.wbg.__wbg_defineProperty_6a428a581612fed4=function(e,t,n){return Object.defineProperty(e,t,n)},t.wbg.__wbg_deleteProperty_ec71c2c829351683=function(){return p((function(e,t){return Reflect.deleteProperty(e,t)}),arguments)},t.wbg.__wbg_deployedapp_new=function(e){return he.__wrap(e)},t.wbg.__wbg_desiredSize_dd7689d8aa7da7dd=function(e,t){let n=t.desiredSize;u().setFloat64(e+8,d(n)?0:n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbg_done_4d01f352bade43b7=function(e){return e.done},t.wbg.__wbg_enqueue_a62faa171c4fd287=function(){return p((function(e,t){e.enqueue(t)}),arguments)},t.wbg.__wbg_entries_41651c850143b957=function(e){return Object.entries(e)},t.wbg.__wbg_env_6b7462d491e7d2ae=function(e){return e.env},t.wbg.__wbg_error_1950bd19b566135e=function(e,t){e.error(t)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){let r,i;try{r=t,i=n,console.error(a(t,n))}finally{e.canonical_abi_free(r,i,1)}},t.wbg.__wbg_exports_5cb55953fb23c405=function(e){return e.exports},t.wbg.__wbg_exports_93f662ec1dd2b1e2=function(e){return WebAssembly.Module.exports(e)},t.wbg.__wbg_fetch_03b6c973bb6da9b8=function(e){return fetch(e)},t.wbg.__wbg_fetch_6e679fcfa9759479=function(e,t){return e.fetch(t)},t.wbg.__wbg_fetch_a8e43a4e138dfc93=function(e,t){return e.fetch(t)},t.wbg.__wbg_filename_5c8881452d91f4fd=function(t,n){let r=c(n.filename,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_for_555902b1a859c603=function(e,t){return Symbol.for(a(e,t))},t.wbg.__wbg_from_12ff8e47307bd4c7=function(e){return Array.from(e)},t.wbg.__wbg_getPrototypeOf_a1794d62c12daab4=function(){return p((function(e){return Reflect.getPrototypeOf(e)}),arguments)},t.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return p((function(e,t){e.getRandomValues(t)}),arguments)},t.wbg.__wbg_getTime_2afe67905d873e92=function(e){return e.getTime()},t.wbg.__wbg_getTimezoneOffset_31f33c0868da345e=function(e){return e.getTimezoneOffset()},t.wbg.__wbg_get_92470be87867c2e5=function(){return p((function(e,t){return Reflect.get(e,t)}),arguments)},t.wbg.__wbg_get_a131a44bd1eb6979=function(e,t){return e[t>>>0]},t.wbg.__wbg_get_be8d302ec5bf8863=function(){return p((function(e,t){return e.get(t>>>0)}),arguments)},t.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,t){return e[t]},t.wbg.__wbg_grow_0a942972adfcde67=function(){return p((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_grow_ae9c73e837b2d936=function(e,t){return e.grow(t>>>0)},t.wbg.__wbg_grow_d034989fce14cc8e=function(){return p((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_hardwareConcurrency_10d7194b406e56d2=function(e){return e.hardwareConcurrency},t.wbg.__wbg_hardwareConcurrency_fd778a5fdf975150=function(e){return e.hardwareConcurrency},t.wbg.__wbg_has_809e438ee9d787a7=function(){return p((function(e,t){return Reflect.has(e,t)}),arguments)},t.wbg.__wbg_headers_0f0cbdc6290b6780=function(e){return e.headers},t.wbg.__wbg_headers_67fbc7839fe933b3=function(e){return e.headers},t.wbg.__wbg_imports_1f5c972c2e57dfb5=function(e){return WebAssembly.Module.imports(e)},t.wbg.__wbg_instance_new=function(e){return ye.__wrap(e)},t.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc=function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},t.wbg.__wbg_instanceof_Blob_2688511ca2a71508=function(e){let t;try{t=e instanceof Blob}catch{t=!1}return t},t.wbg.__wbg_instanceof_Date_ef7e3d6f544a9d16=function(e){let t;try{t=e instanceof Date}catch{t=!1}return t},t.wbg.__wbg_instanceof_Error_58a92d81483a4b16=function(e){let t;try{t=e instanceof Error}catch{t=!1}return t},t.wbg.__wbg_instanceof_Function_4de5a228b53c20c3=function(e){let t;try{t=e instanceof Function}catch{t=!1}return t},t.wbg.__wbg_instanceof_Global_d43eb3e1373e574d=function(e){let t;try{t=e instanceof WebAssembly.Global}catch{t=!1}return t},t.wbg.__wbg_instanceof_Map_80cc65041c96417a=function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},t.wbg.__wbg_instanceof_Memory_613951003465ef5c=function(e){let t;try{t=e instanceof WebAssembly.Memory}catch{t=!1}return t},t.wbg.__wbg_instanceof_Module_ac6579472cc013d8=function(e){let t;try{t=e instanceof WebAssembly.Module}catch{t=!1}return t},t.wbg.__wbg_instanceof_Object_9a05796038b7a8f6=function(e){let t;try{t=e instanceof Object}catch{t=!1}return t},t.wbg.__wbg_instanceof_RangeError_67b19cb7651a2151=function(e){let t;try{t=e instanceof RangeError}catch{t=!1}return t},t.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2=function(e){let t;try{t=e instanceof Response}catch{t=!1}return t},t.wbg.__wbg_instanceof_Table_a5fae5b77c0e21e8=function(e){let t;try{t=e instanceof WebAssembly.Table}catch{t=!1}return t},t.wbg.__wbg_instanceof_Tag_ff306496211677da=function(e){let t;try{t=e instanceof WebAssembly.Tag}catch{t=!1}return t},t.wbg.__wbg_instanceof_TypeError_16d245a01d4dd626=function(e){let t;try{t=e instanceof TypeError}catch{t=!1}return t},t.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827=function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},t.wbg.__wbg_instanceof_Window_68f3f67bad1729c1=function(e){let t;try{t=e instanceof Window}catch{t=!1}return t},t.wbg.__wbg_instanceof_WorkerGlobalScope_11f8a14c11024785=function(e){let t;try{t=e instanceof WorkerGlobalScope}catch{t=!1}return t},t.wbg.__wbg_isArray_2a07fd175d45c496=function(e){return Array.isArray(e)},t.wbg.__wbg_isArray_5f090bed72bd4f89=function(e){return Array.isArray(e)},t.wbg.__wbg_isSafeInteger_90d7c4674047d684=function(e){return Number.isSafeInteger(e)},t.wbg.__wbg_is_49ee71a294f7d2fe=function(e,t){return Object.is(e,t)},t.wbg.__wbg_iterator_4068add5b2aef7a6=function(){return Symbol.iterator},t.wbg.__wbg_keys_42062809bf87339e=function(e){return Object.keys(e)},t.wbg.__wbg_length_865e6e8de4a8c6cb=function(e){return e.length},t.wbg.__wbg_length_ab6d22b5ead75c72=function(e){return e.length},t.wbg.__wbg_length_f00ec12454a5d9fd=function(e){return e.length},t.wbg.__wbg_lineno_9fe2a23a82cebd53=function(e){return e.lineno},t.wbg.__wbg_locked_c5cc88823268db66=function(e){return e.locked},t.wbg.__wbg_log_ea240990d83e374e=function(e){console.log(e)},t.wbg.__wbg_message_4159c15dac08c5e9=function(e){return e.message},t.wbg.__wbg_message_44ef9b801b7d8bc3=function(t,n){let r=c(n.message,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_mount_dfb06836b0f9b20b=function(e){return e.mount},t.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(e){return e.msCrypto},t.wbg.__wbg_navigator_6db993f5ffeb46be=function(e){return e.navigator},t.wbg.__wbg_navigator_fc64ba1417939b25=function(e){return e.navigator},t.wbg.__wbg_networkGateway_79e326cb5c82e7fd=function(t,n){let r=n.networkGateway;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_new0_97314565408dea38=function(){return new Date},t.wbg.__wbg_new_07b483f72211fd66=function(){return{}},t.wbg.__wbg_new_104a6fcd57ac32c0=function(){return p((function(){return new FileReader}),arguments)},t.wbg.__wbg_new_181343b7eb238d99=function(e){return new Int32Array(e)},t.wbg.__wbg_new_186abcfdff244e42=function(){return p((function(){return new AbortController}),arguments)},t.wbg.__wbg_new_2debb2b422bd07bd=function(){return p((function(e,t){return new WebAssembly.Global(e,t)}),arguments)},t.wbg.__wbg_new_39fae4e38868373c=function(){return p((function(e,t){return new Worker(a(e,t))}),arguments)},t.wbg.__wbg_new_476169e6d59f23ae=function(e,t){return Error(a(e,t))},t.wbg.__wbg_new_4796e1cd2eb9ea6d=function(){return p((function(){return new Headers}),arguments)},t.wbg.__wbg_new_58353953ad2097cc=function(){return[]},t.wbg.__wbg_new_5dd74caa1b362828=function(){return p((function(e){return new WebAssembly.Module(e)}),arguments)},t.wbg.__wbg_new_7449da607adc249f=function(){return p((function(e,t){return new WebAssembly.Instance(e,t)}),arguments)},t.wbg.__wbg_new_75fba833e24e4ae9=function(){return p((function(e){return new WebAssembly.Memory(e)}),arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},t.wbg.__wbg_new_a2957aa5684de228=function(e){return new Date(e)},t.wbg.__wbg_new_a4e7a0370d48e1b4=function(){return p((function(e){return new ReadableStreamDefaultReader(e)}),arguments)},t.wbg.__wbg_new_a979b4b45bd55c7f=function(){return new Map},t.wbg.__wbg_new_b60148568efca43b=function(e,t){return TypeError(a(e,t))},t.wbg.__wbg_new_e30c39c06edaabf2=function(t,n){try{var r={a:t,b:n};return new Promise(((t,n)=>{let i=r.a;r.a=0;try{return function(t,n,r,i){e.closure191_externref_shim(t,n,r,i)}(i,r.b,t,n)}finally{r.a=i}}))}finally{r.a=r.b=0}},t.wbg.__wbg_new_e52b3efaaa774f96=function(e){return new Uint8Array(e)},t.wbg.__wbg_new_e769da3b652f0d9f=function(){return p((function(e){return new WebAssembly.Table(e)}),arguments)},t.wbg.__wbg_new_f42a001532528172=function(){return p((function(e,t){return new WebSocket(a(e,t))}),arguments)},t.wbg.__wbg_new_fd4b538754de98d6=function(){return p((function(e){return new WebAssembly.Tag(e)}),arguments)},t.wbg.__wbg_newfromslice_7c05ab1297cb2d88=function(e,t){return new Uint8Array(ee(e,t))},t.wbg.__wbg_newnoargs_ff528e72d35de39a=function(e,t){return Function(a(e,t))},t.wbg.__wbg_newwithargs_17a05078fc85d3aa=function(e,t,n,r){return Function(a(e,t),a(n,r))},t.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},t.wbg.__wbg_newwithlength_08f872dc1e3ada2e=function(e){return new Uint8Array(e>>>0)},t.wbg.__wbg_newwithlength_6ee231411efd06b6=function(e){return Array(e>>>0)},t.wbg.__wbg_newwithoptions_9931e161b714ebf9=function(){return p((function(e,t,n){return new Worker(a(e,t),n)}),arguments)},t.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37=function(){return p((function(e,t,n){return new Request(a(e,t),n)}),arguments)},t.wbg.__wbg_newwithu8arraysequenceandoptions_3b5b6ab7317ffd8f=function(){return p((function(e,t){return new Blob(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsinkandstrategy_481c2b5a223a4560=function(){return p((function(e,t){return new WritableStream(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsourceandstrategy_594ea2be3e0723ff=function(){return p((function(e,t){return new ReadableStream(e,t)}),arguments)},t.wbg.__wbg_next_8bb824d217961b5d=function(e){return e.next},t.wbg.__wbg_next_e2da48d8fff7439a=function(){return p((function(e){return e.next()}),arguments)},t.wbg.__wbg_node_02999533c4ea02e3=function(e){return e.node},t.wbg.__wbg_now_eb0821f3bd9f6529=function(){return Date.now()},t.wbg.__wbg_of_995ab9c48c3965f1=function(e,t,n){return[e,t,n]},t.wbg.__wbg_postMessage_54ce7f4b41ac732e=function(){return p((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_postMessage_95ef4554c6b7ca0c=function(){return p((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_process_5c1d670bc53614b8=function(e){return e.process},t.wbg.__wbg_program_0ccd177127e926dc=function(e){return e.program},t.wbg.__wbg_publishpackageoutput_new=function(e){return xe.__wrap(e)},t.wbg.__wbg_push_73fd7b5550ebf707=function(e,t){return e.push(t)},t.wbg.__wbg_queueMicrotask_46c1df247678729f=function(e){queueMicrotask(e)},t.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11=function(e){return e.queueMicrotask},t.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return p((function(e,t){e.randomFillSync(t)}),arguments)},t.wbg.__wbg_random_210bb7fbfa33591d=function(){return Math.random()},t.wbg.__wbg_readAsArrayBuffer_ec86f70be9ee80e9=function(){return p((function(e,t){e.readAsArrayBuffer(t)}),arguments)},t.wbg.__wbg_read_f4b89f69cc51efc7=function(e){return e.read()},t.wbg.__wbg_readablestreamsource_new=function(e){return Ce.__wrap(e)},t.wbg.__wbg_redirected_380499cd18bc27c0=function(e){return e.redirected},t.wbg.__wbg_registry_0193688f92324c7c=function(e){let t=e.registry;return d(t)?0:f(t)},t.wbg.__wbg_releaseLock_c589dd51c0812aca=function(e){e.releaseLock()},t.wbg.__wbg_require_79b1e9274cde3c87=function(){return p((function(){return module.require}),arguments)},t.wbg.__wbg_resolve_0dac8c580ffd4678=function(e){return Promise.resolve(e)},t.wbg.__wbg_respond_b227f1c3be2bb879=function(){return p((function(e,t){e.respond(t>>>0)}),arguments)},t.wbg.__wbg_result_142fc4d88cbccb26=function(){return p((function(e){return e.result}),arguments)},t.wbg.__wbg_runtime_3a007260b7cad09f=function(e){return e.runtime},t.wbg.__wbg_send_05456d2bf190b017=function(){return p((function(e,t){e.send(t)}),arguments)},t.wbg.__wbg_setTimeout_84a114fc6c4403f8=function(){return p((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_setTimeout_906fea9a7279f446=function(){return p((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,n){e[t]=n},t.wbg.__wbg_set_7422acbe992d64ab=function(e,t,n){e[t>>>0]=n},t.wbg.__wbg_set_b042eef31c50834d=function(){return p((function(e,t,n,r,i){e.set(a(t,n),a(r,i))}),arguments)},t.wbg.__wbg_set_c43293f93a35998a=function(){return p((function(e,t,n){return Reflect.set(e,t,n)}),arguments)},t.wbg.__wbg_set_d6bdfd275fb8a4ce=function(e,t,n){return e.set(t,n)},t.wbg.__wbg_set_eeace154fc5ce736=function(){return p((function(e,t,n){e.set(t>>>0,n)}),arguments)},t.wbg.__wbg_set_fe4e79d1ed3b0e9b=function(e,t,n){e.set(t,n>>>0)},t.wbg.__wbg_setbinaryType_52787d6025601cc5=function(e,t){e.binaryType=le[t]},t.wbg.__wbg_setbody_971ec015fc13d6b4=function(e,t){e.body=t},t.wbg.__wbg_setcredentials_920d91fb5984c94a=function(e,t){e.credentials=ue[t]},t.wbg.__wbg_setheaders_65a4eb4c0443ae61=function(e,t){e.headers=t},t.wbg.__wbg_sethighwatermark_3017ad772d071dcb=function(e,t){e.highWaterMark=t},t.wbg.__wbg_setmethod_8ce1be0b4d701b7c=function(e,t,n){e.method=a(t,n)},t.wbg.__wbg_setmode_bd35f026f55b6247=function(e,t){e.mode=de[t]},t.wbg.__wbg_setname_9b01ac306adf8bfd=function(e,t,n){e.name=a(t,n)},t.wbg.__wbg_setonclose_c6db38f935250174=function(e,t){e.onclose=t},t.wbg.__wbg_setonerror_890bfd1ff86e9c78=function(e,t){e.onerror=t},t.wbg.__wbg_setonloadend_a6c211075855db45=function(e,t){e.onloadend=t},t.wbg.__wbg_setonmessage_49ca623a77cfb3e6=function(e,t){e.onmessage=t},t.wbg.__wbg_setonmessage_f6cf46183c427754=function(e,t){e.onmessage=t},t.wbg.__wbg_setonopen_1475cbeb761c101f=function(e,t){e.onopen=t},t.wbg.__wbg_setsignal_8e72abfe7ee03c97=function(e,t){e.signal=t},t.wbg.__wbg_setsize_13f2192310db9b34=function(e,t){e.size=t},t.wbg.__wbg_settype_acc38e64fddb9e3f=function(e,t,n){e.type=a(t,n)},t.wbg.__wbg_settype_ca83ae32b7117898=function(e,t){e.type=fe[t]},t.wbg.__wbg_setvalue_bd9df7c968e4b416=function(e,t){e.value=t},t.wbg.__wbg_signal_b96223519a041faa=function(e){return e.signal},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){let r=c(n.stack,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d=function(){let e=typeof global>`u`?null:global;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291=function(){let e=typeof globalThis>`u`?null:globalThis;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_SELF_78c9e3071b912620=function(){let e=typeof self>`u`?null:self;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_WINDOW_a093d21393777366=function(){let e=typeof window>`u`?null:window;return d(e)?0:f(e)},t.wbg.__wbg_status_a54682bbe52f9058=function(e){return e.status},t.wbg.__wbg_stdin_4d05ba90fc2c39de=function(e){let t=e.stdin;return d(t)?0:f(t)},t.wbg.__wbg_stringify_c242842b97f054cc=function(){return p((function(e){return JSON.stringify(e)}),arguments)},t.wbg.__wbg_subarray_dd4ade7d53bd8e26=function(e,t,n){return e.subarray(t>>>0,n>>>0)},t.wbg.__wbg_terminate_af36b01db24a1745=function(e){e.terminate()},t.wbg.__wbg_text_ec0e22f60e30dd2f=function(){return p((function(e){return e.text()}),arguments)},t.wbg.__wbg_then_82ab9fb4080f1707=function(e,t,n){return e.then(t,n)},t.wbg.__wbg_then_db882932c0c714c6=function(e,t){return e.then(t)},t.wbg.__wbg_toString_2a748bb7135f7e4d=function(t,n,r){let i=c(n.toString(r),e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_toString_bc7a05a172b5cf14=function(e){return e.toString()},t.wbg.__wbg_trap_new=function(e){return Ee.__wrap(e)},t.wbg.__wbg_url_e6ed869ea05b7a71=function(t,n){let r=c(n.url,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_userAgent_470abfd84e4eedcb=function(){return p((function(t,n){let r=c(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_userAgent_a24a493cd80cbd00=function(){return p((function(t,n){let r=c(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_user_new=function(e){return Oe.__wrap(e)},t.wbg.__wbg_userpackagedefinition_unwrap=function(e){return C.__unwrap(e)},t.wbg.__wbg_uses_7494620cc35a86ad=function(e){let t=e.uses;return d(t)?0:f(t)},t.wbg.__wbg_value_17b896954e14f896=function(e){return e.value},t.wbg.__wbg_value_c22dc41e42f5d813=function(e){return e.value},t.wbg.__wbg_value_f8fe3ce05407a213=function(e){return e.value},t.wbg.__wbg_versions_c71aa1626a93e0a1=function(e){return e.versions},t.wbg.__wbg_view_a9ad80dcbad7cf1c=function(e){let t=e.view;return d(t)?0:f(t)},t.wbg.__wbg_waitAsync_c3398694eaa5aeab=function(e,t,n){return Atomics.waitAsync(e,t>>>0,n)},t.wbg.__wbg_waitAsync_e36f18e2e26c3b7d=function(){return Atomics.waitAsync},t.wbg.__wbg_wasmer_new=function(e){return Ae.__wrap(e)},t.wbg.__wbg_writablestreamsink_new=function(e){return Me.__wrap(e)},t.wbg.__wbindgen_array_new=function(){return[]},t.wbg.__wbindgen_array_push=function(e,t){e.push(t)},t.wbg.__wbindgen_as_number=function(e){return+e},t.wbg.__wbindgen_bigint_from_i64=function(e){return e},t.wbg.__wbindgen_bigint_from_u128=function(e,t){return BigInt.asUintN(64,e)<<BigInt(64)|BigInt.asUintN(64,t)},t.wbg.__wbindgen_bigint_from_u64=function(e){return BigInt.asUintN(64,e)},t.wbg.__wbindgen_bigint_get_as_i64=function(e,t){let n=typeof t==`bigint`?t:void 0;u().setBigInt64(e+8,d(n)?BigInt(0):n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbindgen_boolean_get=function(e){return typeof e==`boolean`?+!!e:2},t.wbg.__wbindgen_cb_drop=function(e){let t=e.original;return t.cnt--==1&&(t.a=0,!0)},t.wbg.__wbindgen_closure_wrapper13762=function(e,t,n){return h(e,t,1342,se)},t.wbg.__wbindgen_closure_wrapper13766=function(e,t,n){return h(e,t,1342,se)},t.wbg.__wbindgen_closure_wrapper13769=function(e,t,n){return h(e,t,1342,ce)},t.wbg.__wbindgen_closure_wrapper7191=function(e,t,n){return h(e,t,541,y)},t.wbg.__wbindgen_closure_wrapper7199=function(e,t,n){return h(e,t,541,y)},t.wbg.__wbindgen_closure_wrapper8876=function(e,t,n){return te(e,t,750,ae)},t.wbg.__wbindgen_closure_wrapper9091=function(e,t,n){return te(e,t,750,oe)},t.wbg.__wbindgen_closure_wrapper9126=function(e,t,n){return h(e,t,750,y)},t.wbg.__wbindgen_closure_wrapper9506=function(e,t,n){return h(e,t,750,y)},t.wbg.__wbindgen_debug_string=function(t,n){let r=c(g(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbindgen_function_table=function(){return e.__wbindgen_export_6},t.wbg.__wbindgen_in=function(e,t){return e in t},t.wbg.__wbindgen_init_externref_table=function(){let t=e.__wbindgen_export_5,n=t.grow(4);t.set(0,void 0),t.set(n+0,void 0),t.set(n+1,null),t.set(n+2,!0),t.set(n+3,!1)},t.wbg.__wbindgen_is_bigint=function(e){return typeof e==`bigint`},t.wbg.__wbindgen_is_falsy=function(e){return!e},t.wbg.__wbindgen_is_function=function(e){return typeof e==`function`},t.wbg.__wbindgen_is_null=function(e){return e===null},t.wbg.__wbindgen_is_object=function(e){return typeof e==`object`&&!!e},t.wbg.__wbindgen_is_string=function(e){return typeof e==`string`},t.wbg.__wbindgen_is_undefined=function(e){return e===void 0},t.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},t.wbg.__wbindgen_jsval_loose_eq=function(e,t){return e==t},t.wbg.__wbindgen_link_db87ac8434ca3f93=function(t){let n=c(URL.createObjectURL===void 0?`data:application/javascript,onmessage%20%3D%20function%20(ev)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20let%20%5Bia%2C%20index%2C%20value%5D%20%3D%20ev.data%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20ia%20%3D%20new%20Int32Array(ia.buffer)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20let%20result%20%3D%20Atomics.wait(ia%2C%20index%2C%20value)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20postMessage(result)%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20`:URL.createObjectURL(new Blob([`onmessage = function (ev) {
|
|
12
|
+
let [ia, index, value] = ev.data;
|
|
13
|
+
ia = new Int32Array(ia.buffer);
|
|
14
|
+
let result = Atomics.wait(ia, index, value);
|
|
15
|
+
postMessage(result);
|
|
16
|
+
};
|
|
17
|
+
`],{type:`text/javascript`})),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;u().setInt32(t+4,r,!0),u().setInt32(t+0,n,!0)},t.wbg.__wbindgen_lt=function(e,t){return e<t},t.wbg.__wbindgen_memory=function(){return e.memory},t.wbg.__wbindgen_module=function(){return w.__wbindgen_wasm_module},t.wbg.__wbindgen_neg=function(e){return-e},t.wbg.__wbindgen_number_get=function(e,t){let n=typeof t==`number`?t:void 0;u().setFloat64(e+8,d(n)?0:n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbindgen_number_new=function(e){return e},t.wbg.__wbindgen_rethrow=function(e){throw e},t.wbg.__wbindgen_shr=function(e,t){return e>>t},t.wbg.__wbindgen_string_get=function(t,n){let r=typeof n==`string`?n:void 0;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbindgen_string_new=function(e,t){return a(e,t)},t.wbg.__wbindgen_throw=function(e,t){throw Error(a(e,t))},t}function Fe(e,t){e.wbg.memory=t||new WebAssembly.Memory({initial:34,maximum:16384,shared:!0})}function Ie(n,r,i){if(e=n.exports,w.__wbindgen_wasm_module=r,l=null,t=null,i!==void 0&&(typeof i!=`number`||i===0||i%65536!=0))throw`invalid stack size`;return e.__wbindgen_start(i),e}async function w(t,n){if(e!==void 0)return e;let r;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t,memory:n,thread_stack_size:r}=t:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),t===void 0&&(t=new URL(``+new URL(`wasmer_js_bg-lccPpAdN.wasm`,import.meta.url).href,``+import.meta.url));let i=Pe();(typeof t==`string`||typeof Request==`function`&&t instanceof Request||typeof URL==`function`&&t instanceof URL)&&(t=fetch(t)),Fe(i,n);let{instance:a,module:o}=await async function(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!Ne.has(e.type)||e.headers.get(`Content-Type`)===`application/wasm`)throw t;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)}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}}(await t,i);return Ie(a,o,r)}const Le=async(e,t)=>{e?(e instanceof WebAssembly.Module||e instanceof URL||e instanceof WebAssembly.Module)&&(t?(console.info("Passing the module and memory as first arguments to the init function is deprecated, please use: `init({module: WASM_MODULE, memory: WASM_MEMORY})`"),e={module:e,memory:t}):(console.info("Passing the module as first argument to the init function is deprecated, please use: `init({module: WASM_MODULE})`"),e={module:e})):e={},Re(e);let n=await w(e.module,e.memory);return e.log&&ie(e.log),e.workerUrl&&re(e.workerUrl.toString()),e.sdkUrl?ne(e.sdkUrl.toString()):ne(new URL(``+new URL(`index-CMYYN-aK.mjs`,import.meta.url).href,``+import.meta.url).toString()),n},Re=e=>{globalThis.__WASMER_REGISTRY__={registryUrl:e.registryUrl,token:e.token}};var ze=``+new URL(`wasmer_js_bg-lccPpAdN.wasm`,import.meta.url).href;Object.freeze([`c`,`cpp`,`rust`,`python`,`javascript`,`typescript`,`go`]),Object.freeze([`cargo`,`npm`,`pypi`,`go`,`cpp`]);const T=`wasm-oj-v2`;Object.freeze({clangPins:`${T}/clang-pins`,clangLibcxxPch:`${T}/clang-libcxx-pch`,clangToolchain:`${T}/clang-toolchain`,compileBatch:`${T}/compile-batch`,compileTrace:`${T}/compile-trace`,conformance:`${T}/conformance`,conformanceEvidence:`${T}/conformance-evidence`,conformanceMatrix:`${T}/conformance-matrix`,cppDependencyLock:`${T}/cpp-dependency-lock`,dependencyLock:`${T}/dependency-lock`,dependencyOfflineBundle:`${T}/dependency-offline-bundle`,incrementalBuildGraph:`${T}/incremental-build-graph`,interactiveRequest:`${T}/interactive-request`,goToolchain:`${T}/go-toolchain`,objectCache:`${T}/object-cache`,pythonToolchain:`${T}/python-toolchain`,replayBundle:`${T}/replay-bundle`,releaseManifest:`${T}/release-manifest`,rustToolchain:`${T}/rust-toolchain`,runRequest:`${T}/run-request`,runtimeBundle:`${T}/runtime-bundle`,runtimeCoreLicenses:`${T}/runtime-core-licenses`,thirdPartyComponents:`${T}/third-party-components`,wasmerSdkLicenses:`${T}/wasmer-sdk-licenses`,toolchainPackage:`${T}/toolchain-package`}),Object.freeze({database:`${T}:storage`,databaseVersion:2,dependencyCache:`${T}:dependencies`,incrementalBuildCache:`${T}:incremental-build-cache`,runtimeFilesCache:`${T}:runtime-files`,toolchainCache:`${T}:toolchains`});const E=`22.0.0-git20542-10`,Be=`wasm-oj/clang@${E}`,Ve=`/toolchains/clang-${E}.webc.gz.bin`,He=`/toolchains/clang-${E}.cc1-pins.json`,Ue=`/toolchains/clang-${E}.manifest.json`,We=`/toolchains/clang-${E}.libcxx-pch.json`,Ge=`/toolchains/clang-${E}.cpp-debug.pch.gz.bin`,Ke=`/toolchains/clang-${E}.cpp-release.pch.gz.bin`,D=`7f10d90b8e52b270f04874641a1d0bf9e94e85b4f6c7573a774cebbc6d32552a`,qe=`21ded33b9c6d4e1aaad5528c940bdaf6c3e84be77ea8f522f018ca7289a2a224`,O=`66c4604dccd3f89d8e1472bf4432367d7396cce4a01279b1a1db445f229dba72`,k=`6382dcdfb6a2da49032a0e08da3b1fb490eb24432be85c3c12e3e871a5065273`,Je=Object.freeze({"cpp-debug":Object.freeze({path:Ge,sha256:`05a4db721448ba33e65977cb4ac366908ea215ab377e3b6d09f1fd224d515b68`,compressedSha256:`a4152027d248412eca8aec3e7e23f6f7c81f95170cae9fd385bcf02e57e91fc9`}),"cpp-release":Object.freeze({path:Ke,sha256:`aec9e778ac527c120ba369b9b0e142cf8206d11365801208847ba0e1c39daa1a`,compressedSha256:`18f4ca8ab8ca7888db572ba34146fc1acb213a7e7305000ea6285188f52f99f4`})}),A=`3.14.6`,Ye=`454ffc53936aa13a0d7f4afbb5bd50ada339c8ebd04bbf27ea19e4104cf43207`,Xe=`${`wasm-oj/cpython@${A}`}#sha256:${Ye}`,Ze=`/toolchains/python-${A}-wasip1.webc.gz.bin`,Qe=`/toolchains/python-${A}-wasip1.manifest.json`,$e=`218cd20ac4abb443e0700816010a615a345a43eae623a0232da2227135a6c7a6`,j=`054eccad04a7cee7ba1661062142ef0d639976850981eab8fc785f48eb26129e`,M=`0.15.1`,et=`wasm-oj/quickjs-ng@${M}`,tt=`/toolchains/quickjs-${M}.wasm.gz.bin`,N=`8c7f0588210490e7d77f198fc91f72c1b94787ab4c359c4786ca59a363c4f5e8`,P=`7.0.2`,nt=`/toolchains/typescript-${P}.wasm.gz.bin`,F=`06e58ce887d95d1895055699b8dc96a1cde7d1f2baa48de40f9b790e3271dc16`,I=`1.91.1-dev`,rt=`/toolchains/rust-${I}.webc.gz.bin`,it=`/toolchains/rust-${I}.manifest.json`,at=`cfbdadc67be1315e735aa55bdf8a5a0d00171982a023fefcf7ba586127753887`,ot=`765de8d68d03078e79f69f49dec0dcab1ff96fe3bbe5e9eafebb2ce61a39d3ee`,st=`d5bbdca994e61888679c5738cb9420649c0854ed0eb5d65468bc67d5d550bce1`,L=`1.26.5`,ct=`/toolchains/go-${L}-wasip1.webc.gz.bin`,lt=`/toolchains/go-${L}-wasip1.manifest.json`,ut=`/toolchains/go-${L}-wasip1.stdlib.gz.bin`,dt=`70a7e359884b09b2e1a622d6ac5cd6e31c334aab519e6dd80dff5e040a9e09e4`,ft=`c3a97934b6a83fefdea5c31f99141f70f76189eedc9ec0fa9ccd41302e50963b`,pt=`5d784e9ca640b9525e84b598c0beb97ca110ae908568ca45f6441a441d99a262`,R=`aeffc384fdc624544f174ba5fc3c22395717fdbc3c4387d677d20855b6be80d8`,mt=`teavm-0.13.1-wasi`,ht=`wasm-oj/java-teavm@${mt}`,z=`/toolchains/java-teavm-0.13.1.wasi.compiler.webc.gz.bin`,B=`/toolchains/java-teavm-0.13.1.compile-classlib.bin`,V=`/toolchains/java-teavm-0.13.1.runtime-classlib.bin`,H=`129f1f51d591e58954f88787d36396b856a9a68ba3ae9c9d14f20bd67c2c7722`,gt=`f8f86761cf31062565187e4a66f73b6903f257fe84c0ce70ea1cd28441b6c2e9`,U=`acfe3fb09e5f2c0c7c8dc2339c66fcdadc1f8e1bf1c74be446926175ef770868`,W=`21a9394586e416af2fca4eb0ed08521cbc8924e1d1afaa07863a59a3cfae54ab`,_t=Object.freeze({[Ve]:D,[He]:O,[Ue]:k,[We]:`d126c99e951a7302d4ea2b66da4ed64d3d74e9d319d562518867c8d8c97a06b8`,[Ge]:Je[`cpp-debug`].compressedSha256,[Ke]:Je[`cpp-release`].compressedSha256,[Ze]:$e,[Qe]:j,[tt]:N,[nt]:F,[rt]:at,[it]:st,[ct]:dt,[lt]:pt,[ut]:R,[z]:H,[B]:U,[V]:W});Object.freeze({c:Object.freeze([D,qe,O,k]),cpp:Object.freeze([D,qe,O,k]),rust:Object.freeze([at,ot,st]),python:Object.freeze([$e,Ye,j,`44d894f91487f20c2bb04fe496a9343db37d8720fb706472c2b4a7f3300db039`]),javascript:Object.freeze([F,N]),typescript:Object.freeze([F,N]),go:Object.freeze([dt,ft,pt,R,`e1ec64b08efd02b35b7ffdaf3970875aaae98325fa4795eafca94ebae2d0d192`,`9e557f5b86961fd604217d7521461c5d2b7322e383fa30dead5669b77db12201`,`2eefca10af935a307ab7946447146bd30e0ea0fb5460be54dc1c55844d155580`])});function vt(e){let t=e.startsWith(`/`)?e:`/toolchains/${e}`,n=_t[t];if(!n)throw Error(`No pinned digest is declared for toolchain asset '${e}'.`);return n}function yt(e,t){let n=vt(e),r=new URL(t.href);r.pathname.endsWith(`/`)||(r.pathname+=`/`);let i=[...r.searchParams];r.search=``;let a=e.slice(e.lastIndexOf(`/`)+1),o=new URL(a,r);for(let[e,t]of i)o.searchParams.append(e,t);return o.searchParams.set(`sha256`,n),o}function G(e){return Object.freeze({...e,compilerPackages:Object.freeze([...e.compilerPackages]),targets:Object.freeze([...e.targets])})}Object.freeze({c:G({language:`c`,label:`Clang 22`,artifact:`wasm`,compilerPackages:[Be],targets:[`wasip1`,`wasix`],version:E,note:`Native wasip1 module via Clang and LLD; directly executable by WASI and WASIX runtimes.`}),cpp:G({language:`cpp`,label:`Clang++ 22 (C++20)`,artifact:`wasm`,compilerPackages:[Be],targets:[`wasip1`,`wasix`],version:E,note:`C++20/libc++ wasip1 module; directly executable by WASI and WASIX runtimes.`}),rust:G({language:`rust`,label:`Rust ${I}`,artifact:`wasm`,compilerPackages:[`rustc@${I}#sha256:${ot}`],targets:[`wasip1`],version:I,note:`Real rustc, its matching standard library, and a fresh deterministic wasm-ld stage execute as one pinned WebC under Wasmer.`}),python:G({language:`python`,label:`CPython ${A}`,artifact:`runtime-bundle`,compilerPackages:[Xe],runtimePackage:Xe,targets:[`wasip1`],version:A,note:`Byte-compiled project bundled with the source-built CPython wasm32-wasip1 interpreter and standard library.`}),javascript:G({language:`javascript`,label:`QuickJS-ng`,artifact:`runtime-bundle`,compilerPackages:[`typescript@${P}-wasi`],runtimePackage:et,targets:[`wasip1`],version:M,note:`JavaScript checked by TypeScript/WASI, then executed by the bundled QuickJS-ng/WASI runtime.`}),typescript:G({language:`typescript`,label:`TypeScript + QuickJS-ng`,artifact:`runtime-bundle`,compilerPackages:[`typescript@${P}-wasi`],runtimePackage:et,targets:[`wasip1`],version:P,note:`The native TypeScript compiler and QuickJS-ng runtime both execute as local WASI modules.`}),go:G({language:`go`,label:`Go ${L}`,artifact:`wasm`,compilerPackages:[`go@${L}#sha256:${ft}`],targets:[`wasip1`],version:L,note:`The standard Go compiler, linker, and pinned wasip1 standard library execute locally as one WebC under Wasmer.`})}),Object.freeze({version:mt,package:ht,compilerAsset:z,compilerCompressedSha256:H,compilerPackageSha256:gt,compileClasslibAsset:B,compileClasslibSha256:U,runtimeClasslibAsset:V,runtimeClasslibSha256:W});function bt(e,t){let n=e.split(`/`).at(-1)?.replace(/\.java$/u,``)??``;if(!/^[A-Za-z_$][\w$]*$/u.test(n))throw Error(`Java entry '${e}' must name a valid .java class file.`);let r=t.match(/^\s*package\s+([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)\s*;/m)?.[1];return r?`${r}.${n}`:n}function xt(e,t){let n=[],r=/^(.*?\.java):(\d+)(?::(\d+))?:\s*(?:(error|warning):\s*)?(.+)$/gim,i;for(;(i=r.exec(e))!==null;)n.push({severity:i[4]?.toLowerCase()===`warning`?`warning`:`error`,message:i[5],file:i[1].replace(/^\/?(?:project|workspace)\//u,``),line:Number(i[2]),column:Number(i[3]??1),source:`java`});return n.length===0&&/(?:error|exception|failed)/iu.test(e)&&n.push({severity:`error`,message:e.trim().split(/\r?\n/u).filter(Boolean).at(-1)??`Java compilation failed.`,file:t,line:1,column:1,source:`java`}),n}Object.freeze({files:256,bytesPerFile:4194304,totalBytes:16777216}),new TextEncoder;async function St(e){let t=typeof e==`string`?new TextEncoder().encode(e):e,n=new Uint8Array(t.byteLength);n.set(t);let r=await crypto.subtle.digest(`SHA-256`,n);return Array.from(new Uint8Array(r),e=>e.toString(16).padStart(2,`0`)).join(``)}const K=1048576,q=Object.freeze({requirements:128,sourceFiles:128,sourceTextBytes:8*K,hosts:32,roots:512,packages:512,referencesPerPackage:512,concurrency:16,metadataBytes:8*K,packageBytes:256*K,totalDownloadBytes:512*K,archiveFiles:16384,unpackedBytes:512*K});Object.freeze({packages:q.packages,filesPerPackage:q.archiveFiles,bytesPerFile:64*K,totalBytes:q.unpackedBytes});function Ct(e){let t=J(),n=wt(e),r=new Blob([`const pendingMessages = [];
|
|
18
|
+
`,`const queueMessage = (event) => { event.stopImmediatePropagation(); pendingMessages.push(event.data); };
|
|
19
|
+
`,`globalThis.addEventListener("message", queueMessage);
|
|
20
|
+
`,`Object.defineProperty(globalThis, "__wasmOjModuleWorkerBaseUrl", { value: ${JSON.stringify(t.href)} });\n`,`try { await import(${JSON.stringify(n)}); } finally { globalThis.removeEventListener("message", queueMessage); }\n`,`for (const data of pendingMessages) globalThis.dispatchEvent(new MessageEvent("message", { data }));
|
|
21
|
+
`],{type:`text/javascript`}),i=URL.createObjectURL(r),a=!0;return{url:i,revoke(){a&&(a=!1,URL.revokeObjectURL(i))}}}function J(){let e=globalThis.location?.href;if(e){let t=new URL(e);if(t.protocol===`http:`||t.protocol===`https:`)return t;if(t.protocol!==`blob:`)throw Error(`A module Worker requires an HTTP(S) browser base URL.`)}let t=globalThis.__wasmOjModuleWorkerBaseUrl;if(typeof t!=`string`)throw Error(`A module Worker requires a browser base URL.`);let n=new URL(t);if(n.origin===`null`||n.protocol!==`http:`&&n.protocol!==`https:`)throw Error(`A module Worker requires an HTTP(S) browser base URL.`);return n}function wt(e){let t=J(),n;try{n=new URL(e instanceof URL?e.href:e,t)}catch{throw Error(`A module Worker URL must be a valid same-origin HTTP(S) URL.`)}if(n.origin!==t.origin||n.username||n.password||n.search||n.hash)throw Error(`A module Worker URL must be same-origin and contain no credentials, query, or fragment.`);return n.href}var Tt=``+new URL(`wasmer-thread.worker-DKlJE3cb.js`,import.meta.url).href;const Y=self,X=J();let Z,Q;Y.addEventListener(`message`,e=>{Et(e.data)});async function Et(e){try{if(e.type===`shutdown`){Q?.free(),Q=void 0,Z?.free(),Z=void 0,Y.postMessage({type:`shutdown-complete`}),Y.close();return}let t=await Dt(e);Y.postMessage({type:`result`,result:t},t.wasm?[t.wasm.buffer]:[])}catch(e){let t=e instanceof Error?e:Error(String(e));Y.postMessage({type:`error`,message:t.message,stack:t.stack})}}async function Dt(e){let t=e.request;if(!t)throw Error(`The Java stage received no compile request.`);let n=Ct(new URL(Tt,X));try{Z||=(await Le({log:`warn`,module:new URL(ze,X),workerUrl:n.url}),new we({registry:null})),Q||=await Ae.fromFile(await Ot(e.assetBaseUrl),Z);let r=Q.commands[`java-compiler`];if(!r)throw Error(`The pinned Java compiler package does not expose java-compiler.`);let i=new _e(Object.fromEntries(t.files.map(e=>[`/${e.path}`,e.content])));await i.createDir(`/build`);let a=new _e({"/compile-classlib-teavm.bin":await $(e.assetBaseUrl,B,U),"/runtime-classlib-teavm.bin":await $(e.assetBaseUrl,V,W)}),o=t.files.find(e=>e.path===t.entry);if(!o)throw Error(`Java entry '${t.entry}' does not exist.`);let s=await(await r.run({args:[`/toolchain/compile-classlib-teavm.bin`,`/toolchain/runtime-classlib-teavm.bin`,bt(t.entry,o.content),`/project/build/app.wasm`,...t.files.filter(e=>e.path.endsWith(`.java`)).map(e=>`/project/${e.path}`)],mount:{"/project":i,"/toolchain":a}})).wait(),c=xt(`${s.stderr}\n${s.stdout}`,t.entry),l;return s.ok&&(l=await i.readFile(`/build/app.wasm`),await WebAssembly.compile(l)),a.free(),i.free(),{success:s.ok&&l!==void 0,wasm:l,stdout:s.stdout,stderr:s.stderr,diagnostics:c}}finally{n.revoke()}}async function Ot(e){let t=await $(e,z,H),n=new Response(t).body;if(!n)throw Error(`The Java compiler package has no response body.`);let r=new Uint8Array(await new Response(n.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer());return await kt(`Java compiler WebC`,r,gt),r}async function $(e,t,n){let r=new URL(e,X);r.pathname.endsWith(`/`)||(r.pathname+=`/`);let i=await fetch(yt(t,r));if(!i.ok)throw Error(`Unable to load pinned Java asset '${t}' (${i.status}).`);let a=new Uint8Array(await i.arrayBuffer());return await kt(t,a,n),a}async function kt(e,t,n){let r=await St(t);if(r!==n)throw Error(`Pinned Java asset '${e}' has digest ${r}; expected ${n}.`)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @wasmer/sdk
|
|
3
|
+
* Wasmer Javascript SDK. It allows interacting with Wasmer Packages in Node.js and the Browser.
|
|
4
|
+
*
|
|
5
|
+
* @version v0.8.0
|
|
6
|
+
* @author Wasmer Engineering Team <engineering@wasmer.io>
|
|
7
|
+
* @homepage https://github.com/wasmerio/wasmer-js
|
|
8
|
+
* @repository git+https://github.com/wasmerio/wasmer-js.git
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
let e,t=null;function n(){return t!==null&&t.buffer===e.memory.buffer||(t=new Uint8Array(e.memory.buffer)),t}let r=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&r.decode();let i=0;function a(e,t){return function(e,t){return i+=t,i>=2146435072&&(r=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}},r.decode(),i=t),r.decode(n().slice(e,e+t))}(e>>>=0,t)}let o=0;const s=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}};function c(e,t,r){if(r===void 0){let r=s.encode(e),i=t(r.length,1)>>>0;return n().subarray(i,i+r.length).set(r),o=r.length,i}let i=e.length,a=t(i,1)>>>0,c=n(),l=0;for(;l<i;l++){let t=e.charCodeAt(l);if(t>127)break;c[a+l]=t}if(l!==i){l!==0&&(e=e.slice(l)),a=r(a,i,i=l+3*e.length,1)>>>0;let t=function(e,t){let n=s.encode(e);return t.set(n),{read:e.length,written:n.length}}(e,n().subarray(a+l,a+i));l+=t.written,a=r(a,i,l,1)>>>0}return o=l,a}let l=null;function u(){return l!==null&&l.buffer===e.memory.buffer||(l=new DataView(e.memory.buffer)),l}function d(e){return e==null}function f(t){let n=e.__externref_table_alloc();return e.__wbindgen_export_5.set(n,t),n}function p(t,n){try{return t.apply(this,n)}catch(t){let n=f(t);e.__wbindgen_exn_store(n)}}function ee(e,t){return e>>>=0,n().subarray(e/1,e/1+t)}const m=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>{e.__wbindgen_export_6.get(t.dtor)(t.a,t.b)}));function h(t,n,r,i){let a={a:t,b:n,cnt:1,dtor:r},o=(...t)=>{a.cnt++;let n=a.a;a.a=0;try{return i(n,a.b,...t)}finally{--a.cnt==0?(e.__wbindgen_export_6.get(a.dtor)(n,a.b),m.unregister(a)):a.a=n}};return o.original=a,m.register(o,a,a),o}function g(t,n,r,i){let a={a:t,b:n,cnt:1,dtor:r},o=(...t)=>{a.cnt++;try{return i(a.a,a.b,...t)}finally{--a.cnt==0&&(e.__wbindgen_export_6.get(a.dtor)(a.a,a.b),a.a=0,m.unregister(a))}};return o.original=a,m.register(o,a,a),o}function _(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=_(e[0]));for(let r=1;r<t;r++)n+=`, `+_(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(!(n&&n.length>1))return toString.call(e);if(r=n[1],r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function v(t){let n=e.__wbindgen_export_5.get(t);return e.__externref_table_dealloc(t),n}function y(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function te(t){e.setSDKUrl(t)}function ne(t){e.setWorkerUrl(t)}function re(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;let i=e.initializeLogger(n,r);if(i[1])throw v(i[0])}function b(t,n,r){e.closure542_externref_shim(t,n,r)}function ie(t,n,r){return e.closure752_externref_shim(t,n,r)}function ae(t,n){return e.closure751_externref_shim(t,n)}function oe(t,n,r){let i=e.closure1343_externref_shim_multivalue_shim(t,n,r);if(i[2])throw v(i[1]);return v(i[0])}function se(t,n,r){let i=e.closure1346_externref_shim_multivalue_shim(t,n,r);if(i[1])throw v(i[0])}const ce=[`blob`,`arraybuffer`],le=[`omit`,`same-origin`,`include`],ue=[`same-origin`,`no-cors`,`cors`,`navigate`],de=[`classic`,`module`];typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_atom_free(t>>>0,1)));const fe=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_command_free(t>>>0,1)));var x=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,fe.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,fe.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_command_free(t,0)}get name(){return e.__wbg_get_command_name(this.__wbg_ptr)}set name(t){e.__wbg_set_command_name(this.__wbg_ptr,t)}run(t){return e.command_run(this.__wbg_ptr,d(t)?0:f(t))}binary(){return e.command_binary(this.__wbg_ptr)}};const pe=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_deployedapp_free(t>>>0,1)));var me=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,pe.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_deployedapp_free(t,0)}get id(){let t,n;try{let r=e.__wbg_get_deployedapp_id(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}get created_at(){let t,n;try{let r=e.__wbg_get_deployedapp_created_at(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set created_at(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,r)}get version(){let t,n;try{let r=e.__wbg_get_deployedapp_version(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set version(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_version(this.__wbg_ptr,n,r)}get description(){let t=e.__wbg_get_deployedapp_description(this.__wbg_ptr),n;return t[0]!==0&&(n=a(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set description(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_description(this.__wbg_ptr,n,r)}get yaml_config(){let t,n;try{let r=e.__wbg_get_deployedapp_yaml_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set yaml_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_yaml_config(this.__wbg_ptr,n,r)}get user_yaml_config(){let t,n;try{let r=e.__wbg_get_deployedapp_user_yaml_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set user_yaml_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_user_yaml_config(this.__wbg_ptr,n,r)}get config(){let t,n;try{let r=e.__wbg_get_deployedapp_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_config(this.__wbg_ptr,n,r)}get json_config(){let t,n;try{let r=e.__wbg_get_deployedapp_json_config(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set json_config(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_json_config(this.__wbg_ptr,n,r)}get url(){let t,n;try{let r=e.__wbg_get_deployedapp_url(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set url(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_url(this.__wbg_ptr,n,r)}get app_id(){let t=e.__wbg_get_deployedapp_app_id(this.__wbg_ptr),n;return t[0]!==0&&(n=a(t[0],t[1]).slice(),e.canonical_abi_free(t[0],1*t[1],1)),n}set app_id(t){var n=d(t)?0:c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_app_id(this.__wbg_ptr,n,r)}};const he=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_directory_free(t>>>0,1)));var ge=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_directory_free(t,0)}__getClassname(){let t,n;try{let r=e.directory___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){let n=e.directory_new(d(t)?0:f(t));if(n[2])throw v(n[1]);return this.__wbg_ptr=n[0]>>>0,he.register(this,this.__wbg_ptr,this),this}readDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readDir(this.__wbg_ptr,n,r)}writeFile(t,n){let r=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;return e.directory_writeFile(this.__wbg_ptr,r,i,n)}readFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readFile(this.__wbg_ptr,n,r)}readTextFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_readTextFile(this.__wbg_ptr,n,r)}createDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_createDir(this.__wbg_ptr,n,r)}removeDir(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_removeDir(this.__wbg_ptr,n,r)}removeFile(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;return e.directory_removeFile(this.__wbg_ptr,n,r)}};const _e=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_instance_free(t>>>0,1)));var ve=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,_e.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_instance_free(t,0)}get stdin(){return e.__wbg_get_instance_stdin(this.__wbg_ptr)}get stdout(){return e.__wbg_get_instance_stdout(this.__wbg_ptr)}get stderr(){return e.__wbg_get_instance_stderr(this.__wbg_ptr)}wait(){let t=this.__destroy_into_raw();return e.instance_wait(t)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingbytesource_free(t>>>0,1))),typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingsink_free(t>>>0,1))),typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_intounderlyingsource_free(t>>>0,1)));const S=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_publishpackageoutput_free(t>>>0,1)));var ye=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,S.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_publishpackageoutput_free(t,0)}get manifest(){return e.__wbg_get_publishpackageoutput_manifest(this.__wbg_ptr)}set manifest(t){e.__wbg_set_publishpackageoutput_manifest(this.__wbg_ptr,t)}get hash(){let t,n;try{let r=e.__wbg_get_publishpackageoutput_hash(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}};const C=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_readablestreamsource_free(t>>>0,1)));var be=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,C.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_readablestreamsource_free(t,0)}pull(t){return e.readablestreamsource_pull(this.__wbg_ptr,t)}cancel(){e.readablestreamsource_cancel(this.__wbg_ptr)}get type(){return e.readablestreamsource_type(this.__wbg_ptr)}};const w=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_runtime_free(t>>>0,1)));var xe=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,w.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,w.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_runtime_free(t,0)}__getClassname(){let t,n;try{let r=e.runtime___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}constructor(t){let n=e.runtime_js_new(d(t)?0:f(t));if(n[2])throw v(n[1]);return this.__wbg_ptr=n[0]>>>0,w.register(this,this.__wbg_ptr,this),this}static global(n){let r=e.runtime_global(d(n)?16777215:+!!n);if(r[2])throw v(r[1]);return r[0]===0?void 0:t.__wrap(r[0])}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_threadpoolworker_free(t>>>0,1)));const T=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_trap_free(t>>>0,1)));var Se=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,T.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_trap_free(t,0)}static __wbg_wasmer_trap(){e.trap___wbg_wasmer_trap()}};const E=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_user_free(t>>>0,1)));var Ce=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,E.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_user_free(t,0)}get id(){let t,n;try{let r=e.__wbg_get_user_id(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set id(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}get username(){let t,n;try{let r=e.__wbg_get_user_username(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set username(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,r)}};const D=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_userpackagedefinition_free(t>>>0,1)));var O=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,D.register(n,n.__wbg_ptr,n),n}static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_userpackagedefinition_free(t,0)}__getClassname(){let t,n;try{let r=e.userpackagedefinition___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}get hash(){let t,n;try{let r=e.__wbg_get_userpackagedefinition_hash(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}set hash(t){let n=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;e.__wbg_set_userpackagedefinition_hash(this.__wbg_ptr,n,r)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_volume_free(t>>>0,1)));const we=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_wasmer_free(t>>>0,1)));var Te=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,we.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,we.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_wasmer_free(t,0)}static createPackage(t){return e.wasmer_createPackage(t)}static publishPackage(n){return y(n,t),e.wasmer_publishPackage(n.__wbg_ptr)}static whoami(){return e.wasmer_whoami()}__getClassname(){let t,n;try{let r=e.wasmer___getClassname(this.__wbg_ptr);return t=r[0],n=r[1],a(r[0],r[1])}finally{e.canonical_abi_free(t,n,1)}}get entrypoint(){let t=e.__wbg_get_wasmer_entrypoint(this.__wbg_ptr);return t===0?void 0:x.__wrap(t)}set entrypoint(t){let n=0;d(t)||(y(t,x),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_entrypoint(this.__wbg_ptr,n)}get commands(){return e.__wbg_get_wasmer_commands(this.__wbg_ptr)}set commands(t){e.__wbg_set_wasmer_commands(this.__wbg_ptr,t)}get pkg(){let t=e.__wbg_get_wasmer_pkg(this.__wbg_ptr);return t===0?void 0:O.__wrap(t)}set pkg(t){let n=0;d(t)||(y(t,O),n=t.__destroy_into_raw()),e.__wbg_set_wasmer_pkg(this.__wbg_ptr,n)}static fromRegistry(t,n){let r=c(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;return e.wasmer_fromRegistry(r,i,d(n)?0:f(n))}static fromFile(t,n){return e.wasmer_fromFile(t,d(n)?0:f(n))}static fromWasm(n,r){let i=e.wasmer_fromWasm(n,d(r)?0:f(r));if(i[2])throw v(i[1]);return t.__wrap(i[0])}static deployApp(t){return e.wasmer_deployApp(t)}static deleteApp(t){return e.wasmer_deleteApp(t)}};typeof FinalizationRegistry>`u`||new FinalizationRegistry((t=>e.__wbg_wasmerpackage_free(t>>>0,1)));const Ee=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>e.__wbg_writablestreamsink_free(t>>>0,1)));var De=class t{static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,Ee.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_writablestreamsink_free(t,0)}close(){return e.writablestreamsink_close(this.__wbg_ptr)}abort(t){e.writablestreamsink_abort(this.__wbg_ptr,t)}write(t){return e.writablestreamsink_write(this.__wbg_ptr,t)}};const Oe=new Set([`basic`,`cors`,`default`]);function ke(){let t={wbg:{}};return t.wbg.__wbg_BigInt_6e3a01c3311ee796=function(e){return BigInt(e)},t.wbg.__wbg_Error_0497d5bdba9362e5=function(e,t){return Error(a(e,t))},t.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){let r=c(String(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_abort_18ba44d46e13d7fe=function(e){e.abort()},t.wbg.__wbg_apiKey_136c64a1dd577ea4=function(t,n){let r=n.apiKey;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_append_0342728346e47425=function(){return p((function(e,t,n,r,i){e.append(a(t,n),a(r,i))}),arguments)},t.wbg.__wbg_apply_8745fdcf855d21f5=function(){return p((function(e,t,n){return e.apply(t,n)}),arguments)},t.wbg.__wbg_apply_d49e9c0472b015cc=function(){return p((function(e,t,n){return Reflect.apply(e,t,n)}),arguments)},t.wbg.__wbg_args_ce3906bca5fd2b6f=function(e){let t=e.args;return d(t)?0:f(t)},t.wbg.__wbg_arrayBuffer_d58b858456021d7f=function(){return p((function(e){return e.arrayBuffer()}),arguments)},t.wbg.__wbg_assert_83d6354717cc805b=function(e,t){console.assert(e!==0,t)},t.wbg.__wbg_async_89f8ca583cefeb81=function(e){return e.async},t.wbg.__wbg_bind_1e748fe02d440d48=function(e,t,n){return e.bind(t,n)},t.wbg.__wbg_bind_d075481af636a524=function(e,t,n,r){return e.bind(t,n,r)},t.wbg.__wbg_buffer_a1a27a0dfa70165d=function(e){return e.buffer},t.wbg.__wbg_buffer_e495ba54cee589cc=function(e){return e.buffer},t.wbg.__wbg_byobRequest_56aa768ee4dfed17=function(e){let t=e.byobRequest;return d(t)?0:f(t)},t.wbg.__wbg_byteLength_937f8a52f9697148=function(e){return e.byteLength},t.wbg.__wbg_byteLength_bf6d30ef92bae19b=function(e){return e.byteLength},t.wbg.__wbg_byteOffset_4d94b7170e641898=function(e){return e.byteOffset},t.wbg.__wbg_call_f2db6205e5c51dc8=function(){return p((function(e,t,n){return e.call(t,n)}),arguments)},t.wbg.__wbg_call_fbe8be8bf6436ce5=function(){return p((function(e,t){return e.call(t)}),arguments)},t.wbg.__wbg_close_290fb040af98d3ac=function(){return p((function(e){e.close()}),arguments)},t.wbg.__wbg_close_b2641ef0870e518c=function(){return p((function(e){e.close()}),arguments)},t.wbg.__wbg_close_f203332f9561bf29=function(e){return e.close()},t.wbg.__wbg_colno_1fbc9165b6cd1b26=function(e){return e.colno},t.wbg.__wbg_command_new=function(e){return x.__wrap(e)},t.wbg.__wbg_constructor_1a4f07ad72d5cac3=function(e){return e.constructor},t.wbg.__wbg_createObjectURL_1acd82bf8749f5a9=function(){return p((function(t,n){let r=c(URL.createObjectURL(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_crypto_ed58b8e10a292839=function(e){return e.crypto},t.wbg.__wbg_customSections_3a8a19674e217d36=function(e,t,n){return WebAssembly.Module.customSections(e,a(t,n))},t.wbg.__wbg_cwd_13b069cde8a90c68=function(t,n){let r=n.cwd;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_data_fffd43bf0ca75fff=function(e){return e.data},t.wbg.__wbg_defineProperty_6a428a581612fed4=function(e,t,n){return Object.defineProperty(e,t,n)},t.wbg.__wbg_deleteProperty_ec71c2c829351683=function(){return p((function(e,t){return Reflect.deleteProperty(e,t)}),arguments)},t.wbg.__wbg_deployedapp_new=function(e){return me.__wrap(e)},t.wbg.__wbg_desiredSize_dd7689d8aa7da7dd=function(e,t){let n=t.desiredSize;u().setFloat64(e+8,d(n)?0:n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbg_done_4d01f352bade43b7=function(e){return e.done},t.wbg.__wbg_enqueue_a62faa171c4fd287=function(){return p((function(e,t){e.enqueue(t)}),arguments)},t.wbg.__wbg_entries_41651c850143b957=function(e){return Object.entries(e)},t.wbg.__wbg_env_6b7462d491e7d2ae=function(e){return e.env},t.wbg.__wbg_error_1950bd19b566135e=function(e,t){e.error(t)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){let r,i;try{r=t,i=n,console.error(a(t,n))}finally{e.canonical_abi_free(r,i,1)}},t.wbg.__wbg_exports_5cb55953fb23c405=function(e){return e.exports},t.wbg.__wbg_exports_93f662ec1dd2b1e2=function(e){return WebAssembly.Module.exports(e)},t.wbg.__wbg_fetch_03b6c973bb6da9b8=function(e){return fetch(e)},t.wbg.__wbg_fetch_6e679fcfa9759479=function(e,t){return e.fetch(t)},t.wbg.__wbg_fetch_a8e43a4e138dfc93=function(e,t){return e.fetch(t)},t.wbg.__wbg_filename_5c8881452d91f4fd=function(t,n){let r=c(n.filename,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_for_555902b1a859c603=function(e,t){return Symbol.for(a(e,t))},t.wbg.__wbg_from_12ff8e47307bd4c7=function(e){return Array.from(e)},t.wbg.__wbg_getPrototypeOf_a1794d62c12daab4=function(){return p((function(e){return Reflect.getPrototypeOf(e)}),arguments)},t.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return p((function(e,t){e.getRandomValues(t)}),arguments)},t.wbg.__wbg_getTime_2afe67905d873e92=function(e){return e.getTime()},t.wbg.__wbg_getTimezoneOffset_31f33c0868da345e=function(e){return e.getTimezoneOffset()},t.wbg.__wbg_get_92470be87867c2e5=function(){return p((function(e,t){return Reflect.get(e,t)}),arguments)},t.wbg.__wbg_get_a131a44bd1eb6979=function(e,t){return e[t>>>0]},t.wbg.__wbg_get_be8d302ec5bf8863=function(){return p((function(e,t){return e.get(t>>>0)}),arguments)},t.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,t){return e[t]},t.wbg.__wbg_grow_0a942972adfcde67=function(){return p((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_grow_ae9c73e837b2d936=function(e,t){return e.grow(t>>>0)},t.wbg.__wbg_grow_d034989fce14cc8e=function(){return p((function(e,t){return e.grow(t>>>0)}),arguments)},t.wbg.__wbg_hardwareConcurrency_10d7194b406e56d2=function(e){return e.hardwareConcurrency},t.wbg.__wbg_hardwareConcurrency_fd778a5fdf975150=function(e){return e.hardwareConcurrency},t.wbg.__wbg_has_809e438ee9d787a7=function(){return p((function(e,t){return Reflect.has(e,t)}),arguments)},t.wbg.__wbg_headers_0f0cbdc6290b6780=function(e){return e.headers},t.wbg.__wbg_headers_67fbc7839fe933b3=function(e){return e.headers},t.wbg.__wbg_imports_1f5c972c2e57dfb5=function(e){return WebAssembly.Module.imports(e)},t.wbg.__wbg_instance_new=function(e){return ve.__wrap(e)},t.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc=function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},t.wbg.__wbg_instanceof_Blob_2688511ca2a71508=function(e){let t;try{t=e instanceof Blob}catch{t=!1}return t},t.wbg.__wbg_instanceof_Date_ef7e3d6f544a9d16=function(e){let t;try{t=e instanceof Date}catch{t=!1}return t},t.wbg.__wbg_instanceof_Error_58a92d81483a4b16=function(e){let t;try{t=e instanceof Error}catch{t=!1}return t},t.wbg.__wbg_instanceof_Function_4de5a228b53c20c3=function(e){let t;try{t=e instanceof Function}catch{t=!1}return t},t.wbg.__wbg_instanceof_Global_d43eb3e1373e574d=function(e){let t;try{t=e instanceof WebAssembly.Global}catch{t=!1}return t},t.wbg.__wbg_instanceof_Map_80cc65041c96417a=function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},t.wbg.__wbg_instanceof_Memory_613951003465ef5c=function(e){let t;try{t=e instanceof WebAssembly.Memory}catch{t=!1}return t},t.wbg.__wbg_instanceof_Module_ac6579472cc013d8=function(e){let t;try{t=e instanceof WebAssembly.Module}catch{t=!1}return t},t.wbg.__wbg_instanceof_Object_9a05796038b7a8f6=function(e){let t;try{t=e instanceof Object}catch{t=!1}return t},t.wbg.__wbg_instanceof_RangeError_67b19cb7651a2151=function(e){let t;try{t=e instanceof RangeError}catch{t=!1}return t},t.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2=function(e){let t;try{t=e instanceof Response}catch{t=!1}return t},t.wbg.__wbg_instanceof_Table_a5fae5b77c0e21e8=function(e){let t;try{t=e instanceof WebAssembly.Table}catch{t=!1}return t},t.wbg.__wbg_instanceof_Tag_ff306496211677da=function(e){let t;try{t=e instanceof WebAssembly.Tag}catch{t=!1}return t},t.wbg.__wbg_instanceof_TypeError_16d245a01d4dd626=function(e){let t;try{t=e instanceof TypeError}catch{t=!1}return t},t.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827=function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},t.wbg.__wbg_instanceof_Window_68f3f67bad1729c1=function(e){let t;try{t=e instanceof Window}catch{t=!1}return t},t.wbg.__wbg_instanceof_WorkerGlobalScope_11f8a14c11024785=function(e){let t;try{t=e instanceof WorkerGlobalScope}catch{t=!1}return t},t.wbg.__wbg_isArray_2a07fd175d45c496=function(e){return Array.isArray(e)},t.wbg.__wbg_isArray_5f090bed72bd4f89=function(e){return Array.isArray(e)},t.wbg.__wbg_isSafeInteger_90d7c4674047d684=function(e){return Number.isSafeInteger(e)},t.wbg.__wbg_is_49ee71a294f7d2fe=function(e,t){return Object.is(e,t)},t.wbg.__wbg_iterator_4068add5b2aef7a6=function(){return Symbol.iterator},t.wbg.__wbg_keys_42062809bf87339e=function(e){return Object.keys(e)},t.wbg.__wbg_length_865e6e8de4a8c6cb=function(e){return e.length},t.wbg.__wbg_length_ab6d22b5ead75c72=function(e){return e.length},t.wbg.__wbg_length_f00ec12454a5d9fd=function(e){return e.length},t.wbg.__wbg_lineno_9fe2a23a82cebd53=function(e){return e.lineno},t.wbg.__wbg_locked_c5cc88823268db66=function(e){return e.locked},t.wbg.__wbg_log_ea240990d83e374e=function(e){console.log(e)},t.wbg.__wbg_message_4159c15dac08c5e9=function(e){return e.message},t.wbg.__wbg_message_44ef9b801b7d8bc3=function(t,n){let r=c(n.message,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_mount_dfb06836b0f9b20b=function(e){return e.mount},t.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(e){return e.msCrypto},t.wbg.__wbg_navigator_6db993f5ffeb46be=function(e){return e.navigator},t.wbg.__wbg_navigator_fc64ba1417939b25=function(e){return e.navigator},t.wbg.__wbg_networkGateway_79e326cb5c82e7fd=function(t,n){let r=n.networkGateway;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_new0_97314565408dea38=function(){return new Date},t.wbg.__wbg_new_07b483f72211fd66=function(){return{}},t.wbg.__wbg_new_104a6fcd57ac32c0=function(){return p((function(){return new FileReader}),arguments)},t.wbg.__wbg_new_181343b7eb238d99=function(e){return new Int32Array(e)},t.wbg.__wbg_new_186abcfdff244e42=function(){return p((function(){return new AbortController}),arguments)},t.wbg.__wbg_new_2debb2b422bd07bd=function(){return p((function(e,t){return new WebAssembly.Global(e,t)}),arguments)},t.wbg.__wbg_new_39fae4e38868373c=function(){return p((function(e,t){return new Worker(a(e,t))}),arguments)},t.wbg.__wbg_new_476169e6d59f23ae=function(e,t){return Error(a(e,t))},t.wbg.__wbg_new_4796e1cd2eb9ea6d=function(){return p((function(){return new Headers}),arguments)},t.wbg.__wbg_new_58353953ad2097cc=function(){return[]},t.wbg.__wbg_new_5dd74caa1b362828=function(){return p((function(e){return new WebAssembly.Module(e)}),arguments)},t.wbg.__wbg_new_7449da607adc249f=function(){return p((function(e,t){return new WebAssembly.Instance(e,t)}),arguments)},t.wbg.__wbg_new_75fba833e24e4ae9=function(){return p((function(e){return new WebAssembly.Memory(e)}),arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},t.wbg.__wbg_new_a2957aa5684de228=function(e){return new Date(e)},t.wbg.__wbg_new_a4e7a0370d48e1b4=function(){return p((function(e){return new ReadableStreamDefaultReader(e)}),arguments)},t.wbg.__wbg_new_a979b4b45bd55c7f=function(){return new Map},t.wbg.__wbg_new_b60148568efca43b=function(e,t){return TypeError(a(e,t))},t.wbg.__wbg_new_e30c39c06edaabf2=function(t,n){try{var r={a:t,b:n};return new Promise(((t,n)=>{let i=r.a;r.a=0;try{return function(t,n,r,i){e.closure191_externref_shim(t,n,r,i)}(i,r.b,t,n)}finally{r.a=i}}))}finally{r.a=r.b=0}},t.wbg.__wbg_new_e52b3efaaa774f96=function(e){return new Uint8Array(e)},t.wbg.__wbg_new_e769da3b652f0d9f=function(){return p((function(e){return new WebAssembly.Table(e)}),arguments)},t.wbg.__wbg_new_f42a001532528172=function(){return p((function(e,t){return new WebSocket(a(e,t))}),arguments)},t.wbg.__wbg_new_fd4b538754de98d6=function(){return p((function(e){return new WebAssembly.Tag(e)}),arguments)},t.wbg.__wbg_newfromslice_7c05ab1297cb2d88=function(e,t){return new Uint8Array(ee(e,t))},t.wbg.__wbg_newnoargs_ff528e72d35de39a=function(e,t){return Function(a(e,t))},t.wbg.__wbg_newwithargs_17a05078fc85d3aa=function(e,t,n,r){return Function(a(e,t),a(n,r))},t.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},t.wbg.__wbg_newwithlength_08f872dc1e3ada2e=function(e){return new Uint8Array(e>>>0)},t.wbg.__wbg_newwithlength_6ee231411efd06b6=function(e){return Array(e>>>0)},t.wbg.__wbg_newwithoptions_9931e161b714ebf9=function(){return p((function(e,t,n){return new Worker(a(e,t),n)}),arguments)},t.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37=function(){return p((function(e,t,n){return new Request(a(e,t),n)}),arguments)},t.wbg.__wbg_newwithu8arraysequenceandoptions_3b5b6ab7317ffd8f=function(){return p((function(e,t){return new Blob(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsinkandstrategy_481c2b5a223a4560=function(){return p((function(e,t){return new WritableStream(e,t)}),arguments)},t.wbg.__wbg_newwithunderlyingsourceandstrategy_594ea2be3e0723ff=function(){return p((function(e,t){return new ReadableStream(e,t)}),arguments)},t.wbg.__wbg_next_8bb824d217961b5d=function(e){return e.next},t.wbg.__wbg_next_e2da48d8fff7439a=function(){return p((function(e){return e.next()}),arguments)},t.wbg.__wbg_node_02999533c4ea02e3=function(e){return e.node},t.wbg.__wbg_now_eb0821f3bd9f6529=function(){return Date.now()},t.wbg.__wbg_of_995ab9c48c3965f1=function(e,t,n){return[e,t,n]},t.wbg.__wbg_postMessage_54ce7f4b41ac732e=function(){return p((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_postMessage_95ef4554c6b7ca0c=function(){return p((function(e,t){e.postMessage(t)}),arguments)},t.wbg.__wbg_process_5c1d670bc53614b8=function(e){return e.process},t.wbg.__wbg_program_0ccd177127e926dc=function(e){return e.program},t.wbg.__wbg_publishpackageoutput_new=function(e){return ye.__wrap(e)},t.wbg.__wbg_push_73fd7b5550ebf707=function(e,t){return e.push(t)},t.wbg.__wbg_queueMicrotask_46c1df247678729f=function(e){queueMicrotask(e)},t.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11=function(e){return e.queueMicrotask},t.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return p((function(e,t){e.randomFillSync(t)}),arguments)},t.wbg.__wbg_random_210bb7fbfa33591d=function(){return Math.random()},t.wbg.__wbg_readAsArrayBuffer_ec86f70be9ee80e9=function(){return p((function(e,t){e.readAsArrayBuffer(t)}),arguments)},t.wbg.__wbg_read_f4b89f69cc51efc7=function(e){return e.read()},t.wbg.__wbg_readablestreamsource_new=function(e){return be.__wrap(e)},t.wbg.__wbg_redirected_380499cd18bc27c0=function(e){return e.redirected},t.wbg.__wbg_registry_0193688f92324c7c=function(e){let t=e.registry;return d(t)?0:f(t)},t.wbg.__wbg_releaseLock_c589dd51c0812aca=function(e){e.releaseLock()},t.wbg.__wbg_require_79b1e9274cde3c87=function(){return p((function(){return module.require}),arguments)},t.wbg.__wbg_resolve_0dac8c580ffd4678=function(e){return Promise.resolve(e)},t.wbg.__wbg_respond_b227f1c3be2bb879=function(){return p((function(e,t){e.respond(t>>>0)}),arguments)},t.wbg.__wbg_result_142fc4d88cbccb26=function(){return p((function(e){return e.result}),arguments)},t.wbg.__wbg_runtime_3a007260b7cad09f=function(e){return e.runtime},t.wbg.__wbg_send_05456d2bf190b017=function(){return p((function(e,t){e.send(t)}),arguments)},t.wbg.__wbg_setTimeout_84a114fc6c4403f8=function(){return p((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_setTimeout_906fea9a7279f446=function(){return p((function(e,t,n){return e.setTimeout(t,n)}),arguments)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,n){e[t]=n},t.wbg.__wbg_set_7422acbe992d64ab=function(e,t,n){e[t>>>0]=n},t.wbg.__wbg_set_b042eef31c50834d=function(){return p((function(e,t,n,r,i){e.set(a(t,n),a(r,i))}),arguments)},t.wbg.__wbg_set_c43293f93a35998a=function(){return p((function(e,t,n){return Reflect.set(e,t,n)}),arguments)},t.wbg.__wbg_set_d6bdfd275fb8a4ce=function(e,t,n){return e.set(t,n)},t.wbg.__wbg_set_eeace154fc5ce736=function(){return p((function(e,t,n){e.set(t>>>0,n)}),arguments)},t.wbg.__wbg_set_fe4e79d1ed3b0e9b=function(e,t,n){e.set(t,n>>>0)},t.wbg.__wbg_setbinaryType_52787d6025601cc5=function(e,t){e.binaryType=ce[t]},t.wbg.__wbg_setbody_971ec015fc13d6b4=function(e,t){e.body=t},t.wbg.__wbg_setcredentials_920d91fb5984c94a=function(e,t){e.credentials=le[t]},t.wbg.__wbg_setheaders_65a4eb4c0443ae61=function(e,t){e.headers=t},t.wbg.__wbg_sethighwatermark_3017ad772d071dcb=function(e,t){e.highWaterMark=t},t.wbg.__wbg_setmethod_8ce1be0b4d701b7c=function(e,t,n){e.method=a(t,n)},t.wbg.__wbg_setmode_bd35f026f55b6247=function(e,t){e.mode=ue[t]},t.wbg.__wbg_setname_9b01ac306adf8bfd=function(e,t,n){e.name=a(t,n)},t.wbg.__wbg_setonclose_c6db38f935250174=function(e,t){e.onclose=t},t.wbg.__wbg_setonerror_890bfd1ff86e9c78=function(e,t){e.onerror=t},t.wbg.__wbg_setonloadend_a6c211075855db45=function(e,t){e.onloadend=t},t.wbg.__wbg_setonmessage_49ca623a77cfb3e6=function(e,t){e.onmessage=t},t.wbg.__wbg_setonmessage_f6cf46183c427754=function(e,t){e.onmessage=t},t.wbg.__wbg_setonopen_1475cbeb761c101f=function(e,t){e.onopen=t},t.wbg.__wbg_setsignal_8e72abfe7ee03c97=function(e,t){e.signal=t},t.wbg.__wbg_setsize_13f2192310db9b34=function(e,t){e.size=t},t.wbg.__wbg_settype_acc38e64fddb9e3f=function(e,t,n){e.type=a(t,n)},t.wbg.__wbg_settype_ca83ae32b7117898=function(e,t){e.type=de[t]},t.wbg.__wbg_setvalue_bd9df7c968e4b416=function(e,t){e.value=t},t.wbg.__wbg_signal_b96223519a041faa=function(e){return e.signal},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){let r=c(n.stack,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d=function(){let e=typeof global>`u`?null:global;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291=function(){let e=typeof globalThis>`u`?null:globalThis;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_SELF_78c9e3071b912620=function(){let e=typeof self>`u`?null:self;return d(e)?0:f(e)},t.wbg.__wbg_static_accessor_WINDOW_a093d21393777366=function(){let e=typeof window>`u`?null:window;return d(e)?0:f(e)},t.wbg.__wbg_status_a54682bbe52f9058=function(e){return e.status},t.wbg.__wbg_stdin_4d05ba90fc2c39de=function(e){let t=e.stdin;return d(t)?0:f(t)},t.wbg.__wbg_stringify_c242842b97f054cc=function(){return p((function(e){return JSON.stringify(e)}),arguments)},t.wbg.__wbg_subarray_dd4ade7d53bd8e26=function(e,t,n){return e.subarray(t>>>0,n>>>0)},t.wbg.__wbg_terminate_af36b01db24a1745=function(e){e.terminate()},t.wbg.__wbg_text_ec0e22f60e30dd2f=function(){return p((function(e){return e.text()}),arguments)},t.wbg.__wbg_then_82ab9fb4080f1707=function(e,t,n){return e.then(t,n)},t.wbg.__wbg_then_db882932c0c714c6=function(e,t){return e.then(t)},t.wbg.__wbg_toString_2a748bb7135f7e4d=function(t,n,r){let i=c(n.toString(r),e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbg_toString_bc7a05a172b5cf14=function(e){return e.toString()},t.wbg.__wbg_trap_new=function(e){return Se.__wrap(e)},t.wbg.__wbg_url_e6ed869ea05b7a71=function(t,n){let r=c(n.url,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbg_userAgent_470abfd84e4eedcb=function(){return p((function(t,n){let r=c(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_userAgent_a24a493cd80cbd00=function(){return p((function(t,n){let r=c(n.userAgent,e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)}),arguments)},t.wbg.__wbg_user_new=function(e){return Ce.__wrap(e)},t.wbg.__wbg_userpackagedefinition_unwrap=function(e){return O.__unwrap(e)},t.wbg.__wbg_uses_7494620cc35a86ad=function(e){let t=e.uses;return d(t)?0:f(t)},t.wbg.__wbg_value_17b896954e14f896=function(e){return e.value},t.wbg.__wbg_value_c22dc41e42f5d813=function(e){return e.value},t.wbg.__wbg_value_f8fe3ce05407a213=function(e){return e.value},t.wbg.__wbg_versions_c71aa1626a93e0a1=function(e){return e.versions},t.wbg.__wbg_view_a9ad80dcbad7cf1c=function(e){let t=e.view;return d(t)?0:f(t)},t.wbg.__wbg_waitAsync_c3398694eaa5aeab=function(e,t,n){return Atomics.waitAsync(e,t>>>0,n)},t.wbg.__wbg_waitAsync_e36f18e2e26c3b7d=function(){return Atomics.waitAsync},t.wbg.__wbg_wasmer_new=function(e){return Te.__wrap(e)},t.wbg.__wbg_writablestreamsink_new=function(e){return De.__wrap(e)},t.wbg.__wbindgen_array_new=function(){return[]},t.wbg.__wbindgen_array_push=function(e,t){e.push(t)},t.wbg.__wbindgen_as_number=function(e){return+e},t.wbg.__wbindgen_bigint_from_i64=function(e){return e},t.wbg.__wbindgen_bigint_from_u128=function(e,t){return BigInt.asUintN(64,e)<<BigInt(64)|BigInt.asUintN(64,t)},t.wbg.__wbindgen_bigint_from_u64=function(e){return BigInt.asUintN(64,e)},t.wbg.__wbindgen_bigint_get_as_i64=function(e,t){let n=typeof t==`bigint`?t:void 0;u().setBigInt64(e+8,d(n)?BigInt(0):n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbindgen_boolean_get=function(e){return typeof e==`boolean`?+!!e:2},t.wbg.__wbindgen_cb_drop=function(e){let t=e.original;return t.cnt--==1&&(t.a=0,!0)},t.wbg.__wbindgen_closure_wrapper13762=function(e,t,n){return h(e,t,1342,oe)},t.wbg.__wbindgen_closure_wrapper13766=function(e,t,n){return h(e,t,1342,oe)},t.wbg.__wbindgen_closure_wrapper13769=function(e,t,n){return h(e,t,1342,se)},t.wbg.__wbindgen_closure_wrapper7191=function(e,t,n){return h(e,t,541,b)},t.wbg.__wbindgen_closure_wrapper7199=function(e,t,n){return h(e,t,541,b)},t.wbg.__wbindgen_closure_wrapper8876=function(e,t,n){return g(e,t,750,ie)},t.wbg.__wbindgen_closure_wrapper9091=function(e,t,n){return g(e,t,750,ae)},t.wbg.__wbindgen_closure_wrapper9126=function(e,t,n){return h(e,t,750,b)},t.wbg.__wbindgen_closure_wrapper9506=function(e,t,n){return h(e,t,750,b)},t.wbg.__wbindgen_debug_string=function(t,n){let r=c(_(n),e.__wbindgen_malloc,e.__wbindgen_realloc),i=o;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},t.wbg.__wbindgen_function_table=function(){return e.__wbindgen_export_6},t.wbg.__wbindgen_in=function(e,t){return e in t},t.wbg.__wbindgen_init_externref_table=function(){let t=e.__wbindgen_export_5,n=t.grow(4);t.set(0,void 0),t.set(n+0,void 0),t.set(n+1,null),t.set(n+2,!0),t.set(n+3,!1)},t.wbg.__wbindgen_is_bigint=function(e){return typeof e==`bigint`},t.wbg.__wbindgen_is_falsy=function(e){return!e},t.wbg.__wbindgen_is_function=function(e){return typeof e==`function`},t.wbg.__wbindgen_is_null=function(e){return e===null},t.wbg.__wbindgen_is_object=function(e){return typeof e==`object`&&!!e},t.wbg.__wbindgen_is_string=function(e){return typeof e==`string`},t.wbg.__wbindgen_is_undefined=function(e){return e===void 0},t.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},t.wbg.__wbindgen_jsval_loose_eq=function(e,t){return e==t},t.wbg.__wbindgen_link_db87ac8434ca3f93=function(t){let n=c(URL.createObjectURL===void 0?`data:application/javascript,onmessage%20%3D%20function%20(ev)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20let%20%5Bia%2C%20index%2C%20value%5D%20%3D%20ev.data%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20ia%20%3D%20new%20Int32Array(ia.buffer)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20let%20result%20%3D%20Atomics.wait(ia%2C%20index%2C%20value)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20postMessage(result)%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20`:URL.createObjectURL(new Blob([`onmessage = function (ev) {
|
|
12
|
+
let [ia, index, value] = ev.data;
|
|
13
|
+
ia = new Int32Array(ia.buffer);
|
|
14
|
+
let result = Atomics.wait(ia, index, value);
|
|
15
|
+
postMessage(result);
|
|
16
|
+
};
|
|
17
|
+
`],{type:`text/javascript`})),e.__wbindgen_malloc,e.__wbindgen_realloc),r=o;u().setInt32(t+4,r,!0),u().setInt32(t+0,n,!0)},t.wbg.__wbindgen_lt=function(e,t){return e<t},t.wbg.__wbindgen_memory=function(){return e.memory},t.wbg.__wbindgen_module=function(){return k.__wbindgen_wasm_module},t.wbg.__wbindgen_neg=function(e){return-e},t.wbg.__wbindgen_number_get=function(e,t){let n=typeof t==`number`?t:void 0;u().setFloat64(e+8,d(n)?0:n,!0),u().setInt32(e+0,!d(n),!0)},t.wbg.__wbindgen_number_new=function(e){return e},t.wbg.__wbindgen_rethrow=function(e){throw e},t.wbg.__wbindgen_shr=function(e,t){return e>>t},t.wbg.__wbindgen_string_get=function(t,n){let r=typeof n==`string`?n:void 0;var i=d(r)?0:c(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=o;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},t.wbg.__wbindgen_string_new=function(e,t){return a(e,t)},t.wbg.__wbindgen_throw=function(e,t){throw Error(a(e,t))},t}function Ae(e,t){e.wbg.memory=t||new WebAssembly.Memory({initial:34,maximum:16384,shared:!0})}function je(n,r,i){if(e=n.exports,k.__wbindgen_wasm_module=r,l=null,t=null,i!==void 0&&(typeof i!=`number`||i===0||i%65536!=0))throw`invalid stack size`;return e.__wbindgen_start(i),e}async function k(t,n){if(e!==void 0)return e;let r;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t,memory:n,thread_stack_size:r}=t:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),t===void 0&&(t=new URL(``+new URL(`wasmer_js_bg-lccPpAdN.wasm`,import.meta.url).href,``+import.meta.url));let i=ke();(typeof t==`string`||typeof Request==`function`&&t instanceof Request||typeof URL==`function`&&t instanceof URL)&&(t=fetch(t)),Ae(i,n);let{instance:a,module:o}=await async function(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!Oe.has(e.type)||e.headers.get(`Content-Type`)===`application/wasm`)throw t;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)}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}}(await t,i);return je(a,o,r)}const Me=async(e,t)=>{e?(e instanceof WebAssembly.Module||e instanceof URL||e instanceof WebAssembly.Module)&&(t?(console.info("Passing the module and memory as first arguments to the init function is deprecated, please use: `init({module: WASM_MODULE, memory: WASM_MEMORY})`"),e={module:e,memory:t}):(console.info("Passing the module as first argument to the init function is deprecated, please use: `init({module: WASM_MODULE})`"),e={module:e})):e={},Ne(e);let n=await k(e.module,e.memory);return e.log&&re(e.log),e.workerUrl&&ne(e.workerUrl.toString()),e.sdkUrl?te(e.sdkUrl.toString()):te(new URL(``+new URL(`index-CMYYN-aK.mjs`,import.meta.url).href,``+import.meta.url).toString()),n},Ne=e=>{globalThis.__WASMER_REGISTRY__={registryUrl:e.registryUrl,token:e.token}};var Pe=``+new URL(`wasmer_js_bg-lccPpAdN.wasm`,import.meta.url).href;const Fe=18e4;function Ie(e){return e.replace(/^file:\/\//,``).replace(/^\/?(?:workspace|project|work)\//,``).replace(/^\.\//,``)}function Le(e){let t=[],n=e.split(/\r?\n/);for(let e=0;e<n.length;e+=1){let r=n[e].match(/^\s*File "([^"]+)", line (\d+)/);if(!r)continue;let i=1,a=`Python compilation failed`,o=(n[e+2]??``).indexOf(`^`);o>=0&&(i=o+1);for(let t=e+1;t<Math.min(n.length,e+6);t+=1){let e=n[t].match(/^([A-Za-z]+(?:Error|Exception)):\s*(.+)$/);if(e){a=`${e[1]}: ${e[2]}`;break}}t.push({file:Ie(r[1]),line:Number(r[2]),column:i,severity:`error`,message:a,source:`python`})}return t}Object.freeze([`c`,`cpp`,`rust`,`python`,`javascript`,`typescript`,`go`]),Object.freeze([`cargo`,`npm`,`pypi`,`go`,`cpp`]);const A=`wasm-oj-v2`;Object.freeze({clangPins:`${A}/clang-pins`,clangLibcxxPch:`${A}/clang-libcxx-pch`,clangToolchain:`${A}/clang-toolchain`,compileBatch:`${A}/compile-batch`,compileTrace:`${A}/compile-trace`,conformance:`${A}/conformance`,conformanceEvidence:`${A}/conformance-evidence`,conformanceMatrix:`${A}/conformance-matrix`,cppDependencyLock:`${A}/cpp-dependency-lock`,dependencyLock:`${A}/dependency-lock`,dependencyOfflineBundle:`${A}/dependency-offline-bundle`,incrementalBuildGraph:`${A}/incremental-build-graph`,interactiveRequest:`${A}/interactive-request`,goToolchain:`${A}/go-toolchain`,objectCache:`${A}/object-cache`,pythonToolchain:`${A}/python-toolchain`,replayBundle:`${A}/replay-bundle`,releaseManifest:`${A}/release-manifest`,rustToolchain:`${A}/rust-toolchain`,runRequest:`${A}/run-request`,runtimeBundle:`${A}/runtime-bundle`,runtimeCoreLicenses:`${A}/runtime-core-licenses`,thirdPartyComponents:`${A}/third-party-components`,wasmerSdkLicenses:`${A}/wasmer-sdk-licenses`,toolchainPackage:`${A}/toolchain-package`}),Object.freeze({database:`${A}:storage`,databaseVersion:2,dependencyCache:`${A}:dependencies`,incrementalBuildCache:`${A}:incremental-build-cache`,runtimeFilesCache:`${A}:runtime-files`,toolchainCache:`${A}:toolchains`});const j=`22.0.0-git20542-10`,Re=`wasm-oj/clang@${j}`,ze=`/toolchains/clang-${j}.webc.gz.bin`,Be=`/toolchains/clang-${j}.cc1-pins.json`,Ve=`/toolchains/clang-${j}.manifest.json`,He=`/toolchains/clang-${j}.libcxx-pch.json`,Ue=`/toolchains/clang-${j}.cpp-debug.pch.gz.bin`,We=`/toolchains/clang-${j}.cpp-release.pch.gz.bin`,M=`7f10d90b8e52b270f04874641a1d0bf9e94e85b4f6c7573a774cebbc6d32552a`,Ge=`21ded33b9c6d4e1aaad5528c940bdaf6c3e84be77ea8f522f018ca7289a2a224`,N=`66c4604dccd3f89d8e1472bf4432367d7396cce4a01279b1a1db445f229dba72`,P=`6382dcdfb6a2da49032a0e08da3b1fb490eb24432be85c3c12e3e871a5065273`,F=Object.freeze({"cpp-debug":Object.freeze({path:Ue,sha256:`05a4db721448ba33e65977cb4ac366908ea215ab377e3b6d09f1fd224d515b68`,compressedSha256:`a4152027d248412eca8aec3e7e23f6f7c81f95170cae9fd385bcf02e57e91fc9`}),"cpp-release":Object.freeze({path:We,sha256:`aec9e778ac527c120ba369b9b0e142cf8206d11365801208847ba0e1c39daa1a`,compressedSha256:`18f4ca8ab8ca7888db572ba34146fc1acb213a7e7305000ea6285188f52f99f4`})}),I=`3.14.6`,L=`454ffc53936aa13a0d7f4afbb5bd50ada339c8ebd04bbf27ea19e4104cf43207`,R=`${`wasm-oj/cpython@${I}`}#sha256:${L}`,z=`/toolchains/python-${I}-wasip1.webc.gz.bin`,Ke=`/toolchains/python-${I}-wasip1.manifest.json`,B=`218cd20ac4abb443e0700816010a615a345a43eae623a0232da2227135a6c7a6`,qe=`054eccad04a7cee7ba1661062142ef0d639976850981eab8fc785f48eb26129e`,V=`0.15.1`,Je=`wasm-oj/quickjs-ng@${V}`,Ye=`/toolchains/quickjs-${V}.wasm.gz.bin`,H=`8c7f0588210490e7d77f198fc91f72c1b94787ab4c359c4786ca59a363c4f5e8`,U=`7.0.2`,Xe=`/toolchains/typescript-${U}.wasm.gz.bin`,W=`06e58ce887d95d1895055699b8dc96a1cde7d1f2baa48de40f9b790e3271dc16`,G=`1.91.1-dev`,Ze=`/toolchains/rust-${G}.webc.gz.bin`,Qe=`/toolchains/rust-${G}.manifest.json`,$e=`cfbdadc67be1315e735aa55bdf8a5a0d00171982a023fefcf7ba586127753887`,et=`765de8d68d03078e79f69f49dec0dcab1ff96fe3bbe5e9eafebb2ce61a39d3ee`,tt=`d5bbdca994e61888679c5738cb9420649c0854ed0eb5d65468bc67d5d550bce1`,K=`1.26.5`,nt=`/toolchains/go-${K}-wasip1.webc.gz.bin`,rt=`/toolchains/go-${K}-wasip1.manifest.json`,it=`/toolchains/go-${K}-wasip1.stdlib.gz.bin`,at=`70a7e359884b09b2e1a622d6ac5cd6e31c334aab519e6dd80dff5e040a9e09e4`,ot=`c3a97934b6a83fefdea5c31f99141f70f76189eedc9ec0fa9ccd41302e50963b`,q=`5d784e9ca640b9525e84b598c0beb97ca110ae908568ca45f6441a441d99a262`,st=`aeffc384fdc624544f174ba5fc3c22395717fdbc3c4387d677d20855b6be80d8`,ct=Object.freeze({[ze]:M,[Be]:N,[Ve]:P,[He]:`d126c99e951a7302d4ea2b66da4ed64d3d74e9d319d562518867c8d8c97a06b8`,[Ue]:F[`cpp-debug`].compressedSha256,[We]:F[`cpp-release`].compressedSha256,[z]:B,[Ke]:qe,[Ye]:H,[Xe]:W,[Ze]:$e,[Qe]:tt,[nt]:at,[rt]:q,[it]:st,"/toolchains/java-teavm-0.13.1.wasi.compiler.webc.gz.bin":`129f1f51d591e58954f88787d36396b856a9a68ba3ae9c9d14f20bd67c2c7722`,"/toolchains/java-teavm-0.13.1.compile-classlib.bin":`acfe3fb09e5f2c0c7c8dc2339c66fcdadc1f8e1bf1c74be446926175ef770868`,"/toolchains/java-teavm-0.13.1.runtime-classlib.bin":`21a9394586e416af2fca4eb0ed08521cbc8924e1d1afaa07863a59a3cfae54ab`});Object.freeze({c:Object.freeze([M,Ge,N,P]),cpp:Object.freeze([M,Ge,N,P]),rust:Object.freeze([$e,et,tt]),python:Object.freeze([B,L,qe,`44d894f91487f20c2bb04fe496a9343db37d8720fb706472c2b4a7f3300db039`]),javascript:Object.freeze([W,H]),typescript:Object.freeze([W,H]),go:Object.freeze([at,ot,q,st,`e1ec64b08efd02b35b7ffdaf3970875aaae98325fa4795eafca94ebae2d0d192`,`9e557f5b86961fd604217d7521461c5d2b7322e383fa30dead5669b77db12201`,`2eefca10af935a307ab7946447146bd30e0ea0fb5460be54dc1c55844d155580`])});function lt(e){let t=e.startsWith(`/`)?e:`/toolchains/${e}`,n=ct[t];if(!n)throw Error(`No pinned digest is declared for toolchain asset '${e}'.`);return n}function ut(e,t){let n=lt(e),r=new URL(t.href);r.pathname.endsWith(`/`)||(r.pathname+=`/`);let i=[...r.searchParams];r.search=``;let a=e.slice(e.lastIndexOf(`/`)+1),o=new URL(a,r);for(let[e,t]of i)o.searchParams.append(e,t);return o.searchParams.set(`sha256`,n),o}function J(e){return Object.freeze({...e,compilerPackages:Object.freeze([...e.compilerPackages]),targets:Object.freeze([...e.targets])})}Object.freeze({c:J({language:`c`,label:`Clang 22`,artifact:`wasm`,compilerPackages:[Re],targets:[`wasip1`,`wasix`],version:j,note:`Native wasip1 module via Clang and LLD; directly executable by WASI and WASIX runtimes.`}),cpp:J({language:`cpp`,label:`Clang++ 22 (C++20)`,artifact:`wasm`,compilerPackages:[Re],targets:[`wasip1`,`wasix`],version:j,note:`C++20/libc++ wasip1 module; directly executable by WASI and WASIX runtimes.`}),rust:J({language:`rust`,label:`Rust ${G}`,artifact:`wasm`,compilerPackages:[`rustc@${G}#sha256:${et}`],targets:[`wasip1`],version:G,note:`Real rustc, its matching standard library, and a fresh deterministic wasm-ld stage execute as one pinned WebC under Wasmer.`}),python:J({language:`python`,label:`CPython ${I}`,artifact:`runtime-bundle`,compilerPackages:[R],runtimePackage:R,targets:[`wasip1`],version:I,note:`Byte-compiled project bundled with the source-built CPython wasm32-wasip1 interpreter and standard library.`}),javascript:J({language:`javascript`,label:`QuickJS-ng`,artifact:`runtime-bundle`,compilerPackages:[`typescript@${U}-wasi`],runtimePackage:Je,targets:[`wasip1`],version:V,note:`JavaScript checked by TypeScript/WASI, then executed by the bundled QuickJS-ng/WASI runtime.`}),typescript:J({language:`typescript`,label:`TypeScript + QuickJS-ng`,artifact:`runtime-bundle`,compilerPackages:[`typescript@${U}-wasi`],runtimePackage:Je,targets:[`wasip1`],version:U,note:`The native TypeScript compiler and QuickJS-ng runtime both execute as local WASI modules.`}),go:J({language:`go`,label:`Go ${K}`,artifact:`wasm`,compilerPackages:[`go@${K}#sha256:${ot}`],targets:[`wasip1`],version:K,note:`The standard Go compiler, linker, and pinned wasip1 standard library execute locally as one WebC under Wasmer.`})}),Object.freeze({files:256,bytesPerFile:4194304,totalBytes:16777216}),new TextEncoder;async function dt(e){let t=typeof e==`string`?new TextEncoder().encode(e):e,n=new Uint8Array(t.byteLength);n.set(t);let r=await crypto.subtle.digest(`SHA-256`,n);return Array.from(new Uint8Array(r),e=>e.toString(16).padStart(2,`0`)).join(``)}const Y=1048576,X=Object.freeze({requirements:128,sourceFiles:128,sourceTextBytes:8*Y,hosts:32,roots:512,packages:512,referencesPerPackage:512,concurrency:16,metadataBytes:8*Y,packageBytes:256*Y,totalDownloadBytes:512*Y,archiveFiles:16384,unpackedBytes:512*Y});Object.freeze({packages:X.packages,filesPerPackage:X.archiveFiles,bytesPerFile:64*Y,totalBytes:X.unpackedBytes});function ft(e){let t=Z(),n=pt(e),r=new Blob([`const pendingMessages = [];
|
|
18
|
+
`,`const queueMessage = (event) => { event.stopImmediatePropagation(); pendingMessages.push(event.data); };
|
|
19
|
+
`,`globalThis.addEventListener("message", queueMessage);
|
|
20
|
+
`,`Object.defineProperty(globalThis, "__wasmOjModuleWorkerBaseUrl", { value: ${JSON.stringify(t.href)} });\n`,`try { await import(${JSON.stringify(n)}); } finally { globalThis.removeEventListener("message", queueMessage); }\n`,`for (const data of pendingMessages) globalThis.dispatchEvent(new MessageEvent("message", { data }));
|
|
21
|
+
`],{type:`text/javascript`}),i=URL.createObjectURL(r),a=!0;return{url:i,revoke(){a&&(a=!1,URL.revokeObjectURL(i))}}}function Z(){let e=globalThis.location?.href;if(e){let t=new URL(e);if(t.protocol===`http:`||t.protocol===`https:`)return t;if(t.protocol!==`blob:`)throw Error(`A module Worker requires an HTTP(S) browser base URL.`)}let t=globalThis.__wasmOjModuleWorkerBaseUrl;if(typeof t!=`string`)throw Error(`A module Worker requires a browser base URL.`);let n=new URL(t);if(n.origin===`null`||n.protocol!==`http:`&&n.protocol!==`https:`)throw Error(`A module Worker requires an HTTP(S) browser base URL.`);return n}function pt(e){let t=Z(),n;try{n=new URL(e instanceof URL?e.href:e,t)}catch{throw Error(`A module Worker URL must be a valid same-origin HTTP(S) URL.`)}if(n.origin!==t.origin||n.username||n.password||n.search||n.hash)throw Error(`A module Worker URL must be same-origin and contain no credentials, query, or fragment.`);return n.href}var mt=``+new URL(`wasmer-thread.worker-DKlJE3cb.js`,import.meta.url).href;const Q=self,$=Z();Q.addEventListener(`message`,e=>{ht(e.data).then(e=>{Q.postMessage({type:`result`,result:e},Object.values(e.bytecode).map(e=>e.buffer)),Q.close()},e=>{let t=e instanceof Error?e:Error(String(e));Q.postMessage({type:`error`,message:t.message,stack:t.stack}),Q.close()})});async function ht(e){if(e.type!==`compile`)throw Error(`The Python stage received an invalid request.`);let t=ft(new URL(mt,$));try{await Me({log:`warn`,module:new URL(Pe,$),workerUrl:t.url});let n=new xe({registry:null}),r=await gt(e.assetBaseUrl),i=(await Te.fromFile(r,n)).commands.python;if(!i)throw Error(`Package '${R}' does not expose python.`);let a=e.request,o=a.files.filter(e=>e.path.endsWith(`.py`)),s=new ge(Object.fromEntries(a.files.map(e=>[`/${e.path}`,e.content])));await s.createDir(`/build`),await i.run({args:[`-c`,vt(o.map(e=>e.path))],cwd:`/project`,env:{PYTHONHOME:`/usr/local`,PYTHONHASHSEED:`0`,PYTHONDONTWRITEBYTECODE:`1`},mount:{"/project":s}});let c=await yt(s),l={};if(c.success)for(let e of o){let t=`build/${e.path.replace(/\.py$/,`.pyc`)}`,n=await s.readFile(`/${t}`);if(n.byteLength<=16)throw Error(`Python produced an incomplete '${t}'.`);l[t]=n}return{success:c.success,bytecode:l,stdout:``,stderr:c.stderr,diagnostics:Le(c.stderr)}}finally{t.revoke()}}async function gt(e){let t=new URL(e,$);t.pathname.endsWith(`/`)||(t.pathname+=`/`);let n=z.slice(z.lastIndexOf(`/`)+1),r=await fetch(ut(z,t));if(!r.ok)throw Error(`Unable to load pinned Python package '${n}' (${r.status}).`);let i=new Uint8Array(await r.arrayBuffer());await _t(n,i,B);let a=new Response(i).body;if(!a)throw Error(`Pinned Python package '${n}' has no response body.`);let o=a.pipeThrough(new DecompressionStream(`gzip`)),s=new Uint8Array(await new Response(o).arrayBuffer());return await _t(n,s,L),s}async function _t(e,t,n){let r=await dt(t);if(r!==n)throw Error(`Pinned Python package '${e}' has digest ${r}; expected ${n}.`)}function vt(e){return[`import json, pathlib, py_compile`,`files = ${JSON.stringify(e)}`,`completion = pathlib.Path('/project/build/.wasm-oj-python-complete.json')`,`try:`,` for name in files:`,` output = pathlib.Path('/project/build') / pathlib.Path(name).with_suffix('.pyc')`,` output.parent.mkdir(parents=True, exist_ok=True)`,` py_compile.compile('/project/' + name, cfile=str(output), doraise=True, invalidation_mode=py_compile.PycInvalidationMode.CHECKED_HASH)`,`except py_compile.PyCompileError as error:`,` result = {'success': False, 'stderr': str(error)}`,`else:`,` result = {'success': True, 'stderr': ''}`,`completion.write_text(json.dumps(result, separators=(',', ':')), encoding='utf-8')`].join(`
|
|
22
|
+
`)}async function yt(e){let t=performance.now()+Fe,n=new TextDecoder(`utf-8`,{fatal:!0});for(;performance.now()<t;){try{let t=await e.readFile(`/build/.wasm-oj-python-complete.json`),r=JSON.parse(n.decode(t));if(typeof r.success==`boolean`&&typeof r.stderr==`string`)return{success:r.success,stderr:r.stderr}}catch{}await new Promise(e=>setTimeout(e,5))}throw Error(`Python compilation exceeded ${Fe} ms.`)}
|