diff --git a/static/index.html b/static/index.html index 597565e..be04645 100644 --- a/static/index.html +++ b/static/index.html @@ -139,6 +139,11 @@
+
+ + + +
diff --git a/static/resources/ruffle.svg b/static/resources/ruffle.svg new file mode 100644 index 0000000..954b503 --- /dev/null +++ b/static/resources/ruffle.svg @@ -0,0 +1,21 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/static/ruffle/789a40d2a750cee2cc3f.wasm b/static/ruffle/789a40d2a750cee2cc3f.wasm new file mode 100644 index 0000000..1ef237b Binary files /dev/null and b/static/ruffle/789a40d2a750cee2cc3f.wasm differ diff --git a/static/ruffle/966.index.js b/static/ruffle/966.index.js new file mode 100644 index 0000000..78603b0 --- /dev/null +++ b/static/ruffle/966.index.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkruffle_demo=self.webpackChunkruffle_demo||[]).push([[966],{762:(e,n,t)=>{function _(e,n){const t=e.length,_=e.getChannelData(0),r=e.getChannelData(1);let b=0,c=0;for(;c_})},966:(e,n,t)=>{t.r(n),t.d(n,{Ruffle:()=>q,default:()=>N,initSync:()=>H});var _=t(762);e=t.hmd(e);const r="undefined"!=typeof AudioContext?AudioContext:"undefined"!=typeof webkitAudioContext?webkitAudioContext:void 0;let b;const c=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});c.decode();let f=new Uint8Array;function u(){return 0===f.byteLength&&(f=new Uint8Array(b.memory.buffer)),f}function o(e,n){return c.decode(u().subarray(e,e+n))}let i=0;const a=new TextEncoder("utf-8"),g="function"==typeof a.encodeInto?function(e,n){return a.encodeInto(e,n)}:function(e,n){const t=a.encode(e);return n.set(t),{read:e.length,written:t.length}};function w(e,n,t){if(void 0===t){const t=a.encode(e),_=n(t.length);return u().subarray(_,_+t.length).set(t),i=t.length,_}let _=e.length,r=n(_);const b=u();let c=0;for(;c<_;c++){const n=e.charCodeAt(c);if(n>127)break;b[r+c]=n}if(c!==_){0!==c&&(e=e.slice(c)),r=t(r,_,_=c+3*e.length);const n=u().subarray(r+c,r+_);c+=g(e,n).written}return i=c,r}function d(e){return null==e}let s=new Int32Array;function l(){return 0===s.byteLength&&(s=new Int32Array(b.memory.buffer)),s}let m=new Float64Array;function p(){return 0===m.byteLength&&(m=new Float64Array(b.memory.buffer)),m}function y(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=y(e[0]));for(let _=1;_1))return toString.call(e);if(_=t[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function x(e,n,t,_){const r={a:e,b:n,cnt:1,dtor:t},c=(...e)=>{r.cnt++;const n=r.a;r.a=0;try{return _(n,r.b,...e)}finally{0==--r.cnt?b.__wbindgen_export_3.get(r.dtor)(n,r.b):r.a=n}};return c.original=r,c}function h(e,n){b._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6855f1a987676ba4(e,n)}function S(e,n,t){b.closure6_externref_shim(e,n,t)}function v(e,n,t){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha41a33b0386758e4(e,n,t)}function A(e,n,t){b.closure479_externref_shim(e,n,t)}function B(e,n,t){b.closure527_externref_shim(e,n,t)}function T(e,n,t){b.closure3054_externref_shim(e,n,t)}function P(e){const n=b.__externref_table_alloc();return b.__wbindgen_export_2.set(n,e),n}function R(e,n){try{return e.apply(this,n)}catch(e){const n=P(e);b.__wbindgen_exn_store(n)}}function C(e){const n=b.__wbindgen_export_2.get(e);return b.__externref_table_dealloc(e),n}let E=new Uint32Array;function L(){return 0===E.byteLength&&(E=new Uint32Array(b.memory.buffer)),E}let D=new Float32Array;function M(e,n){return(0===D.byteLength&&(D=new Float32Array(b.memory.buffer)),D).subarray(e/4,e/4+n)}function F(e,n){return u().subarray(e/1,e/1+n)}function I(e,n){return p().subarray(e/8,e/8+n)}let k=new Uint8ClampedArray;function U(e,n){return(0===k.byteLength&&(k=new Uint8ClampedArray(b.memory.buffer)),k).subarray(e/1,e/1+n)}function O(e){return()=>{throw new Error(`${e} is not defined`)}}const V=new Uint32Array(2),W=new BigUint64Array(V.buffer);class q{static __wrap(e){const n=Object.create(q.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();b.__wbg_ruffle_free(e)}constructor(e,n,t){return b.ruffle_new(e,n,t)}stream_from(e,n){try{const _=b.__wbindgen_add_to_stack_pointer(-16),r=w(e,b.__wbindgen_malloc,b.__wbindgen_realloc),c=i;b.ruffle_stream_from(_,this.ptr,r,c,n);var t=l()[_/4+0];if(l()[_/4+1])throw C(t)}finally{b.__wbindgen_add_to_stack_pointer(16)}}load_data(e,n){try{const _=b.__wbindgen_add_to_stack_pointer(-16);b.ruffle_load_data(_,this.ptr,e,n);var t=l()[_/4+0];if(l()[_/4+1])throw C(t)}finally{b.__wbindgen_add_to_stack_pointer(16)}}play(){b.ruffle_play(this.ptr)}pause(){b.ruffle_pause(this.ptr)}is_playing(){return 0!==b.ruffle_is_playing(this.ptr)}volume(){return b.ruffle_volume(this.ptr)}set_volume(e){b.ruffle_set_volume(this.ptr,e)}renderer_name(){return b.ruffle_renderer_name(this.ptr)}prepare_context_menu(){return b.ruffle_prepare_context_menu(this.ptr)}run_context_menu_callback(e){b.ruffle_run_context_menu_callback(this.ptr,e)}set_fullscreen(e){b.ruffle_set_fullscreen(this.ptr,e)}clear_custom_menu_items(){b.ruffle_clear_custom_menu_items(this.ptr)}destroy(){b.ruffle_destroy(this.ptr)}call_exposed_callback(e,n){const t=w(e,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i,r=function(e,n){const t=n(4*e.length),_=L();for(let n=0;n>>0,i>>>0)},n.wbg.__wbg_createVertexArray_f8aff8c98a8e7ce7=function(e){const n=e.createVertexArray();return d(n)?0:P(n)},n.wbg.__wbg_renderbufferStorageMultisample_2fddc7b0cc405fe4=function(e,n,t,_,r,b){e.renderbufferStorageMultisample(n>>>0,t,_>>>0,r,b)},n.wbg.__wbg_texImage2D_e7d46024e2946907=function(){return R((function(e,n,t,_,r,b,c,f,u,o,i){e.texImage2D(n>>>0,t,_,r,b,c,f>>>0,u>>>0,0===o?void 0:F(o,i))}),arguments)},n.wbg.__wbg_bindFramebuffer_8fa07aa65dcbd3aa=function(e,n,t){e.bindFramebuffer(n>>>0,t)},n.wbg.__wbg_bindRenderbuffer_8969ae2581d424bd=function(e,n,t){e.bindRenderbuffer(n>>>0,t)},n.wbg.__wbg_bindTexture_83f436ae22ba78b4=function(e,n,t){e.bindTexture(n>>>0,t)},n.wbg.__wbg_createFramebuffer_1316a4c02803bcf8=function(e){const n=e.createFramebuffer();return d(n)?0:P(n)},n.wbg.__wbg_createRenderbuffer_abb5d5ff42fa138f=function(e){const n=e.createRenderbuffer();return d(n)?0:P(n)},n.wbg.__wbg_createTexture_1b5ac8ef80f089c8=function(e){const n=e.createTexture();return d(n)?0:P(n)},n.wbg.__wbg_deleteFramebuffer_48183bac844e2cbe=function(e,n){e.deleteFramebuffer(n)},n.wbg.__wbg_deleteRenderbuffer_92abd3c5070fbbb9=function(e,n){e.deleteRenderbuffer(n)},n.wbg.__wbg_deleteTexture_8cb16fb3b8ab69cd=function(e,n){e.deleteTexture(n)},n.wbg.__wbg_framebufferRenderbuffer_4e682abcb3678a20=function(e,n,t,_,r){e.framebufferRenderbuffer(n>>>0,t>>>0,_>>>0,r)},n.wbg.__wbg_framebufferTexture2D_fd6329e64dacca57=function(e,n,t,_,r,b){e.framebufferTexture2D(n>>>0,t>>>0,_>>>0,r,b)},n.wbg.__wbg_getError_2d3fe8b71c072eda=function(e){return e.getError()},n.wbg.__wbg_getParameter_00d59df03350c8de=function(){return R((function(e,n){return e.getParameter(n>>>0)}),arguments)},n.wbg.__wbg_texParameteri_d3d72cea09b18227=function(e,n,t,_){e.texParameteri(n>>>0,t>>>0,_)},n.wbg.__wbg_instanceof_Window_a2a08d3918d7d4d0=function(e){return e instanceof Window},n.wbg.__wbg_document_14a383364c173445=function(e){const n=e.document;return d(n)?0:P(n)},n.wbg.__wbg_location_3b5031b281e8d218=function(e){return e.location},n.wbg.__wbg_navigator_2d05aef684d827d8=function(e){return e.navigator},n.wbg.__wbg_devicePixelRatio_85ae9a993f96e777=function(e){return e.devicePixelRatio},n.wbg.__wbg_localStorage_2409bbdfe5a4d2a7=function(){return R((function(e){const n=e.localStorage;return d(n)?0:P(n)}),arguments)},n.wbg.__wbg_cancelAnimationFrame_0751dd622bd4f521=function(){return R((function(e,n){e.cancelAnimationFrame(n)}),arguments)},n.wbg.__wbg_focus_9b223127d6e50a79=function(){return R((function(e){e.focus()}),arguments)},n.wbg.__wbg_open_ab0998e8eb242a30=function(){return R((function(e,n,t,_,r){const b=e.open(o(n,t),o(_,r));return d(b)?0:P(b)}),arguments)},n.wbg.__wbg_requestAnimationFrame_61bcf77211b282b7=function(){return R((function(e,n){return e.requestAnimationFrame(n)}),arguments)},n.wbg.__wbg_fetch_23507368eed8d838=function(e,n){return e.fetch(n)},n.wbg.__wbg_style_3fb37aa4b3701322=function(e){return e.style},n.wbg.__wbg_setbuffer_268b8e029383d924=function(e,n){e.buffer=n},n.wbg.__wbg_setonended_519c00ee657450cf=function(e,n){e.onended=n},n.wbg.__wbg_start_0548a4ae2ce0fcbd=function(){return R((function(e,n){e.start(n)}),arguments)},n.wbg.__wbg_setTransform_2c1f1d5821ce9694=function(e,n){e.setTransform(n)},n.wbg.__wbg_getMappedRange_34ff822c9e84e776=function(e,n,t){return e.getMappedRange(n,t)},n.wbg.__wbg_mapAsync_686232593427f633=function(e,n,t,_){return e.mapAsync(n>>>0,t,_)},n.wbg.__wbg_unmap_3c6b6b25e300fffc=function(e){e.unmap()},n.wbg.__wbg_maxTextureDimension1D_14104ad92f10c77f=function(e){return e.maxTextureDimension1D},n.wbg.__wbg_maxTextureDimension2D_530f846427325e8f=function(e){return e.maxTextureDimension2D},n.wbg.__wbg_maxTextureDimension3D_5cae01dcc62765a1=function(e){return e.maxTextureDimension3D},n.wbg.__wbg_maxTextureArrayLayers_b5a36dc1f2f788a8=function(e){return e.maxTextureArrayLayers},n.wbg.__wbg_maxBindGroups_f60b0ebd83bff1f2=function(e){return e.maxBindGroups},n.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_b6b39d669f5f52fe=function(e){return e.maxDynamicUniformBuffersPerPipelineLayout},n.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_3d8a6ee8e60d453b=function(e){return e.maxDynamicStorageBuffersPerPipelineLayout},n.wbg.__wbg_maxSampledTexturesPerShaderStage_c8770a2b39bb05e4=function(e){return e.maxSampledTexturesPerShaderStage},n.wbg.__wbg_maxSamplersPerShaderStage_c81f5bb20436be1d=function(e){return e.maxSamplersPerShaderStage},n.wbg.__wbg_maxStorageBuffersPerShaderStage_c04f8dc110e64f08=function(e){return e.maxStorageBuffersPerShaderStage},n.wbg.__wbg_maxStorageTexturesPerShaderStage_c793068f62ff4a8c=function(e){return e.maxStorageTexturesPerShaderStage},n.wbg.__wbg_maxUniformBuffersPerShaderStage_93d1043065c053e0=function(e){return e.maxUniformBuffersPerShaderStage},n.wbg.__wbg_maxUniformBufferBindingSize_ed4503692617753a=function(e){return e.maxUniformBufferBindingSize},n.wbg.__wbg_maxStorageBufferBindingSize_9899d63b99c62bbd=function(e){return e.maxStorageBufferBindingSize},n.wbg.__wbg_maxVertexBuffers_8211160047e446b5=function(e){return e.maxVertexBuffers},n.wbg.__wbg_maxVertexAttributes_ff22d961f13f25c7=function(e){return e.maxVertexAttributes},n.wbg.__wbg_maxVertexBufferArrayStride_3cbcf7caaf649cd1=function(e){return e.maxVertexBufferArrayStride},n.wbg.__wbg_instanceof_HtmlFormElement_7e3c5f7169b9ec9c=function(e){return e instanceof HTMLFormElement},n.wbg.__wbg_submit_ae549d5b993be5ce=function(){return R((function(e){e.submit()}),arguments)},n.wbg.__wbg_pointerId_3517dc72b60101cb=function(e){return e.pointerId},n.wbg.__wbg_instanceof_Response_e928c54c1025470c=function(e){return e instanceof Response},n.wbg.__wbg_url_0f82030e7245954c=function(e,n){const t=w(n.url,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_ok_2e44e661aa8fedb0=function(e){return e.ok},n.wbg.__wbg_statusText_9b7d7bb057846e45=function(e,n){const t=w(n.statusText,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_arrayBuffer_9c26a73988618f92=function(){return R((function(e){return e.arrayBuffer()}),arguments)},n.wbg.__wbg_a_f8a23157db40a300=function(e){return e.a},n.wbg.__wbg_seta_5cd98d661ce16283=function(e,n){e.a=n},n.wbg.__wbg_b_0d5d58541358976b=function(e){return e.b},n.wbg.__wbg_c_a90f0b5bdc175e78=function(e){return e.c},n.wbg.__wbg_d_e464989627f07979=function(e){return e.d},n.wbg.__wbg_setd_8a679c3670b6f49b=function(e,n){e.d=n},n.wbg.__wbg_e_9f858429eb0a621e=function(e){return e.e},n.wbg.__wbg_f_c5253bae312ccc71=function(e){return e.f},n.wbg.__wbg_new_adbe707b014d1fd2=function(){return R((function(){return new DOMMatrix}),arguments)},n.wbg.__wbg_newwitharray64_e834f62cea0c8cc5=function(){return R((function(e,n){return new DOMMatrix(I(e,n))}),arguments)},n.wbg.__wbg_configure_5b66b7a6ec2bca20=function(e,n){e.configure(n)},n.wbg.__wbg_getCurrentTexture_6fba5b57d7751897=function(e){return e.getCurrentTexture()},n.wbg.__wbg_now_9c64828adecad05e=function(e){return e.now()},n.wbg.__wbg_instanceof_HtmlCanvasElement_7b561bd94e483f1d=function(e){return e instanceof HTMLCanvasElement},n.wbg.__wbg_width_ad2acb326fc35bdb=function(e){return e.width},n.wbg.__wbg_setwidth_59ddc312219f205b=function(e,n){e.width=n>>>0},n.wbg.__wbg_height_65ee0c47b0a97297=function(e){return e.height},n.wbg.__wbg_setheight_70833966b4ed584e=function(e,n){e.height=n>>>0},n.wbg.__wbg_getContext_b506f48cb166bf26=function(){return R((function(e,n,t){const _=e.getContext(o(n,t));return d(_)?0:P(_)}),arguments)},n.wbg.__wbg_getContext_686f3aabd97ba151=function(){return R((function(e,n,t,_){const r=e.getContext(o(n,t),_);return d(r)?0:P(r)}),arguments)},n.wbg.__wbg_key_6e807abe0dbacdb8=function(e,n){const t=w(n.key,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_code_ec695f278753de4d=function(e,n){const t=w(n.code,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_newwithstrandinit_41c86e821f771b24=function(){return R((function(e,n,t){return new Request(o(e,n),t)}),arguments)},n.wbg.__wbg_instanceof_CanvasRenderingContext2d_9037c3eea625e27b=function(e){return e instanceof CanvasRenderingContext2D},n.wbg.__wbg_setglobalAlpha_3b2742cf3ea8149d=function(e,n){e.globalAlpha=n},n.wbg.__wbg_setglobalCompositeOperation_952c3106ecc5f417=function(){return R((function(e,n,t){e.globalCompositeOperation=o(n,t)}),arguments)},n.wbg.__wbg_setstrokeStyle_0ab7348da47291bb=function(e,n){e.strokeStyle=n},n.wbg.__wbg_setfillStyle_a0bd3a7496c1c5ae=function(e,n){e.fillStyle=n},n.wbg.__wbg_setfilter_3d603041d36eb024=function(e,n,t){e.filter=o(n,t)},n.wbg.__wbg_setimageSmoothingEnabled_3dbb2403930baf85=function(e,n){e.imageSmoothingEnabled=0!==n},n.wbg.__wbg_setlineWidth_5d6cf7ef78aab123=function(e,n){e.lineWidth=n},n.wbg.__wbg_setlineCap_7552a7f5a6cb2110=function(e,n,t){e.lineCap=o(n,t)},n.wbg.__wbg_setlineJoin_6b65f68b27c132a2=function(e,n,t){e.lineJoin=o(n,t)},n.wbg.__wbg_setmiterLimit_b9ee4cbfe23d8c23=function(e,n){e.miterLimit=n},n.wbg.__wbg_drawImage_83230048f8deee83=function(){return R((function(e,n,t,_){e.drawImage(n,t,_)}),arguments)},n.wbg.__wbg_clip_06e31c6883cedcea=function(e,n,t){e.clip(n,t)},n.wbg.__wbg_fill_b59d6423381669b5=function(e,n,t){e.fill(n,t)},n.wbg.__wbg_stroke_6345e439dce2411c=function(e,n){e.stroke(n)},n.wbg.__wbg_createLinearGradient_7e66eeec20a9f71e=function(e,n,t,_,r){return e.createLinearGradient(n,t,_,r)},n.wbg.__wbg_createPattern_f64be35193cf6d8a=function(){return R((function(e,n,t,_){const r=e.createPattern(n,o(t,_));return d(r)?0:P(r)}),arguments)},n.wbg.__wbg_createRadialGradient_bb0c3a1e9025fd4a=function(){return R((function(e,n,t,_,r,b,c){return e.createRadialGradient(n,t,_,r,b,c)}),arguments)},n.wbg.__wbg_getImageData_50f6c1b814306c32=function(){return R((function(e,n,t,_,r){return e.getImageData(n,t,_,r)}),arguments)},n.wbg.__wbg_putImageData_f71b039a7f3a0d8a=function(){return R((function(e,n,t,_){e.putImageData(n,t,_)}),arguments)},n.wbg.__wbg_clearRect_7d73f724a3fc825c=function(e,n,t,_,r){e.clearRect(n,t,_,r)},n.wbg.__wbg_fillRect_37d4341db168ab0f=function(e,n,t,_,r){e.fillRect(n,t,_,r)},n.wbg.__wbg_restore_2eda799771bbdaf3=function(e){e.restore()},n.wbg.__wbg_save_88e5b8eebd3f0de5=function(e){e.save()},n.wbg.__wbg_resetTransform_719b2c3de6d07521=function(){return R((function(e){e.resetTransform()}),arguments)},n.wbg.__wbg_setTransform_f6e32d675c5c5f30=function(){return R((function(e,n,t,_,r,b,c){e.setTransform(n,t,_,r,b,c)}),arguments)},n.wbg.__wbg_transform_441c583c742163e2=function(){return R((function(e,n,t,_,r,b,c){e.transform(n,t,_,r,b,c)}),arguments)},n.wbg.__wbg_newwithbuffersourcesequenceandoptions_407953b12cf8d677=function(){return R((function(e,n){return new Blob(e,n)}),arguments)},n.wbg.__wbg_currentTarget_6f25dd2ce13178de=function(e){const n=e.currentTarget;return d(n)?0:P(n)},n.wbg.__wbg_preventDefault_2e92eb64f38efc0d=function(e){e.preventDefault()},n.wbg.__wbg_addEventListener_5822223857fe82cb=function(){return R((function(e,n,t,_){e.addEventListener(o(n,t),_)}),arguments)},n.wbg.__wbg_addEventListener_a77a92f38176616e=function(){return R((function(e,n,t,_,r){e.addEventListener(o(n,t),_,r)}),arguments)},n.wbg.__wbg_addEventListener_a09abdb50db3cd98=function(){return R((function(e,n,t,_,r){e.addEventListener(o(n,t),_,0!==r)}),arguments)},n.wbg.__wbg_removeEventListener_0e2fd54517fc188b=function(){return R((function(e,n,t,_){e.removeEventListener(o(n,t),_)}),arguments)},n.wbg.__wbg_removeEventListener_2882dfde82b5b4d9=function(){return R((function(e,n,t,_,r){e.removeEventListener(o(n,t),_,0!==r)}),arguments)},n.wbg.__wbg_data_798d534e165849ee=function(e,n){const t=function(e,n){const t=n(1*e.length);return u().set(e,t/1),i=e.length,t}(n.data,b.__wbindgen_malloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_newwithu8clampedarray_9c1ae19e8e194f7c=function(){return R((function(e,n,t){return new ImageData(U(e,n),t>>>0)}),arguments)},n.wbg.__wbg_gpu_755a37b2eedf0a83=function(e){return e.gpu},n.wbg.__wbg_baseURI_aca29593bfcdb51d=function(){return R((function(e,n){const t=n.baseURI;var _=d(t)?0:w(t,b.__wbindgen_malloc,b.__wbindgen_realloc),r=i;l()[e/4+1]=r,l()[e/4+0]=_}),arguments)},n.wbg.__wbg_appendChild_e9d52952defb480f=function(){return R((function(e,n){return e.appendChild(n)}),arguments)},n.wbg.__wbg_body_36a11f2467926b2b=function(e){const n=e.body;return d(n)?0:P(n)},n.wbg.__wbg_createElement_2d8b75cffbd32c70=function(){return R((function(e,n,t){return e.createElement(o(n,t))}),arguments)},n.wbg.__wbg_createElementNS_02b4562aadf76190=function(){return R((function(e,n,t,_,r){return e.createElementNS(0===n?void 0:o(n,t),o(_,r))}),arguments)},n.wbg.__wbg_inverse_b39ac63238937fb8=function(e){return e.inverse()},n.wbg.__wbg_requestAdapter_d24c946841242557=function(e,n){return e.requestAdapter(n)},n.wbg.__wbg_end_bcf4599a9e63b68e=function(e){e.end()},n.wbg.__wbg_setStencilReference_a17747b3bd25fd89=function(e,n){e.setStencilReference(n>>>0)},n.wbg.__wbg_setBindGroup_e8af569edb720afb=function(e,n,t,_,r,b,c){var f,u;e.setBindGroup(n>>>0,t,(f=_,u=r,L().subarray(f/4,f/4+u)),b,c>>>0)},n.wbg.__wbg_drawIndexed_a9655b48a354f16a=function(e,n,t,_,r,b){e.drawIndexed(n>>>0,t>>>0,_>>>0,r,b>>>0)},n.wbg.__wbg_setIndexBuffer_a85b510fb10c8552=function(e,n,t,_){e.setIndexBuffer(n,t,_)},n.wbg.__wbg_setIndexBuffer_452b9c2b60dbdacf=function(e,n,t,_,r){e.setIndexBuffer(n,t,_,r)},n.wbg.__wbg_setPipeline_7fafd451d97eee5c=function(e,n){e.setPipeline(n)},n.wbg.__wbg_setVertexBuffer_38b319aa792389d3=function(e,n,t,_){e.setVertexBuffer(n>>>0,t,_)},n.wbg.__wbg_setVertexBuffer_9cf17fb530c11a65=function(e,n,t,_,r){e.setVertexBuffer(n>>>0,t,_,r)},n.wbg.__wbg_setid_c3cb9fedad5d2791=function(e,n,t){e.id=o(n,t)},n.wbg.__wbg_clientWidth_ff949ad9c6d41cd2=function(e){return e.clientWidth},n.wbg.__wbg_clientHeight_a250dcf2e0afa47a=function(e){return e.clientHeight},n.wbg.__wbg_querySelector_a38de55d3f2e4d6b=function(){return R((function(e,n,t){const _=e.querySelector(o(n,t));return d(_)?0:P(_)}),arguments)},n.wbg.__wbg_releasePointerCapture_13317581046e37c3=function(){return R((function(e,n){e.releasePointerCapture(n)}),arguments)},n.wbg.__wbg_setAttribute_6091f6f3602fc299=function(){return R((function(e,n,t,_,r){e.setAttribute(o(n,t),o(_,r))}),arguments)},n.wbg.__wbg_setAttributeNS_3139623dfaef606b=function(){return R((function(e,n,t,_,r,b,c){e.setAttributeNS(0===n?void 0:o(n,t),o(_,r),o(b,c))}),arguments)},n.wbg.__wbg_setPointerCapture_dee49a07994f6e33=function(){return R((function(e,n){e.setPointerCapture(n)}),arguments)},n.wbg.__wbg_remove_c64fe8f390b51079=function(e){e.remove()},n.wbg.__wbg_instanceof_WebGlRenderingContext_79048c0314cf40c7=function(e){return e instanceof WebGLRenderingContext},n.wbg.__wbg_drawingBufferWidth_2a4ec0e9cfd1165f=function(e){return e.drawingBufferWidth},n.wbg.__wbg_drawingBufferHeight_64a411586cabb96c=function(e){return e.drawingBufferHeight},n.wbg.__wbg_bufferData_1ca9a3b086d4f813=function(e,n,t,_,r){e.bufferData(n>>>0,F(t,_),r>>>0)},n.wbg.__wbg_texImage2D_e8ea990c77c01b05=function(){return R((function(e,n,t,_,r,b,c,f,u,o,i){e.texImage2D(n>>>0,t,_,r,b,c,f>>>0,u>>>0,0===o?void 0:F(o,i))}),arguments)},n.wbg.__wbg_uniform1fv_ffdaf3c465cd6435=function(e,n,t,_){e.uniform1fv(n,M(t,_))},n.wbg.__wbg_uniform4fv_f6890ad8a7ff6086=function(e,n,t,_){e.uniform4fv(n,M(t,_))},n.wbg.__wbg_uniformMatrix3fv_7969af8b5719ac05=function(e,n,t,_,r){e.uniformMatrix3fv(n,0!==t,M(_,r))},n.wbg.__wbg_uniformMatrix4fv_350ada82fee5cc68=function(e,n,t,_,r){e.uniformMatrix4fv(n,0!==t,M(_,r))},n.wbg.__wbg_activeTexture_c32bcd0a63a09c15=function(e,n){e.activeTexture(n>>>0)},n.wbg.__wbg_attachShader_772486952587993d=function(e,n,t){e.attachShader(n,t)},n.wbg.__wbg_bindBuffer_6cd1a268e0421a46=function(e,n,t){e.bindBuffer(n>>>0,t)},n.wbg.__wbg_bindFramebuffer_934b8eade9d43fe0=function(e,n,t){e.bindFramebuffer(n>>>0,t)},n.wbg.__wbg_bindRenderbuffer_e5cd7424d91a17d5=function(e,n,t){e.bindRenderbuffer(n>>>0,t)},n.wbg.__wbg_bindTexture_b3162b3f55caf7eb=function(e,n,t){e.bindTexture(n>>>0,t)},n.wbg.__wbg_blendEquationSeparate_cdb99fb43e079594=function(e,n,t){e.blendEquationSeparate(n>>>0,t>>>0)},n.wbg.__wbg_blendFuncSeparate_7b5ab5663d1a17c6=function(e,n,t,_,r){e.blendFuncSeparate(n>>>0,t>>>0,_>>>0,r>>>0)},n.wbg.__wbg_clear_fe06235bcda1a904=function(e,n){e.clear(n>>>0)},n.wbg.__wbg_clearColor_53d69d875a21f3f3=function(e,n,t,_,r){e.clearColor(n,t,_,r)},n.wbg.__wbg_colorMask_efa17a5ffd9cd3fc=function(e,n,t,_,r){e.colorMask(0!==n,0!==t,0!==_,0!==r)},n.wbg.__wbg_compileShader_4b64c51ce6f0d0be=function(e,n){e.compileShader(n)},n.wbg.__wbg_createBuffer_ae5a57822b3d261c=function(e){const n=e.createBuffer();return d(n)?0:P(n)},n.wbg.__wbg_createProgram_97d3ab796f2e4f2a=function(e){const n=e.createProgram();return d(n)?0:P(n)},n.wbg.__wbg_createShader_47c8c7b5a08a528d=function(e,n){const t=e.createShader(n>>>0);return d(t)?0:P(t)},n.wbg.__wbg_createTexture_ce8ff62039834d9c=function(e){const n=e.createTexture();return d(n)?0:P(n)},n.wbg.__wbg_disable_5d988b6430f67f00=function(e,n){e.disable(n>>>0)},n.wbg.__wbg_disableVertexAttribArray_37add1973be851f6=function(e,n){e.disableVertexAttribArray(n>>>0)},n.wbg.__wbg_drawElements_c18d01e29e69ee7f=function(e,n,t,_,r){e.drawElements(n>>>0,t,_>>>0,r)},n.wbg.__wbg_enable_74fb1401e1f17f16=function(e,n){e.enable(n>>>0)},n.wbg.__wbg_enableVertexAttribArray_0c2fc2819912f6b3=function(e,n){e.enableVertexAttribArray(n>>>0)},n.wbg.__wbg_getAttribLocation_b2bad8a5b6116f1f=function(e,n,t,_){return e.getAttribLocation(n,o(t,_))},n.wbg.__wbg_getExtension_6cd75531325282b8=function(){return R((function(e,n,t){const _=e.getExtension(o(n,t));return d(_)?0:P(_)}),arguments)},n.wbg.__wbg_getParameter_d30fc1ac9ac34ffc=function(){return R((function(e,n){return e.getParameter(n>>>0)}),arguments)},n.wbg.__wbg_getProgramInfoLog_07f10e11eb541319=function(e,n,t){const _=n.getProgramInfoLog(t);var r=d(_)?0:w(_,b.__wbindgen_malloc,b.__wbindgen_realloc),c=i;l()[e/4+1]=c,l()[e/4+0]=r},n.wbg.__wbg_getProgramParameter_ceb4cfbc03f7a74b=function(e,n,t){return e.getProgramParameter(n,t>>>0)},n.wbg.__wbg_getShaderInfoLog_6788bbcb07e46591=function(e,n,t){const _=n.getShaderInfoLog(t);var r=d(_)?0:w(_,b.__wbindgen_malloc,b.__wbindgen_realloc),c=i;l()[e/4+1]=c,l()[e/4+0]=r},n.wbg.__wbg_getUniformLocation_c6dfe99dcd260a55=function(e,n,t,_){const r=e.getUniformLocation(n,o(t,_));return d(r)?0:P(r)},n.wbg.__wbg_linkProgram_23751aba930c7f0c=function(e,n){e.linkProgram(n)},n.wbg.__wbg_pixelStorei_96bd9a13400d6b48=function(e,n,t){e.pixelStorei(n>>>0,t)},n.wbg.__wbg_shaderSource_580a31413cee6156=function(e,n,t,_){e.shaderSource(n,o(t,_))},n.wbg.__wbg_stencilFunc_0da3069a0a34d766=function(e,n,t,_){e.stencilFunc(n>>>0,t,_>>>0)},n.wbg.__wbg_stencilMask_34c2205b5355ab16=function(e,n){e.stencilMask(n>>>0)},n.wbg.__wbg_stencilOp_116522daccbe8b11=function(e,n,t,_){e.stencilOp(n>>>0,t>>>0,_>>>0)},n.wbg.__wbg_texParameteri_4774c5a61d70319d=function(e,n,t,_){e.texParameteri(n>>>0,t>>>0,_)},n.wbg.__wbg_uniform1f_f4314cbaa988e283=function(e,n,t){e.uniform1f(n,t)},n.wbg.__wbg_uniform1i_096d23b3f6d35c5e=function(e,n,t){e.uniform1i(n,t)},n.wbg.__wbg_useProgram_85e8d43a8983270e=function(e,n){e.useProgram(n)},n.wbg.__wbg_vertexAttribPointer_9cf4ab7e9c31e68d=function(e,n,t,_,r,b,c){e.vertexAttribPointer(n>>>0,t,_>>>0,0!==r,b,c)},n.wbg.__wbg_viewport_02810f5f49295b55=function(e,n,t,_,r){e.viewport(n,t,_,r)},n.wbg.__wbg_addColorStop_c733d813c9fbfa70=function(){return R((function(e,n,t,_){e.addColorStop(n,o(t,_))}),arguments)},n.wbg.__wbg_setProperty_88447bf87ac638d7=function(){return R((function(e,n,t,_,r){e.setProperty(o(n,t),o(_,r))}),arguments)},n.wbg.__wbg_submit_55e07fa9fa1f344b=function(e,n){e.submit(n)},n.wbg.__wbg_writeTexture_71450abd2466ad90=function(e,n,t,_,r){e.writeTexture(n,t,_,r)},n.wbg.__wbg_protocol_7652393e06791937=function(){return R((function(e,n){const t=w(n.protocol,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t}),arguments)},n.wbg.__wbg_assign_4726eabf9448fa32=function(){return R((function(e,n,t){e.assign(o(n,t))}),arguments)},n.wbg.__wbg_new_e2a145651668d22b=function(){return R((function(){return new Path2D}),arguments)},n.wbg.__wbg_addPath_e0df7c5ccdae8168=function(e,n,t){e.addPath(n,t)},n.wbg.__wbg_closePath_dcda5ae9e0db0d5e=function(e){e.closePath()},n.wbg.__wbg_lineTo_22b9d8be98d56182=function(e,n,t){e.lineTo(n,t)},n.wbg.__wbg_moveTo_7f059fbc0c6c8424=function(e,n,t){e.moveTo(n,t)},n.wbg.__wbg_quadraticCurveTo_d8cbb5d19125b688=function(e,n,t,_,r){e.quadraticCurveTo(n,t,_,r)},n.wbg.__wbg_rect_818027622ba9aa48=function(e,n,t,_,r){e.rect(n,t,_,r)},n.wbg.__wbg_get_9ef6317e05999b24=function(){return R((function(e,n,t,_){const r=n[o(t,_)];var c=d(r)?0:w(r,b.__wbindgen_malloc,b.__wbindgen_realloc),f=i;l()[e/4+1]=f,l()[e/4+0]=c}),arguments)},n.wbg.__wbg_set_d76080869c49dd27=function(){return R((function(e,n,t,_,r){e[o(n,t)]=o(_,r)}),arguments)},n.wbg.__wbg_delete_27f2e31e06970b8b=function(){return R((function(e,n,t){delete e[o(n,t)]}),arguments)},n.wbg.__wbg_destination_5bc469ae2192967b=function(e){return e.destination},n.wbg.__wbg_sampleRate_07300b65434459c1=function(e){return e.sampleRate},n.wbg.__wbg_currentTime_5862ab7e6ff545eb=function(e){return e.currentTime},n.wbg.__wbg_new_e2e737399e087a85=function(){return R((function(){return new r}),arguments)},n.wbg.__wbg_close_b4a035e1d78e3210=function(){return R((function(e){return e.close()}),arguments)},n.wbg.__wbg_suspend_cd50f19e2a5135a2=function(){return R((function(e){return e.suspend()}),arguments)},n.wbg.__wbg_createBuffer_4d396c7e99dd4d2a=function(){return R((function(e,n,t,_){return e.createBuffer(n>>>0,t>>>0,_)}),arguments)},n.wbg.__wbg_createBufferSource_45686af9ad60716f=function(){return R((function(e){return e.createBufferSource()}),arguments)},n.wbg.__wbg_resume_4b659cb2e2765df8=function(){return R((function(e){return e.resume()}),arguments)},n.wbg.__wbg_queue_46cd16148919f3b5=function(e){return e.queue},n.wbg.__wbg_createBindGroup_5fe3d3f6bd40c9e4=function(e,n){return e.createBindGroup(n)},n.wbg.__wbg_createBindGroupLayout_4e5c268b74fc830c=function(e,n){return e.createBindGroupLayout(n)},n.wbg.__wbg_createBuffer_30f8483c8c4c9082=function(e,n){return e.createBuffer(n)},n.wbg.__wbg_createCommandEncoder_92d0b0c2c86c0c53=function(e,n){return e.createCommandEncoder(n)},n.wbg.__wbg_createPipelineLayout_0aad8eb8070c8409=function(e,n){return e.createPipelineLayout(n)},n.wbg.__wbg_createRenderPipeline_05fb246b24b640e2=function(e,n){return e.createRenderPipeline(n)},n.wbg.__wbg_createSampler_cfd889caa9e979ec=function(e,n){return e.createSampler(n)},n.wbg.__wbg_createShaderModule_0bd2d72c61f9b83b=function(e,n){return e.createShaderModule(n)},n.wbg.__wbg_createTexture_4fd794661d5998b4=function(e,n){return e.createTexture(n)},n.wbg.__wbg_offsetX_20394816af6b15d9=function(e){return e.offsetX},n.wbg.__wbg_offsetY_23315c976b0ac2ae=function(e){return e.offsetY},n.wbg.__wbg_button_943ba4d0c28109da=function(e){return e.button},n.wbg.__wbg_connect_633555bc7344598d=function(){return R((function(e,n){return e.connect(n)}),arguments)},n.wbg.__wbg_instanceof_GpuAdapter_54bfa99a19a62a35=function(e){return e instanceof GPUAdapter},n.wbg.__wbg_limits_487ae41d004240c8=function(e){return e.limits},n.wbg.__wbg_requestDevice_7f16704a9dbd7e31=function(e,n){return e.requestDevice(n)},n.wbg.__wbg_label_ed2ec3e10f8d36e6=function(e,n){const t=w(n.label,b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbg_beginRenderPass_77d18236c0c2528e=function(e,n){return e.beginRenderPass(n)},n.wbg.__wbg_copyBufferToBuffer_74dc86d05b33fece=function(e,n,t,_,r,b){e.copyBufferToBuffer(n,t,_,r,b)},n.wbg.__wbg_copyTextureToBuffer_cc509c45db42cfe6=function(e,n,t,_){e.copyTextureToBuffer(n,t,_)},n.wbg.__wbg_finish_c225d3b4ea046b53=function(e){return e.finish()},n.wbg.__wbg_finish_742bb9042ab07ce3=function(e,n){return e.finish(n)},n.wbg.__wbg_createView_3d9f4cf029c982ec=function(e,n){return e.createView(n)},n.wbg.__wbg_bindVertexArrayOES_b53b8137f0e6f9e1=function(e,n){e.bindVertexArrayOES(n)},n.wbg.__wbg_createVertexArrayOES_56337c7d4798d96b=function(e){const n=e.createVertexArrayOES();return d(n)?0:P(n)},n.wbg.__wbg_deltaY_e3158374108000c8=function(e){return e.deltaY},n.wbg.__wbg_deltaMode_78fa2eac67504e1e=function(e){return e.deltaMode},n.wbg.__wbg_debug_68178c61250ae699="function"==typeof console.debug?console.debug:O("console.debug"),n.wbg.__wbg_error_e2677af4c7f31a14="function"==typeof console.error?console.error:O("console.error"),n.wbg.__wbg_info_2fe3b57d78190c6d="function"==typeof console.info?console.info:O("console.info"),n.wbg.__wbg_log_7761a8b8a8c1864e="function"==typeof console.log?console.log:O("console.log"),n.wbg.__wbg_warn_8b29c6b80217b0e4="function"==typeof console.warn?console.warn:O("console.warn"),n.wbg.__wbg_get_ad41fee29b7e0f53=function(e,n){return e[n>>>0]},n.wbg.__wbg_length_a73bfd4c96dd97ef=function(e){return e.length},n.wbg.__wbg_new_ee1a3da85465d621=function(){return new Array},n.wbg.__wbg_newnoargs_971e9a5abe185139=function(e,n){return new Function(o(e,n))},n.wbg.__wbg_next_3d0c4cc33e7418c9=function(){return R((function(e){return e.next()}),arguments)},n.wbg.__wbg_done_e5655b169bb04f60=function(e){return e.done},n.wbg.__wbg_value_8f901bca1014f843=function(e){return e.value},n.wbg.__wbg_get_72332cd2bc57924c=function(){return R((function(e,n){return Reflect.get(e,n)}),arguments)},n.wbg.__wbg_call_33d7bcddbbfa394a=function(){return R((function(e,n){return e.call(n)}),arguments)},n.wbg.__wbg_new_e6a9fecc2bf26696=function(){return new Object},n.wbg.__wbg_self_fd00a1ef86d1b2ed=function(){return R((function(){return self.self}),arguments)},n.wbg.__wbg_window_6f6e346d8bbd61d7=function(){return R((function(){return window.window}),arguments)},n.wbg.__wbg_globalThis_3348936ac49df00a=function(){return R((function(){return globalThis.globalThis}),arguments)},n.wbg.__wbg_global_67175caf56f55ca9=function(){return R((function(){return t.g.global}),arguments)},n.wbg.__wbg_set_64cc39858b2ec3f1=function(e,n,t){e[n>>>0]=t},n.wbg.__wbg_isArray_a1a8c3a8ac24bdf1=function(e){return Array.isArray(e)},n.wbg.__wbg_of_85777d7b997ff4db=function(e,n){return Array.of(e,n)},n.wbg.__wbg_push_0bc7fce4a139a883=function(e,n){return e.push(n)},n.wbg.__wbg_instanceof_ArrayBuffer_02bbeeb60438c785=function(e){return e instanceof ArrayBuffer},n.wbg.__wbg_new_d9d91b97aceb0193=function(e){return new ArrayBuffer(e>>>0)},n.wbg.__wbg_values_830009b5edbb5836=function(e){return e.values()},n.wbg.__wbg_new_3ee7ebe9952c1fbd=function(e,n){return new Error(o(e,n))},n.wbg.__wbg_apply_769e865e14ecdbb0=function(){return R((function(e,n,t){return e.apply(n,t)}),arguments)},n.wbg.__wbg_call_65af9f665ab6ade5=function(){return R((function(e,n,t){return e.call(n,t)}),arguments)},n.wbg.__wbg_isSafeInteger_f6dd91807e9c4d35=function(e){return Number.isSafeInteger(e)},n.wbg.__wbg_getTime_58b0bdbebd4ef11d=function(e){return e.getTime()},n.wbg.__wbg_getTimezoneOffset_8a39b51acb4f52c9=function(e){return e.getTimezoneOffset()},n.wbg.__wbg_new0_adda2d4bcb124f0a=function(){return new Date},n.wbg.__wbg_instanceof_Object_9657a9e91b05959b=function(e){return e instanceof Object},n.wbg.__wbg_entries_44c418612784cc9b=function(e){return Object.entries(e)},n.wbg.__wbg_fromEntries_576d8e028b09637c=function(){return R((function(e){return Object.fromEntries(e)}),arguments)},n.wbg.__wbg_is_43eb2f9708e964a9=function(e,n){return Object.is(e,n)},n.wbg.__wbg_new_52205195aa880fc2=function(e,n){try{var t={a:e,b:n};const _=new Promise(((e,n)=>{const _=t.a;t.a=0;try{return function(e,n,t,_){b.closure3579_externref_shim(e,n,t,_)}(_,t.b,e,n)}finally{t.a=_}}));return _}finally{t.a=t.b=0}},n.wbg.__wbg_resolve_0107b3a501450ba0=function(e){return Promise.resolve(e)},n.wbg.__wbg_then_18da6e5453572fc8=function(e,n){return e.then(n)},n.wbg.__wbg_then_e5489f796341454b=function(e,n,t){return e.then(n,t)},n.wbg.__wbg_buffer_34f5ec9f8a838ba0=function(e){return e.buffer},n.wbg.__wbg_newwithbyteoffsetandlength_88fdad741db1b182=function(e,n,t){return new Uint8Array(e,n>>>0,t>>>0)},n.wbg.__wbg_new_cda198d9dbc6d7ea=function(e){return new Uint8Array(e)},n.wbg.__wbg_set_1a930cfcda1a8067=function(e,n,t){e.set(n,t>>>0)},n.wbg.__wbg_length_51f19f73d6d9eff3=function(e){return e.length},n.wbg.__wbg_instanceof_Uint8Array_36c37b9ca15e3e0a=function(e){return e instanceof Uint8Array},n.wbg.__wbg_newwithlength_66e5530e7079ea1b=function(e){return new Uint8Array(e>>>0)},n.wbg.__wbg_fill_8cddc41dd6a1c68e=function(e,n,t,_){return e.fill(n,t>>>0,_>>>0)},n.wbg.__wbg_buffer_82a7641831277fcf=function(e){return e.buffer},n.wbg.__wbg_subarray_270ff8dd5582c1ac=function(e,n,t){return e.subarray(n>>>0,t>>>0)},n.wbg.__wbg_has_3be27932089d278e=function(){return R((function(e,n){return Reflect.has(e,n)}),arguments)},n.wbg.__wbg_ownKeys_406f07d243ada009=function(){return R((function(e){return Reflect.ownKeys(e)}),arguments)},n.wbg.__wbg_set_2762e698c2f5b7e0=function(){return R((function(e,n,t){return Reflect.set(e,n,t)}),arguments)},n.wbg.__wbindgen_debug_string=function(e,n){const t=w(y(n),b.__wbindgen_malloc,b.__wbindgen_realloc),_=i;l()[e/4+1]=_,l()[e/4+0]=t},n.wbg.__wbindgen_throw=function(e,n){throw new Error(o(e,n))},n.wbg.__wbindgen_memory=function(){return b.memory},n.wbg.__wbindgen_closure_wrapper379=function(e,n,t){return x(e,n,3,h)},n.wbg.__wbindgen_closure_wrapper381=function(e,n,t){return x(e,n,3,S)},n.wbg.__wbindgen_closure_wrapper383=function(e,n,t){return x(e,n,3,S)},n.wbg.__wbindgen_closure_wrapper385=function(e,n,t){return x(e,n,3,S)},n.wbg.__wbindgen_closure_wrapper387=function(e,n,t){return x(e,n,3,v)},n.wbg.__wbindgen_closure_wrapper389=function(e,n,t){return x(e,n,3,S)},n.wbg.__wbindgen_closure_wrapper1216=function(e,n,t){return x(e,n,480,A)},n.wbg.__wbindgen_closure_wrapper1419=function(e,n,t){return x(e,n,528,B)},n.wbg.__wbindgen_closure_wrapper7440=function(e,n,t){return x(e,n,3055,T)},n.wbg.__wbindgen_init_externref_table=function(){const e=b.__wbindgen_export_2,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},n}function j(e,n){return b=e.exports,$.__wbindgen_wasm_module=n,D=new Float32Array,m=new Float64Array,s=new Int32Array,E=new Uint32Array,f=new Uint8Array,k=new Uint8ClampedArray,b.__wbindgen_start(),b}function H(e){const n=G(),t=new WebAssembly.Module(e);return j(new WebAssembly.Instance(t,n),t)}async function $(e){void 0===e&&(e=new URL(t(285),t.b));const n=G();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await async function(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;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",n)}const t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{const t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}(await e,n);return j(_,r)}const N=$}}]); +//# sourceMappingURL=966.index.js.map \ No newline at end of file diff --git a/static/ruffle/assets/logo.svg b/static/ruffle/assets/logo.svg new file mode 100644 index 0000000..d15aca4 --- /dev/null +++ b/static/ruffle/assets/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/ruffle/index.js b/static/ruffle/index.js new file mode 100644 index 0000000..df4b8fe --- /dev/null +++ b/static/ruffle/index.js @@ -0,0 +1,2 @@ +(()=>{"use strict";var e,t,n={894:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(272),r=n.n(i),o=n(609),a=n.n(o)()(r());a.push([e.id,":root {\n --ruffle-blue: #37528c;\n --ruffle-orange: #ffad33;\n --preloader-background: #31497d;\n}\n\nbody {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 0;\n margin: 0;\n font-family: Lato, sans-serif;\n display: flex;\n flex-flow: column;\n background: black;\n}\n\n#main {\n position: relative;\n flex: 1;\n}\n\n#overlay {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1;\n pointer-events: none;\n border: 8px dashed var(--ruffle-orange);\n border-radius: 30px;\n opacity: 0;\n transition: opacity 0.3s ease-in;\n margin: 10px 5px;\n}\n\n#overlay.drag {\n opacity: 1;\n transition-timing-function: ease-out;\n}\n\n#player {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: auto;\n height: auto;\n margin: 10px 0;\n}\n\n#nav {\n width: 100%;\n background: var(--ruffle-blue);\n box-shadow: 0 3px 6px 5px var(--ruffle-blue);\n display: flex;\n align-items: center;\n justify-content: space-around;\n color: white;\n padding: 10px 0 5px;\n margin-bottom: 5px;\n}\n\n#title {\n transition: opacity 0.5s;\n}\n\n#title:hover {\n opacity: 0.5;\n}\n\n#title img {\n height: 32px;\n}\n\n#file-picker select,\n#file-picker input,\n#author {\n margin-left: 5px;\n}\n\n#local-file-container,\n#sample-swfs-container {\n display: inline-block;\n vertical-align: middle;\n}\n\n#local-file {\n width: 0;\n opacity: 0;\n position: absolute;\n}\n\n#local-file-label {\n color: var(--ruffle-blue);\n padding: 3px 10px;\n margin: 5px 2px;\n cursor: pointer;\n border-radius: 50px;\n background-color: white;\n}\n\n#local-file-name {\n min-width: 150px;\n display: inline-block;\n font-size: smaller;\n}\n\n#sample-swfs {\n background-color: white;\n color: var(--ruffle-blue);\n border: 1px solid white;\n border-radius: 5px;\n}\n\n#author-container {\n font-size: small;\n}\n\n#author {\n color: var(--ruffle-orange);\n}\n\n.hidden {\n display: none !important;\n}\n\n.modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.modal-content {\n background-color: var(--ruffle-blue);\n margin: 15vh auto;\n padding: 20px;\n border: 2px solid white;\n width: 300px;\n height: 270px;\n overflow: auto;\n}\n\n.close {\n color: #aaa;\n float: right;\n font-size: 28px;\n font-weight: bold;\n cursor: pointer;\n}\n\n#open-modal {\n vertical-align: middle;\n cursor: pointer;\n}\n\n#metadata {\n margin: 0 auto;\n}\n\n#metadata td {\n padding: 2px 1px;\n border: 1px solid #ddd;\n color: var(--ruffle-orange);\n}\n\n#metadata tr td:nth-child(1) {\n font-weight: bold;\n padding: 0 10px;\n}\n\n@media only screen and (max-width: 800px) {\n #local-file-container,\n #sample-swfs-container {\n display: block;\n }\n\n #local-file-container {\n margin-bottom: 10px;\n }\n}\n\n@media only screen and (max-width: 600px) {\n #local-file-static-label,\n #sample-swfs-label {\n display: block;\n margin-bottom: 5px;\n }\n\n #author-container {\n font-size: 12px;\n text-align: center;\n }\n\n #nav {\n flex-flow: column;\n }\n}\n","",{version:3,sources:["webpack://./www/index.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,wBAAwB;IACxB,+BAA+B;AACnC;;AAEA;IACI,kBAAkB;IAClB,MAAM;IACN,SAAS;IACT,OAAO;IACP,QAAQ;IACR,UAAU;IACV,SAAS;IACT,6BAA6B;IAC7B,aAAa;IACb,iBAAiB;IACjB,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,OAAO;AACX;;AAEA;IACI,kBAAkB;IAClB,MAAM;IACN,SAAS;IACT,OAAO;IACP,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,uCAAuC;IACvC,mBAAmB;IACnB,UAAU;IACV,gCAAgC;IAChC,gBAAgB;AACpB;;AAEA;IACI,UAAU;IACV,oCAAoC;AACxC;;AAEA;IACI,kBAAkB;IAClB,MAAM;IACN,SAAS;IACT,OAAO;IACP,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,cAAc;AAClB;;AAEA;IACI,WAAW;IACX,8BAA8B;IAC9B,4CAA4C;IAC5C,aAAa;IACb,mBAAmB;IACnB,6BAA6B;IAC7B,YAAY;IACZ,mBAAmB;IACnB,kBAAkB;AACtB;;AAEA;IACI,wBAAwB;AAC5B;;AAEA;IACI,YAAY;AAChB;;AAEA;IACI,YAAY;AAChB;;AAEA;;;IAGI,gBAAgB;AACpB;;AAEA;;IAEI,qBAAqB;IACrB,sBAAsB;AAC1B;;AAEA;IACI,QAAQ;IACR,UAAU;IACV,kBAAkB;AACtB;;AAEA;IACI,yBAAyB;IACzB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,uBAAuB;AAC3B;;AAEA;IACI,gBAAgB;IAChB,qBAAqB;IACrB,kBAAkB;AACtB;;AAEA;IACI,uBAAuB;IACvB,yBAAyB;IACzB,uBAAuB;IACvB,kBAAkB;AACtB;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,wBAAwB;AAC5B;;AAEA;IACI,aAAa;IACb,eAAe;IACf,UAAU;IACV,OAAO;IACP,MAAM;IACN,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,oCAAoC;IACpC,iBAAiB;IACjB,aAAa;IACb,uBAAuB;IACvB,YAAY;IACZ,aAAa;IACb,cAAc;AAClB;;AAEA;IACI,WAAW;IACX,YAAY;IACZ,eAAe;IACf,iBAAiB;IACjB,eAAe;AACnB;;AAEA;IACI,sBAAsB;IACtB,eAAe;AACnB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,gBAAgB;IAChB,sBAAsB;IACtB,2BAA2B;AAC/B;;AAEA;IACI,iBAAiB;IACjB,eAAe;AACnB;;AAEA;IACI;;QAEI,cAAc;IAClB;;IAEA;QACI,mBAAmB;IACvB;AACJ;;AAEA;IACI;;QAEI,cAAc;QACd,kBAAkB;IACtB;;IAEA;QACI,eAAe;QACf,kBAAkB;IACtB;;IAEA;QACI,iBAAiB;IACrB;AACJ",sourcesContent:[":root {\n --ruffle-blue: #37528c;\n --ruffle-orange: #ffad33;\n --preloader-background: #31497d;\n}\n\nbody {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 0;\n margin: 0;\n font-family: Lato, sans-serif;\n display: flex;\n flex-flow: column;\n background: black;\n}\n\n#main {\n position: relative;\n flex: 1;\n}\n\n#overlay {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1;\n pointer-events: none;\n border: 8px dashed var(--ruffle-orange);\n border-radius: 30px;\n opacity: 0;\n transition: opacity 0.3s ease-in;\n margin: 10px 5px;\n}\n\n#overlay.drag {\n opacity: 1;\n transition-timing-function: ease-out;\n}\n\n#player {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: auto;\n height: auto;\n margin: 10px 0;\n}\n\n#nav {\n width: 100%;\n background: var(--ruffle-blue);\n box-shadow: 0 3px 6px 5px var(--ruffle-blue);\n display: flex;\n align-items: center;\n justify-content: space-around;\n color: white;\n padding: 10px 0 5px;\n margin-bottom: 5px;\n}\n\n#title {\n transition: opacity 0.5s;\n}\n\n#title:hover {\n opacity: 0.5;\n}\n\n#title img {\n height: 32px;\n}\n\n#file-picker select,\n#file-picker input,\n#author {\n margin-left: 5px;\n}\n\n#local-file-container,\n#sample-swfs-container {\n display: inline-block;\n vertical-align: middle;\n}\n\n#local-file {\n width: 0;\n opacity: 0;\n position: absolute;\n}\n\n#local-file-label {\n color: var(--ruffle-blue);\n padding: 3px 10px;\n margin: 5px 2px;\n cursor: pointer;\n border-radius: 50px;\n background-color: white;\n}\n\n#local-file-name {\n min-width: 150px;\n display: inline-block;\n font-size: smaller;\n}\n\n#sample-swfs {\n background-color: white;\n color: var(--ruffle-blue);\n border: 1px solid white;\n border-radius: 5px;\n}\n\n#author-container {\n font-size: small;\n}\n\n#author {\n color: var(--ruffle-orange);\n}\n\n.hidden {\n display: none !important;\n}\n\n.modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.modal-content {\n background-color: var(--ruffle-blue);\n margin: 15vh auto;\n padding: 20px;\n border: 2px solid white;\n width: 300px;\n height: 270px;\n overflow: auto;\n}\n\n.close {\n color: #aaa;\n float: right;\n font-size: 28px;\n font-weight: bold;\n cursor: pointer;\n}\n\n#open-modal {\n vertical-align: middle;\n cursor: pointer;\n}\n\n#metadata {\n margin: 0 auto;\n}\n\n#metadata td {\n padding: 2px 1px;\n border: 1px solid #ddd;\n color: var(--ruffle-orange);\n}\n\n#metadata tr td:nth-child(1) {\n font-weight: bold;\n padding: 0 10px;\n}\n\n@media only screen and (max-width: 800px) {\n #local-file-container,\n #sample-swfs-container {\n display: block;\n }\n\n #local-file-container {\n margin-bottom: 10px;\n }\n}\n\n@media only screen and (max-width: 600px) {\n #local-file-static-label,\n #sample-swfs-label {\n display: block;\n margin-bottom: 5px;\n }\n\n #author-container {\n font-size: 12px;\n text-align: center;\n }\n\n #nav {\n flex-flow: column;\n }\n}\n"],sourceRoot:""}]);const s=a},609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},272:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},62:e=>{var t=[];function n(e){for(var n=-1,i=0;i{var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},173:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},892:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},36:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},464:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},285:(e,t,n)=>{e.exports=n.p+"789a40d2a750cee2cc3f.wasm"},931:(e,t,n)=>{e.exports=n.p+"4d4864b4138553ea5827.wasm"}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,r),o.loaded=!0,o.exports}r.m=n,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+".index.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ruffle-demo:",r.l=(n,i,o,a)=>{if(e[n])e[n].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(f);var r=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(i))),t)return t(i)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="",(()=>{r.b=document.baseURI||self.location.href;var e={179:0};r.f.j=(t,n)=>{var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));n.push(i[2]=o);var a=r.p+r.u(t),s=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);l&&l(r)}for(t&&t(n);c{var e=r(62),t=r.n(e),n=r(36),i=r.n(n),o=r(793),a=r.n(o),s=r(892),l=r.n(s),c=r(173),d=r.n(c),u=r(464),h=r.n(u),f=r(894),p={};p.styleTagTransform=h(),p.setAttributes=l(),p.insert=a().bind(null,"head"),p.domAPI=i(),p.insertStyleElement=d(),t()(f.Z,p),f.Z&&f.Z.locals&&f.Z.locals;const m=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),g=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),v=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,12,1,10,0,67,0,0,0,0,252,0,26,11])),A=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,65,0,192,26,11])),y=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));function b(e){const t="function"==typeof Function.prototype.toString?Function.prototype.toString():null;return"string"==typeof t&&t.indexOf("[native code]")>=0&&Function.prototype.toString.call(e).indexOf("[native code]")>=0}let w="";try{if(void 0!==document.currentScript&&null!==document.currentScript&&"src"in document.currentScript&&""!==document.currentScript.src){let e=document.currentScript.src;e.endsWith(".js")||e.endsWith("/")||(e+="/"),w=new URL(".",e).href}}catch(e){console.warn("Unable to get currentScript URL")}function x(e){let t=w;return void 0!==e&&void 0!==e.publicPath&&(t=e.publicPath),""===t||t.endsWith("/")||(t+="/"),t}let I=null;function C(e,t){return null===I&&(I=async function(e,t){"function"==typeof Array.prototype.reduce&&b(Array.prototype.reduce)||Object.defineProperty(Array.prototype,"reduce",{value(...e){if(0===e.length&&window.Prototype&&window.Prototype.Version&&window.Prototype.Version<"1.6.1")return this.length>1?this:this[0];const t=e[0];if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(`${t} is not a function`);const n=Object(this),i=n.length>>>0;let r,o=0;if(e.length>=2)r=e[1];else{for(;o=i)throw new TypeError("Reduce of empty array with no initial value");r=n[o++]}for(;oe[t]}),"function"!=typeof Reflect.set&&Object.defineProperty(Reflect,"set",{value(e,t,n){e[t]=n}});const n=(await Promise.all([m(),y(),v(),A(),g()])).every(Boolean);n||console.log("Some WebAssembly extensions are NOT available, falling back to the vanilla WebAssembly module"),r.p=x(e);const{default:i,Ruffle:o}=await(n?r.e(966).then(r.bind(r,966)):r.e(662).then(r.bind(r,662)));let a;const s=n?new URL(r(285),r.b):new URL(r(931),r.b),l=await fetch(s);if(t){const e=l.headers.get("content-length")||"";let n=0;const i=parseInt(e);a=new Response(new ReadableStream({async start(e){var r;const o=null===(r=l.body)||void 0===r?void 0:r.getReader();if(!o)throw"Response had no body";for(t(n,i);;){const{done:r,value:a}=await o.read();if(r)break;(null==a?void 0:a.byteLength)&&(n+=null==a?void 0:a.byteLength),e.enqueue(a),t(n,i)}e.close()}}),l)}else a=l;return await i(a),o}(e,t)),I}const k=document.createElement("template");k.innerHTML='\n \n \n\n
\n
\n
Click to unmute
\n
\n \n\n \n';const E={};function B(e,t){if(void 0!==E[e]){if(E[e].class!==t)throw new Error("Internal naming conflict on "+e);return E[e].name}let n=0;if(void 0!==window.customElements)for(;n<999;){let i=e;if(n>0&&(i=i+"-"+n),void 0===window.customElements.get(i))return window.customElements.define(i,t),E[e]={class:t,name:i,internalName:e},i;n+=1}throw new Error("Failed to assign custom element "+e)}const S="application/x-shockwave-flash",_="application/futuresplash",R="application/x-shockwave-flash2-preview",F="application/vnd.adobe.flash.movie",L="https://ruffle.rs",P=/^\s*(\d+(\.\d+)?(%)?)/;let q=!1;function j(e){if(null==e)return{};e instanceof URLSearchParams||(e=new URLSearchParams(e));const t={};for(const[n,i]of e)t[n]=i.toString();return t}class M extends HTMLElement{constructor(){return super(),this.hasContextMenu=!1,this.contextMenuForceDisabled=!1,this.hasPreloader=!0,this.isTouch=!1,this.showSwfDownload=!1,this.panicked=!1,this.isExtension=!1,this.config={},this.shadow=this.attachShadow({mode:"open"}),this.shadow.appendChild(k.content.cloneNode(!0)),this.dynamicStyles=this.shadow.getElementById("dynamic_styles"),this.container=this.shadow.getElementById("container"),this.playButton=this.shadow.getElementById("play_button"),this.playButton&&this.playButton.addEventListener("click",(()=>this.play())),this.unmuteOverlay=this.shadow.getElementById("unmute_overlay"),this.preloader=this.shadow.getElementById("preloader"),this.contextMenuElement=this.shadow.getElementById("context-menu"),this.addEventListener("contextmenu",this.showContextMenu.bind(this)),this.addEventListener("pointerdown",this.pointerDown.bind(this)),this.addEventListener("fullscreenchange",this.fullScreenChange.bind(this)),this.addEventListener("webkitfullscreenchange",this.fullScreenChange.bind(this)),window.addEventListener("click",this.hideContextMenu.bind(this)),this.instance=null,this.options=null,this.onFSCommand=null,this._readyState=0,this._metadata=null,this.lastActivePlayingState=!1,this.setupPauseOnTabHidden(),this}get readyState(){return this._readyState}get metadata(){return this._metadata}setupPauseOnTabHidden(){document.addEventListener("visibilitychange",(()=>{this.instance&&(document.hidden&&(this.lastActivePlayingState=this.instance.is_playing(),this.instance.pause()),document.hidden||!0!==this.lastActivePlayingState||this.instance.play())}),!1)}connectedCallback(){this.updateStyles()}static get observedAttributes(){return["width","height"]}attributeChangedCallback(e,t,n){"width"!==e&&"height"!==e||this.updateStyles()}disconnectedCallback(){this.destroy()}updateStyles(){if(this.dynamicStyles.sheet){if(this.dynamicStyles.sheet.rules)for(let e=0;e{if(console.error(`Serious error loading Ruffle: ${e}`),"file:"===window.location.protocol)e.ruffleIndexError=2;else{e.ruffleIndexError=9;const t=String(e.message).toLowerCase();t.includes("mime")?e.ruffleIndexError=8:t.includes("networkerror")||t.includes("failed to fetch")?e.ruffleIndexError=6:t.includes("disallowed by embedder")?e.ruffleIndexError=1:"CompileError"===e.name?e.ruffleIndexError=3:t.includes("could not download wasm module")&&"TypeError"===e.name?e.ruffleIndexError=7:"TypeError"===e.name?e.ruffleIndexError=5:navigator.userAgent.includes("Edg")&&t.includes("webassembly is not defined")&&(e.ruffleIndexError=10)}throw this.panic(e),e}));if(this.instance=await new n(this.container,this,e),console.log("New Ruffle instance created (WebAssembly extensions: "+(n.is_wasm_simd_used()?"ON":"OFF")+")"),"running"!==this.audioState()&&(this.container.style.visibility="hidden",await new Promise((e=>{window.setTimeout((()=>{e()}),200)})),this.container.style.visibility=""),this.unmuteAudioContext(),"on"===e.autoplay||"off"!==e.autoplay&&"running"===this.audioState()){if(this.play(),"running"!==this.audioState()){"hidden"!==e.unmuteOverlay&&(this.unmuteOverlay.style.display="block"),this.container.addEventListener("click",this.unmuteOverlayClicked.bind(this),{once:!0});const n=null===(t=this.instance)||void 0===t?void 0:t.audio_context();n&&(n.onstatechange=()=>{"running"===n.state&&this.unmuteOverlayClicked(),n.onstatechange=null})}}else this.playButton.style.display="block"}onRuffleDownloadProgress(e,t){const n=this.preloader.querySelector(".loadbarInner"),i=this.preloader.querySelector(".loadbar");Number.isNaN(t)?i&&(i.style.display="none"):n.style.width=e/t*100+"%"}destroy(){this.instance&&(this.instance.destroy(),this.instance=null,this._metadata=null,this._readyState=0,console.log("Ruffle instance destroyed."))}async load(e){var t,n;let i="";switch(typeof e){case"string":e={url:e};break;case"object":null===e?i="Argument 0 must be a string or object":"url"in e||"data"in e?"url"in e&&"string"!=typeof e.url&&(i="`url` must be a string"):i="Argument 0 must contain a `url` or `data` key";break;default:i="Argument 0 must be a string or object"}if(i.length>0){const e=new TypeError(i);throw e.ruffleIndexError=4,this.panic(e),e}if(this.isConnected&&!this.isUnusedFallbackObject()){if(!$(this))try{const i=Object.assign(Object.assign(Object.assign({},null!==(n=null===(t=window.RufflePlayer)||void 0===t?void 0:t.config)&&void 0!==n?n:{}),this.config),e);if(i.allowScriptAccess=e.allowScriptAccess,this.showSwfDownload=!0===i.showSwfDownload,this.options=e,this.hasContextMenu=!1!==i.contextMenu,this.hasPreloader=!1!==i.preloader,i.backgroundColor&&"transparent"!==i.wmode&&(this.container.style.backgroundColor=i.backgroundColor),await this.ensureFreshInstance(i),"url"in e){console.log(`Loading SWF file ${e.url}`),this.swfUrl=new URL(e.url,document.baseURI);const t=Object.assign(Object.assign({},j(e.url.substring(e.url.indexOf("?")))),j(e.parameters));this.instance.stream_from(this.swfUrl.href,t)}else"data"in e&&(console.log("Loading SWF data"),this.instance.load_data(new Uint8Array(e.data),j(e.parameters)))}catch(e){throw console.error(`Serious error occurred loading SWF file: ${e}`),e}}else console.warn("Ignoring attempt to play a disconnected or suspended Ruffle element")}play(){this.instance&&(this.instance.play(),this.playButton&&(this.playButton.style.display="none"))}get isPlaying(){return!!this.instance&&this.instance.is_playing()}get volume(){return this.instance?this.instance.volume():1}set volume(e){this.instance&&this.instance.set_volume(e)}get fullscreenEnabled(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}get isFullscreen(){return(document.fullscreenElement||document.webkitFullscreenElement)===this}setFullscreen(e){this.fullscreenEnabled&&(e?this.enterFullscreen():this.exitFullscreen())}enterFullscreen(){const e={navigationUI:"hide"};this.requestFullscreen?this.requestFullscreen(e):this.webkitRequestFullscreen?this.webkitRequestFullscreen(e):this.webkitRequestFullScreen&&this.webkitRequestFullScreen(e)}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}fullScreenChange(){var e;null===(e=this.instance)||void 0===e||e.set_fullscreen(this.isFullscreen)}pointerDown(e){"touch"!==e.pointerType&&"pen"!==e.pointerType||(this.isTouch=!0)}async downloadSwf(){try{if(this.swfUrl){console.log("Downloading SWF: "+this.swfUrl);const e=await fetch(this.swfUrl.href);if(!e.ok)return void console.error("SWF download failed");const t=await e.blob(),n=URL.createObjectURL(t),i=document.createElement("a");i.style.display="none",i.href=n,i.download=function(e){const t=e.pathname;return t.substring(t.lastIndexOf("/")+1)}(this.swfUrl),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}else console.error("SWF download failed")}catch(e){console.error("SWF download failed")}}contextMenuItems(){const e=String.fromCharCode(10003),t=[];this.instance&&this.instance.prepare_context_menu().forEach(((n,i)=>{n.separatorBefore&&t.push(null),t.push({text:n.caption+(n.checked?` (${e})`:""),onClick:()=>{var e;return null===(e=this.instance)||void 0===e?void 0:e.run_context_menu_callback(i)},enabled:n.enabled})})),t.push(null),this.fullscreenEnabled&&(this.isFullscreen?t.push({text:"Exit fullscreen",onClick:()=>{var e;return null===(e=this.instance)||void 0===e?void 0:e.set_fullscreen(!1)}}):t.push({text:"Enter fullscreen",onClick:()=>{var e;return null===(e=this.instance)||void 0===e?void 0:e.set_fullscreen(!0)}})),this.instance&&this.swfUrl&&this.showSwfDownload&&(t.push(null),t.push({text:"Download .swf",onClick:this.downloadSwf.bind(this)})),window.isSecureContext&&t.push({text:"Copy debug info",onClick:()=>navigator.clipboard.writeText(this.getPanicData())}),t.push(null);const n=this.isExtension?"extension":"";return t.push({text:`About Ruffle ${n} (nightly 2022-09-26)`,onClick(){window.open(L,"_blank")}}),this.isTouch&&(t.push(null),t.push({text:"Hide this menu",onClick:()=>this.contextMenuForceDisabled=!0})),t}showContextMenu(e){if(e.preventDefault(),!this.hasContextMenu||this.contextMenuForceDisabled)return;for(;this.contextMenuElement.firstChild;)this.contextMenuElement.removeChild(this.contextMenuElement.firstChild);for(const e of this.contextMenuItems())if(null===e){if(!this.contextMenuElement.lastElementChild)continue;if(this.contextMenuElement.lastElementChild.classList.contains("menu_separator"))continue;const e=document.createElement("li");e.className="menu_separator";const t=document.createElement("hr");e.appendChild(t),this.contextMenuElement.appendChild(e)}else{const{text:t,onClick:n,enabled:i}=e,r=document.createElement("li");r.className="menu_item",r.textContent=t,this.contextMenuElement.appendChild(r),!1!==i?r.addEventListener("click",n):r.classList.add("disabled")}this.contextMenuElement.style.left="0",this.contextMenuElement.style.top="0",this.contextMenuElement.style.display="block";const t=this.getBoundingClientRect(),n=e.clientX-t.x,i=e.clientY-t.y,r=t.width-this.contextMenuElement.clientWidth-1,o=t.height-this.contextMenuElement.clientHeight-1;this.contextMenuElement.style.left=Math.floor(Math.min(n,r))+"px",this.contextMenuElement.style.top=Math.floor(Math.min(i,o))+"px"}hideContextMenu(){var e;null===(e=this.instance)||void 0===e||e.clear_custom_menu_items(),this.contextMenuElement.style.display="none"}pause(){this.instance&&(this.instance.pause(),this.playButton&&(this.playButton.style.display="block"))}audioState(){if(this.instance){const e=this.instance.audio_context();return e&&e.state||"running"}return"suspended"}unmuteOverlayClicked(){if(this.instance){if("running"!==this.audioState()){const e=this.instance.audio_context();e&&e.resume()}this.unmuteOverlay&&(this.unmuteOverlay.style.display="none")}}unmuteAudioContext(){q||(navigator.maxTouchPoints<1?q=!0:this.container.addEventListener("click",(()=>{var e;if(q)return;const t=null===(e=this.instance)||void 0===e?void 0:e.audio_context();if(!t)return;const n=new Audio;n.src=(()=>{const e=new ArrayBuffer(10),n=new DataView(e),i=t.sampleRate;return n.setUint32(0,i,!0),n.setUint32(4,i,!0),n.setUint16(8,1,!0),`data:audio/wav;base64,UklGRisAAABXQVZFZm10IBAAAAABAAEA${window.btoa(String.fromCharCode(...new Uint8Array(e))).slice(0,13)}AgAZGF0YQcAAACAgICAgICAAAA=`})(),n.load(),n.play().then((()=>{q=!0})).catch((e=>{console.warn(`Failed to play dummy sound: ${e}`)}))}),{once:!0}))}copyElement(e){if(e){for(let t=0;tnull==t?void 0:t.call_exposed_callback(e,n)}set traceObserver(e){var t;null===(t=this.instance)||void 0===t||t.set_trace_observer(e)}getPanicData(){const e=[];if(e.push("\n# Player Info\n"),e.push(this.debugPlayerInfo()),e.push("\n# Page Info\n"),e.push(`Page URL: ${document.location.href}\n`),this.swfUrl&&e.push(`SWF URL: ${this.swfUrl}\n`),e.push("\n# Browser Info\n"),e.push(`User Agent: ${window.navigator.userAgent}\n`),e.push(`Platform: ${window.navigator.platform}\n`),e.push(`Has touch support: ${window.navigator.maxTouchPoints>0}\n`),e.push("\n# Ruffle Info\n"),e.push("Version: 0.1.0\n"),e.push("Name: nightly 2022-09-26\n"),e.push("Channel: nightly\n"),e.push("Built: 2022-09-26T00:16:38.943Z\n"),e.push("Commit: 51c9e3714a71a6b67f97323f85639878156b95af\n"),e.push(`Is extension: ${this.isExtension}\n`),e.push("\n# Metadata\n"),this.metadata)for(const[t,n]of Object.entries(this.metadata))e.push(`${t}: ${n}\n`);return e.join("")}panic(e){var t;if(this.panicked)return;if(this.panicked=!0,this.hidePreloader(),e instanceof Error&&("AbortError"===e.name||e.message.includes("AbortError")))return;const n=null!==(t=null==e?void 0:e.ruffleIndexError)&&void 0!==t?t:0,i=Object.assign([],{stackIndex:-1,avmStackIndex:-1});if(i.push("# Error Info\n"),e instanceof Error){if(i.push(`Error name: ${e.name}\n`),i.push(`Error message: ${e.message}\n`),e.stack){const t=i.push(`Error stack:\n\`\`\`\n${e.stack}\n\`\`\`\n`)-1;if(e.avmStack){const t=i.push(`AVM2 stack:\n\`\`\`\n ${e.avmStack.trim().replace(/\t/g," ")}\n\`\`\`\n`)-1;i.avmStackIndex=t}i.stackIndex=t}}else i.push(`Error: ${e}\n`);i.push(this.getPanicData());const r=i.join(""),o=new Date("2022-09-26T00:16:38.943Z"),a=new Date;a.setMonth(a.getMonth()-6);const s=a>o;let l,c,d;if(s)l=`Update Ruffle`;else{const e=document.location.href.split(/[?#]/)[0];let t=`https://github.com/ruffle-rs/ruffle/issues/new?title=${encodeURIComponent(`Error on ${e}`)}&template=error_report.md&labels=error-report&body=`,n=encodeURIComponent(r);i.stackIndex>-1&&String(t+n).length>8195&&(i[i.stackIndex]=null,i.avmStackIndex>-1&&(i[i.avmStackIndex]=null),n=encodeURIComponent(i.join(""))),t+=n,l=`Report Bug`}switch(n){case 2:c='\n

It appears you are running Ruffle on the "file:" protocol.

\n

This doesn\'t work as browsers block many features from working for security reasons.

\n

Instead, we invite you to setup a local server or either use the web demo or the desktop application.

\n ',d=`\n
  • Web Demo
  • \n
  • Desktop Application
  • \n `;break;case 4:c="\n

    Ruffle has encountered a major issue due to an incorrect JavaScript configuration.

    \n

    If you are the server administrator, we invite you to check the error details to find out which parameter is at fault.

    \n

    You can also consult the Ruffle wiki for help.

    \n ",d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;case 9:c='\n

    Ruffle failed to load the required ".wasm" file component.

    \n

    If you are the server administrator, please ensure the file has correctly been uploaded.

    \n

    If the issue persists, you may need to use the "publicPath" setting: please consult the Ruffle wiki for help.

    \n ',d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;case 8:c='\n

    Ruffle has encountered a major issue whilst trying to initialize.

    \n

    This web server is not serving ".wasm" files with the correct MIME type.

    \n

    If you are the server administrator, please consult the Ruffle wiki for help.

    \n ',d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;case 11:c="\n

    Ruffle failed to load the Flash SWF file.

    \n

    The most likely reason is that the file no longer exists, so there is nothing for Ruffle to load.

    \n

    Try contacting the website administrator for help.

    \n ",d='\n
  • View Error Details
  • \n ';break;case 6:c='\n

    Ruffle failed to load the required ".wasm" file component.

    \n

    Access to fetch has likely been blocked by CORS policy.

    \n

    If you are the server administrator, please consult the Ruffle wiki for help.

    \n ',d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;case 3:c="\n

    Ruffle has encountered a major issue whilst trying to initialize.

    \n

    It seems like this page has missing or invalid files for running Ruffle.

    \n

    If you are the server administrator, please consult the Ruffle wiki for help.

    \n ",d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;case 7:c="\n

    Ruffle has encountered a major issue whilst trying to initialize.

    \n

    This can often resolve itself, so you can try reloading the page.

    \n

    Otherwise, please contact the website administrator.

    \n ",d='\n
  • View Error Details
  • \n ';break;case 10:c='\n

    Ruffle failed to load the required ".wasm" file component.

    \n

    To fix this, try opening your browser\'s settings, clicking "Privacy, search, and services", scrolling down, and turning off "Enhance your security on the web".

    \n

    This will allow your browser to load the required ".wasm" files.

    \n

    If the issue persists, you might have to use a different browser.

    \n ',d='\n
  • More Information
  • \n
  • View Error Details
  • \n ';break;case 5:c="\n

    Ruffle has encountered a major issue whilst trying to initialize.

    \n

    It seems like this page uses JavaScript code that conflicts with Ruffle.

    \n

    If you are the server administrator, we invite you to try loading the file on a blank page.

    \n ",s&&(c+="

    You can also try to upload a more recent version of Ruffle that may circumvent the issue (current build is outdated: 2022-09-26T00:16:38.943Z).

    "),d=`\n
  • ${l}
  • \n
  • View Error Details
  • \n `;break;case 1:c='\n

    Ruffle has encountered a major issue whilst trying to initialize.

    \n

    This web server\'s Content Security Policy does not allow the required ".wasm" component to run.

    \n

    If you are the server administrator, please consult the Ruffle wiki for help.

    \n ',d='\n
  • View Ruffle Wiki
  • \n
  • View Error Details
  • \n ';break;default:c="

    Ruffle has encountered a major issue whilst trying to display this Flash content.

    ",c+=s?"

    If you are the server administrator, please try to upload a more recent version of Ruffle (current build is outdated: 2022-09-26T00:16:38.943Z).

    ":"

    This isn't supposed to happen, so we'd really appreciate if you could file a bug!

    ",d=`\n
  • ${l}
  • \n
  • View Error Details
  • \n `}this.container.innerHTML=`\n
    \n
    Something went wrong :(
    \n
    ${c}
    \n \n
    \n `;const u=this.container.querySelector("#panic-view-details");u&&(u.onclick=()=>{const e=this.container.querySelector("#panic-body");return e.classList.add("details"),e.innerHTML=``,!1}),this.destroy()}displayRootMovieDownloadFailedMessage(){if(window.location.origin===this.swfUrl.origin||!this.isExtension||!window.location.protocol.includes("http")){const e=new Error("Failed to fetch: "+this.swfUrl);return e.ruffleIndexError=11,void this.panic(e)}this.hidePreloader();const e=document.createElement("div");e.id="message_overlay",e.innerHTML=`
    \n

    Ruffle wasn't able to run the Flash embedded in this page.

    \n

    You can try to open the file in a separate tab, to sidestep this issue.

    \n
    \n Open in a new tab\n
    \n
    `,this.container.prepend(e)}displayUnsupportedMessage(){const e=document.createElement("div");e.id="message_overlay",e.innerHTML='
    \n

    The Ruffle emulator does not yet support ActionScript 3, required by this content.

    \n

    If you choose to run it anyway, interactivity will be missing or limited.

    \n
    \n More info\n \n
    \n
    ',this.container.prepend(e),e.querySelector("#run-anyway-btn").onclick=()=>{e.parentNode.removeChild(e)}}displayMessage(e){const t=document.createElement("div");t.id="message_overlay",t.innerHTML=`
    \n

    ${e}

    \n
    \n \n
    \n
    `,this.container.prepend(t),this.container.querySelector("#continue-btn").onclick=()=>{t.parentNode.removeChild(t)}}debugPlayerInfo(){var e,t;let n=`Allows script access: ${null!==(t=null===(e=this.options)||void 0===e?void 0:e.allowScriptAccess)&&void 0!==t&&t}\n`;return this.instance&&(n+=`Renderer: ${this.instance.renderer_name()}\n`),n}hidePreloader(){this.preloader.classList.add("hidden"),this.container.classList.remove("hidden")}showPreloader(){this.preloader.classList.remove("hidden"),this.container.classList.add("hidden")}setMetadata(e){this._metadata=e,this._readyState=2,this.hidePreloader(),this.dispatchEvent(new Event(M.LOADED_METADATA)),this.dispatchEvent(new Event(M.LOADED_DATA))}setIsExtension(e){this.isExtension=e}}function T(e,t){switch(e||(e="sameDomain"),e.toLowerCase()){case"always":return!0;case"never":return!1;default:try{return new URL(window.location.href).origin===new URL(t,window.location.href).origin}catch(e){return!1}}}function O(e){return null===e||"true"===e.toLowerCase()}function N(e){if(e){let t="",n="";try{const i=new URL(e,L);t=i.pathname,n=i.hostname.replace("www.","")}catch(e){}if(t.startsWith("/v/")&&("youtube.com"===n||"youtube-nocookie.com"===n))return!0}return!1}function U(e,t){var n,i;const r=e.getAttribute(t),o=null!==(i=null===(n=window.RufflePlayer)||void 0===n?void 0:n.config)&&void 0!==i?i:{};if(r)try{const n=new URL(r);"http:"===n.protocol&&"https:"===window.location.protocol&&!1!==o.upgradeToHttps&&(n.protocol="https:",e.setAttribute(t,n.toString()))}catch(e){}}function D(e){if(e){let t="";try{t=new URL(e,L).pathname}catch(e){}if(t&&t.length>=4){const e=t.slice(-4).toLowerCase();if(".swf"===e||".spl"===e)return!0}}return!1}function W(e){switch(e.toLowerCase()){case S.toLowerCase():case _.toLowerCase():case R.toLowerCase():case F.toLowerCase():return!0;default:return!1}}function $(e){let t=e.parentElement;for(;null!==t;){switch(t.tagName){case"AUDIO":case"VIDEO":return!0}t=t.parentElement}return!1}M.LOADED_METADATA="loadedmetadata",M.LOADED_DATA="loadeddata";class z{constructor(e){if(this.__mimetypes=[],this.__named_mimetypes={},e)for(let t=0;t{t+=`Param ${e}: ${this.params[e]}\n`})),Object.keys(this.attributes).forEach((e=>{var n;t+=`Attribute ${e}: ${null===(n=this.attributes.getNamedItem(e))||void 0===n?void 0:n.value}\n`})),t}get data(){return this.getAttribute("data")}set data(e){if(e){const t=document.createAttribute("data");t.value=e,this.attributes.setNamedItem(t)}else this.attributes.removeNamedItem("data")}static isInterdictable(e){var t,n;if($(e))return!1;if(e.getElementsByTagName("ruffle-object").length>0||e.getElementsByTagName("ruffle-embed").length>0)return!1;const i=null===(t=e.attributes.getNamedItem("data"))||void 0===t?void 0:t.value.toLowerCase(),r=X(e);let o;if(i){if(N(i))return U(e,"data"),!1;o=D(i)}else{if(!r||!r.movie)return!1;if(N(r.movie)){const t=e.querySelector("param[name='movie']");if(t){U(t,"value");const n=t.getAttribute("value");n&&e.setAttribute("data",n)}return!1}o=D(r.movie)}const a=null===(n=e.attributes.getNamedItem("classid"))||void 0===n?void 0:n.value.toLowerCase();if(a==="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000".toLowerCase())return!Array.from(e.getElementsByTagName("object")).some(G.isInterdictable)&&!Array.from(e.getElementsByTagName("embed")).some(Q.isInterdictable);if(a)return!1;const s=e.attributes.getNamedItem("type");return s?W(s.value):o}static fromNativeObjectElement(e){const t=B("ruffle-object",G),n=document.createElement(t);for(const t of Array.from(e.getElementsByTagName("embed")))Q.isInterdictable(t)&&t.remove();for(const t of Array.from(e.getElementsByTagName("object")))G.isInterdictable(t)&&t.remove();return n.copyElement(e),n}}var J,K;let ee;const te=null!==(K=null===(J=window.RufflePlayer)||void 0===J?void 0:J.config)&&void 0!==K?K:{},ne=x(te)+"ruffle.js";let ie,re,oe,ae;function se(){try{ie=null!=ie?ie:document.getElementsByTagName("object"),re=null!=re?re:document.getElementsByTagName("embed");for(const e of Array.from(ie))if(G.isInterdictable(e)){const t=G.fromNativeObjectElement(e);t.setIsExtension(ee),e.replaceWith(t)}for(const e of Array.from(re))if(Q.isInterdictable(e)){const t=Q.fromNativeEmbedElement(e);t.setIsExtension(ee),e.replaceWith(t)}}catch(e){console.error(`Serious error encountered when polyfilling native Flash elements: ${e}`)}}function le(){oe=null!=oe?oe:document.getElementsByTagName("iframe"),ae=null!=ae?ae:document.getElementsByTagName("frame"),[oe,ae].forEach((e=>{for(let t=0;t{ce(i,r)}),!1)}}))}async function ce(e,t){var n;let i;await new Promise((e=>{window.setTimeout((()=>{e()}),100)}));try{if(i=e.document,!i)return}catch(e){return void(ee||console.warn(t+e))}if(ee||void 0===i.documentElement.dataset.ruffleOptout)if(ee)e.RufflePlayer||(e.RufflePlayer={}),e.RufflePlayer.config=Object.assign(Object.assign({},te),null!==(n=e.RufflePlayer.config)&&void 0!==n?n:{});else if(!e.RufflePlayer){const t=i.createElement("script");t.setAttribute("src",ne),t.onload=()=>{e.RufflePlayer={},e.RufflePlayer.config=te},i.head.appendChild(t)}}class de{constructor(e,t,n,i,r){this.major=e,this.minor=t,this.patch=n,this.prIdent=i,this.buildIdent=r}static fromSemver(e){const t=e.split("+"),n=t[0].split("-"),i=n[0].split("."),r=parseInt(i[0],10);let o=0,a=0,s=null,l=null;return void 0!==i[1]&&(o=parseInt(i[1],10)),void 0!==i[2]&&(a=parseInt(i[2],10)),void 0!==n[1]&&(s=n[1].split(".")),void 0!==t[1]&&(l=t[1].split(".")),new de(r,o,a,s,l)}isCompatibleWith(e){return 0!==this.major&&this.major===e.major||0===this.major&&0===e.major&&0!==this.minor&&this.minor===e.minor||0===this.major&&0===e.major&&0===this.minor&&0===e.minor&&0!==this.patch&&this.patch===e.patch}hasPrecedenceOver(e){if(this.major>e.major)return!0;if(this.majore.minor)return!0;if(this.minore.patch)return!0;if(this.patchparseInt(e.prIdent[n],10))return!0;if(parseInt(this.prIdent[n],10)e.prIdent[n])return!0;if(this.prIdent[n]e.prIdent.length}return!1}isEqual(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch}isStableOrCompatiblePrerelease(e){return null===e.prIdent||this.major===e.major&&this.minor===e.minor&&this.patch===e.patch}}class ue{constructor(e){this.requirements=e}satisfiedBy(e){for(let t=0;t"===r?n=n&&e.hasPrecedenceOver(o):">="===r?n=n&&(e.hasPrecedenceOver(o)||o.isEqual(e)):"<"===r?n=n&&o.hasPrecedenceOver(e):"<="===r?n=n&&(o.hasPrecedenceOver(e)||o.isEqual(e)):"^"===r&&(n=n&&o.isCompatibleWith(e))}if(n)return!0}return!1}static fromRequirementString(e){const t=e.split(" ");let n=[];const i=[];for(let e=0;e0&&(i.push(n),n=[]);else if(t[e].length>0){const i=/[0-9]/.exec(t[e]);if(i){const r=t[e].slice(0,i.index).trim(),o=de.fromSemver(t[e].slice(i.index).trim());n.push({comparator:r,version:o})}}return n.length>0&&i.push(n),new ue(i)}}const he={version:"0.1.0",polyfill(e){!function(e){ee=e,se(),le(),new MutationObserver((function(e){e.some((e=>e.addedNodes.length>0))&&(se(),le())})).observe(document,{childList:!0,subtree:!0})}(e)},pluginPolyfill(){!function(e){"install"in navigator.plugins&&navigator.plugins.install||Object.defineProperty(navigator,"plugins",{value:new H(navigator.plugins),writable:!1}),navigator.plugins.install(e),!(e.length>0)||"install"in navigator.mimeTypes&&navigator.mimeTypes.install||Object.defineProperty(navigator,"mimeTypes",{value:new z(navigator.mimeTypes),writable:!1});const t=navigator.mimeTypes;for(let n=0;n{e.textContent="Loading"})),document.getElementById("backgroundColor").value="#FFFFFF")}function Fe(e){Re(),me=pe.createPlayer(),me.id="player",ge.append(me),me.load(e),me.addEventListener("loadedmetadata",(function(){if(this.metadata)for(const[e,t]of Object.entries(this.metadata)){const n=document.getElementById(e);if(n)switch(e){case"backgroundColor":n.value=t??"#FFFFFF";break;case"uncompressedLength":n.textContent=(t>>10)+"Kb";break;case"swfVersion":document.getElementById("flashVersion").textContent=_e[t];default:n.textContent=t}}}))}function Le(){xe.selectedIndex=-1,Ae.classList.add("hidden"),ye.textContent="",ye.href=""}async function Pe(e){e&&(e.name&&(Ie.textContent=e.name),Le(),Fe({data:await new Response(e).arrayBuffer(),...Se}))}function qe(){const e=xe[xe.selectedIndex].swfData;if(Ie.textContent="No file selected.",e){!function(e){Ae.classList.remove("hidden"),ye.textContent=e.author,ye.href=e.authorLink,we.value=null}(e);const t=e.config||Se;Fe({url:e.location,...t})}else Le(),Re()}we.addEventListener("change",(e=>{Pe(e.target.files[0])})),xe.addEventListener("change",(()=>qe())),ge.addEventListener("dragenter",(e=>{e.stopPropagation(),e.preventDefault()})),ge.addEventListener("dragleave",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.remove("drag")})),ge.addEventListener("dragover",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.add("drag")})),ge.addEventListener("drop",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.remove("drag"),we.files=e.dataTransfer.files,Pe(e.dataTransfer.files[0])})),we.addEventListener("dragleave",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.remove("drag")})),we.addEventListener("dragover",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.add("drag")})),we.addEventListener("drop",(e=>{e.stopPropagation(),e.preventDefault(),ve.classList.remove("drag"),we.files=e.dataTransfer.files,Pe(e.dataTransfer.files[0])})),Ce.addEventListener("click",(()=>{Ee.style.display="none"})),ke.addEventListener("click",(()=>{Ee.style.display="block"})),window.addEventListener("load",(()=>{(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i))&&we.removeAttribute("accept"),ve.classList.remove("hidden")})),window.onclick=e=>{e.target===Ee&&(Ee.style.display="none")},(async()=>{const e=await fetch("swfs.json");if(e.ok){const t=await e.json();for(const e of t.swfs){const t=document.createElement("option");t.textContent=e.title,t.value=e.location,t.swfData=e,e.type?Be[e.type].append(t):xe.insertBefore(t,xe.firstChild)}be.classList.remove("hidden")}xe.selectedIndex=0;const t=new URL(window.location).searchParams.get("file");if(t){const e=Array.from(xe.options);xe.selectedIndex=Math.max(e.findIndex((e=>e.value.endsWith(t))),0)}qe()})()})()})(); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/static/ruffle/logo-anim.swf b/static/ruffle/logo-anim.swf new file mode 100644 index 0000000..9e9bd50 Binary files /dev/null and b/static/ruffle/logo-anim.swf differ diff --git a/static/ruffle/ruffle.html b/static/ruffle/ruffle.html new file mode 100644 index 0000000..4779400 --- /dev/null +++ b/static/ruffle/ruffle.html @@ -0,0 +1,90 @@ + + + + + + + Ruffle Web Demo + + + + +
    + +
    + + + + diff --git a/static/ruffle/swfs.json b/static/ruffle/swfs.json new file mode 100644 index 0000000..467ae29 --- /dev/null +++ b/static/ruffle/swfs.json @@ -0,0 +1,16 @@ +{ + "swfs": [ + { + "location": "logo-anim.swf", + "title": "Ruffle Logo", + "author": "Ruffle contributors", + "authorLink": "https://ruffle.rs", + "config": { + "autoplay": "on", + "backgroundColor": "#31497D", + "letterbox": "off", + "unmuteOverlay": "hidden" + } + } + ] +}