diff --git a/beat-detector-b18dcb86af51dca2.js b/beat-detector-b18dcb86af51dca2.js new file mode 100644 index 0000000..1735a13 --- /dev/null +++ b/beat-detector-b18dcb86af51dca2.js @@ -0,0 +1 @@ +let a0=`string`,a4=4,W=0,S=1,$=`boolean`,Y=`function`,_=`number`,T=`undefined`,U=`utf-8`,a7=538,R=null,a3=16,a1=`Object`,P=Array,V=Error,a2=FinalizationRegistry,Z=Int32Array,a5=Object,a6=Reflect,X=Uint8Array,Q=undefined;var w=((b,c,d,e)=>{const f={a:b,b:c,cnt:S,dtor:d};const g=(...b)=>{f.cnt++;const c=f.a;f.a=W;try{return e(c,f.b,...b)}finally{if(--f.cnt===W){a.__wbindgen_export_2.get(f.dtor)(c,f.b);v.unregister(f)}else{f.a=c}}};g.original=f;v.register(g,f,f);return g});var A=((b,c)=>{try{const g=a.__wbindgen_add_to_stack_pointer(-a3);a.wasm_bindgen__convert__closures__invoke0_mut__hf95dbe7a3fc370ec(g,b,c);var d=r()[g/a4+ W];var e=r()[g/a4+ S];if(e){throw f(d)}}finally{a.__wbindgen_add_to_stack_pointer(a3)}});var u=(a=>{const b=typeof a;if(b==_||b==$||a==R){return `${a}`};if(b==a0){return `"${a}"`};if(b==`symbol`){const b=a.description;if(b==R){return `Symbol`}else{return `Symbol(${b})`}};if(b==Y){const b=a.name;if(typeof b==a0&&b.length>W){return `Function(${b})`}else{return `Function`}};if(P.isArray(a)){const b=a.length;let c=`[`;if(b>W){c+=u(a[W])};for(let d=S;dS){d=c[S]}else{return toString.call(a)};if(d==a1){try{return `Object(`+ JSON.stringify(a)+ `)`}catch(a){return a1}};if(a instanceof V){return `${a.name}: ${a.message}\n${a.stack}`};return d});var M=((b,c)=>{a=b.exports;O.__wbindgen_wasm_module=c;s=R;q=R;i=R;a.__wbindgen_start();return a});var k=((a,b)=>{a=a>>>W;return h.decode(j().subarray(a,a+ b))});var p=(a=>a===Q||a===R);var N=(b=>{if(a!==Q)return a;const c=K();L(c);if(!(b instanceof WebAssembly.Module)){b=new WebAssembly.Module(b)};const d=new WebAssembly.Instance(b,c);return M(d,b)});var f=(a=>{const b=c(a);e(a);return b});var y=((b,c)=>{a.wasm_bindgen__convert__closures__invoke0_mut__h5ff54ad1f5de7703(b,c)});var O=(async(b)=>{if(a!==Q)return a;if(typeof b===T){b=new URL(`beat-detector-b18dcb86af51dca2_bg.wasm`,import.meta.url)};const c=K();if(typeof b===a0||typeof Request===Y&&b instanceof Request||typeof URL===Y&&b instanceof URL){b=fetch(b)};L(c);const {instance:d,module:e}=await J(await b,c);return M(d,e)});var L=((a,b)=>{});var K=(()=>{const b={};b.wbg={};b.wbg.__wbg_start_2eaa068d8a373d93=(a=>{start(f(a))});b.wbg.__wbg_guiremotewrapper_new=(a=>{const b=I.__wrap(a);return g(b)});b.wbg.__wbindgen_object_drop_ref=(a=>{f(a)});b.wbg.__wbindgen_cb_drop=(a=>{const b=f(a).original;if(b.cnt--==S){b.a=W;return !0};const c=!1;return c});b.wbg.__wbindgen_object_clone_ref=(a=>{const b=c(a);return g(b)});b.wbg.__wbindgen_string_new=((a,b)=>{const c=k(a,b);return g(c)});b.wbg.__wbg_clearTimeout_76877dbc010e786d=(a=>{const b=clearTimeout(f(a));return g(b)});b.wbg.__wbg_setTimeout_75cb9b6991a4031d=function(){return E(((a,b)=>{const d=setTimeout(c(a),b);return g(d)}),arguments)};b.wbg.__wbindgen_string_get=((b,d)=>{const e=c(d);const f=typeof e===a0?e:Q;var g=p(f)?W:o(f,a.__wbindgen_malloc,a.__wbindgen_realloc);var h=l;r()[b/a4+ S]=h;r()[b/a4+ W]=g});b.wbg.__wbindgen_number_get=((a,b)=>{const d=c(b);const e=typeof d===_?d:Q;t()[a/8+ S]=p(e)?W:e;r()[a/a4+ W]=!p(e)});b.wbg.__wbg_error_fef71bc9b670aec4=((b,c)=>{let d;let e;try{d=b;e=c;console.error(k(b,c))}finally{a.__wbindgen_free(d,e,S)}});b.wbg.__wbg_new_17c866ad40da987b=(()=>{const a=new V();return g(a)});b.wbg.__wbg_stack_1c1cef4675b9e0ca=((b,d)=>{const e=c(d).stack;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_trace_a77d5b4727abe1a2=((a,b)=>{console.trace(k(a,b))});b.wbg.__wbg_debug_3f054bbe0f3dac7b=((a,b)=>{console.debug(k(a,b))});b.wbg.__wbg_info_5f81499bedfbb5bc=((a,b)=>{console.info(k(a,b))});b.wbg.__wbg_warn_9f342193aba78ade=((a,b)=>{console.warn(k(a,b))});b.wbg.__wbg_queueMicrotask_f61ee94ee663068b=(a=>{queueMicrotask(c(a))});b.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae=(a=>{const b=c(a).queueMicrotask;return g(b)});b.wbg.__wbindgen_is_function=(a=>{const b=typeof c(a)===Y;return b});b.wbg.__wbg_performance_eeefc685c9bc38b4=(a=>{const b=c(a).performance;return g(b)});b.wbg.__wbindgen_is_undefined=(a=>{const b=c(a)===Q;return b});b.wbg.__wbg_now_e0d8ec93dd25766a=(a=>{const b=c(a).now();return b});b.wbg.__wbindgen_boolean_get=(a=>{const b=c(a);const d=typeof b===$?(b?S:W):2;return d});b.wbg.__wbg_instanceof_Window_cee7a886d55e7df5=(a=>{let b;try{b=c(a) instanceof Window}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_document_eb7fd66bde3ee213=(a=>{const b=c(a).document;return p(b)?W:g(b)});b.wbg.__wbg_location_b17760ac7977a47a=(a=>{const b=c(a).location;return g(b)});b.wbg.__wbg_navigator_b1003b77e05fcee9=(a=>{const b=c(a).navigator;return g(b)});b.wbg.__wbg_innerHeight_a9719febb72ddaf3=function(){return E((a=>{const b=c(a).innerHeight;return g(b)}),arguments)};b.wbg.__wbg_devicePixelRatio_3ced5021c4480dd9=(a=>{const b=c(a).devicePixelRatio;return b});b.wbg.__wbg_localStorage_3d538af21ea07fcc=function(){return E((a=>{const b=c(a).localStorage;return p(b)?W:g(b)}),arguments)};b.wbg.__wbg_performance_4ca1873776fdb3d2=(a=>{const b=c(a).performance;return p(b)?W:g(b)});b.wbg.__wbg_matchMedia_d9cdff718d3e526e=function(){return E(((a,b,d)=>{const e=c(a).matchMedia(k(b,d));return p(e)?W:g(e)}),arguments)};b.wbg.__wbg_open_8db78e14935e215b=function(){return E(((a,b,d,e,f)=>{const h=c(a).open(k(b,d),k(e,f));return p(h)?W:g(h)}),arguments)};b.wbg.__wbg_requestAnimationFrame_fdbeaff9e8f3f77d=function(){return E(((a,b)=>{const d=c(a).requestAnimationFrame(c(b));return d}),arguments)};b.wbg.__wbg_clearInterval_0216ca540cb1ad00=((a,b)=>{c(a).clearInterval(b)});b.wbg.__wbg_setTimeout_6ed7182ebad5d297=function(){return E(((a,b,d)=>{const e=c(a).setTimeout(c(b),d);return e}),arguments)};b.wbg.__wbg_instanceof_WebGl2RenderingContext_b1bbc94623ae057f=(a=>{let b;try{b=c(a) instanceof WebGL2RenderingContext}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_bindVertexArray_68196ec68ffa5d9c=((a,b)=>{c(a).bindVertexArray(c(b))});b.wbg.__wbg_bufferData_325ab331c8e0735f=((a,b,d,e)=>{c(a).bufferData(b>>>W,c(d),e>>>W)});b.wbg.__wbg_createVertexArray_aa1c03bf14f520f1=(a=>{const b=c(a).createVertexArray();return p(b)?W:g(b)});b.wbg.__wbg_texImage2D_480bb656acf1c931=function(){return E(((a,b,d,e,f,g,h,i,j,k)=>{c(a).texImage2D(b>>>W,d,e,f,g,h,i>>>W,j>>>W,c(k))}),arguments)};b.wbg.__wbg_texSubImage2D_01a3d1b8ac6e4702=function(){return E(((a,b,d,e,f,g,h,i,j,k)=>{c(a).texSubImage2D(b>>>W,d,e,f,g,h,i>>>W,j>>>W,c(k))}),arguments)};b.wbg.__wbg_texSubImage2D_c96538f70e56e139=function(){return E(((a,b,d,e,f,g,h,i,j,k)=>{c(a).texSubImage2D(b>>>W,d,e,f,g,h,i>>>W,j>>>W,k)}),arguments)};b.wbg.__wbg_activeTexture_5f08f4188abc9410=((a,b)=>{c(a).activeTexture(b>>>W)});b.wbg.__wbg_attachShader_427e1d01a628e522=((a,b,d)=>{c(a).attachShader(c(b),c(d))});b.wbg.__wbg_bindBuffer_0285be79ac8a4f9f=((a,b,d)=>{c(a).bindBuffer(b>>>W,c(d))});b.wbg.__wbg_bindTexture_20fd21916229a80c=((a,b,d)=>{c(a).bindTexture(b>>>W,c(d))});b.wbg.__wbg_blendEquationSeparate_46b6aa4bdcf2d9ef=((a,b,d)=>{c(a).blendEquationSeparate(b>>>W,d>>>W)});b.wbg.__wbg_blendFuncSeparate_0490d8414b0a2e98=((a,b,d,e,f)=>{c(a).blendFuncSeparate(b>>>W,d>>>W,e>>>W,f>>>W)});b.wbg.__wbg_clear_ceb93ecc4e5d5e06=((a,b)=>{c(a).clear(b>>>W)});b.wbg.__wbg_clearColor_e4c61a3089043306=((a,b,d,e,f)=>{c(a).clearColor(b,d,e,f)});b.wbg.__wbg_colorMask_ae97e907cdf41404=((a,b,d,e,f)=>{c(a).colorMask(b!==W,d!==W,e!==W,f!==W)});b.wbg.__wbg_compileShader_2191687ded033138=((a,b)=>{c(a).compileShader(c(b))});b.wbg.__wbg_createBuffer_ee6e74ae50f1fbc8=(a=>{const b=c(a).createBuffer();return p(b)?W:g(b)});b.wbg.__wbg_createProgram_869004e7019cca34=(a=>{const b=c(a).createProgram();return p(b)?W:g(b)});b.wbg.__wbg_createShader_eceb4217c94a1056=((a,b)=>{const d=c(a).createShader(b>>>W);return p(d)?W:g(d)});b.wbg.__wbg_createTexture_084c9c8b377793c3=(a=>{const b=c(a).createTexture();return p(b)?W:g(b)});b.wbg.__wbg_deleteBuffer_c66740fb719fb9a7=((a,b)=>{c(a).deleteBuffer(c(b))});b.wbg.__wbg_deleteProgram_af78790615a2a7d7=((a,b)=>{c(a).deleteProgram(c(b))});b.wbg.__wbg_deleteShader_1d9cfbdc150762cb=((a,b)=>{c(a).deleteShader(c(b))});b.wbg.__wbg_deleteTexture_547a7269a7254d2a=((a,b)=>{c(a).deleteTexture(c(b))});b.wbg.__wbg_detachShader_83214b1314cfc677=((a,b,d)=>{c(a).detachShader(c(b),c(d))});b.wbg.__wbg_disable_3598de08841268c2=((a,b)=>{c(a).disable(b>>>W)});b.wbg.__wbg_disableVertexAttribArray_2550e62f2714837b=((a,b)=>{c(a).disableVertexAttribArray(b>>>W)});b.wbg.__wbg_drawElements_77b947be75fe30f4=((a,b,d,e,f)=>{c(a).drawElements(b>>>W,d,e>>>W,f)});b.wbg.__wbg_enable_98a8863abbaa7bd2=((a,b)=>{c(a).enable(b>>>W)});b.wbg.__wbg_enableVertexAttribArray_5f8e190ba41f4f30=((a,b)=>{c(a).enableVertexAttribArray(b>>>W)});b.wbg.__wbg_getAttribLocation_08f436d8fc4fe68d=((a,b,d,e)=>{const f=c(a).getAttribLocation(c(b),k(d,e));return f});b.wbg.__wbg_getError_4f4b3a8c71d4c39e=(a=>{const b=c(a).getError();return b});b.wbg.__wbg_getExtension_e64ba7e30e8a6eae=function(){return E(((a,b,d)=>{const e=c(a).getExtension(k(b,d));return p(e)?W:g(e)}),arguments)};b.wbg.__wbg_getParameter_4d51a40deebd7a8c=function(){return E(((a,b)=>{const d=c(a).getParameter(b>>>W);return g(d)}),arguments)};b.wbg.__wbg_getProgramInfoLog_a9fede9be1e3a6ce=((b,d,e)=>{const f=c(d).getProgramInfoLog(c(e));var g=p(f)?W:o(f,a.__wbindgen_malloc,a.__wbindgen_realloc);var h=l;r()[b/a4+ S]=h;r()[b/a4+ W]=g});b.wbg.__wbg_getProgramParameter_a13e6d88ec9e039a=((a,b,d)=>{const e=c(a).getProgramParameter(c(b),d>>>W);return g(e)});b.wbg.__wbg_getShaderInfoLog_63c64bf03382de2d=((b,d,e)=>{const f=c(d).getShaderInfoLog(c(e));var g=p(f)?W:o(f,a.__wbindgen_malloc,a.__wbindgen_realloc);var h=l;r()[b/a4+ S]=h;r()[b/a4+ W]=g});b.wbg.__wbg_getShaderParameter_0fb2d525889d5a24=((a,b,d)=>{const e=c(a).getShaderParameter(c(b),d>>>W);return g(e)});b.wbg.__wbg_getSupportedExtensions_3d93fae4cd24d995=(a=>{const b=c(a).getSupportedExtensions();return p(b)?W:g(b)});b.wbg.__wbg_getUniformLocation_009db1591e93ef17=((a,b,d,e)=>{const f=c(a).getUniformLocation(c(b),k(d,e));return p(f)?W:g(f)});b.wbg.__wbg_linkProgram_578651eb0388616a=((a,b)=>{c(a).linkProgram(c(b))});b.wbg.__wbg_pixelStorei_8848825419f61cec=((a,b,d)=>{c(a).pixelStorei(b>>>W,d)});b.wbg.__wbg_scissor_b2312f494abc5032=((a,b,d,e,f)=>{c(a).scissor(b,d,e,f)});b.wbg.__wbg_shaderSource_d241264f221df907=((a,b,d,e)=>{c(a).shaderSource(c(b),k(d,e))});b.wbg.__wbg_texParameteri_b747d8d506fcd0d2=((a,b,d,e)=>{c(a).texParameteri(b>>>W,d>>>W,e)});b.wbg.__wbg_uniform1i_3f1af04af82891ff=((a,b,d)=>{c(a).uniform1i(c(b),d)});b.wbg.__wbg_uniform2f_cf18347e12a5f103=((a,b,d,e)=>{c(a).uniform2f(c(b),d,e)});b.wbg.__wbg_useProgram_b28955d541019a7a=((a,b)=>{c(a).useProgram(c(b))});b.wbg.__wbg_vertexAttribPointer_df897e1c10d6b71b=((a,b,d,e,f,g,h)=>{c(a).vertexAttribPointer(b>>>W,d,e>>>W,f!==W,g,h)});b.wbg.__wbg_viewport_f542dcd30d88e69d=((a,b,d,e,f)=>{c(a).viewport(b,d,e,f)});b.wbg.__wbg_setid_7daec2ce740ea365=((a,b,d)=>{c(a).id=k(b,d)});b.wbg.__wbg_scrollLeft_c2f39ef7a0b36f55=(a=>{const b=c(a).scrollLeft;return b});b.wbg.__wbg_clientWidth_7a325bdb8c723d9f=(a=>{const b=c(a).clientWidth;return b});b.wbg.__wbg_clientHeight_2b2a9874084502db=(a=>{const b=c(a).clientHeight;return b});b.wbg.__wbg_getBoundingClientRect_3b6c47996a55427e=(a=>{const b=c(a).getBoundingClientRect();return g(b)});b.wbg.__wbg_body_874ccb42daaab363=(a=>{const b=c(a).body;return p(b)?W:g(b)});b.wbg.__wbg_createElement_03cf347ddad1c8c0=function(){return E(((a,b,d)=>{const e=c(a).createElement(k(b,d));return g(e)}),arguments)};b.wbg.__wbg_getElementById_77f2dfdddee12e05=((a,b,d)=>{const e=c(a).getElementById(k(b,d));return p(e)?W:g(e)});b.wbg.__wbg_scrollTop_6f07539d4534a820=(a=>{const b=c(a).scrollTop;return b});b.wbg.__wbg_hidden_2366c29a55a4c50a=(a=>{const b=c(a).hidden;return b});b.wbg.__wbg_sethidden_04acac3815d1ba64=((a,b)=>{c(a).hidden=b!==W});b.wbg.__wbg_style_ca229e3326b3c3fb=(a=>{const b=c(a).style;return g(b)});b.wbg.__wbg_offsetTop_0636b250f8d731f3=(a=>{const b=c(a).offsetTop;return b});b.wbg.__wbg_offsetLeft_0150ee05891dfb7e=(a=>{const b=c(a).offsetLeft;return b});b.wbg.__wbg_offsetWidth_b5af4d8ba15fa071=(a=>{const b=c(a).offsetWidth;return b});b.wbg.__wbg_blur_3bef2a6e3b1f9734=function(){return E((a=>{c(a).blur()}),arguments)};b.wbg.__wbg_focus_d1373017540aae66=function(){return E((a=>{c(a).focus()}),arguments)};b.wbg.__wbg_instanceof_WebGlRenderingContext_468d6182819ad4c3=(a=>{let b;try{b=c(a) instanceof WebGLRenderingContext}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_bufferData_560eedbff09bce24=((a,b,d,e)=>{c(a).bufferData(b>>>W,c(d),e>>>W)});b.wbg.__wbg_texImage2D_a907a9e673209a09=function(){return E(((a,b,d,e,f,g,h,i,j,k)=>{c(a).texImage2D(b>>>W,d,e,f,g,h,i>>>W,j>>>W,c(k))}),arguments)};b.wbg.__wbg_texSubImage2D_ace8ef3e5beb9c66=function(){return E(((a,b,d,e,f,g,h,i,j,k)=>{c(a).texSubImage2D(b>>>W,d,e,f,g,h,i>>>W,j>>>W,c(k))}),arguments)};b.wbg.__wbg_activeTexture_5d70c5bfb1e18433=((a,b)=>{c(a).activeTexture(b>>>W)});b.wbg.__wbg_attachShader_877aa4ad5f81f5fb=((a,b,d)=>{c(a).attachShader(c(b),c(d))});b.wbg.__wbg_bindBuffer_8721bd9c00cbc8b8=((a,b,d)=>{c(a).bindBuffer(b>>>W,c(d))});b.wbg.__wbg_bindTexture_17a55d9204f92347=((a,b,d)=>{c(a).bindTexture(b>>>W,c(d))});b.wbg.__wbg_blendEquationSeparate_483c9bbff12702e9=((a,b,d)=>{c(a).blendEquationSeparate(b>>>W,d>>>W)});b.wbg.__wbg_blendFuncSeparate_2f3d44b3bd3604e9=((a,b,d,e,f)=>{c(a).blendFuncSeparate(b>>>W,d>>>W,e>>>W,f>>>W)});b.wbg.__wbg_clear_617b292bb8360c4a=((a,b)=>{c(a).clear(b>>>W)});b.wbg.__wbg_clearColor_6d87cdad9936f445=((a,b,d,e,f)=>{c(a).clearColor(b,d,e,f)});b.wbg.__wbg_colorMask_d8a9ecfb82a480cf=((a,b,d,e,f)=>{c(a).colorMask(b!==W,d!==W,e!==W,f!==W)});b.wbg.__wbg_compileShader_349b2f1607e1b7e9=((a,b)=>{c(a).compileShader(c(b))});b.wbg.__wbg_createBuffer_c48fee40bffd1848=(a=>{const b=c(a).createBuffer();return p(b)?W:g(b)});b.wbg.__wbg_createProgram_eb0e7dfb7c89e9b8=(a=>{const b=c(a).createProgram();return p(b)?W:g(b)});b.wbg.__wbg_createShader_6b7a22e75c6d4cc4=((a,b)=>{const d=c(a).createShader(b>>>W);return p(d)?W:g(d)});b.wbg.__wbg_createTexture_af9c1894db4f1ff4=(a=>{const b=c(a).createTexture();return p(b)?W:g(b)});b.wbg.__wbg_deleteBuffer_0788cfe1724454e7=((a,b)=>{c(a).deleteBuffer(c(b))});b.wbg.__wbg_deleteProgram_655d072ee71efb0c=((a,b)=>{c(a).deleteProgram(c(b))});b.wbg.__wbg_deleteShader_13c4ae9a9c93c31f=((a,b)=>{c(a).deleteShader(c(b))});b.wbg.__wbg_deleteTexture_38664338ad2770e7=((a,b)=>{c(a).deleteTexture(c(b))});b.wbg.__wbg_detachShader_480c7fff77236016=((a,b,d)=>{c(a).detachShader(c(b),c(d))});b.wbg.__wbg_disable_d9f43aa105b2d999=((a,b)=>{c(a).disable(b>>>W)});b.wbg.__wbg_disableVertexAttribArray_415331ebeb20bf62=((a,b)=>{c(a).disableVertexAttribArray(b>>>W)});b.wbg.__wbg_drawElements_201a313e5ea8a1c4=((a,b,d,e,f)=>{c(a).drawElements(b>>>W,d,e>>>W,f)});b.wbg.__wbg_enable_f6bb861e15562c7d=((a,b)=>{c(a).enable(b>>>W)});b.wbg.__wbg_enableVertexAttribArray_1e31054271daee48=((a,b)=>{c(a).enableVertexAttribArray(b>>>W)});b.wbg.__wbg_getAttribLocation_5394f71d757b6847=((a,b,d,e)=>{const f=c(a).getAttribLocation(c(b),k(d,e));return f});b.wbg.__wbg_getError_418a1642da6ca6b5=(a=>{const b=c(a).getError();return b});b.wbg.__wbg_getExtension_695813f4264a3da5=function(){return E(((a,b,d)=>{const e=c(a).getExtension(k(b,d));return p(e)?W:g(e)}),arguments)};b.wbg.__wbg_getParameter_d866a888cb0448b3=function(){return E(((a,b)=>{const d=c(a).getParameter(b>>>W);return g(d)}),arguments)};b.wbg.__wbg_getProgramInfoLog_5bbd3c3298d235e3=((b,d,e)=>{const f=c(d).getProgramInfoLog(c(e));var g=p(f)?W:o(f,a.__wbindgen_malloc,a.__wbindgen_realloc);var h=l;r()[b/a4+ S]=h;r()[b/a4+ W]=g});b.wbg.__wbg_getProgramParameter_9f11dae51c820ff9=((a,b,d)=>{const e=c(a).getProgramParameter(c(b),d>>>W);return g(e)});b.wbg.__wbg_getShaderInfoLog_9534d164ba660552=((b,d,e)=>{const f=c(d).getShaderInfoLog(c(e));var g=p(f)?W:o(f,a.__wbindgen_malloc,a.__wbindgen_realloc);var h=l;r()[b/a4+ S]=h;r()[b/a4+ W]=g});b.wbg.__wbg_getShaderParameter_0cfb9e3e9f43693a=((a,b,d)=>{const e=c(a).getShaderParameter(c(b),d>>>W);return g(e)});b.wbg.__wbg_getSupportedExtensions_69c26850565e0ddc=(a=>{const b=c(a).getSupportedExtensions();return p(b)?W:g(b)});b.wbg.__wbg_getUniformLocation_2890393c80bc543b=((a,b,d,e)=>{const f=c(a).getUniformLocation(c(b),k(d,e));return p(f)?W:g(f)});b.wbg.__wbg_linkProgram_5bd18d4ebd77a2ea=((a,b)=>{c(a).linkProgram(c(b))});b.wbg.__wbg_pixelStorei_98d826c8b851ed4f=((a,b,d)=>{c(a).pixelStorei(b>>>W,d)});b.wbg.__wbg_scissor_1a003e68fc69d37d=((a,b,d,e,f)=>{c(a).scissor(b,d,e,f)});b.wbg.__wbg_shaderSource_17ebc5d747730d79=((a,b,d,e)=>{c(a).shaderSource(c(b),k(d,e))});b.wbg.__wbg_texParameteri_ee2fc6b9f304c84a=((a,b,d,e)=>{c(a).texParameteri(b>>>W,d>>>W,e)});b.wbg.__wbg_uniform1i_76ac1d17923cb752=((a,b,d)=>{c(a).uniform1i(c(b),d)});b.wbg.__wbg_uniform2f_766ce5b04d89a3d8=((a,b,d,e)=>{c(a).uniform2f(c(b),d,e)});b.wbg.__wbg_useProgram_1532661e648379ca=((a,b)=>{c(a).useProgram(c(b))});b.wbg.__wbg_vertexAttribPointer_88b31f05ae55b02c=((a,b,d,e,f,g,h)=>{c(a).vertexAttribPointer(b>>>W,d,e>>>W,f!==W,g,h)});b.wbg.__wbg_viewport_037ea26b4fcd0cb2=((a,b,d,e,f)=>{c(a).viewport(b,d,e,f)});b.wbg.__wbg_top_44a8c250dcea0251=(a=>{const b=c(a).top;return b});b.wbg.__wbg_left_52377628791ffcf6=(a=>{const b=c(a).left;return b});b.wbg.__wbg_timeStamp_2862d0055bbcb336=(a=>{const b=c(a).timeStamp;return b});b.wbg.__wbg_preventDefault_657cbf753df1396c=(a=>{c(a).preventDefault()});b.wbg.__wbg_stopPropagation_806520d93e80bcf7=(a=>{c(a).stopPropagation()});b.wbg.__wbg_clientX_2d1be024f35f3981=(a=>{const b=c(a).clientX;return b});b.wbg.__wbg_clientY_967af1c2b0177a9f=(a=>{const b=c(a).clientY;return b});b.wbg.__wbg_ctrlKey_2817108375a63e7c=(a=>{const b=c(a).ctrlKey;return b});b.wbg.__wbg_shiftKey_87d2a9527cefdf3d=(a=>{const b=c(a).shiftKey;return b});b.wbg.__wbg_metaKey_35f1fd33c4e0c5df=(a=>{const b=c(a).metaKey;return b});b.wbg.__wbg_button_43d11b000a7126cf=(a=>{const b=c(a).button;return b});b.wbg.__wbg_getItem_5c179cd36e9529e8=function(){return E(((b,d,e,f)=>{const g=c(d).getItem(k(e,f));var h=p(g)?W:o(g,a.__wbindgen_malloc,a.__wbindgen_realloc);var i=l;r()[b/a4+ S]=i;r()[b/a4+ W]=h}),arguments)};b.wbg.__wbg_setItem_7b55989efb4d45f7=function(){return E(((a,b,d,e,f)=>{c(a).setItem(k(b,d),k(e,f))}),arguments)};b.wbg.__wbg_identifier_1bbeeef4f8c3644c=(a=>{const b=c(a).identifier;return b});b.wbg.__wbg_pageX_1a662c5236b65a8c=(a=>{const b=c(a).pageX;return b});b.wbg.__wbg_pageY_7d28263e3ca120f8=(a=>{const b=c(a).pageY;return b});b.wbg.__wbg_force_a23dc68752bbd295=(a=>{const b=c(a).force;return b});b.wbg.__wbg_setProperty_5144ddce66bbde41=function(){return E(((a,b,d,e,f)=>{c(a).setProperty(k(b,d),k(e,f))}),arguments)};b.wbg.__wbg_addEventListener_f984e99465a6a7f4=function(){return E(((a,b,d,e)=>{c(a).addEventListener(k(b,d),c(e))}),arguments)};b.wbg.__wbg_removeEventListener_acfc154b998d806b=function(){return E(((a,b,d,e)=>{c(a).removeEventListener(k(b,d),c(e))}),arguments)};b.wbg.__wbg_instanceof_HtmlInputElement_189f182751dc1f5e=(a=>{let b;try{b=c(a) instanceof HTMLInputElement}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_setautofocus_3ac9b87146e5cd21=((a,b)=>{c(a).autofocus=b!==W});b.wbg.__wbg_setsize_c0546cf8c51a0e77=((a,b)=>{c(a).size=b>>>W});b.wbg.__wbg_value_99f5294791d62576=((b,d)=>{const e=c(d).value;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_setvalue_bba31de32cdbb32c=((a,b,d)=>{c(a).value=k(b,d)});b.wbg.__wbg_instanceof_HtmlCanvasElement_1e81f71f630e46bc=(a=>{let b;try{b=c(a) instanceof HTMLCanvasElement}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_width_aa1ac55fb41db6ae=(a=>{const b=c(a).width;return b});b.wbg.__wbg_setwidth_233645b297bb3318=((a,b)=>{c(a).width=b>>>W});b.wbg.__wbg_height_bea901cd16645fb7=(a=>{const b=c(a).height;return b});b.wbg.__wbg_setheight_fcb491cf54e3527c=((a,b)=>{c(a).height=b>>>W});b.wbg.__wbg_getContext_dfc91ab0837db1d1=function(){return E(((a,b,d)=>{const e=c(a).getContext(k(b,d));return p(e)?W:g(e)}),arguments)};b.wbg.__wbg_href_a5b902312c18d121=function(){return E(((b,d)=>{const e=c(d).href;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_origin_305402044aa148ce=function(){return E(((b,d)=>{const e=c(d).origin;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_protocol_85fb404fceb30ff2=function(){return E(((b,d)=>{const e=c(d).protocol;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_host_3f37d9558f3919b9=function(){return E(((b,d)=>{const e=c(d).host;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_hostname_0a8eb31c4e0261e9=function(){return E(((b,d)=>{const e=c(d).hostname;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_port_be2aeb97d2bf49c7=function(){return E(((b,d)=>{const e=c(d).port;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_search_40927d5af164fdfe=function(){return E(((b,d)=>{const e=c(d).search;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_hash_163703b5971e593c=function(){return E(((b,d)=>{const e=c(d).hash;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_matches_b18b6193e5512cde=(a=>{const b=c(a).matches;return b});b.wbg.__wbg_data_4be33c0f63b7c5a0=function(){return E(((b,d)=>{const e=c(d).data;const f=F(e,a.__wbindgen_malloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_size_97217f6c840f58b2=(a=>{const b=c(a).size;return b});b.wbg.__wbg_type_6c31bd72c3383cba=((b,d)=>{const e=c(d).type;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_arrayBuffer_800ebf8dca614366=(a=>{const b=c(a).arrayBuffer();return g(b)});b.wbg.__wbg_keyCode_8c7511bf92389868=(a=>{const b=c(a).keyCode;return b});b.wbg.__wbg_altKey_580c95fbc9461164=(a=>{const b=c(a).altKey;return b});b.wbg.__wbg_ctrlKey_032bd6905bacba55=(a=>{const b=c(a).ctrlKey;return b});b.wbg.__wbg_shiftKey_a84ea8856781bd54=(a=>{const b=c(a).shiftKey;return b});b.wbg.__wbg_metaKey_fe405998712e46a0=(a=>{const b=c(a).metaKey;return b});b.wbg.__wbg_isComposing_750f53009cbfb833=(a=>{const b=c(a).isComposing;return b});b.wbg.__wbg_key_0527970a852413ca=((b,d)=>{const e=c(d).key;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_now_ef71656beb948bc8=(a=>{const b=c(a).now();return b});b.wbg.__wbg_deltaX_5ddc4c69f2887db9=(a=>{const b=c(a).deltaX;return b});b.wbg.__wbg_deltaY_0ba2dcd707862292=(a=>{const b=c(a).deltaY;return b});b.wbg.__wbg_deltaMode_ed2d0b2e0a547b92=(a=>{const b=c(a).deltaMode;return b});b.wbg.__wbg_width_faa64c8759fdff80=(a=>{const b=c(a).width;return b});b.wbg.__wbg_height_bdf3f02c617ef055=(a=>{const b=c(a).height;return b});b.wbg.__wbg_dataTransfer_c3dfe779ef079bcc=(a=>{const b=c(a).dataTransfer;return p(b)?W:g(b)});b.wbg.__wbg_length_82b5ad246042df8b=(a=>{const b=c(a).length;return b});b.wbg.__wbg_item_f29aac628e55f885=((a,b)=>{const d=c(a).item(b>>>W);return p(d)?W:g(d)});b.wbg.__wbg_get_1a995928c199f987=((a,b)=>{const d=c(a)[b>>>W];return p(d)?W:g(d)});b.wbg.__wbg_items_622c348119794691=(a=>{const b=c(a).items;return g(b)});b.wbg.__wbg_files_00ec146c4eb7c254=(a=>{const b=c(a).files;return p(b)?W:g(b)});b.wbg.__wbg_length_e5ff7777627bc19e=(a=>{const b=c(a).length;return b});b.wbg.__wbg_get_0aa6219f7b9f2100=((a,b)=>{const d=c(a)[b>>>W];return p(d)?W:g(d)});b.wbg.__wbg_userAgent_6dbd12d01f988f5f=function(){return E(((b,d)=>{const e=c(d).userAgent;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f}),arguments)};b.wbg.__wbg_requestMIDIAccess_3934ed0264c6869a=function(){return E(((a,b)=>{const d=c(a).requestMIDIAccess(c(b));return g(d)}),arguments)};b.wbg.__wbg_type_023f810f636fd950=((b,d)=>{const e=c(d).type;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_length_29ed7aaf6bb5a432=(a=>{const b=c(a).length;return b});b.wbg.__wbg_get_a5a83ff42873c81d=((a,b)=>{const d=c(a)[b>>>W];return p(d)?W:g(d)});b.wbg.__wbg_instanceof_MidiAccess_d55aee502522ce36=(a=>{let b;try{b=c(a) instanceof MIDIAccess}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_inputs_a5dd0bfbe57ef19b=(a=>{const b=c(a).inputs;return g(b)});b.wbg.__wbg_instanceof_MidiInput_d15e2d5b9a1f1137=(a=>{let b;try{b=c(a) instanceof MIDIInput}catch(a){b=!1}const d=b;return d});b.wbg.__wbg_setonmidimessage_722e4ddf3f1bf3da=((a,b)=>{c(a).onmidimessage=c(b)});b.wbg.__wbg_id_2a8935f3fc97f959=((b,d)=>{const e=c(d).id;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_name_dfbc89e58e2717c0=((b,d)=>{const e=c(d).name;var f=p(e)?W:o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);var g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_open_d8aa5d034d159b82=(a=>{const b=c(a).open();return g(b)});b.wbg.__wbg_name_9762a5bb951e00c1=((b,d)=>{const e=c(d).name;const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_lastModified_679a43283963f658=(a=>{const b=c(a).lastModified;return b});b.wbg.__wbg_bindVertexArrayOES_fd441111fdf91a30=((a,b)=>{c(a).bindVertexArrayOES(c(b))});b.wbg.__wbg_createVertexArrayOES_51189386ff9903a2=(a=>{const b=c(a).createVertexArrayOES();return p(b)?W:g(b)});b.wbg.__wbg_touches_156ae51fb3534e87=(a=>{const b=c(a).touches;return g(b)});b.wbg.__wbg_changedTouches_2a84bde1dd7ea44a=(a=>{const b=c(a).changedTouches;return g(b)});b.wbg.__wbg_data_bb29dff4a6557791=((b,d)=>{const e=c(d).data;var f=p(e)?W:o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);var g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbg_matches_f58a5f0b7cbb150c=(a=>{const b=c(a).matches;return b});b.wbg.__wbg_parentElement_45a9756dc74ff48b=(a=>{const b=c(a).parentElement;return p(b)?W:g(b)});b.wbg.__wbg_appendChild_4153ba1b5d54d73b=function(){return E(((a,b)=>{const d=c(a).appendChild(c(b));return g(d)}),arguments)};b.wbg.__wbg_crypto_d05b68a3572bb8ca=(a=>{const b=c(a).crypto;return g(b)});b.wbg.__wbindgen_is_object=(a=>{const b=c(a);const d=typeof b===`object`&&b!==R;return d});b.wbg.__wbg_process_b02b3570280d0366=(a=>{const b=c(a).process;return g(b)});b.wbg.__wbg_versions_c1cb42213cedf0f5=(a=>{const b=c(a).versions;return g(b)});b.wbg.__wbg_node_43b1089f407e4ec2=(a=>{const b=c(a).node;return g(b)});b.wbg.__wbindgen_is_string=(a=>{const b=typeof c(a)===a0;return b});b.wbg.__wbg_msCrypto_10fc94afee92bd76=(a=>{const b=c(a).msCrypto;return g(b)});b.wbg.__wbg_require_9a7e0f667ead4995=function(){return E((()=>{const a=module.require;return g(a)}),arguments)};b.wbg.__wbg_randomFillSync_b70ccbdf4926a99d=function(){return E(((a,b)=>{c(a).randomFillSync(f(b))}),arguments)};b.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d=function(){return E(((a,b)=>{c(a).getRandomValues(c(b))}),arguments)};b.wbg.__wbg_now_0a89e866a4cb9148=(()=>{const a=performance.now();return a});b.wbg.__wbg_get_0ee8ea3c7c984c45=((a,b)=>{const d=c(a)[b>>>W];return g(d)});b.wbg.__wbg_length_161c0d89c6535c1d=(a=>{const b=c(a).length;return b});b.wbg.__wbg_newnoargs_cfecb3965268594c=((a,b)=>{const c=new Function(k(a,b));return g(c)});b.wbg.__wbg_get_3fddfed2c83f434c=function(){return E(((a,b)=>{const d=a6.get(c(a),c(b));return g(d)}),arguments)};b.wbg.__wbg_call_3f093dd26d5569f8=function(){return E(((a,b)=>{const d=c(a).call(c(b));return g(d)}),arguments)};b.wbg.__wbg_new_632630b5cec17f21=(()=>{const a=new a5();return g(a)});b.wbg.__wbg_self_05040bd9523805b9=function(){return E((()=>{const a=self.self;return g(a)}),arguments)};b.wbg.__wbg_window_adc720039f2cb14f=function(){return E((()=>{const a=window.window;return g(a)}),arguments)};b.wbg.__wbg_globalThis_622105db80c1457d=function(){return E((()=>{const a=globalThis.globalThis;return g(a)}),arguments)};b.wbg.__wbg_global_f56b013ed9bcf359=function(){return E((()=>{const a=global.global;return g(a)}),arguments)};b.wbg.__wbg_call_67f2111acd2dfdb6=function(){return E(((a,b,d)=>{const e=c(a).call(c(b),c(d));return g(e)}),arguments)};b.wbg.__wbg_forEach_ac8aed4c78e46bd1=((a,b,d)=>{try{var e={a:b,b:d};var f=(a,b)=>{const c=e.a;e.a=W;try{return G(c,e.b,a,b)}finally{e.a=c}};c(a).forEach(f)}finally{e.a=e.b=W}});b.wbg.__wbg_resolve_5da6faf2c96fd1d5=(a=>{const b=Promise.resolve(c(a));return g(b)});b.wbg.__wbg_then_f9e58f5a50f43eae=((a,b)=>{const d=c(a).then(c(b));return g(d)});b.wbg.__wbg_then_20a5920e447d1cb1=((a,b,d)=>{const e=c(a).then(c(b),c(d));return g(e)});b.wbg.__wbg_buffer_b914fb8b50ebbc3e=(a=>{const b=c(a).buffer;return g(b)});b.wbg.__wbg_newwithbyteoffsetandlength_42904a72cefa1e00=((a,b,d)=>{const e=new Int8Array(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithbyteoffsetandlength_0aafe9b39ed85f71=((a,b,d)=>{const e=new Int16Array(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithbyteoffsetandlength_9ca2c1faeb430732=((a,b,d)=>{const e=new Z(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e=((a,b,d)=>{const e=new X(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_new_b1f2d6842d615181=(a=>{const b=new X(c(a));return g(b)});b.wbg.__wbg_set_7d988c98e6ced92d=((a,b,d)=>{c(a).set(c(b),d>>>W)});b.wbg.__wbg_length_21c4b0ae73cba59d=(a=>{const b=c(a).length;return b});b.wbg.__wbg_newwithbyteoffsetandlength_8c2171d5a9b7f791=((a,b,d)=>{const e=new Uint16Array(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithbyteoffsetandlength_7f2d9491ea8c746e=((a,b,d)=>{const e=new Uint32Array(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithbyteoffsetandlength_5fd0a60d38f47fa6=((a,b,d)=>{const e=new Float32Array(c(a),b>>>W,d>>>W);return g(e)});b.wbg.__wbg_newwithlength_0d03cef43b68a530=(a=>{const b=new X(a>>>W);return g(b)});b.wbg.__wbg_subarray_adc418253d76e2f1=((a,b,d)=>{const e=c(a).subarray(b>>>W,d>>>W);return g(e)});b.wbg.__wbg_set_961700853a212a39=function(){return E(((a,b,d)=>{const e=a6.set(c(a),c(b),c(d));return e}),arguments)};b.wbg.__wbindgen_debug_string=((b,d)=>{const e=u(c(d));const f=o(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const g=l;r()[b/a4+ S]=g;r()[b/a4+ W]=f});b.wbg.__wbindgen_throw=((a,b)=>{throw new V(k(a,b))});b.wbg.__wbindgen_memory=(()=>{const b=a.memory;return g(b)});b.wbg.__wbindgen_closure_wrapper426=((a,b,c)=>{const d=w(a,b,61,x);return g(d)});b.wbg.__wbindgen_closure_wrapper1085=((a,b,c)=>{const d=w(a,b,361,y);return g(d)});b.wbg.__wbindgen_closure_wrapper1339=((a,b,c)=>{const d=w(a,b,431,z);return g(d)});b.wbg.__wbindgen_closure_wrapper1573=((a,b,c)=>{const d=w(a,b,a7,A);return g(d)});b.wbg.__wbindgen_closure_wrapper1575=((a,b,c)=>{const d=w(a,b,a7,B);return g(d)});b.wbg.__wbindgen_closure_wrapper1577=((a,b,c)=>{const d=w(a,b,a7,C);return g(d)});b.wbg.__wbindgen_closure_wrapper1666=((a,b,c)=>{const d=w(a,b,573,D);return g(d)});return b});var J=(async(a,b)=>{if(typeof Response===Y&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming===Y){try{return await WebAssembly.instantiateStreaming(a,b)}catch(b){if(a.headers.get(`Content-Type`)!=`application/wasm`){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`,b)}else{throw b}}};const c=await a.arrayBuffer();return await WebAssembly.instantiate(c,b)}else{const c=await WebAssembly.instantiate(a,b);if(c instanceof WebAssembly.Instance){return {instance:c,module:a}}else{return c}}});var G=((b,c,d,e)=>{a.wasm_bindgen__convert__closures__invoke2_mut__h8410d7a28dbe5380(b,c,g(d),g(e))});var F=((a,b)=>{const c=b(a.length*S,S)>>>W;j().set(a,c/S);l=a.length;return c});var B=((b,c,d)=>{a.wasm_bindgen__convert__closures__invoke1_mut__h3a9faca28cd4909a(b,c,g(d))});var g=(a=>{if(d===b.length)b.push(b.length+ S);const c=d;d=b[c];b[c]=a;return c});var z=((b,c,d)=>{a.wasm_bindgen__convert__closures__invoke1_mut__h49612a04308f1d98(b,c,g(d))});var o=((a,b,c)=>{if(c===Q){const c=m.encode(a);const d=b(c.length,S)>>>W;j().subarray(d,d+ c.length).set(c);l=c.length;return d};let d=a.length;let e=b(d,S)>>>W;const f=j();let g=W;for(;g127)break;f[e+ g]=b};if(g!==d){if(g!==W){a=a.slice(g)};e=c(e,d,d=g+ a.length*3,S)>>>W;const b=j().subarray(e+ g,e+ d);const f=n(a,b);g+=f.written;e=c(e,d,g,S)>>>W};l=g;return e});var t=(()=>{if(s===R||s.byteLength===W){s=new Float64Array(a.memory.buffer)};return s});var e=(a=>{if(a<132)return;b[a]=d;d=a});var j=(()=>{if(i===R||i.byteLength===W){i=new X(a.memory.buffer)};return i});var x=((b,c,d)=>{a.wasm_bindgen__convert__closures__invoke1_mut__hcaf78ae1ade9c4a8(b,c,g(d))});var c=(a=>b[a]);var D=((b,c,d)=>{a._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h451c6db35c17a9ca(b,c,g(d))});var r=(()=>{if(q===R||q.byteLength===W){q=new Z(a.memory.buffer)};return q});function E(b,c){try{return b.apply(this,c)}catch(b){a.__wbindgen_exn_store(g(b))}}var C=((b,c)=>{a.wasm_bindgen__convert__closures__invoke0_mut__hacca37ff4eac8465(b,c)});let a;const b=new P(128).fill(Q);b.push(Q,R,!0,!1);let d=b.length;const h=typeof TextDecoder!==T?new TextDecoder(U,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw V(`TextDecoder not available`)}};if(typeof TextDecoder!==T){h.decode()};let i=R;let l=W;const m=typeof TextEncoder!==T?new TextEncoder(U):{encode:()=>{throw V(`TextEncoder not available`)}};const n=typeof m.encodeInto===Y?((a,b)=>m.encodeInto(a,b)):((a,b)=>{const c=m.encode(a);b.set(c);return {read:a.length,written:c.length}});let q=R;let s=R;const v=typeof a2===T?{register:()=>{},unregister:()=>{}}:new a2(b=>{a.__wbindgen_export_2.get(b.dtor)(b.a,b.b)});const H=typeof a2===T?{register:()=>{},unregister:()=>{}}:new a2(b=>a.__wbg_guiremotewrapper_free(b>>>W));class I{static __wrap(a){a=a>>>W;const b=a5.create(I.prototype);b.__wbg_ptr=a;H.register(b,b.__wbg_ptr,b);return b}__destroy_into_raw(){const a=this.__wbg_ptr;this.__wbg_ptr=W;H.unregister(this);return a}free(){const b=this.__destroy_into_raw();a.__wbg_guiremotewrapper_free(b)}}export default O;export{I as GuiRemoteWrapper,N as initSync} \ No newline at end of file diff --git a/beat-detector-b18dcb86af51dca2_bg.wasm b/beat-detector-b18dcb86af51dca2_bg.wasm new file mode 100644 index 0000000..faa93f1 Binary files /dev/null and b/beat-detector-b18dcb86af51dca2_bg.wasm differ diff --git a/favicon-f402c8741ce815ec.ico b/favicon-f402c8741ce815ec.ico new file mode 100644 index 0000000..61ad031 Binary files /dev/null and b/favicon-f402c8741ce815ec.ico differ diff --git a/icon-1024.png b/icon-1024.png new file mode 100644 index 0000000..1b5868a Binary files /dev/null and b/icon-1024.png differ diff --git a/icon-256.png b/icon-256.png new file mode 100644 index 0000000..ae72287 Binary files /dev/null and b/icon-256.png differ diff --git a/icon_ios_touch_192.png b/icon_ios_touch_192.png new file mode 100644 index 0000000..8472802 Binary files /dev/null and b/icon_ios_touch_192.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..979fbc4 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Midi beat detector

Beat detector demo. Just tap some keys on your computer keyboard or MIDI device. Pitch and velocity related parameters won't have any effect with computer keyboard.

\ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..2a137fb --- /dev/null +++ b/manifest.json @@ -0,0 +1,28 @@ +{ + "name": "egui Template PWA", + "short_name": "egui-template-pwa", + "icons": [ + { + "src": "./icon-256.png", + "sizes": "256x256", + "type": "image/png" + }, + { + "src": "./maskable_icon_x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any maskable" + }, + { + "src": "./icon-1024.png", + "sizes": "1024x1024", + "type": "image/png" + } + ], + "lang": "en-US", + "id": "/index.html", + "start_url": "./index.html", + "display": "standalone", + "background_color": "white", + "theme_color": "white" +} diff --git a/maskable_icon_x512.png b/maskable_icon_x512.png new file mode 100644 index 0000000..db8df3e Binary files /dev/null and b/maskable_icon_x512.png differ diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..f91efbe --- /dev/null +++ b/sw.js @@ -0,0 +1,25 @@ +var cacheName = 'egui-template-pwa'; +var filesToCache = [ + './', + './index.html', + './beat-detector-wasm.js', + './beat-detector-wasm_bg.wasm', +]; + +/* Start the service worker and cache all of the app's content */ +self.addEventListener('install', function (e) { + e.waitUntil( + caches.open(cacheName).then(function (cache) { + return cache.addAll(filesToCache); + }) + ); +}); + +/* Serve cached content when offline */ +self.addEventListener('fetch', function (e) { + e.respondWith( + caches.match(e.request).then(function (response) { + return response || fetch(e.request); + }) + ); +});