diff --git a/docs/egui_demo_app.js b/docs/egui_demo_app.js index b1a17055d738..3a95101610b4 100644 --- a/docs/egui_demo_app.js +++ b/docs/egui_demo_app.js @@ -25,12 +25,13 @@ function takeObject(idx) { let WASM_VECTOR_LEN = 0; -let cachegetUint8Memory0 = null; +let cachedUint8Memory0 = new Uint8Array(); + function getUint8Memory0() { - if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { - cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); + if (cachedUint8Memory0.byteLength === 0) { + cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); } - return cachegetUint8Memory0; + return cachedUint8Memory0; } const cachedTextEncoder = new TextEncoder('utf-8'); @@ -90,12 +91,13 @@ function isLikeNone(x) { return x === undefined || x === null; } -let cachegetInt32Memory0 = null; +let cachedInt32Memory0 = new Int32Array(); + function getInt32Memory0() { - if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { - cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); + if (cachedInt32Memory0.byteLength === 0) { + cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); } - return cachegetInt32Memory0; + return cachedInt32Memory0; } const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); @@ -115,12 +117,13 @@ function addHeapObject(obj) { return idx; } -let cachegetFloat64Memory0 = null; +let cachedFloat64Memory0 = new Float64Array(); + function getFloat64Memory0() { - if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) { - cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer); + if (cachedFloat64Memory0.byteLength === 0) { + cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer); } - return cachegetFloat64Memory0; + return cachedFloat64Memory0; } function debugString(val) { @@ -213,21 +216,9 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_28(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0fd05312e5982956(arg0, arg1); -} - -function __wbg_adapter_31(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h67fa6b1a144b91cc(arg0, arg1, addHeapObject(arg2)); -} - -function __wbg_adapter_34(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h67fa6b1a144b91cc(arg0, arg1, addHeapObject(arg2)); -} - -function __wbg_adapter_37(arg0, arg1) { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha165bf8c3b3285b8(retptr, arg0, arg1); + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha51db586bb0dbc2d(retptr, arg0, arg1); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; if (r1) { @@ -238,6 +229,10 @@ function __wbg_adapter_37(arg0, arg1) { } } +function __wbg_adapter_31(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha99d3ed772eaaee3(arg0, arg1, addHeapObject(arg2)); +} + function makeClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -259,17 +254,41 @@ function makeClosure(arg0, arg1, dtor, f) { return real; } -function __wbg_adapter_40(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbc9fd031a6ee69eb(arg0, arg1, addHeapObject(arg2)); +function __wbg_adapter_34(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h40eeccb98287eeb8(arg0, arg1, addHeapObject(arg2)); } -function __wbg_adapter_43(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbc9fd031a6ee69eb(arg0, arg1, addHeapObject(arg2)); +function __wbg_adapter_39(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf01f748486b212bb(arg0, arg1, addHeapObject(arg2)); } -function __wbg_adapter_46(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha2f39f81315ed630(arg0, arg1, addHeapObject(arg2)); -} +/** +*/ +__exports.init_wasm_hooks = function() { + wasm.init_wasm_hooks(); +}; + +/** +* @param {string} canvas_id +* @returns {WebHandle} +*/ +__exports.start_separate = function(canvas_id) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.start_separate(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return WebHandle.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } +}; /** * This is the entry-point for all the web-assembly. @@ -277,6 +296,7 @@ function __wbg_adapter_46(arg0, arg1, arg2) { * It loads the app, installs some callbacks, then returns. * You can add more callbacks like this if you want to call in to your code. * @param {string} canvas_id +* @returns {WebHandle} */ __exports.start = function(canvas_id) { try { @@ -286,9 +306,11 @@ __exports.start = function(canvas_id) { wasm.start(retptr, ptr0, len0); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; - if (r1) { - throw takeObject(r0); + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); } + return WebHandle.__wrap(r0); } finally { wasm.__wbindgen_add_to_stack_pointer(16); } @@ -301,6 +323,53 @@ function handleError(f, args) { wasm.__wbindgen_exn_store(addHeapObject(e)); } } +/** +*/ +class WebHandle { + + static __wrap(ptr) { + const obj = Object.create(WebHandle.prototype); + obj.ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.ptr; + this.ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_webhandle_free(ptr); + } + /** + */ + stop_web() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.webhandle_stop_web(retptr, this.ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + if (r1) { + throw takeObject(r0); + } + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} _some_data + */ + set_some_content_from_javasript(_some_data) { + const ptr0 = passStringToWasm0(_some_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.webhandle_set_some_content_from_javasript(this.ptr, ptr0, len0); + } +} +__exports.WebHandle = WebHandle; async function load(module, imports) { if (typeof Response === 'function' && module instanceof Response) { @@ -333,21 +402,21 @@ async function load(module, imports) { } } -async function init(input) { - if (typeof input === 'undefined') { - let src; - if (typeof document === 'undefined') { - src = location.href; - } else { - src = document.currentScript.src; - } - input = src.replace(/\.js$/, '_bg.wasm'); - } +function getImports() { const imports = {}; imports.wbg = {}; imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; + imports.wbg.__wbindgen_cb_drop = function(arg0) { + const obj = takeObject(arg0).original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; + return ret; + }; imports.wbg.__wbg_log_02e20a3c32305fb7 = function(arg0, arg1) { try { console.log(getStringFromWasm0(arg0, arg1)); @@ -403,987 +472,1006 @@ async function init(input) { const ret = getStringFromWasm0(arg0, arg1); return addHeapObject(ret); }; - imports.wbg.__wbindgen_cb_drop = function(arg0) { - const obj = takeObject(arg0).original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - const ret = false; - return ret; - }; imports.wbg.__wbindgen_number_get = function(arg0, arg1) { const obj = getObject(arg1); const ret = typeof(obj) === 'number' ? obj : undefined; getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); + }; imports.wbg.__wbindgen_boolean_get = function(arg0) { const v = getObject(arg0); const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; return ret; }; - imports.wbg.__wbg_instanceof_WebGl2RenderingContext_e29e70ae6c00bfdd = function(arg0) { + imports.wbg.__wbg_instanceof_WebGl2RenderingContext_f43c52e5e19f2606 = function(arg0) { const ret = getObject(arg0) instanceof WebGL2RenderingContext; return ret; }; - imports.wbg.__wbg_bindVertexArray_dfe63bf55a9f6e54 = function(arg0, arg1) { + imports.wbg.__wbg_bindVertexArray_93c9ea4c521c6150 = function(arg0, arg1) { getObject(arg0).bindVertexArray(getObject(arg1)); }; - imports.wbg.__wbg_bufferData_8542921547008e80 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_bufferData_545d1a030b870c9d = function(arg0, arg1, arg2, arg3) { getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0); }; - imports.wbg.__wbg_createVertexArray_d502151c473563b2 = function(arg0) { + imports.wbg.__wbg_createVertexArray_f8aff8c98a8e7ce7 = function(arg0) { const ret = getObject(arg0).createVertexArray(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_deleteVertexArray_3a1bab38b8ce3a22 = function(arg0, arg1) { + imports.wbg.__wbg_deleteVertexArray_1fba1928028fe94b = function(arg0, arg1) { getObject(arg0).deleteVertexArray(getObject(arg1)); }; - imports.wbg.__wbg_texImage2D_830d94fcfc70baf0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { + imports.wbg.__wbg_texImage2D_2b5acb1e45578ec6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9)); }, arguments) }; - imports.wbg.__wbg_texSubImage2D_f5b8e6e635a5736f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { + imports.wbg.__wbg_texSubImage2D_69c2f1177c03208f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9)); }, arguments) }; - imports.wbg.__wbg_texSubImage2D_b26e671fcb768c49 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { + imports.wbg.__wbg_texSubImage2D_c9362626788e00be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); }, arguments) }; - imports.wbg.__wbg_activeTexture_eec8b0e6c72c6814 = function(arg0, arg1) { + imports.wbg.__wbg_activeTexture_7d94e69e06167cc5 = function(arg0, arg1) { getObject(arg0).activeTexture(arg1 >>> 0); }; - imports.wbg.__wbg_attachShader_0994bf956cb31b2b = function(arg0, arg1, arg2) { + imports.wbg.__wbg_attachShader_b842215a5c35bf7e = function(arg0, arg1, arg2) { getObject(arg0).attachShader(getObject(arg1), getObject(arg2)); }; - imports.wbg.__wbg_bindBuffer_a5f37e5ebd81a1f6 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindBuffer_8b6444fda5ed59dc = function(arg0, arg1, arg2) { getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindFramebuffer_6ef149f7d398d19f = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindFramebuffer_8fa07aa65dcbd3aa = function(arg0, arg1, arg2) { getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindRenderbuffer_1974e9f4fdd0b3af = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindRenderbuffer_8969ae2581d424bd = function(arg0, arg1, arg2) { getObject(arg0).bindRenderbuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindTexture_dbddb0b0c3efa1b9 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindTexture_83f436ae22ba78b4 = function(arg0, arg1, arg2) { getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_blendEquationSeparate_ccdda0657b246bb0 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_blendEquationSeparate_08c2268ff77fc7ae = function(arg0, arg1, arg2) { getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); }; - imports.wbg.__wbg_blendFuncSeparate_0aa8a7b4669fb810 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_blendFuncSeparate_882bf8e6e46c91cb = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); }; - imports.wbg.__wbg_clear_a9fbec6b33c4e095 = function(arg0, arg1) { + imports.wbg.__wbg_clear_4b8a9923ec5dd06b = function(arg0, arg1) { getObject(arg0).clear(arg1 >>> 0); }; - imports.wbg.__wbg_clearColor_3973a216e3a63c8f = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_clearColor_326a40b8458fd4cf = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).clearColor(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_colorMask_c92354ec3511685f = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_colorMask_f0f3a9105b5b5079 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); }; - imports.wbg.__wbg_compileShader_4940032085b41ed2 = function(arg0, arg1) { + imports.wbg.__wbg_compileShader_1121e87470b77009 = function(arg0, arg1) { getObject(arg0).compileShader(getObject(arg1)); }; - imports.wbg.__wbg_createBuffer_b6dbd62c544371ed = function(arg0) { + imports.wbg.__wbg_createBuffer_6684eee636476ea7 = function(arg0) { const ret = getObject(arg0).createBuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createFramebuffer_f656a97f24d2caf3 = function(arg0) { + imports.wbg.__wbg_createFramebuffer_1316a4c02803bcf8 = function(arg0) { const ret = getObject(arg0).createFramebuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createProgram_6a25e4bb5cfaad4b = function(arg0) { + imports.wbg.__wbg_createProgram_f363532a39adc49f = function(arg0) { const ret = getObject(arg0).createProgram(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createRenderbuffer_e66ea157342e02e9 = function(arg0) { + imports.wbg.__wbg_createRenderbuffer_abb5d5ff42fa138f = function(arg0) { const ret = getObject(arg0).createRenderbuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createShader_c17c7cf4768e0737 = function(arg0, arg1) { + imports.wbg.__wbg_createShader_86b8ecf79286f304 = function(arg0, arg1) { const ret = getObject(arg0).createShader(arg1 >>> 0); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createTexture_0df375980a9c46c9 = function(arg0) { + imports.wbg.__wbg_createTexture_1b5ac8ef80f089c8 = function(arg0) { const ret = getObject(arg0).createTexture(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_deleteProgram_acd3f81d082ffd17 = function(arg0, arg1) { + imports.wbg.__wbg_deleteBuffer_9db81b161e83656e = function(arg0, arg1) { + getObject(arg0).deleteBuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteFramebuffer_48183bac844e2cbe = function(arg0, arg1) { + getObject(arg0).deleteFramebuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteProgram_7602bf731d426653 = function(arg0, arg1) { getObject(arg0).deleteProgram(getObject(arg1)); }; - imports.wbg.__wbg_deleteShader_b6480fae6d31ca67 = function(arg0, arg1) { + imports.wbg.__wbg_deleteRenderbuffer_92abd3c5070fbbb9 = function(arg0, arg1) { + getObject(arg0).deleteRenderbuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteShader_7b2fe52dc762fa30 = function(arg0, arg1) { getObject(arg0).deleteShader(getObject(arg1)); }; - imports.wbg.__wbg_deleteTexture_8c7434cb1b20f64f = function(arg0, arg1) { + imports.wbg.__wbg_deleteTexture_8cb16fb3b8ab69cd = function(arg0, arg1) { getObject(arg0).deleteTexture(getObject(arg1)); }; - imports.wbg.__wbg_detachShader_a3e090b94d09c8a2 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_detachShader_0b3b39a997ffb299 = function(arg0, arg1, arg2) { getObject(arg0).detachShader(getObject(arg1), getObject(arg2)); }; - imports.wbg.__wbg_disable_ec8402e41edbe277 = function(arg0, arg1) { + imports.wbg.__wbg_disable_11c4bc9e544fcdc9 = function(arg0, arg1) { getObject(arg0).disable(arg1 >>> 0); }; - imports.wbg.__wbg_disableVertexAttribArray_8da45bfa7fa5a02d = function(arg0, arg1) { + imports.wbg.__wbg_disableVertexAttribArray_47abfb2c13a9280a = function(arg0, arg1) { getObject(arg0).disableVertexAttribArray(arg1 >>> 0); }; - imports.wbg.__wbg_drawArrays_ab8fc431291e5dff = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_drawArrays_0d143172881346cc = function(arg0, arg1, arg2, arg3) { getObject(arg0).drawArrays(arg1 >>> 0, arg2, arg3); }; - imports.wbg.__wbg_drawElements_a192faf49b4975d6 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_drawElements_dedd50a05ab4ee82 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); }; - imports.wbg.__wbg_enable_51cc5ea7d16e475c = function(arg0, arg1) { + imports.wbg.__wbg_enable_c580eeb2d730d8c7 = function(arg0, arg1) { getObject(arg0).enable(arg1 >>> 0); }; - imports.wbg.__wbg_enableVertexAttribArray_85c507778523db86 = function(arg0, arg1) { + imports.wbg.__wbg_enableVertexAttribArray_71492f736c35c5e7 = function(arg0, arg1) { getObject(arg0).enableVertexAttribArray(arg1 >>> 0); }; - imports.wbg.__wbg_framebufferRenderbuffer_d73f3cb3e5a605a2 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_framebufferRenderbuffer_4e682abcb3678a20 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4)); }; - imports.wbg.__wbg_framebufferTexture2D_e07b69d4972eccfd = function(arg0, arg1, arg2, arg3, arg4, arg5) { + imports.wbg.__wbg_framebufferTexture2D_fd6329e64dacca57 = function(arg0, arg1, arg2, arg3, arg4, arg5) { getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5); }; - imports.wbg.__wbg_getAttribLocation_ae4109e1d8e7050f = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getAttribLocation_7133bdfdda1f1400 = function(arg0, arg1, arg2, arg3) { const ret = getObject(arg0).getAttribLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); return ret; }; - imports.wbg.__wbg_getError_cc18cbef4864f62f = function(arg0) { + imports.wbg.__wbg_getError_2d3fe8b71c072eda = function(arg0) { const ret = getObject(arg0).getError(); return ret; }; - imports.wbg.__wbg_getExtension_22c72750813222f6 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_getExtension_36db9b1cf2f433d1 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_getParameter_00a3d89e6e005c2f = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getParameter_00d59df03350c8de = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg0).getParameter(arg1 >>> 0); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_getProgramInfoLog_234b1b9dbbc9282f = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getProgramInfoLog_51bb974e21b4a168 = function(arg0, arg1, arg2) { const ret = getObject(arg1).getProgramInfoLog(getObject(arg2)); var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_getProgramParameter_4100b1077a68e2ec = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getProgramParameter_7200faf718e95d48 = function(arg0, arg1, arg2) { const ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_getShaderInfoLog_a680dbc6e8440e5b = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getShaderInfoLog_9172aba54d0c5ed9 = function(arg0, arg1, arg2) { const ret = getObject(arg1).getShaderInfoLog(getObject(arg2)); var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_getShaderParameter_87e97ffc5dc7fb05 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getShaderParameter_51a3da58beb29be0 = function(arg0, arg1, arg2) { const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_getSupportedExtensions_f7eec3b83ce8c78d = function(arg0) { + imports.wbg.__wbg_getSupportedExtensions_0e030cdeb1daf338 = function(arg0) { const ret = getObject(arg0).getSupportedExtensions(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_getUniformLocation_201fd94276e7dc6f = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getUniformLocation_1bcc319cd4fd2089 = function(arg0, arg1, arg2, arg3) { const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_linkProgram_edd275997033948d = function(arg0, arg1) { + imports.wbg.__wbg_linkProgram_f2864269853d4862 = function(arg0, arg1) { getObject(arg0).linkProgram(getObject(arg1)); }; - imports.wbg.__wbg_pixelStorei_db7d39661916037c = function(arg0, arg1, arg2) { + imports.wbg.__wbg_pixelStorei_80054fe3084833eb = function(arg0, arg1, arg2) { getObject(arg0).pixelStorei(arg1 >>> 0, arg2); }; - imports.wbg.__wbg_renderbufferStorage_6ded6b343c662a60 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_renderbufferStorage_e4ed5037babe9769 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); }; - imports.wbg.__wbg_scissor_3ea2048f24928f06 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_scissor_832734c09e917691 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).scissor(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_shaderSource_bbfeb057b5f88df5 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_shaderSource_4bee6327e417287e = function(arg0, arg1, arg2, arg3) { getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3)); }; - imports.wbg.__wbg_texParameteri_7414cf15f83e1d52 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_texParameteri_d3d72cea09b18227 = function(arg0, arg1, arg2, arg3) { getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); }; - imports.wbg.__wbg_uniform1f_96f460c33192c593 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_uniform1f_5bd060ff5e33f7c5 = function(arg0, arg1, arg2) { getObject(arg0).uniform1f(getObject(arg1), arg2); }; - imports.wbg.__wbg_uniform1i_22f9e77ed65e1503 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_uniform1i_07a12b8c5847ce00 = function(arg0, arg1, arg2) { getObject(arg0).uniform1i(getObject(arg1), arg2); }; - imports.wbg.__wbg_uniform2f_fa5841b64e0ac5e9 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_uniform2f_d9f8bdd81dd5476b = function(arg0, arg1, arg2, arg3) { getObject(arg0).uniform2f(getObject(arg1), arg2, arg3); }; - imports.wbg.__wbg_useProgram_039f85866d3a975b = function(arg0, arg1) { + imports.wbg.__wbg_useProgram_8c98a70c0b9bbc8c = function(arg0, arg1) { getObject(arg0).useProgram(getObject(arg1)); }; - imports.wbg.__wbg_vertexAttribPointer_4375ff065dcf90ed = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + imports.wbg.__wbg_vertexAttribPointer_5f0380b7ecfacd1f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); }; - imports.wbg.__wbg_viewport_06c29be651af660a = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_viewport_8868e512a14d3c60 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).viewport(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_instanceof_Window_0e6c0f1096d66c3c = function(arg0) { + imports.wbg.__wbg_instanceof_Window_a2a08d3918d7d4d0 = function(arg0) { const ret = getObject(arg0) instanceof Window; return ret; }; - imports.wbg.__wbg_document_99eddbbc11ec831e = function(arg0) { + imports.wbg.__wbg_document_14a383364c173445 = function(arg0) { const ret = getObject(arg0).document; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_location_fa9019d2eb2195e8 = function(arg0) { + imports.wbg.__wbg_location_3b5031b281e8d218 = function(arg0) { const ret = getObject(arg0).location; return addHeapObject(ret); }; - imports.wbg.__wbg_navigator_1f72d7edb7b4c387 = function(arg0) { + imports.wbg.__wbg_navigator_2d05aef684d827d8 = function(arg0) { const ret = getObject(arg0).navigator; return addHeapObject(ret); }; - imports.wbg.__wbg_innerWidth_aebdd1c86de7b6aa = function() { return handleError(function (arg0) { - const ret = getObject(arg0).innerWidth; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_innerHeight_67ea5ab43c3043ad = function() { return handleError(function (arg0) { + imports.wbg.__wbg_innerHeight_75ed590956a9da89 = function() { return handleError(function (arg0) { const ret = getObject(arg0).innerHeight; return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_devicePixelRatio_cac0b66c0e1e056b = function(arg0) { + imports.wbg.__wbg_devicePixelRatio_85ae9a993f96e777 = function(arg0) { const ret = getObject(arg0).devicePixelRatio; return ret; }; - imports.wbg.__wbg_performance_71eb0d14ca622227 = function(arg0) { + imports.wbg.__wbg_performance_37cd292e310dcf1d = function(arg0) { const ret = getObject(arg0).performance; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_speechSynthesis_9d0abaadcd29deea = function() { return handleError(function (arg0) { + imports.wbg.__wbg_speechSynthesis_3c3ae63901aa42d8 = function() { return handleError(function (arg0) { const ret = getObject(arg0).speechSynthesis; return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_localStorage_6e9ba4e9a3771427 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_localStorage_2409bbdfe5a4d2a7 = function() { return handleError(function (arg0) { const ret = getObject(arg0).localStorage; return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_matchMedia_7a04497c9cd2fc1e = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_matchMedia_e9b1829a74d17f09 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).matchMedia(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_open_fd57bd436de42549 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_open_ab0998e8eb242a30 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_requestAnimationFrame_8e3c7028c69ebaef = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_requestAnimationFrame_61bcf77211b282b7 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg0).requestAnimationFrame(getObject(arg1)); return ret; }, arguments) }; - imports.wbg.__wbg_fetch_ef7a6623d1fcd3b8 = function(arg0, arg1) { + imports.wbg.__wbg_clearInterval_e91e4dc9ca625f00 = function(arg0, arg1) { + getObject(arg0).clearInterval(arg1); + }; + imports.wbg.__wbg_fetch_23507368eed8d838 = function(arg0, arg1) { const ret = getObject(arg0).fetch(getObject(arg1)); return addHeapObject(ret); }; - imports.wbg.__wbg_setInterval_00dcd6d9b783b38f = function() { return handleError(function (arg0, arg1, arg2) { - const ret = getObject(arg0).setInterval(getObject(arg1), arg2); - return ret; - }, arguments) }; - imports.wbg.__wbg_setTimeout_a100c5fd6f7b2032 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_setTimeout_7d328aba48109be9 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).setTimeout(getObject(arg1), arg2); return ret; }, arguments) }; - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - const ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_data_ccaf50f3288b08c5 = function(arg0, arg1) { + imports.wbg.__wbg_data_08682f1bf736c818 = function(arg0, arg1) { const ret = getObject(arg1).data; var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_type_d73ca5f20cbe175f = function(arg0, arg1) { + imports.wbg.__wbg_type_4d1f67e537474524 = function(arg0, arg1) { const ret = getObject(arg1).type; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_set_6884dcc6cdd65022 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_set_23d56ff06768e13b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_bindVertexArrayOES_35d97084dfc5f6f4 = function(arg0, arg1) { + imports.wbg.__wbg_bindVertexArrayOES_b53b8137f0e6f9e1 = function(arg0, arg1) { getObject(arg0).bindVertexArrayOES(getObject(arg1)); }; - imports.wbg.__wbg_createVertexArrayOES_69c38b2b74e927fa = function(arg0) { + imports.wbg.__wbg_createVertexArrayOES_56337c7d4798d96b = function(arg0) { const ret = getObject(arg0).createVertexArrayOES(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_deleteVertexArrayOES_7944a9952de94807 = function(arg0, arg1) { + imports.wbg.__wbg_deleteVertexArrayOES_6e977eee20e2a2b1 = function(arg0, arg1) { getObject(arg0).deleteVertexArrayOES(getObject(arg1)); }; - imports.wbg.__wbg_setvolume_8417d1c81f6c7921 = function(arg0, arg1) { + imports.wbg.__wbg_setvolume_5de25518370f8cbf = function(arg0, arg1) { getObject(arg0).volume = arg1; }; - imports.wbg.__wbg_setrate_735f00f4262a7ae4 = function(arg0, arg1) { + imports.wbg.__wbg_setrate_53519c7c02152cc1 = function(arg0, arg1) { getObject(arg0).rate = arg1; }; - imports.wbg.__wbg_setpitch_f3aecae8c9bc134a = function(arg0, arg1) { + imports.wbg.__wbg_setpitch_afcedadf155fb332 = function(arg0, arg1) { getObject(arg0).pitch = arg1; }; - imports.wbg.__wbg_setonstart_30b2a55036c8594b = function(arg0, arg1) { + imports.wbg.__wbg_setonstart_2fa0f0fbe35fd5c6 = function(arg0, arg1) { getObject(arg0).onstart = getObject(arg1); }; - imports.wbg.__wbg_setonend_e8e46f7b4b116d80 = function(arg0, arg1) { + imports.wbg.__wbg_setonend_edd4111c72f8596b = function(arg0, arg1) { getObject(arg0).onend = getObject(arg1); }; - imports.wbg.__wbg_setonerror_45daa0caeb4c9b21 = function(arg0, arg1) { + imports.wbg.__wbg_setonerror_2173812bebdb5c76 = function(arg0, arg1) { getObject(arg0).onerror = getObject(arg1); }; - imports.wbg.__wbg_newwithtext_8188a34341d111e4 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_newwithtext_3eb2f3709aaff327 = function() { return handleError(function (arg0, arg1) { const ret = new SpeechSynthesisUtterance(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_deltaX_692299f5e35cfb0d = function(arg0) { + imports.wbg.__wbg_deltaX_b65a808a0ee2ad41 = function(arg0) { const ret = getObject(arg0).deltaX; return ret; }; - imports.wbg.__wbg_deltaY_f78bae9413139a24 = function(arg0) { + imports.wbg.__wbg_deltaY_e3158374108000c8 = function(arg0) { const ret = getObject(arg0).deltaY; return ret; }; - imports.wbg.__wbg_deltaMode_08c2fcea70146506 = function(arg0) { + imports.wbg.__wbg_deltaMode_78fa2eac67504e1e = function(arg0) { const ret = getObject(arg0).deltaMode; return ret; }; - imports.wbg.__wbg_dataTransfer_a9eebb31aa4055f2 = function(arg0) { + imports.wbg.__wbg_dataTransfer_93df2efc17a694ea = function(arg0) { const ret = getObject(arg0).dataTransfer; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_instanceof_Response_ccfeb62399355bcd = function(arg0) { + imports.wbg.__wbg_instanceof_Response_e928c54c1025470c = function(arg0) { const ret = getObject(arg0) instanceof Response; return ret; }; - imports.wbg.__wbg_url_06c0f822d68d195c = function(arg0, arg1) { + imports.wbg.__wbg_url_0f82030e7245954c = function(arg0, arg1) { const ret = getObject(arg1).url; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_status_600fd8b881393898 = function(arg0) { + imports.wbg.__wbg_status_5b4a574de7c5bbfe = function(arg0) { const ret = getObject(arg0).status; return ret; }; - imports.wbg.__wbg_ok_1538f4695dab1792 = function(arg0) { + imports.wbg.__wbg_ok_2e44e661aa8fedb0 = function(arg0) { const ret = getObject(arg0).ok; return ret; }; - imports.wbg.__wbg_statusText_750d3bf8e134b8f8 = function(arg0, arg1) { + imports.wbg.__wbg_statusText_9b7d7bb057846e45 = function(arg0, arg1) { const ret = getObject(arg1).statusText; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_headers_9e7f2c05a9b962ea = function(arg0) { + imports.wbg.__wbg_headers_1dc1ef92ba3d32b1 = function(arg0) { const ret = getObject(arg0).headers; return addHeapObject(ret); }; - imports.wbg.__wbg_arrayBuffer_5a99283a3954c850 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_arrayBuffer_9c26a73988618f92 = function() { return handleError(function (arg0) { const ret = getObject(arg0).arrayBuffer(); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_writeText_df83b2c8a773a84a = function(arg0, arg1, arg2) { + imports.wbg.__wbg_writeText_a38f1159cd4bcdb4 = function(arg0, arg1, arg2) { const ret = getObject(arg0).writeText(getStringFromWasm0(arg1, arg2)); return addHeapObject(ret); }; - imports.wbg.__wbg_addEventListener_78d3aa7e06ee5b73 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_addEventListener_5822223857fe82cb = function() { return handleError(function (arg0, arg1, arg2, arg3) { getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); }, arguments) }; - imports.wbg.__wbg_matches_7809d58d7a13e2eb = function(arg0) { + imports.wbg.__wbg_removeEventListener_0e2fd54517fc188b = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_matches_0e504f1e1e393905 = function(arg0) { const ret = getObject(arg0).matches; return ret; }; - imports.wbg.__wbg_identifier_efb4abe3a00599c1 = function(arg0) { + imports.wbg.__wbg_identifier_87cea87d0d784811 = function(arg0) { const ret = getObject(arg0).identifier; return ret; }; - imports.wbg.__wbg_pageX_20e9ef69ae98e6ca = function(arg0) { + imports.wbg.__wbg_pageX_4b20eaf2c28c4a68 = function(arg0) { const ret = getObject(arg0).pageX; return ret; }; - imports.wbg.__wbg_pageY_8e273493fff14cd6 = function(arg0) { + imports.wbg.__wbg_pageY_98ce6e4e69a58166 = function(arg0) { const ret = getObject(arg0).pageY; return ret; }; - imports.wbg.__wbg_force_8c0adc9011c40238 = function(arg0) { + imports.wbg.__wbg_force_a5b54cad3d87aec1 = function(arg0) { const ret = getObject(arg0).force; return ret; }; - imports.wbg.__wbg_instanceof_HtmlInputElement_750fccab172eab35 = function(arg0) { + imports.wbg.__wbg_instanceof_HtmlInputElement_756d5883770e3491 = function(arg0) { const ret = getObject(arg0) instanceof HTMLInputElement; return ret; }; - imports.wbg.__wbg_setautofocus_ce657398d4bfbbb0 = function(arg0, arg1) { + imports.wbg.__wbg_setautofocus_6b482b3adc047e6e = function(arg0, arg1) { getObject(arg0).autofocus = arg1 !== 0; }; - imports.wbg.__wbg_setsize_1d5b32171e4916c6 = function(arg0, arg1) { + imports.wbg.__wbg_setsize_dae10f659f6b1bf3 = function(arg0, arg1) { getObject(arg0).size = arg1 >>> 0; }; - imports.wbg.__wbg_value_14b43f7df5bd6160 = function(arg0, arg1) { + imports.wbg.__wbg_value_5573c798506a4119 = function(arg0, arg1) { const ret = getObject(arg1).value; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_setvalue_649eb7de76d4a493 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setvalue_f3bd4ea96d361b70 = function(arg0, arg1, arg2) { getObject(arg0).value = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_length_37d5aa06d94e029d = function(arg0) { + imports.wbg.__wbg_length_264029afe91beef5 = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_get_a2af1e42e8d6d040 = function(arg0, arg1) { + imports.wbg.__wbg_get_6f5ed7314be01b7f = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_now_20d2aadcf3cc17f7 = function(arg0) { + imports.wbg.__wbg_now_9c64828adecad05e = function(arg0) { const ret = getObject(arg0).now(); return ret; }; - imports.wbg.__wbg_headers_0a71906114661592 = function(arg0) { + imports.wbg.__wbg_headers_3618f72dcec019b7 = function(arg0) { const ret = getObject(arg0).headers; return addHeapObject(ret); }; - imports.wbg.__wbg_newwithstrandinit_fd99688f189f053e = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_newwithstrandinit_41c86e821f771b24 = function() { return handleError(function (arg0, arg1, arg2) { const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_speaking_1dea597a3d57b162 = function(arg0) { + imports.wbg.__wbg_speaking_0966213e252bd3be = function(arg0) { const ret = getObject(arg0).speaking; return ret; }; - imports.wbg.__wbg_cancel_03941762bfb77356 = function(arg0) { + imports.wbg.__wbg_cancel_9d6cf8fea6866566 = function(arg0) { getObject(arg0).cancel(); }; - imports.wbg.__wbg_speak_8e40f64a58a9975c = function(arg0, arg1) { + imports.wbg.__wbg_speak_3e7e1e600bc943e1 = function(arg0, arg1) { getObject(arg0).speak(getObject(arg1)); }; - imports.wbg.__wbg_items_ab2c5110450d2c6a = function(arg0) { + imports.wbg.__wbg_items_d8a8e810d2a34a9d = function(arg0) { const ret = getObject(arg0).items; return addHeapObject(ret); }; - imports.wbg.__wbg_files_506106b5b79463d5 = function(arg0) { + imports.wbg.__wbg_files_f44d462eecde5435 = function(arg0) { const ret = getObject(arg0).files; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_getData_18bfc326d2fcc5fc = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getData_d5b9961e17bd637c = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = getObject(arg1).getData(getStringFromWasm0(arg2, arg3)); const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_preventDefault_747982fd5fe3b6d0 = function(arg0) { + imports.wbg.__wbg_preventDefault_2e92eb64f38efc0d = function(arg0) { getObject(arg0).preventDefault(); }; - imports.wbg.__wbg_stopPropagation_63abc0c04280af82 = function(arg0) { + imports.wbg.__wbg_stopPropagation_ce13166e3a9d23c9 = function(arg0) { getObject(arg0).stopPropagation(); }; - imports.wbg.__wbg_name_705e027681939ce2 = function(arg0, arg1) { + imports.wbg.__wbg_name_17a693b8fc679148 = function(arg0, arg1) { const ret = getObject(arg1).name; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_lastModified_578207da4ec8a735 = function(arg0) { + imports.wbg.__wbg_lastModified_0b4755f396a81001 = function(arg0) { const ret = getObject(arg0).lastModified; return ret; }; - imports.wbg.__wbg_length_ced2607e299e48b0 = function(arg0) { + imports.wbg.__wbg_length_8ed6d5685ab4a427 = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_get_bbde85c2e4ce9183 = function(arg0, arg1) { + imports.wbg.__wbg_get_acde697e94f6dff0 = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_keyCode_9bdbab45f06fb085 = function(arg0) { + imports.wbg.__wbg_keyCode_581f5bd073094e86 = function(arg0) { const ret = getObject(arg0).keyCode; return ret; }; - imports.wbg.__wbg_altKey_4c4f9abf8a09e7c7 = function(arg0) { + imports.wbg.__wbg_altKey_bca103a22083fb54 = function(arg0) { const ret = getObject(arg0).altKey; return ret; }; - imports.wbg.__wbg_ctrlKey_37d7587cf9229e4c = function(arg0) { + imports.wbg.__wbg_ctrlKey_20cdd37998ea7a96 = function(arg0) { const ret = getObject(arg0).ctrlKey; return ret; }; - imports.wbg.__wbg_shiftKey_94c9fa9845182d9e = function(arg0) { + imports.wbg.__wbg_shiftKey_a4b7a145ce342240 = function(arg0) { const ret = getObject(arg0).shiftKey; return ret; }; - imports.wbg.__wbg_metaKey_ecd5174305b25455 = function(arg0) { + imports.wbg.__wbg_metaKey_44b29aac55225588 = function(arg0) { const ret = getObject(arg0).metaKey; return ret; }; - imports.wbg.__wbg_isComposing_fa3e456916264d71 = function(arg0) { + imports.wbg.__wbg_isComposing_8b36983a55972eb0 = function(arg0) { const ret = getObject(arg0).isComposing; return ret; }; - imports.wbg.__wbg_key_a8ae33ddc6ff786b = function(arg0, arg1) { + imports.wbg.__wbg_key_6e807abe0dbacdb8 = function(arg0, arg1) { const ret = getObject(arg1).key; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_length_86a84abd1008e3f0 = function(arg0) { + imports.wbg.__wbg_length_c026f8c20f2c9ed2 = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_item_5cffd6d67fb3a3a3 = function(arg0, arg1) { + imports.wbg.__wbg_item_729de3f6215bde97 = function(arg0, arg1) { const ret = getObject(arg0).item(arg1 >>> 0); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_get_8a239117b507dd81 = function(arg0, arg1) { + imports.wbg.__wbg_get_af3a25b87b4e9249 = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_body_2a1ff14b05042a51 = function(arg0) { + imports.wbg.__wbg_body_36a11f2467926b2b = function(arg0) { const ret = getObject(arg0).body; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createElement_3c9b5f3aa42457a1 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_createElement_2d8b75cffbd32c70 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_getElementById_f83c5de20dc455d6 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getElementById_0c9415d96f5b9ec6 = function(arg0, arg1, arg2) { const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_instanceof_WebGlRenderingContext_b0885da52b151d86 = function(arg0) { + imports.wbg.__wbg_instanceof_WebGlRenderingContext_79048c0314cf40c7 = function(arg0) { const ret = getObject(arg0) instanceof WebGLRenderingContext; return ret; }; - imports.wbg.__wbg_bufferData_282e5d315f5503eb = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_bufferData_2db197ac6251395a = function(arg0, arg1, arg2, arg3) { getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0); }; - imports.wbg.__wbg_texImage2D_ca7055ca4feee279 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { + imports.wbg.__wbg_texImage2D_4b75d7501770c21e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9)); }, arguments) }; - imports.wbg.__wbg_texSubImage2D_fe76e590b3e3fa85 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { + imports.wbg.__wbg_texSubImage2D_f540500d6e82449d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9)); }, arguments) }; - imports.wbg.__wbg_activeTexture_1ba5758f0a8358b6 = function(arg0, arg1) { + imports.wbg.__wbg_activeTexture_c32bcd0a63a09c15 = function(arg0, arg1) { getObject(arg0).activeTexture(arg1 >>> 0); }; - imports.wbg.__wbg_attachShader_0867104b37cae2d6 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_attachShader_772486952587993d = function(arg0, arg1, arg2) { getObject(arg0).attachShader(getObject(arg1), getObject(arg2)); }; - imports.wbg.__wbg_bindBuffer_28e62f648e99e251 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindBuffer_6cd1a268e0421a46 = function(arg0, arg1, arg2) { getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindFramebuffer_b7a06305d2823b34 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindFramebuffer_934b8eade9d43fe0 = function(arg0, arg1, arg2) { getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindRenderbuffer_0fe389ab46c4d00d = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindRenderbuffer_e5cd7424d91a17d5 = function(arg0, arg1, arg2) { getObject(arg0).bindRenderbuffer(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_bindTexture_27a724e7303eec67 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_bindTexture_b3162b3f55caf7eb = function(arg0, arg1, arg2) { getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2)); }; - imports.wbg.__wbg_blendEquationSeparate_ffbed0120340f7d5 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_blendEquationSeparate_cdb99fb43e079594 = function(arg0, arg1, arg2) { getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); }; - imports.wbg.__wbg_blendFuncSeparate_c750720abdc9d54e = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_blendFuncSeparate_7b5ab5663d1a17c6 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); }; - imports.wbg.__wbg_clear_786a8deca6672a9d = function(arg0, arg1) { + imports.wbg.__wbg_clear_fe06235bcda1a904 = function(arg0, arg1) { getObject(arg0).clear(arg1 >>> 0); }; - imports.wbg.__wbg_clearColor_2c1d714dee770474 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_clearColor_53d69d875a21f3f3 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).clearColor(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_colorMask_0cfe7588f073be4e = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_colorMask_efa17a5ffd9cd3fc = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); }; - imports.wbg.__wbg_compileShader_1b371763cfd802f7 = function(arg0, arg1) { + imports.wbg.__wbg_compileShader_4b64c51ce6f0d0be = function(arg0, arg1) { getObject(arg0).compileShader(getObject(arg1)); }; - imports.wbg.__wbg_createBuffer_48c0376fc0746386 = function(arg0) { + imports.wbg.__wbg_createBuffer_ae5a57822b3d261c = function(arg0) { const ret = getObject(arg0).createBuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createFramebuffer_f6f4aff3c462de89 = function(arg0) { + imports.wbg.__wbg_createFramebuffer_ba16814fd4b6d861 = function(arg0) { const ret = getObject(arg0).createFramebuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createProgram_c2675d2cc83435a6 = function(arg0) { + imports.wbg.__wbg_createProgram_97d3ab796f2e4f2a = function(arg0) { const ret = getObject(arg0).createProgram(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createRenderbuffer_5f8fcf55de2b35f5 = function(arg0) { + imports.wbg.__wbg_createRenderbuffer_9da8030c14194864 = function(arg0) { const ret = getObject(arg0).createRenderbuffer(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createShader_8d2a55e7777bbea7 = function(arg0, arg1) { + imports.wbg.__wbg_createShader_47c8c7b5a08a528d = function(arg0, arg1) { const ret = getObject(arg0).createShader(arg1 >>> 0); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_createTexture_23de5d8f7988e663 = function(arg0) { + imports.wbg.__wbg_createTexture_ce8ff62039834d9c = function(arg0) { const ret = getObject(arg0).createTexture(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_deleteProgram_7044d91c29e31f30 = function(arg0, arg1) { + imports.wbg.__wbg_deleteBuffer_a4a4bdb0aca0b896 = function(arg0, arg1) { + getObject(arg0).deleteBuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteFramebuffer_7deca5f7ae7ffb14 = function(arg0, arg1) { + getObject(arg0).deleteFramebuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteProgram_a185a6b23ecc10ab = function(arg0, arg1) { getObject(arg0).deleteProgram(getObject(arg1)); }; - imports.wbg.__wbg_deleteShader_d39446753b2fa1e7 = function(arg0, arg1) { + imports.wbg.__wbg_deleteRenderbuffer_738b500d918dfdc3 = function(arg0, arg1) { + getObject(arg0).deleteRenderbuffer(getObject(arg1)); + }; + imports.wbg.__wbg_deleteShader_414d811d7ad34e47 = function(arg0, arg1) { getObject(arg0).deleteShader(getObject(arg1)); }; - imports.wbg.__wbg_deleteTexture_bf4ea3b750a15992 = function(arg0, arg1) { + imports.wbg.__wbg_deleteTexture_d130c5fa2e239659 = function(arg0, arg1) { getObject(arg0).deleteTexture(getObject(arg1)); }; - imports.wbg.__wbg_detachShader_e2c6cb7c2c469a33 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_detachShader_5d65a0ac900c7e92 = function(arg0, arg1, arg2) { getObject(arg0).detachShader(getObject(arg1), getObject(arg2)); }; - imports.wbg.__wbg_disable_ada50e27543b1ebd = function(arg0, arg1) { + imports.wbg.__wbg_disable_5d988b6430f67f00 = function(arg0, arg1) { getObject(arg0).disable(arg1 >>> 0); }; - imports.wbg.__wbg_disableVertexAttribArray_e1c513cfd55355c9 = function(arg0, arg1) { + imports.wbg.__wbg_disableVertexAttribArray_37add1973be851f6 = function(arg0, arg1) { getObject(arg0).disableVertexAttribArray(arg1 >>> 0); }; - imports.wbg.__wbg_drawArrays_b8da4ee5bc9599f6 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_drawArrays_31ae6a072f3195be = function(arg0, arg1, arg2, arg3) { getObject(arg0).drawArrays(arg1 >>> 0, arg2, arg3); }; - imports.wbg.__wbg_drawElements_efa6c15e2787a58c = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_drawElements_c18d01e29e69ee7f = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); }; - imports.wbg.__wbg_enable_981a414a11bbed87 = function(arg0, arg1) { + imports.wbg.__wbg_enable_74fb1401e1f17f16 = function(arg0, arg1) { getObject(arg0).enable(arg1 >>> 0); }; - imports.wbg.__wbg_enableVertexAttribArray_1d5f3ff6e7da7095 = function(arg0, arg1) { + imports.wbg.__wbg_enableVertexAttribArray_0c2fc2819912f6b3 = function(arg0, arg1) { getObject(arg0).enableVertexAttribArray(arg1 >>> 0); }; - imports.wbg.__wbg_framebufferRenderbuffer_ed95c4854179b4ac = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_framebufferRenderbuffer_2f9d9b8881ab366c = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4)); }; - imports.wbg.__wbg_framebufferTexture2D_3bb72a24d7618de9 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + imports.wbg.__wbg_framebufferTexture2D_61a5f547bf8763e2 = function(arg0, arg1, arg2, arg3, arg4, arg5) { getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5); }; - imports.wbg.__wbg_getAttribLocation_f875dcf14748b9d4 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getAttribLocation_b2bad8a5b6116f1f = function(arg0, arg1, arg2, arg3) { const ret = getObject(arg0).getAttribLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); return ret; }; - imports.wbg.__wbg_getError_447f4b8abb16917e = function(arg0) { + imports.wbg.__wbg_getError_312d60f5b00a25b2 = function(arg0) { const ret = getObject(arg0).getError(); return ret; }; - imports.wbg.__wbg_getExtension_bea19db80bdbefef = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_getExtension_6cd75531325282b8 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_getParameter_f511b92ebf87c44e = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getParameter_d30fc1ac9ac34ffc = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg0).getParameter(arg1 >>> 0); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_getProgramInfoLog_e70b0120bda14895 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getProgramInfoLog_07f10e11eb541319 = function(arg0, arg1, arg2) { const ret = getObject(arg1).getProgramInfoLog(getObject(arg2)); var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_getProgramParameter_e4fe54d806806081 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getProgramParameter_ceb4cfbc03f7a74b = function(arg0, arg1, arg2) { const ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_getShaderInfoLog_95d068aeccc5dbb3 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getShaderInfoLog_6788bbcb07e46591 = function(arg0, arg1, arg2) { const ret = getObject(arg1).getShaderInfoLog(getObject(arg2)); var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_getShaderParameter_2972af1cb850aeb7 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_getShaderParameter_71e8b8231c18047e = function(arg0, arg1, arg2) { const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_getSupportedExtensions_0d5d24aad2788aec = function(arg0) { + imports.wbg.__wbg_getSupportedExtensions_44d95a676243b34a = function(arg0) { const ret = getObject(arg0).getSupportedExtensions(); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_getUniformLocation_776a1f58e7904d81 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getUniformLocation_c6dfe99dcd260a55 = function(arg0, arg1, arg2, arg3) { const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_linkProgram_b98c8967f45a44fd = function(arg0, arg1) { + imports.wbg.__wbg_linkProgram_23751aba930c7f0c = function(arg0, arg1) { getObject(arg0).linkProgram(getObject(arg1)); }; - imports.wbg.__wbg_pixelStorei_707653d2f29a6c67 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_pixelStorei_96bd9a13400d6b48 = function(arg0, arg1, arg2) { getObject(arg0).pixelStorei(arg1 >>> 0, arg2); }; - imports.wbg.__wbg_renderbufferStorage_56e5cf7c10bbc044 = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_renderbufferStorage_bdf13866b31b6c19 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); }; - imports.wbg.__wbg_scissor_056d185c74d7c0ad = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_scissor_165f9f71fb7b0a62 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).scissor(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_shaderSource_daca520f63ef8fca = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_shaderSource_580a31413cee6156 = function(arg0, arg1, arg2, arg3) { getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3)); }; - imports.wbg.__wbg_texParameteri_1298d8804b59bbc0 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_texParameteri_4774c5a61d70319d = function(arg0, arg1, arg2, arg3) { getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); }; - imports.wbg.__wbg_uniform1f_bb331865fe6d123b = function(arg0, arg1, arg2) { + imports.wbg.__wbg_uniform1f_f4314cbaa988e283 = function(arg0, arg1, arg2) { getObject(arg0).uniform1f(getObject(arg1), arg2); }; - imports.wbg.__wbg_uniform1i_42b99e992f794a51 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_uniform1i_096d23b3f6d35c5e = function(arg0, arg1, arg2) { getObject(arg0).uniform1i(getObject(arg1), arg2); }; - imports.wbg.__wbg_uniform2f_3a04be03a4c69f62 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_uniform2f_93293456cc5b2730 = function(arg0, arg1, arg2, arg3) { getObject(arg0).uniform2f(getObject(arg1), arg2, arg3); }; - imports.wbg.__wbg_useProgram_022d72a653706891 = function(arg0, arg1) { + imports.wbg.__wbg_useProgram_85e8d43a8983270e = function(arg0, arg1) { getObject(arg0).useProgram(getObject(arg1)); }; - imports.wbg.__wbg_vertexAttribPointer_a75ea424ba9fa4e8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + imports.wbg.__wbg_vertexAttribPointer_9cf4ab7e9c31e68d = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); }; - imports.wbg.__wbg_viewport_6c864379ded67e8a = function(arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_viewport_02810f5f49295b55 = function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).viewport(arg1, arg2, arg3, arg4); }; - imports.wbg.__wbg_setid_ea9f00ecb5da9dde = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setid_c3cb9fedad5d2791 = function(arg0, arg1, arg2) { getObject(arg0).id = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_scrollLeft_9aba28808f857e36 = function(arg0) { + imports.wbg.__wbg_scrollLeft_69fc4595044099c1 = function(arg0) { const ret = getObject(arg0).scrollLeft; return ret; }; - imports.wbg.__wbg_clientWidth_11f72beceb108bff = function(arg0) { + imports.wbg.__wbg_scrollWidth_0c9b603ab5439af7 = function(arg0) { + const ret = getObject(arg0).scrollWidth; + return ret; + }; + imports.wbg.__wbg_scrollHeight_e00b0f58d46c99af = function(arg0) { + const ret = getObject(arg0).scrollHeight; + return ret; + }; + imports.wbg.__wbg_clientWidth_ff949ad9c6d41cd2 = function(arg0) { const ret = getObject(arg0).clientWidth; return ret; }; - imports.wbg.__wbg_clientHeight_205d93d6eadff351 = function(arg0) { + imports.wbg.__wbg_clientHeight_a250dcf2e0afa47a = function(arg0) { const ret = getObject(arg0).clientHeight; return ret; }; - imports.wbg.__wbg_getBoundingClientRect_ab935d65fdd23c25 = function(arg0) { + imports.wbg.__wbg_getBoundingClientRect_16c7230cb788ec1e = function(arg0) { const ret = getObject(arg0).getBoundingClientRect(); return addHeapObject(ret); }; - imports.wbg.__wbg_scrollTop_f1031b88f039d8df = function(arg0) { + imports.wbg.__wbg_scrollTop_e0ad979af014e87e = function(arg0) { const ret = getObject(arg0).scrollTop; return ret; }; - imports.wbg.__wbg_hidden_809625377ca6c4a3 = function(arg0) { + imports.wbg.__wbg_hidden_58ced2c04e71f71c = function(arg0) { const ret = getObject(arg0).hidden; return ret; }; - imports.wbg.__wbg_sethidden_7a120b754b048503 = function(arg0, arg1) { + imports.wbg.__wbg_sethidden_2bd81f034703226d = function(arg0, arg1) { getObject(arg0).hidden = arg1 !== 0; }; - imports.wbg.__wbg_style_dd3ba68ea919f1b0 = function(arg0) { + imports.wbg.__wbg_style_3fb37aa4b3701322 = function(arg0) { const ret = getObject(arg0).style; return addHeapObject(ret); }; - imports.wbg.__wbg_offsetTop_c8f74f82dc787ed0 = function(arg0) { + imports.wbg.__wbg_offsetTop_d6b00383514f99d6 = function(arg0) { const ret = getObject(arg0).offsetTop; return ret; }; - imports.wbg.__wbg_offsetLeft_3b3b09bce24322ef = function(arg0) { + imports.wbg.__wbg_offsetLeft_285ba6e2319b11f4 = function(arg0) { const ret = getObject(arg0).offsetLeft; return ret; }; - imports.wbg.__wbg_offsetWidth_3afb80444bdcabce = function(arg0) { + imports.wbg.__wbg_offsetWidth_1ccb2bc8dd128e57 = function(arg0) { const ret = getObject(arg0).offsetWidth; return ret; }; - imports.wbg.__wbg_blur_685fb8c8baa471a1 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_blur_6f6b2e8679bf4522 = function() { return handleError(function (arg0) { getObject(arg0).blur(); }, arguments) }; - imports.wbg.__wbg_focus_42ad8e77a7a0b22a = function() { return handleError(function (arg0) { + imports.wbg.__wbg_focus_c3aa381bd2a1b65c = function() { return handleError(function (arg0) { getObject(arg0).focus(); }, arguments) }; - imports.wbg.__wbg_clipboardData_a95ca12e53577c09 = function(arg0) { + imports.wbg.__wbg_clipboardData_353f932a4774ff66 = function(arg0) { const ret = getObject(arg0).clipboardData; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_instanceof_HtmlCanvasElement_b94545433bb4d2ef = function(arg0) { + imports.wbg.__wbg_instanceof_HtmlCanvasElement_7b561bd94e483f1d = function(arg0) { const ret = getObject(arg0) instanceof HTMLCanvasElement; return ret; }; - imports.wbg.__wbg_width_20b7a9ebdd5f4232 = function(arg0) { + imports.wbg.__wbg_width_ad2acb326fc35bdb = function(arg0) { const ret = getObject(arg0).width; return ret; }; - imports.wbg.__wbg_setwidth_654d8adcd4979eed = function(arg0, arg1) { + imports.wbg.__wbg_setwidth_59ddc312219f205b = function(arg0, arg1) { getObject(arg0).width = arg1 >>> 0; }; - imports.wbg.__wbg_height_57f43816c2227a89 = function(arg0) { + imports.wbg.__wbg_height_65ee0c47b0a97297 = function(arg0) { const ret = getObject(arg0).height; return ret; }; - imports.wbg.__wbg_setheight_2b662384bfacb65c = function(arg0, arg1) { + imports.wbg.__wbg_setheight_70833966b4ed584e = function(arg0, arg1) { getObject(arg0).height = arg1 >>> 0; }; - imports.wbg.__wbg_getContext_0c19ba5c037e057f = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_getContext_b506f48cb166bf26 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_clipboard_e99151dcef87806f = function(arg0) { + imports.wbg.__wbg_clipboard_bfe9880dded2903a = function(arg0) { const ret = getObject(arg0).clipboard; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_userAgent_e5954dbb033ddef9 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_userAgent_eed37c327cd2783f = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).userAgent; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_touches_d4869a7500017809 = function(arg0) { + imports.wbg.__wbg_touches_57cb6fbd0c1bf49c = function(arg0) { const ret = getObject(arg0).touches; return addHeapObject(ret); }; - imports.wbg.__wbg_changedTouches_21bd59fbbc482ad7 = function(arg0) { + imports.wbg.__wbg_changedTouches_74b871fa06069514 = function(arg0) { const ret = getObject(arg0).changedTouches; return addHeapObject(ret); }; - imports.wbg.__wbg_size_e8d6777bbbbd2991 = function(arg0) { + imports.wbg.__wbg_size_e282630ad2dfd166 = function(arg0) { const ret = getObject(arg0).size; return ret; }; - imports.wbg.__wbg_arrayBuffer_781cc81e507364b8 = function(arg0) { + imports.wbg.__wbg_arrayBuffer_ebc906b2480adbce = function(arg0) { const ret = getObject(arg0).arrayBuffer(); return addHeapObject(ret); }; - imports.wbg.__wbg_width_a260098679e33e90 = function(arg0) { + imports.wbg.__wbg_width_ca58634ccc8c621a = function(arg0) { const ret = getObject(arg0).width; return ret; }; - imports.wbg.__wbg_height_1f8574470ebe45c9 = function(arg0) { + imports.wbg.__wbg_height_8bcaf2b909fefe9b = function(arg0) { const ret = getObject(arg0).height; return ret; }; - imports.wbg.__wbg_top_da39668ed41161c4 = function(arg0) { + imports.wbg.__wbg_top_c3268771d517df8a = function(arg0) { const ret = getObject(arg0).top; return ret; }; - imports.wbg.__wbg_left_a1624a1a425102f3 = function(arg0) { + imports.wbg.__wbg_left_eb3ce4311db982e7 = function(arg0) { const ret = getObject(arg0).left; return ret; }; - imports.wbg.__wbg_appendChild_a86c0da8d152eae4 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_parentElement_479f575ed7e67715 = function(arg0) { + const ret = getObject(arg0).parentElement; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_appendChild_e9d52952defb480f = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg0).appendChild(getObject(arg1)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_error_59727c89b7230766 = function(arg0) { + imports.wbg.__wbg_error_89145b1390f626e7 = function(arg0) { const ret = getObject(arg0).error; return addHeapObject(ret); }; - imports.wbg.__wbg_setProperty_ae9adf5d00216c03 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_setProperty_88447bf87ac638d7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_href_ee02b91ff794f1c0 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_href_49cbb85ef16f22d0 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).href; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_origin_890e8002c9eeba35 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_origin_265f067a99e2172c = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).origin; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_protocol_8a7c3a0ad0534fb9 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_protocol_7652393e06791937 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).protocol; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_host_5a60711dad652364 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_host_4d871373e3726b21 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).host; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_hostname_52b243e8e2ba0022 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_hostname_0e88df0c74aa4477 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).hostname; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_port_91ba722f8d346400 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_port_9573fff83cc8b474 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).port; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_search_083c5449552cf16e = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_search_48955415868c6221 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).search; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_hash_d124cf237fe7b7c1 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_hash_70ff63cf7a445947 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg1).hash; const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_clientX_83648828186ba19f = function(arg0) { + imports.wbg.__wbg_clientX_6b0b436b9d080ac5 = function(arg0) { const ret = getObject(arg0).clientX; return ret; }; - imports.wbg.__wbg_clientY_ba9e5549993281e3 = function(arg0) { + imports.wbg.__wbg_clientY_ad822da59bec5850 = function(arg0) { const ret = getObject(arg0).clientY; return ret; }; - imports.wbg.__wbg_ctrlKey_e4aeb9366ca88d41 = function(arg0) { + imports.wbg.__wbg_ctrlKey_dcad027c59a161a1 = function(arg0) { const ret = getObject(arg0).ctrlKey; return ret; }; - imports.wbg.__wbg_shiftKey_42596574095ad5e2 = function(arg0) { + imports.wbg.__wbg_shiftKey_caae09b9476bd4cb = function(arg0) { const ret = getObject(arg0).shiftKey; return ret; }; - imports.wbg.__wbg_metaKey_ad377163d8beff50 = function(arg0) { + imports.wbg.__wbg_metaKey_a5ee48992f390e88 = function(arg0) { const ret = getObject(arg0).metaKey; return ret; }; - imports.wbg.__wbg_button_78dae8616402469e = function(arg0) { + imports.wbg.__wbg_button_943ba4d0c28109da = function(arg0) { const ret = getObject(arg0).button; return ret; }; - imports.wbg.__wbg_getItem_eb6e17b18b890a47 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getItem_9cb4c95f48b3e51b = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3)); var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }, arguments) }; - imports.wbg.__wbg_setItem_ed2ea572329ab721 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_setItem_04c4ba5c4a9c337f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_get_590a2cd912f2ae46 = function(arg0, arg1) { + imports.wbg.__wbg_get_f0f4f1608ebf633e = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return addHeapObject(ret); }; - imports.wbg.__wbg_length_2cd798326f2cc4c1 = function(arg0) { + imports.wbg.__wbg_length_93debb0e2e184ab6 = function(arg0) { const ret = getObject(arg0).length; return ret; }; @@ -1391,7 +1479,7 @@ async function init(input) { const ret = typeof(getObject(arg0)) === 'function'; return ret; }; - imports.wbg.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) { + imports.wbg.__wbg_newnoargs_fc5356289219b93b = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); }; @@ -1400,126 +1488,126 @@ async function init(input) { const ret = typeof(val) === 'object' && val !== null; return ret; }; - imports.wbg.__wbg_next_cabb70b365520721 = function(arg0) { + imports.wbg.__wbg_next_0e1ee6203bc0f8ed = function(arg0) { const ret = getObject(arg0).next; return addHeapObject(ret); }; - imports.wbg.__wbg_next_bf3d83fc18df496e = function() { return handleError(function (arg0) { + imports.wbg.__wbg_next_9ef803116340cdc1 = function() { return handleError(function (arg0) { const ret = getObject(arg0).next(); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_done_040f966faa9a72b3 = function(arg0) { + imports.wbg.__wbg_done_2a1e30464aae6a4d = function(arg0) { const ret = getObject(arg0).done; return ret; }; - imports.wbg.__wbg_value_419afbd9b9574c4c = function(arg0) { + imports.wbg.__wbg_value_a495c29471c31da6 = function(arg0) { const ret = getObject(arg0).value; return addHeapObject(ret); }; - imports.wbg.__wbg_iterator_4832ef1f15b0382b = function() { + imports.wbg.__wbg_iterator_6ac6eb1e020f18e3 = function() { const ret = Symbol.iterator; return addHeapObject(ret); }; - imports.wbg.__wbg_get_a9cab131e3152c49 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_get_89247d3aeaa38cc5 = function() { return handleError(function (arg0, arg1) { const ret = Reflect.get(getObject(arg0), getObject(arg1)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_call_4573f605ca4b5f10 = function() { return handleError(function (arg0, arg1) { const ret = getObject(arg0).call(getObject(arg1)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_new_36359baae5a47e27 = function() { + imports.wbg.__wbg_new_306ce8d57919e6ae = function() { const ret = new Object(); return addHeapObject(ret); }; - imports.wbg.__wbg_getTime_bffb1c09df09618b = function(arg0) { + imports.wbg.__wbg_self_ba1ddafe9ea7a3a2 = function() { return handleError(function () { + const ret = self.self; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_window_be3cc430364fd32c = function() { return handleError(function () { + const ret = window.window; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_globalThis_56d9c9f814daeeee = function() { return handleError(function () { + const ret = globalThis.globalThis; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_global_8c35aeee4ac77f2b = function() { return handleError(function () { + const ret = global.global; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === undefined; + return ret; + }; + imports.wbg.__wbg_getTime_7c8d3b79f51e2b87 = function(arg0) { const ret = getObject(arg0).getTime(); return ret; }; - imports.wbg.__wbg_getTimezoneOffset_9c9a2f880882a1d7 = function(arg0) { + imports.wbg.__wbg_getTimezoneOffset_d7a89256f8181a06 = function(arg0) { const ret = getObject(arg0).getTimezoneOffset(); return ret; }; - imports.wbg.__wbg_new0_0ff7eb5c1486f3ec = function() { + imports.wbg.__wbg_new0_6b49a1fca8534d39 = function() { const ret = new Date(); return addHeapObject(ret); }; - imports.wbg.__wbg_resolve_a9a87bdd64e9e62c = function(arg0) { + imports.wbg.__wbg_resolve_f269ce174f88b294 = function(arg0) { const ret = Promise.resolve(getObject(arg0)); return addHeapObject(ret); }; - imports.wbg.__wbg_then_ce526c837d07b68f = function(arg0, arg1) { + imports.wbg.__wbg_then_1c698eedca15eed6 = function(arg0, arg1) { const ret = getObject(arg0).then(getObject(arg1)); return addHeapObject(ret); }; - imports.wbg.__wbg_then_842e65b843962f56 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_then_4debc41d4fc92ce5 = function(arg0, arg1, arg2) { const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); return addHeapObject(ret); }; - imports.wbg.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () { - const ret = self.self; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () { - const ret = window.window; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () { - const ret = globalThis.globalThis; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () { - const ret = global.global; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = getObject(arg0) === undefined; - return ret; - }; - imports.wbg.__wbg_buffer_7af23f65f6c64548 = function(arg0) { + imports.wbg.__wbg_buffer_de1150f91b23aa89 = function(arg0) { const ret = getObject(arg0).buffer; return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_293152433089cf24 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_74933bffb873173e = function(arg0, arg1, arg2) { const ret = new Int8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_20bd70cc8d50ee94 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_73c0ae5a17187d7e = function(arg0, arg1, arg2) { const ret = new Int16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_0d4e0750590b10dd = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_8950b31abb1620dd = function(arg0, arg1, arg2) { const ret = new Int32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_ce1e75f0ce5f7974 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_9ca61320599a2c84 = function(arg0, arg1, arg2) { const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_new_cc9018bd6f283b6f = function(arg0) { + imports.wbg.__wbg_new_97cf52648830a70d = function(arg0) { const ret = new Uint8Array(getObject(arg0)); return addHeapObject(ret); }; - imports.wbg.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_set_a0172b213e2469e9 = function(arg0, arg1, arg2) { getObject(arg0).set(getObject(arg1), arg2 >>> 0); }; - imports.wbg.__wbg_length_0acb1cf9bbaf8519 = function(arg0) { + imports.wbg.__wbg_length_e09c0b925ab8de5d = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_newwithbyteoffsetandlength_729246f395bbffc0 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_ba29f3d9e79e44a3 = function(arg0, arg1, arg2) { const ret = new Uint16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_bbdb045c2c009495 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_230fad9c7b4a8a81 = function(arg0, arg1, arg2) { const ret = new Uint32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_3f554978d8793b14 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_b0ff18b468a0d3f8 = function(arg0, arg1, arg2) { const ret = new Float32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_set_93b1c87ee2af852e = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_set_b12cd0ab82903c2f = function() { return handleError(function (arg0, arg1, arg2) { const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); return ret; }, arguments) }; @@ -1537,49 +1625,79 @@ async function init(input) { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1269 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 371, __wbg_adapter_28); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_closure_wrapper1270 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 371, __wbg_adapter_31); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_closure_wrapper1271 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 371, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper3186 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1185, __wbg_adapter_28); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1280 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 371, __wbg_adapter_37); + imports.wbg.__wbindgen_closure_wrapper3187 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1185, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1513 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 524, __wbg_adapter_40); + imports.wbg.__wbindgen_closure_wrapper3344 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 1261, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1514 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 524, __wbg_adapter_43); + imports.wbg.__wbindgen_closure_wrapper3346 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 1261, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1552 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 544, __wbg_adapter_46); + imports.wbg.__wbindgen_closure_wrapper3381 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1281, __wbg_adapter_39); return addHeapObject(ret); }; - if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { - input = fetch(input); - } - + return imports; +} +function initMemory(imports, maybe_memory) { - const { instance, module } = await load(await input, imports); +} +function finalizeInit(instance, module) { wasm = instance.exports; init.__wbindgen_wasm_module = module; + cachedFloat64Memory0 = new Float64Array(); + cachedInt32Memory0 = new Int32Array(); + cachedUint8Memory0 = new Uint8Array(); + return wasm; } +function initSync(bytes) { + const imports = getImports(); + + initMemory(imports); + + const module = new WebAssembly.Module(bytes); + const instance = new WebAssembly.Instance(module, imports); + + return finalizeInit(instance, module); +} + +async function init(input) { + if (typeof input === 'undefined') { + let src; + if (typeof document === 'undefined') { + src = location.href; + } else { + src = document.currentScript.src; + } + input = src.replace(/\.js$/, '_bg.wasm'); + } + const imports = getImports(); + + if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { + input = fetch(input); + } + + initMemory(imports); + + const { instance, module } = await load(await input, imports); + + return finalizeInit(instance, module); +} + wasm_bindgen = Object.assign(init, __exports); })(); diff --git a/docs/egui_demo_app_bg.wasm b/docs/egui_demo_app_bg.wasm index b17b5e866f6f..ff7fb42eec85 100644 Binary files a/docs/egui_demo_app_bg.wasm and b/docs/egui_demo_app_bg.wasm differ diff --git a/eframe/src/epi.rs b/eframe/src/epi.rs index a5b32d7d6abe..4bc54f3f94d6 100644 --- a/eframe/src/epi.rs +++ b/eframe/src/epi.rs @@ -6,6 +6,9 @@ #![warn(missing_docs)] // Let's keep `epi` well-documented. +#[cfg(target_arch = "wasm32")] +use std::any::Any; + /// This is how your app is created. /// /// You can use the [`CreationContext`] to setup egui, restore state, setup OpenGL things, etc. @@ -49,6 +52,15 @@ pub trait App { /// To force a repaint, call [`egui::Context::request_repaint`] at any time (e.g. from another thread). fn update(&mut self, ctx: &egui::Context, frame: &mut Frame); + // Handle to the app. + // + // Can be used from web to interact or other external context + // Implementation is needed, because downcasting Box -> Box to get &ConcreteApp is not simple in current rust. + // + // Just return &mut *self + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any; + /// Called on shutdown, and perhaps at regular intervals. Allows you to save state. /// /// Only called when the "persistence" feature is enabled. diff --git a/eframe/src/web/backend.rs b/eframe/src/web/backend.rs index 7c1a37a67cd1..29eebd25424c 100644 --- a/eframe/src/web/backend.rs +++ b/eframe/src/web/backend.rs @@ -35,7 +35,7 @@ impl WebInput { // ---------------------------------------------------------------------------- -use std::sync::atomic::Ordering::SeqCst; +use std::{any::Any, sync::atomic::Ordering::SeqCst}; /// Stores when to do the next repaint. pub struct NeedRepaint(Mutex); @@ -265,6 +265,10 @@ impl AppRunner { &self.egui_ctx } + pub fn get_app_mut(&mut self) -> &mut dyn Any { + self.app.as_any_mut() + } + pub fn auto_save(&mut self) { let now = now_sec(); let time_since_last_save = now - self.last_save_time; diff --git a/egui_demo_app/src/apps/custom3d_glow.rs b/egui_demo_app/src/apps/custom3d_glow.rs index 9798dc15bbe6..3adcead59c62 100644 --- a/egui_demo_app/src/apps/custom3d_glow.rs +++ b/egui_demo_app/src/apps/custom3d_glow.rs @@ -1,5 +1,8 @@ use std::sync::Arc; +#[cfg(target_arch = "wasm32")] +use core::any::Any; + use eframe::egui_glow; use egui::mutex::Mutex; use egui_glow::glow; @@ -49,6 +52,11 @@ impl eframe::App for Custom3d { self.rotating_triangle.lock().destroy(gl); } } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } impl Custom3d { diff --git a/egui_demo_app/src/apps/custom3d_wgpu.rs b/egui_demo_app/src/apps/custom3d_wgpu.rs index d868a57be2a2..ebb84adfd83d 100644 --- a/egui_demo_app/src/apps/custom3d_wgpu.rs +++ b/egui_demo_app/src/apps/custom3d_wgpu.rs @@ -1,5 +1,8 @@ use std::sync::Arc; +#[cfg(target_arch = "wasm32")] +use core::any::Any; + use eframe::{ egui_wgpu::{self, wgpu}, wgpu::util::DeviceExt, @@ -117,6 +120,11 @@ impl eframe::App for Custom3d { }); }); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } impl Custom3d { diff --git a/egui_demo_app/src/apps/http_app.rs b/egui_demo_app/src/apps/http_app.rs index df92e7489f6f..696480806704 100644 --- a/egui_demo_app/src/apps/http_app.rs +++ b/egui_demo_app/src/apps/http_app.rs @@ -1,6 +1,9 @@ use egui_extras::RetainedImage; use poll_promise::Promise; +#[cfg(target_arch = "wasm32")] +use core::any::Any; + struct Resource { /// HTTP response response: ehttp::Response, @@ -106,6 +109,11 @@ impl eframe::App for HttpApp { } }); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } fn ui_url(ui: &mut egui::Ui, frame: &mut eframe::Frame, url: &mut String) -> bool { diff --git a/egui_demo_app/src/lib.rs b/egui_demo_app/src/lib.rs index 8ae3f42292ba..ed9a87321009 100644 --- a/egui_demo_app/src/lib.rs +++ b/egui_demo_app/src/lib.rs @@ -43,6 +43,25 @@ impl WebHandle { res } + + // helper for mutating original app from javascript + fn with_app(&mut self, func: F) -> () + where + F: Fn(&mut WrapApp) -> (), + { + let mut runner_ref = self.handle.lock(); + let app_ref = runner_ref.get_app_mut(); + let app = app_ref.downcast_mut::().unwrap(); + func(app); + } + + #[wasm_bindgen] + #[cfg(target_arch = "wasm32")] + pub fn set_some_content_from_javasript(&mut self, _some_data: &str) { + self.with_app(|_app| { + // app.data = some_data; + }); + } } #[cfg(target_arch = "wasm32")] diff --git a/egui_demo_app/src/wrap_app.rs b/egui_demo_app/src/wrap_app.rs index 1a844b966084..b1078d6496a4 100644 --- a/egui_demo_app/src/wrap_app.rs +++ b/egui_demo_app/src/wrap_app.rs @@ -3,6 +3,9 @@ use egui_demo_lib::is_mobile; #[cfg(feature = "glow")] use eframe::glow; +#[cfg(target_arch = "wasm32")] +use core::any::Any; + #[derive(Default)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] struct EasyMarkApp { @@ -13,6 +16,11 @@ impl eframe::App for EasyMarkApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { self.editor.panels(ctx); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } // ---------------------------------------------------------------------------- @@ -27,6 +35,11 @@ impl eframe::App for DemoApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { self.demo_windows.ui(ctx); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } // ---------------------------------------------------------------------------- @@ -46,6 +59,11 @@ impl eframe::App for FractalClockApp { .ui(ui, Some(crate::seconds_since_midnight())); }); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } // ---------------------------------------------------------------------------- @@ -70,6 +88,11 @@ impl eframe::App for ColorTestApp { }); }); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } // ---------------------------------------------------------------------------- @@ -214,6 +237,11 @@ impl eframe::App for WrapApp { fn on_exit(&mut self, gl: Option<&glow::Context>) { self.custom3d.on_exit(gl); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } impl WrapApp { diff --git a/examples/custom_3d_three-d/src/main.rs b/examples/custom_3d_three-d/src/main.rs index 0ca9eb58edb5..437d3548aafc 100644 --- a/examples/custom_3d_three-d/src/main.rs +++ b/examples/custom_3d_three-d/src/main.rs @@ -47,6 +47,11 @@ impl eframe::App for MyApp { }); }); } + + #[cfg(target_arch = "wasm32")] + fn as_any_mut(&mut self) -> &mut dyn Any { + &mut *self + } } impl MyApp {