-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (61 loc) · 75.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<!-- saved from url=(0030)http://www.wiiubru.com/gp.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script type="text/javascript" src="./gp_files/jquery.min.js"></script><script>(function(){class RuffleMimeType{constructor(a,b,c){this.type=a,this.description=b,this.suffixes=c}}class RuffleMimeTypeArray{constructor(a){this.__mimetypes=[],this.__named_mimetypes={};for(let b of a)this.install(b)}install(a){let b=this.__mimetypes.length;this.__mimetypes.push(a),this.__named_mimetypes[a.type]=a,this[a.type]=a,this[b]=a}item(a){return this.__mimetypes[a]}namedItem(a){return this.__named_mimetypes[a]}get length(){return this.__mimetypes.length}}class RufflePlugin extends RuffleMimeTypeArray{constructor(a,b,c,d){super(d),this.name=a,this.description=b,this.filename=c}install(a){a.enabledPlugin||(a.enabledPlugin=this),super.install(a)}}class RufflePluginArray{constructor(a){this.__plugins=[],this.__named_plugins={};for(let b of a)this.install(b)}install(a){let b=this.__plugins.length;this.__plugins.push(a),this.__named_plugins[a.name]=a,this[a.name]=a,this[b]=a}item(a){return this.__plugins[a]}namedItem(a){return this.__named_plugins[a]}get length(){return this.__plugins.length}}const FLASH_PLUGIN=new RufflePlugin("Shockwave Flash","Shockwave Flash 32.0 r0","ruffle.js",[new RuffleMimeType("application/futuresplash","Shockwave Flash","spl"),new RuffleMimeType("application/x-shockwave-flash","Shockwave Flash","swf"),new RuffleMimeType("application/x-shockwave-flash2-preview","Shockwave Flash","swf"),new RuffleMimeType("application/vnd.adobe.flash-movie","Shockwave Flash","swf")]);function install_plugin(a){navigator.plugins.install||Object.defineProperty(navigator,"plugins",{value:new RufflePluginArray(navigator.plugins),writable:!1}),navigator.plugins.install(a),0<a.length&&!navigator.mimeTypes.install&&Object.defineProperty(navigator,"mimeTypes",{value:new RuffleMimeTypeArray(navigator.mimeTypes),writable:!1});for(var b=0;b<a.length;b+=1)navigator.mimeTypes.install(a[b])}install_plugin(FLASH_PLUGIN);})();</script>
<script>(function () { var ruffleRuntimePath = "chrome-extension://hnicgckkbamlonjfbkdilljeegpbjabo/";
var obfuscatedEventPrefix = "rufEvent61132435361";
(()=>{"use strict";function a(t){if(e[t])return e[t].exports;var _=e[t]={exports:{}};return n[t](_,_.exports,a),_.exports}var n={918:(a,e,t)=>{t.r(e),t.d(e,{default:()=>n});const n=t.p+"40caf2b45c20a1522895df5ec7f369c3.wasm"}},e={};a.d=(n,e)=>{for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.p="",(()=>{function ae(t){return Ee[t]}function Pe(n){const e=ae(n);return function(t){36>t||(Ee[t]=r,r=t)}(n),e}function Te(n){r===Ee.length&&Ee.push(Ee.length+1);const e=r;return r=Ee[e],Ee[e]=n,e}function c(){return null!==e&&e.buffer===Se.memory.buffer||(e=new Uint8Array(Se.memory.buffer)),e}function i(n,e){return Me.decode(c().subarray(n,n+e))}function _(_,d,l){if(void 0===l){const e=s.encode(_),t=d(e.length);return c().subarray(t,t+e.length).set(e),Ne=e.length,t}let n=_.length,g=d(n);const f=c();let o=0;for(;o<n;o++){const e=_.charCodeAt(o);if(127<e)break;f[g+o]=e}if(o!==n){0!==o&&(_=_.slice(o)),g=l(g,n,n=o+3*_.length);const e=c().subarray(g+o,g+n);o+=b(_,e).written}return Ne=o,g}function l(){return null!==d&&d.buffer===Se.memory.buffer||(d=new Int32Array(Se.memory.buffer)),d}function g(t){return null==t}function p(a){const e=typeof a;if("number"==e||"boolean"==e||null==a)return`${a}`;if("string"==e)return`"${a}"`;if("symbol"==e){const e=a.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==e){const e=a.name;return"string"==typeof e&&0<e.length?`Function(${e})`:"Function"}if(Array.isArray(a)){const e=a.length;let t="[";0<e&&(t+=p(a[0]));for(let n=1;n<e;n++)t+=", "+p(a[n]);return t+="]",t}const t=/\[object ([^\]]+)\]/.exec(toString.call(a));let n;if(!(1<t.length))return toString.call(a);if(n=t[1],"Object"==n)try{return"Object("+JSON.stringify(a)+")"}catch(t){return"Object"}return a instanceof Error?`${a.name}: ${a.message}\n${a.stack}`:n}function n(t,e,n,_){const r={a:t,b:e,cnt:1,dtor:n},i=(...t)=>{r.cnt++;const e=r.a;r.a=0;try{return _(e,r.b,...t)}finally{0==--r.cnt?Se.__wbindgen_export_2.get(r.dtor)(e,r.b):r.a=e}};return i.original=r,i}function h(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function y(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function v(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function x(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function k(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function C(t,e){Se._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf43929b52814893c(t,e)}function I(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h291967fc56df1dbd(t,e,n)}function S(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb418e044fe8e5c(t,e,Te(n))}function F(t,e,n){Se._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h82a10ca5ab1cea38(t,e,Te(n))}function E(t,e){return(null!==Le&&Le.buffer===Se.memory.buffer||(Le=new Float32Array(Se.memory.buffer)),Le).subarray(t/4,t/4+e)}function A(t){if(1==Be)throw new Error("out of js stack");return Ee[--Be]=t,Be}function R(n,e){return c().subarray(n/1,n/1+e)}function O(t){return function(){try{return t.apply(this,arguments)}catch(t){Se.__wbindgen_exn_store(Te(t))}}}function N(n){const e="function"==typeof Function.prototype.toString?Function.prototype.toString():null;return"string"==typeof e&&0<=e.indexOf("[native code]")&&0<=Function.prototype.toString.call(n).indexOf("[native code]")}function L(){return null==B&&(B=function(){return _=this,d=void 0,b=function*(){"function"==typeof Array.prototype.reduce&&N(Array.prototype.reduce)||Object.defineProperty(Array.prototype,"reduce",{value:function(...a){if(0===a.length&&window.Prototype&&window.Prototype.Version&&"1.6.1">window.Prototype.Version)return 1<this.length?this:this[0];const e=a[0];if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(`${e} is not a function`);const t=Object(this),n=t.length>>>0;let _,r=0;if(2<=a.length)_=a[1];else{for(;r<n&&!(r in t);)r++;if(r>=n)throw new TypeError("Reduce of empty array with no initial value");_=t[r++]}for(;r<n;)r in t&&(_=e(_,t[r],r,t)),r++;return _}}),"function"==typeof Window&&N(Window)||"function"==typeof window.constructor&&N(window.constructor)&&(window.Window=window.constructor);let n=!0;try{a.p=ruffleRuntimePath+"dist/"}catch(e){if(!(e instanceof ReferenceError))throw e;n=!1}try{const t=yield Promise.resolve().then(a.bind(a,918));yield W(t.default)}catch(e){throw e.ruffleIsExtension=n,e}return We},new((o=void 0)||(o=Promise))(function(r,t){function n(n){try{i(b.next(n))}catch(n){t(n)}}function a(n){try{i(b.throw(n))}catch(n){t(n)}}function i(_){var i;_.done?r(_.value):(i=_.value,i instanceof o?i:new o(function(t){t(i)})).then(n,a)}i((b=b.apply(_,d||[])).next())});var _,d,o,b}()),B}function j(a,e){if(void 0!==J[a]){if(J[a].class!==e)throw new Error("Internal naming conflict on "+a);return J[a].name}for(let t=0;;)try{let n=a;return 0<t&&(n=n+"-"+t),window.customElements.define(n,e),J[a]={class:e,name:n,internalName:a},n}catch(n){"NotSupportedError"===n.name&&(t+=1)}}function D(a){if(null==a)return{};a instanceof URLSearchParams||(a=new URLSearchParams(a));const _={};for(const[e,t]of a)_[e]=t.toString();return _}function Y(n,a){switch(n||(n="sameDomain"),n.toLowerCase()){case"always":return!0;case"never":return!1;case"samedomain":default:try{return new URL(window.location.href).origin===new URL(a,window.location.href).origin}catch(t){return!1}}}function $(t){if(t){let n="";try{n=new URL(t,ie).pathname}catch(t){}if(n&&4<=n.length){const t=n.slice(-4).toLowerCase();if(".swf"===t||".spl"===t)return!0}}return!1}function _e(a,e,_){for(const t in e=e.toLowerCase(),a)if(Object.hasOwnProperty.call(a,t)&&e===t.toLowerCase())return a[t];return _}function be(a){var _,d;const b={};for(const t of a.children)if(t instanceof HTMLParamElement){const n=null===(_=t.attributes.getNamedItem("name"))||void 0===_?void 0:_.value,e=null===(d=t.attributes.getNamedItem("value"))||void 0===d?void 0:d.value;n&&e&&(b[n]=e)}return b}function de(){try{ye=null==ye?document.getElementsByTagName("object"):ye,Xe=null==Xe?document.getElementsByTagName("embed"):Xe;for(const n of Array.from(ye))if(fe.isInterdictable(n)){const e=fe.fromNativeObjectElement(n);n.replaceWith(e)}for(const n of Array.from(Xe))if(ue.isInterdictable(n)){const e=ue.fromNativeEmbedElement(n);n.replaceWith(e)}}catch(t){console.error(`Serious error encountered when polyfilling native Flash elements: ${t}`)}}function le(){Ke=null==Ke?document.getElementsByTagName("iframe"):Ke,Qe=null==Qe?document.getElementsByTagName("frame"):Qe,[Ke,Qe].forEach(a=>{for(let e=0;e<a.length;e++){const t=a[e];if(void 0!==t.dataset.rufflePolyfilled)continue;t.dataset.rufflePolyfilled="";const n=t.contentWindow,_=`Couldn't load Ruffle into ${t.tagName}[${t.src}]: `;try{"complete"===n.document.readyState&&se(n,_)}catch(t){Ge||console.warn(_+t)}t.addEventListener("load",()=>{se(n,_)},!1)}})}function se(_,d){var e,b,l,s,g;return b=this,l=void 0,g=function*(){let n;yield new Promise(t=>{window.setTimeout(()=>{t()},100)});try{if(n=_.document,!n)return}catch(t){return void(Ge||console.warn(d+t))}if(Ge||void 0===n.documentElement.dataset.ruffleOptout)if(Ge)_.RufflePlayer||(_.RufflePlayer={}),_.RufflePlayer.config=Object.assign(Object.assign({},Ye),null!==(e=_.RufflePlayer.config)&&void 0!==e?e:{});else if(!_.RufflePlayer){const e=n.createElement("script");e.setAttribute("src",me),e.onload=()=>{_.RufflePlayer={},_.RufflePlayer.config=Ye},n.head.appendChild(e)}},new((s=void 0)||(s=Promise))(function(a,_){function e(n){try{t(g.next(n))}catch(t){_(t)}}function n(n){try{t(g.throw(n))}catch(t){_(t)}}function t(_){var t;_.done?a(_.value):(t=_.value,t instanceof s?t:new s(function(n){n(t)})).then(e,n)}t((g=g.apply(b,l||[])).next())})}const Ie="undefined"==typeof AudioContext?webkitAudioContext:AudioContext;let Se;const Ee=Array(32).fill(void 0);Ee.push(void 0,null,!0,!1);let r=Ee.length,Me=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Me.decode();let e=null,Ne=0,s=new TextEncoder("utf-8");const b="function"==typeof s.encodeInto?function(n,e){return s.encodeInto(n,e)}:function(a,e){const t=s.encode(a);return e.set(t),{read:a.length,written:t.length}};let d=null,Oe=null,Le=null,Be=32,je=null;class We{static __wrap(n){const e=Object.create(We.prototype);return e.ptr=n,e}free(){const t=this.ptr;this.ptr=0,Se.__wbg_ruffle_free(t)}constructor(t,e,n,_){try{var r=Se.ruffle_new(Te(t),Te(e),n,A(_));return We.__wrap(r)}finally{Ee[Be++]=void 0}}stream_from(t,e){try{var n=_(t,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;Se.ruffle_stream_from(this.ptr,n,a,A(e))}finally{Ee[Be++]=void 0}}load_data(t,e){try{Se.ruffle_load_data(this.ptr,Te(t),A(e))}finally{Ee[Be++]=void 0}}play(){Se.ruffle_play(this.ptr)}pause(){Se.ruffle_pause(this.ptr)}destroy(){Se.ruffle_destroy(this.ptr)}call_exposed_callback(t,e){var n=_(t,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne,r=function(a,e){const n=e(4*a.length),_=(null!==je&&je.buffer===Se.memory.buffer||(je=new Uint32Array(Se.memory.buffer)),je);for(let r=0;r<a.length;r++)_[n/4+r]=Te(a[r]);return Ne=a.length,n}(e,Se.__wbindgen_malloc),i=Ne;return Pe(Se.ruffle_call_exposed_callback(this.ptr,n,a,r,i))}set_trace_observer(t){Se.ruffle_set_trace_observer(this.ptr,Te(t))}audio_context(){return Pe(Se.ruffle_audio_context(this.ptr))}}const W=async function e(t){void 0===t&&(t="file:///home/runner/work/ruffle/ruffle/web/packages/core/pkg/ruffle_web.js".replace(/\.js$/,"_bg.wasm"));const r={wbg:{}};r.wbg.__wbindgen_object_drop_ref=function(t){Pe(t)},r.wbg.__wbindgen_object_clone_ref=function(t){return Te(ae(t))},r.wbg.__wbindgen_cb_drop=function(n){const e=Pe(n).original;return 1==e.cnt--&&(e.a=0,!0)},r.wbg.__wbg_copyToAudioBuffer_58f244be94bac1d2=function(_,e,t,n,r){var i,d,o;i=ae(_),d=0===e?void 0:E(e,t),o=0===n?void 0:E(n,r),d&&i.getChannelData(0).set(d),o&&i.getChannelData(1).set(o)},r.wbg.__wbindgen_string_new=function(n,e){return Te(i(n,e))},r.wbg.__wbg_new_df6e6ab7a65c4c4d=function(n,e){return Te(new Error(i(n,e)))},r.wbg.__wbg_panic_bbc809dd04a12c60=function(n,e){ae(n).panic(ae(e))},r.wbg.__wbindgen_is_function=function(t){return"function"==typeof ae(t)},r.wbg.__wbindgen_json_serialize=function(t,e){const n=ae(e);var r=_(JSON.stringify(void 0===n?null:n),Se.__wbindgen_malloc,Se.__wbindgen_realloc),i=Ne;l()[t/4+1]=i,l()[t/4+0]=r},r.wbg.__wbg_isFullscreen_96b85640554e160d=function(t){return ae(t).isFullscreen},r.wbg.__wbg_displayMessage_c57c20204892da2b=function(a,e,t){ae(a).displayMessage(i(e,t))},r.wbg.__wbg_onCallbackAvailable_3a48fae397926c96=function(a,e,t){ae(a).onCallbackAvailable(i(e,t))},r.wbg.__wbindgen_number_new=function(t){return Te(t)},r.wbg.__wbg_new_59cb74e423758ede=function(){return Te(new Error)},r.wbg.__wbg_stack_558ba5917b466edd=function(t,e){var n=_(ae(e).stack,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n},r.wbg.__wbg_error_4bb6c2a97407129a=function(t,e){try{console.error(i(t,e))}finally{Se.__wbindgen_free(t,e)}},r.wbg.__wbindgen_is_undefined=function(t){return void 0===ae(t)},r.wbg.__wbg_instanceof_WebGl2RenderingContext_9818b789249374d3=function(t){return ae(t)instanceof WebGL2RenderingContext},r.wbg.__wbg_bindVertexArray_569f8b5466293fb0=function(n,e){ae(n).bindVertexArray(ae(e))},r.wbg.__wbg_blitFramebuffer_4b472bb45062bd6e=function(i,e,t,n,r,d,a,o,b,s,l){ae(i).blitFramebuffer(e,t,n,r,d,a,o,b,s>>>0,l>>>0)},r.wbg.__wbg_createVertexArray_1f35f6d163bbae13=function(n){var e=ae(n).createVertexArray();return g(e)?0:Te(e)},r.wbg.__wbg_renderbufferStorageMultisample_0426ba65de4885db=function(_,e,t,n,r,i){ae(_).renderbufferStorageMultisample(e>>>0,t,n>>>0,r,i)},r.wbg.__wbg_texImage2D_79c0e000ef5e1b0a=O(function(i,e,t,n,r,d,a,o,b,s,l){ae(i).texImage2D(e>>>0,t,n,r,d,a,o>>>0,b>>>0,0===s?void 0:R(s,l))}),r.wbg.__wbg_bindFramebuffer_4a37c2a7678c0994=function(a,e,t){ae(a).bindFramebuffer(e>>>0,ae(t))},r.wbg.__wbg_bindRenderbuffer_203ad50a30ad3c0d=function(a,e,t){ae(a).bindRenderbuffer(e>>>0,ae(t))},r.wbg.__wbg_bindTexture_f3ab6393f75a763f=function(a,e,t){ae(a).bindTexture(e>>>0,ae(t))},r.wbg.__wbg_createFramebuffer_d01ac1b4f7c704e5=function(n){var e=ae(n).createFramebuffer();return g(e)?0:Te(e)},r.wbg.__wbg_createRenderbuffer_c008c3bb50dfff9d=function(n){var e=ae(n).createRenderbuffer();return g(e)?0:Te(e)},r.wbg.__wbg_createTexture_151a385cd028c893=function(n){var e=ae(n).createTexture();return g(e)?0:Te(e)},r.wbg.__wbg_deleteFramebuffer_acd92acda81356e9=function(n,e){ae(n).deleteFramebuffer(ae(e))},r.wbg.__wbg_deleteRenderbuffer_b67ff9026d2be0fd=function(n,e){ae(n).deleteRenderbuffer(ae(e))},r.wbg.__wbg_deleteTexture_125ab82d8330e268=function(n,e){ae(n).deleteTexture(ae(e))},r.wbg.__wbg_framebufferRenderbuffer_5293612146bd869a=function(a,e,t,n,_){ae(a).framebufferRenderbuffer(e>>>0,t>>>0,n>>>0,ae(_))},r.wbg.__wbg_framebufferTexture2D_5b8575bda5aeceeb=function(_,e,t,n,r,i){ae(_).framebufferTexture2D(e>>>0,t>>>0,n>>>0,ae(r),i)},r.wbg.__wbg_getError_609a7fa815fd3d84=function(t){return ae(t).getError()},r.wbg.__wbg_getParameter_be1e4b3ba2c0c339=O(function(n,e){return Te(ae(n).getParameter(e>>>0))}),r.wbg.__wbg_texParameteri_6e7ba8c54bb639f2=function(a,e,t,n){ae(a).texParameteri(e>>>0,t>>>0,n)},r.wbg.__wbg_instanceof_Window_49f532f06a9786ee=function(t){return ae(t)instanceof Window},r.wbg.__wbg_document_c0366b39e4f4c89a=function(n){var e=ae(n).document;return g(e)?0:Te(e)},r.wbg.__wbg_location_c1e50a6e4c53d45c=function(t){return Te(ae(t).location)},r.wbg.__wbg_navigator_95ba9cd684cf90aa=function(t){return Te(ae(t).navigator)},r.wbg.__wbg_devicePixelRatio_268c49438a600d53=function(t){return ae(t).devicePixelRatio},r.wbg.__wbg_performance_87e4f3b6f966469f=function(n){var e=ae(n).performance;return g(e)?0:Te(e)},r.wbg.__wbg_localStorage_a6fd83fc300473fc=O(function(n){var e=ae(n).localStorage;return g(e)?0:Te(e)}),r.wbg.__wbg_cancelAnimationFrame_60f9cf59ec1c0125=O(function(n,e){ae(n).cancelAnimationFrame(e)}),r.wbg.__wbg_focus_ab7792954990fdb9=O(function(t){ae(t).focus()}),r.wbg.__wbg_open_f355af0fd051a9d8=O(function(_,e,t,n,r){var d=ae(_).open(i(e,t),i(n,r));return g(d)?0:Te(d)}),r.wbg.__wbg_requestAnimationFrame_ef0e2294dc8b1088=O(function(n,e){return ae(n).requestAnimationFrame(ae(e))}),r.wbg.__wbg_fetch_f532e04b8fe49aa0=function(n,e){return Te(ae(n).fetch(ae(e)))},r.wbg.__wbg_destination_4b8bc48ce4ebcd6c=function(t){return Te(ae(t).destination)},r.wbg.__wbg_sampleRate_0d2637cc084b2eaf=function(t){return ae(t).sampleRate},r.wbg.__wbg_currentTime_1bc83619afbf9e72=function(t){return ae(t).currentTime},r.wbg.__wbg_new_2f70ca6da1976429=O(function(){return Te(new Ie)}),r.wbg.__wbg_suspend_ad6a97ee4bac3247=O(function(t){return Te(ae(t).suspend())}),r.wbg.__wbg_createBuffer_48e051aa20c4ba3e=O(function(a,e,t,n){return Te(ae(a).createBuffer(e>>>0,t>>>0,n))}),r.wbg.__wbg_createBufferSource_0e160528349a924b=O(function(t){return Te(ae(t).createBufferSource())}),r.wbg.__wbg_createChannelMerger_8e8d29d53323df91=O(function(n,e){return Te(ae(n).createChannelMerger(e>>>0))}),r.wbg.__wbg_createChannelSplitter_10fc5fe404818afc=O(function(n,e){return Te(ae(n).createChannelSplitter(e>>>0))}),r.wbg.__wbg_createGain_a6211e4c615a1141=O(function(t){return Te(ae(t).createGain())}),r.wbg.__wbg_createScriptProcessor_e755612398f80dd4=O(function(a,e,t,n){return Te(ae(a).createScriptProcessor(e>>>0,t>>>0,n>>>0))}),r.wbg.__wbg_decodeAudioData_1a1e91ec5cd60d59=O(function(a,e,t,n){return Te(ae(a).decodeAudioData(ae(e),ae(t),ae(n)))}),r.wbg.__wbg_resume_6dd89ae2f9b0bef3=O(function(t){return Te(ae(t).resume())}),r.wbg.__wbg_linearRampToValueAtTime_02ce948b9b4323e0=O(function(a,e,t){return Te(ae(a).linearRampToValueAtTime(e,t))}),r.wbg.__wbg_setValueAtTime_788b65cf85b7ba6a=O(function(a,e,t){return Te(ae(a).setValueAtTime(e,t))}),r.wbg.__wbg_userAgent_b9c7a338061adca8=O(function(t,e){var n=_(ae(e).userAgent,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n}),r.wbg.__wbg_baseURI_1fe61dc0a39a61ed=O(function(t,e){var n=ae(e).baseURI,r=g(n)?0:_(n,Se.__wbindgen_malloc,Se.__wbindgen_realloc),i=Ne;l()[t/4+1]=i,l()[t/4+0]=r}),r.wbg.__wbg_appendChild_7c45aeccd496f2a5=O(function(n,e){return Te(ae(n).appendChild(ae(e)))}),r.wbg.__wbg_removeChild_1e1942a296b255c1=O(function(n,e){return Te(ae(n).removeChild(ae(e)))}),r.wbg.__wbg_gain_688543a4eee1eece=function(t){return Te(ae(t).gain)},r.wbg.__wbg_protocol_791396029743ce88=O(function(t,e){var n=_(ae(e).protocol,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n}),r.wbg.__wbg_assign_8948549eb7c584b7=O(function(a,e,t){ae(a).assign(i(e,t))}),r.wbg.__wbg_new_0af3e1641443f13d=O(function(){return Te(new Path2D)}),r.wbg.__wbg_addPath_0b9c6299797f0772=function(a,e,t){ae(a).addPath(ae(e),ae(t))},r.wbg.__wbg_closePath_6e9529e4d6da5e83=function(t){ae(t).closePath()},r.wbg.__wbg_lineTo_2157bf4d1b0ce0d3=function(a,e,t){ae(a).lineTo(e,t)},r.wbg.__wbg_moveTo_fb2215902520c649=function(a,e,t){ae(a).moveTo(e,t)},r.wbg.__wbg_quadraticCurveTo_9c392c57a794a2d2=function(a,e,t,n,_){ae(a).quadraticCurveTo(e,t,n,_)},r.wbg.__wbg_get_29a9ce40981b8710=O(function(t,e,n,r){var d=ae(e)[i(n,r)],a=g(d)?0:_(d,Se.__wbindgen_malloc,Se.__wbindgen_realloc),o=Ne;l()[t/4+1]=o,l()[t/4+0]=a}),r.wbg.__wbg_set_13ecdf3c7967382d=O(function(a,e,t,n,_){ae(a)[i(e,t)]=i(n,_)}),r.wbg.__wbg_delete_2c0adda5d0edea03=O(function(a,e,t){delete ae(a)[i(e,t)]}),r.wbg.__wbg_length_da24898717a463e0=function(t){return ae(t).length},r.wbg.__wbg_setProperty_46b9bd1b0fad730b=O(function(a,e,t,n,_){ae(a).setProperty(i(e,t),i(n,_))}),r.wbg.__wbg_offsetX_4bd8c9fcb457cf0b=function(t){return ae(t).offsetX},r.wbg.__wbg_offsetY_0dde12490e8ebfba=function(t){return ae(t).offsetY},r.wbg.__wbg_button_9e74bd912190b055=function(t){return ae(t).button},r.wbg.__wbg_instanceof_SvgsvgElement_aa3f79a2638c5f44=function(t){return ae(t)instanceof SVGSVGElement},r.wbg.__wbg_createSVGMatrix_9088b605b3cbb935=function(t){return Te(ae(t).createSVGMatrix())},r.wbg.__wbg_connect_607a0c51b546a3db=O(function(n,e){return Te(ae(n).connect(ae(e)))}),r.wbg.__wbg_connect_a4236fe1b645b8fb=O(function(a,e,t){return Te(ae(a).connect(ae(e),t>>>0))}),r.wbg.__wbg_connect_db97a7bc9cd258c6=O(function(a,e,t,n){return Te(ae(a).connect(ae(e),t>>>0,n>>>0))}),r.wbg.__wbg_disconnect_1f5d0443b0bca9c8=O(function(t){ae(t).disconnect()}),r.wbg.__wbg_outputBuffer_1fc843f5ddfd743b=O(function(t){return Te(ae(t).outputBuffer)}),r.wbg.__wbg_setTransform_041d67e3d6972fd7=function(n,e){ae(n).setTransform(ae(e))},r.wbg.__wbg_bindVertexArrayOES_17e98f43d896f40b=function(n,e){ae(n).bindVertexArrayOES(ae(e))},r.wbg.__wbg_createVertexArrayOES_393e00fa6f931f59=function(n){var e=ae(n).createVertexArrayOES();return g(e)?0:Te(e)},r.wbg.__wbg_seta_6c309b33d9a4fb29=function(n,e){ae(n).a=e},r.wbg.__wbg_setb_378147d7ba767ab1=function(n,e){ae(n).b=e},r.wbg.__wbg_setc_cc36b264b7a1ae60=function(n,e){ae(n).c=e},r.wbg.__wbg_setd_998c5989f5780653=function(n,e){ae(n).d=e},r.wbg.__wbg_sete_42bf2f390f25e536=function(n,e){ae(n).e=e},r.wbg.__wbg_setf_df5aef1469b0c50b=function(n,e){ae(n).f=e},r.wbg.__wbg_deltaY_2722120e563d3160=function(t){return ae(t).deltaY},r.wbg.__wbg_deltaMode_3db3c9c4bedf191d=function(t){return ae(t).deltaMode},r.wbg.__wbg_setbuffer_8c396e74724eda12=function(n,e){ae(n).buffer=ae(e)},r.wbg.__wbg_setloop_1e141edefc26db22=function(n,e){ae(n).loop=0!==e},r.wbg.__wbg_setloopStart_4162b0a533fbc0d5=function(n,e){ae(n).loopStart=e},r.wbg.__wbg_setloopEnd_e81eb72ea2277d88=function(n,e){ae(n).loopEnd=e},r.wbg.__wbg_setonended_f6f3e04e13c07db4=function(n,e){ae(n).onended=ae(e)},r.wbg.__wbg_start_f5e66921db9afaee=O(function(t){ae(t).start()}),r.wbg.__wbg_start_0237410bb20c6213=O(function(a,e,t){ae(a).start(e,t)}),r.wbg.__wbg_stop_5765c7cac3ec1564=O(function(n,e){ae(n).stop(e)}),r.wbg.__wbg_instanceof_HtmlFormElement_26283084b0956b17=function(t){return ae(t)instanceof HTMLFormElement},r.wbg.__wbg_submit_121b8e3bd960f229=O(function(t){ae(t).submit()}),r.wbg.__wbg_pointerId_602db5c989b38cc0=function(t){return ae(t).pointerId},r.wbg.__wbg_instanceof_Response_f52c65c389890639=function(t){return ae(t)instanceof Response},r.wbg.__wbg_arrayBuffer_0ba17dfaad804b6f=O(function(t){return Te(ae(t).arrayBuffer())}),r.wbg.__wbg_key_d9b602f48baca7bc=function(t,e){var n=_(ae(e).key,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n},r.wbg.__wbg_code_cbf76ad384ae1179=function(t,e){var n=_(ae(e).code,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n},r.wbg.__wbg_now_7628760b7b640632=function(t){return ae(t).now()},r.wbg.__wbg_newwithstrandinit_11debb554792e043=O(function(a,e,t){return Te(new Request(i(a,e),ae(t)))}),r.wbg.__wbg_setonaudioprocess_66d0b1fa0dd39606=function(n,e){ae(n).onaudioprocess=ae(e)},r.wbg.__wbg_body_c8cb19d760637268=function(n){var e=ae(n).body;return g(e)?0:Te(e)},r.wbg.__wbg_createElement_99351c8bf0efac6e=O(function(a,e,t){return Te(ae(a).createElement(i(e,t)))}),r.wbg.__wbg_createElementNS_a7ef126eff5022c2=O(function(a,e,t,n,_){return Te(ae(a).createElementNS(0===e?void 0:i(e,t),i(n,_)))}),r.wbg.__wbg_setid_f33ce4e43b43f57a=function(a,e,t){ae(a).id=i(e,t)},r.wbg.__wbg_clientWidth_2c84a7ebc75dd4f0=function(t){return ae(t).clientWidth},r.wbg.__wbg_clientHeight_f56dfe03d1c42f3e=function(t){return ae(t).clientHeight},r.wbg.__wbg_setinnerHTML_79084edd97462c07=function(a,e,t){ae(a).innerHTML=i(e,t)},r.wbg.__wbg_querySelector_155b00165b78a12f=O(function(a,e,t){var n=ae(a).querySelector(i(e,t));return g(n)?0:Te(n)}),r.wbg.__wbg_releasePointerCapture_4b78cb9c51d4a539=O(function(n,e){ae(n).releasePointerCapture(e)}),r.wbg.__wbg_setAttribute_e71b9086539f06a1=O(function(a,e,t,n,_){ae(a).setAttribute(i(e,t),i(n,_))}),r.wbg.__wbg_setAttributeNS_a66240d5c750d0fa=O(function(_,e,t,n,r,d,a){ae(_).setAttributeNS(0===e?void 0:i(e,t),i(n,r),i(d,a))}),r.wbg.__wbg_setPointerCapture_54ee987062d42d03=O(function(n,e){ae(n).setPointerCapture(e)}),r.wbg.__wbg_remove_0639495587b1aaeb=function(t){ae(t).remove()},r.wbg.__wbg_instanceof_WebGlRenderingContext_ef4e51c6e4133d85=function(t){return ae(t)instanceof WebGLRenderingContext},r.wbg.__wbg_drawingBufferWidth_fab3e20dd1ba5d4e=function(t){return ae(t).drawingBufferWidth},r.wbg.__wbg_drawingBufferHeight_31bc93d4dc3a0dcc=function(t){return ae(t).drawingBufferHeight},r.wbg.__wbg_bufferData_d47c8467e443121d=function(a,e,t,n,_){ae(a).bufferData(e>>>0,R(t,n),_>>>0)},r.wbg.__wbg_texImage2D_a4011abffe0229fb=O(function(i,e,t,n,r,d,a,o,b,s,l){ae(i).texImage2D(e>>>0,t,n,r,d,a,o>>>0,b>>>0,0===s?void 0:R(s,l))}),r.wbg.__wbg_uniform1fv_cd9d2dea0641919d=function(a,e,t,n){ae(a).uniform1fv(ae(e),E(t,n))},r.wbg.__wbg_uniform4fv_24ef46675c137552=function(a,e,t,n){ae(a).uniform4fv(ae(e),E(t,n))},r.wbg.__wbg_uniformMatrix3fv_a0a261980af4587d=function(a,e,t,n,_){ae(a).uniformMatrix3fv(ae(e),0!==t,E(n,_))},r.wbg.__wbg_uniformMatrix4fv_088c96db8ee28c1d=function(a,e,t,n,_){ae(a).uniformMatrix4fv(ae(e),0!==t,E(n,_))},r.wbg.__wbg_activeTexture_a51ec6273de88bc6=function(n,e){ae(n).activeTexture(e>>>0)},r.wbg.__wbg_attachShader_0dd248f6ab98fcf2=function(a,e,t){ae(a).attachShader(ae(e),ae(t))},r.wbg.__wbg_bindBuffer_1ceb83e9674e812a=function(a,e,t){ae(a).bindBuffer(e>>>0,ae(t))},r.wbg.__wbg_bindFramebuffer_d8f98d1a7f6d67d1=function(a,e,t){ae(a).bindFramebuffer(e>>>0,ae(t))},r.wbg.__wbg_bindRenderbuffer_1ba9206d5f319ae1=function(a,e,t){ae(a).bindRenderbuffer(e>>>0,ae(t))},r.wbg.__wbg_bindTexture_6121e6db3f879582=function(a,e,t){ae(a).bindTexture(e>>>0,ae(t))},r.wbg.__wbg_blendFunc_34a6bb31770822c5=function(a,e,t){ae(a).blendFunc(e>>>0,t>>>0)},r.wbg.__wbg_clear_f6b2dd48aeed2752=function(n,e){ae(n).clear(e>>>0)},r.wbg.__wbg_clearColor_89f7819aa9f80129=function(a,e,t,n,_){ae(a).clearColor(e,t,n,_)},r.wbg.__wbg_colorMask_88ebee15531b14ef=function(a,e,t,n,_){ae(a).colorMask(0!==e,0!==t,0!==n,0!==_)},r.wbg.__wbg_compileShader_28bdbafe4445d24b=function(n,e){ae(n).compileShader(ae(e))},r.wbg.__wbg_createBuffer_acedc3831832a280=function(n){var e=ae(n).createBuffer();return g(e)?0:Te(e)},r.wbg.__wbg_createProgram_7e2f44b7b74694d4=function(n){var e=ae(n).createProgram();return g(e)?0:Te(e)},r.wbg.__wbg_createShader_64c474f1d1d0c1f8=function(a,e){var t=ae(a).createShader(e>>>0);return g(t)?0:Te(t)},r.wbg.__wbg_createTexture_0a156dab1efc3499=function(n){var e=ae(n).createTexture();return g(e)?0:Te(e)},r.wbg.__wbg_disable_5b9c6f74d5efd3a5=function(n,e){ae(n).disable(e>>>0)},r.wbg.__wbg_disableVertexAttribArray_ba8f39ecd28c601b=function(n,e){ae(n).disableVertexAttribArray(e>>>0)},r.wbg.__wbg_drawElements_3eb5ba8a511ce0f0=function(a,e,t,n,_){ae(a).drawElements(e>>>0,t,n>>>0,_)},r.wbg.__wbg_enable_87f39f6396535e1f=function(n,e){ae(n).enable(e>>>0)},r.wbg.__wbg_enableVertexAttribArray_f29c8dde9c8c5cf5=function(n,e){ae(n).enableVertexAttribArray(e>>>0)},r.wbg.__wbg_getAttribLocation_ba61f837da80e249=function(a,e,t,n){return ae(a).getAttribLocation(ae(e),i(t,n))},r.wbg.__wbg_getExtension_c6863c255090d82f=O(function(a,e,t){var n=ae(a).getExtension(i(e,t));return g(n)?0:Te(n)}),r.wbg.__wbg_getParameter_ff687a6ea303e551=O(function(n,e){return Te(ae(n).getParameter(e>>>0))}),r.wbg.__wbg_getProgramInfoLog_aacf06c959070653=function(t,e,n){var r=ae(e).getProgramInfoLog(ae(n)),i=g(r)?0:_(r,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=i},r.wbg.__wbg_getProgramParameter_a89bf14502c109f7=function(a,e,t){return Te(ae(a).getProgramParameter(ae(e),t>>>0))},r.wbg.__wbg_getShaderInfoLog_1eb885f2468e2429=function(t,e,n){var r=ae(e).getShaderInfoLog(ae(n)),i=g(r)?0:_(r,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=i},r.wbg.__wbg_getUniformLocation_ca853de4f2f9270d=function(a,e,t,n){var _=ae(a).getUniformLocation(ae(e),i(t,n));return g(_)?0:Te(_)},r.wbg.__wbg_linkProgram_46a36cb158f10676=function(n,e){ae(n).linkProgram(ae(e))},r.wbg.__wbg_pixelStorei_31f6dc244bf4cd5b=function(a,e,t){ae(a).pixelStorei(e>>>0,t)},r.wbg.__wbg_shaderSource_700ae72fca39850d=function(a,e,t,n){ae(a).shaderSource(ae(e),i(t,n))},r.wbg.__wbg_stencilFunc_cc85d77d2098446b=function(a,e,t,n){ae(a).stencilFunc(e>>>0,t,n>>>0)},r.wbg.__wbg_stencilMask_ed2cded2c2b0b72c=function(n,e){ae(n).stencilMask(e>>>0)},r.wbg.__wbg_stencilOp_1b3529546c1fdcc2=function(a,e,t,n){ae(a).stencilOp(e>>>0,t>>>0,n>>>0)},r.wbg.__wbg_texParameteri_e45f3977eb998137=function(a,e,t,n){ae(a).texParameteri(e>>>0,t>>>0,n)},r.wbg.__wbg_uniform1f_3eb09312a513b94a=function(a,e,t){ae(a).uniform1f(ae(e),t)},r.wbg.__wbg_uniform1i_e76b668973ae0655=function(a,e,t){ae(a).uniform1i(ae(e),t)},r.wbg.__wbg_useProgram_d63a57db0571e803=function(n,e){ae(n).useProgram(ae(e))},r.wbg.__wbg_vertexAttribPointer_b4b829a4f5a3778e=function(_,e,t,n,r,i,a){ae(_).vertexAttribPointer(e>>>0,t,n>>>0,0!==r,i,a)},r.wbg.__wbg_viewport_54305c74f5668b33=function(a,e,t,n,_){ae(a).viewport(e,t,n,_)},r.wbg.__wbg_debug_146b863607d79e9d=function(t){console.debug(ae(t))},r.wbg.__wbg_error_e325755affc8634b=function(t){console.error(ae(t))},r.wbg.__wbg_info_d60054f760c729cc=function(t){console.info(ae(t))},r.wbg.__wbg_log_f2e13ca55da8bad3=function(t){console.log(ae(t))},r.wbg.__wbg_warn_9e92ccdc67085e1b=function(t){console.warn(ae(t))},r.wbg.__wbg_style_9b773f0fc441eddc=function(t){return Te(ae(t).style)},r.wbg.__wbg_newwithbuffersourcesequenceandoptions_03294a518a0bd99a=O(function(n,e){return Te(new Blob(ae(n),ae(e)))}),r.wbg.__wbg_currentTarget_b545d0d803b3a62e=function(n){var e=ae(n).currentTarget;return g(e)?0:Te(e)},r.wbg.__wbg_preventDefault_9aab6c264e5df3ee=function(t){ae(t).preventDefault()},r.wbg.__wbg_addEventListener_6a37bc32387cb66d=O(function(a,e,t,n){ae(a).addEventListener(i(e,t),ae(n))}),r.wbg.__wbg_addEventListener_a422088e686210b5=O(function(a,e,t,n,_){ae(a).addEventListener(i(e,t),ae(n),ae(_))}),r.wbg.__wbg_addEventListener_50b4229556ab0b83=O(function(a,e,t,n,_){ae(a).addEventListener(i(e,t),ae(n),0!==_)}),r.wbg.__wbg_removeEventListener_70dfb387da1982ac=O(function(a,e,t,n){ae(a).removeEventListener(i(e,t),ae(n))}),r.wbg.__wbg_removeEventListener_4448b273b47328f8=O(function(a,e,t,n,_){ae(a).removeEventListener(i(e,t),ae(n),0!==_)}),r.wbg.__wbg_instanceof_HtmlCanvasElement_7bd3ee7838f11fc3=function(t){return ae(t)instanceof HTMLCanvasElement},r.wbg.__wbg_width_0efa4604d41c58c5=function(t){return ae(t).width},r.wbg.__wbg_setwidth_1d0e975feecff3ef=function(n,e){ae(n).width=e>>>0},r.wbg.__wbg_height_aa24e3fef658c4a8=function(t){return ae(t).height},r.wbg.__wbg_setheight_7758ee3ff5c65474=function(n,e){ae(n).height=e>>>0},r.wbg.__wbg_getContext_3db9399e6dc524ff=O(function(a,e,t){var n=ae(a).getContext(i(e,t));return g(n)?0:Te(n)}),r.wbg.__wbg_getContext_93be69215ea9dbbf=O(function(a,e,t,n){var _=ae(a).getContext(i(e,t),ae(n));return g(_)?0:Te(_)}),r.wbg.__wbg_setsrc_ca894d724570195d=function(a,e,t){ae(a).src=i(e,t)},r.wbg.__wbg_new_1f2ded01c889cd38=O(function(){return Te(new Image)}),r.wbg.__wbg_newwithwidthandheight_0f3a13502ca94c49=O(function(n,e){return Te(new Image(n>>>0,e>>>0))}),r.wbg.__wbg_data_55e064fddf34cf3b=function(t,e){var n=function(a,e){const t=e(1*a.length);return c().set(a,t/1),Ne=a.length,t}(ae(e).data,Se.__wbindgen_malloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n},r.wbg.__wbg_instanceof_CanvasRenderingContext2d_1d38418d1d6c8b34=function(t){return ae(t)instanceof CanvasRenderingContext2D},r.wbg.__wbg_setglobalAlpha_b4134dbd884b4d37=function(n,e){ae(n).globalAlpha=e},r.wbg.__wbg_setglobalCompositeOperation_557a59a0ccf673d6=O(function(a,e,t){ae(a).globalCompositeOperation=i(e,t)}),r.wbg.__wbg_setstrokeStyle_7f507e0d838e3dcf=function(n,e){ae(n).strokeStyle=ae(e)},r.wbg.__wbg_setfillStyle_bbe97cb93eb1b55c=function(n,e){ae(n).fillStyle=ae(e)},r.wbg.__wbg_setfilter_df75805bea0a8415=function(a,e,t){ae(a).filter=i(e,t)},r.wbg.__wbg_setlineWidth_61de9d1eb4e9f8a6=function(n,e){ae(n).lineWidth=e},r.wbg.__wbg_setlineCap_bff1a8858c9f067e=function(a,e,t){ae(a).lineCap=i(e,t)},r.wbg.__wbg_setlineJoin_de47815c918d7874=function(a,e,t){ae(a).lineJoin=i(e,t)},r.wbg.__wbg_setmiterLimit_84b1a1dbddcd456a=function(n,e){ae(n).miterLimit=e},r.wbg.__wbg_drawImage_b8dec9034bf1d116=O(function(a,e,t,n){ae(a).drawImage(ae(e),t,n)}),r.wbg.__wbg_drawImage_801ad094f4734689=O(function(a,e,t,n){ae(a).drawImage(ae(e),t,n)}),r.wbg.__wbg_fill_6c721ab8eec90f70=function(n,e){ae(n).fill(ae(e))},r.wbg.__wbg_stroke_e25cf47e0d9a36c3=function(n,e){ae(n).stroke(ae(e))},r.wbg.__wbg_createPattern_006b6402db95df36=O(function(a,e,t,n){var _=ae(a).createPattern(ae(e),i(t,n));return g(_)?0:Te(_)}),r.wbg.__wbg_getImageData_dd3caac873bf461f=O(function(a,e,t,n,_){return Te(ae(a).getImageData(e,t,n,_))}),r.wbg.__wbg_clearRect_6af85454d06df5fa=function(a,e,t,n,_){ae(a).clearRect(e,t,n,_)},r.wbg.__wbg_fillRect_c79d1b386c04efed=function(a,e,t,n,_){ae(a).fillRect(e,t,n,_)},r.wbg.__wbg_resetTransform_f78edb82fd1f7239=O(function(t){ae(t).resetTransform()}),r.wbg.__wbg_setTransform_5f5f19301b76a8d6=O(function(_,e,t,n,r,i,a){ae(_).setTransform(e,t,n,r,i,a)}),r.wbg.__wbg_get_5fa3f454aa041e6e=function(n,e){return Te(ae(n)[e>>>0])},r.wbg.__wbg_next_373211328013f949=O(function(t){return Te(ae(t).next())}),r.wbg.__wbg_done_49c598117f977077=function(t){return ae(t).done},r.wbg.__wbg_value_c9ae6368b110a068=function(t){return Te(ae(t).value)},r.wbg.__wbg_get_85e0a3b459845fe2=O(function(n,e){return Te(Reflect.get(ae(n),ae(e)))}),r.wbg.__wbg_call_951bd0c6d815d6f1=O(function(n,e){return Te(ae(n).call(ae(e)))}),r.wbg.__wbg_new_9dff83a08f5994f3=function(){return Te([])},r.wbg.__wbg_isArray_cf56c8363b1b35d9=function(t){return Array.isArray(ae(t))},r.wbg.__wbg_of_3a4bb382824dd437=function(n,e){return Te(Array.of(ae(n),ae(e)))},r.wbg.__wbg_push_3ddd8187ff2ff82d=function(n,e){return ae(n).push(ae(e))},r.wbg.__wbg_instanceof_ArrayBuffer_3a0fa134e6809d57=function(t){return ae(t)instanceof ArrayBuffer},r.wbg.__wbg_new_24c0ca5f23ee2dd9=function(t){return Te(new ArrayBuffer(t>>>0))},r.wbg.__wbg_slice_a498e5bb17f253f3=function(a,e,t){return Te(ae(a).slice(e>>>0,t>>>0))},r.wbg.__wbg_values_f28e313e2260a03a=function(t){return Te(ae(t).values())},r.wbg.__wbg_newnoargs_7c6bd521992b4022=function(n,e){return Te(new Function(i(n,e)))},r.wbg.__wbg_apply_4e68243803368d89=O(function(a,e,t){return Te(ae(a).apply(ae(e),ae(t)))}),r.wbg.__wbg_call_bf745b1758bb6693=O(function(a,e,t){return Te(ae(a).call(ae(e),ae(t)))}),r.wbg.__wbg_getTime_cf686ab22ab03a3e=function(t){return ae(t).getTime()},r.wbg.__wbg_getTimezoneOffset_b9f3c4664b1a35ae=function(t){return ae(t).getTimezoneOffset()},r.wbg.__wbg_new0_abd359df4aeb5b55=function(){return Te(new Date)},r.wbg.__wbg_instanceof_Object_cdaa71ad2ca2f4c5=function(t){return ae(t)instanceof Object},r.wbg.__wbg_entries_7144a7309b22df64=function(t){return Te(Object.entries(ae(t)))},r.wbg.__wbg_fromEntries_cc1186a09f1ec7f2=O(function(t){return Te(Object.fromEntries(ae(t)))}),r.wbg.__wbg_is_049b1aece40b5301=function(n,e){return Object.is(ae(n),ae(e))},r.wbg.__wbg_new_ba07d0daa0e4677e=function(){return Te({})},r.wbg.__wbg_resolve_6e61e640925a0db9=function(t){return Te(Promise.resolve(ae(t)))},r.wbg.__wbg_then_dd3785597974798a=function(n,e){return Te(ae(n).then(ae(e)))},r.wbg.__wbg_then_0f957e0f4c3e537a=function(a,e,t){return Te(ae(a).then(ae(e),ae(t)))},r.wbg.__wbg_self_6baf3a3aa7b63415=O(function(){return Te(self.self)}),r.wbg.__wbg_window_63fc4027b66c265b=O(function(){return Te(window.window)}),r.wbg.__wbg_globalThis_513fb247e8e4e6d2=O(function(){return Te(globalThis.globalThis)}),r.wbg.__wbg_global_b87245cd886d7113=O(function(){return Te(a.g.global)}),r.wbg.__wbg_buffer_3f12a1c608c6d04e=function(t){return Te(ae(t).buffer)},r.wbg.__wbg_newwithbyteoffsetandlength_4c51342f87299c5a=function(a,e,t){return Te(new Uint8Array(ae(a),e>>>0,t>>>0))},r.wbg.__wbg_length_c645e7c02233b440=function(t){return ae(t).length},r.wbg.__wbg_new_c6c0228e6d22a2f9=function(t){return Te(new Uint8Array(ae(t)))},r.wbg.__wbg_set_b91afac9fd216d99=function(a,e,t){ae(a).set(ae(e),t>>>0)},r.wbg.__wbg_fill_f49407f577541856=function(a,e,t,n){return Te(ae(a).fill(e,t>>>0,n>>>0))},r.wbg.__wbg_buffer_c385539cb4060297=function(t){return Te(ae(t).buffer)},r.wbg.__wbg_byteLength_11e6bdc2fac53a3c=function(t){return ae(t).byteLength},r.wbg.__wbg_byteOffset_5db4e07752c85395=function(t){return ae(t).byteOffset},r.wbg.__wbg_ownKeys_d44c25f33e28bfab=O(function(t){return Te(Reflect.ownKeys(ae(t)))}),r.wbg.__wbg_set_9bdd413385146137=O(function(a,e,t){return Reflect.set(ae(a),ae(e),ae(t))}),r.wbg.__wbindgen_number_get=function(t,e){const n=ae(e);var a="number"==typeof n?n:void 0;(null!==Oe&&Oe.buffer===Se.memory.buffer||(Oe=new Float64Array(Se.memory.buffer)),Oe)[t/8+1]=g(a)?0:a,l()[t/4+0]=!g(a)},r.wbg.__wbindgen_string_get=function(t,e){const n=ae(e);var r="string"==typeof n?n:void 0,i=g(r)?0:_(r,Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=i},r.wbg.__wbindgen_boolean_get=function(n){const e=ae(n);return"boolean"==typeof e?e?1:0:2},r.wbg.__wbindgen_debug_string=function(t,e){var n=_(p(ae(e)),Se.__wbindgen_malloc,Se.__wbindgen_realloc),a=Ne;l()[t/4+1]=a,l()[t/4+0]=n},r.wbg.__wbindgen_throw=function(n,e){throw new Error(i(n,e))},r.wbg.__wbindgen_rethrow=function(t){throw Pe(t)},r.wbg.__wbindgen_memory=function(){return Te(Se.memory)},r.wbg.__wbindgen_closure_wrapper720=function(a,e){return Te(n(a,e,148,h))},r.wbg.__wbindgen_closure_wrapper722=function(a,e){return Te(n(a,e,148,y))},r.wbg.__wbindgen_closure_wrapper724=function(a,e){return Te(n(a,e,148,v))},r.wbg.__wbindgen_closure_wrapper726=function(a,e){return Te(n(a,e,148,x))},r.wbg.__wbindgen_closure_wrapper728=function(a,e){return Te(n(a,e,148,k))},r.wbg.__wbindgen_closure_wrapper730=function(a,e){return Te(n(a,e,148,C))},r.wbg.__wbindgen_closure_wrapper732=function(a,e){return Te(n(a,e,148,I))},r.wbg.__wbindgen_closure_wrapper734=function(a,e){return Te(n(a,e,148,S))},r.wbg.__wbindgen_closure_wrapper1332=function(a,e){return Te(n(a,e,541,F))},("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:d,module:s}=await async function(a,e){if("function"==typeof Response&&a instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(a,e)}catch(e){if("application/wasm"==a.headers.get("Content-Type"))throw e;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",e)}const t=await a.arrayBuffer();return await WebAssembly.instantiate(t,e)}{const t=await WebAssembly.instantiate(a,e);return t instanceof WebAssembly.Instance?{instance:t,module:a}:t}}(await t,r);return Se=d.exports,e.__wbindgen_wasm_module=s,Se};let B=null;class De{constructor(n){if(this.__mimetypes=[],this.__named_mimetypes={},n)for(let e=0;e<n.length;e++)this.install(n[e])}install(n){const e=this.__mimetypes.length;this.__mimetypes.push(n),this.__named_mimetypes[n.type]=n,this[n.type]=n,this[e]=n}item(t){return this.__mimetypes[t]}namedItem(t){return this.__named_mimetypes[t]}get length(){return this.__mimetypes.length}[Symbol.iterator](){return this.__mimetypes[Symbol.iterator]()}}class V extends De{constructor(a,e,t,n){super(n),this.name=a,this.description=e,this.filename=t}install(t){super.install(t)}[Symbol.iterator](){return super[Symbol.iterator]()}}class q{constructor(n){this.__plugins=[],this.__named_plugins={};for(let e=0;e<n.length;e++)this.install(n[e])}install(n){const e=this.__plugins.length;this.__plugins.push(n),this.__named_plugins[n.name]=n,this[n.name]=n,this[e]=n}item(t){return this.__plugins[t]}namedItem(t){return this.__named_plugins[t]}get length(){return this.__plugins.length}}const H=new V("Shockwave Flash","Shockwave Flash 32.0 r0","ruffle.js",null);H.install({type:"application/futuresplash",description:"Shockwave Flash",suffixes:"spl",enabledPlugin:H}),H.install({type:"application/x-shockwave-flash",description:"Shockwave Flash",suffixes:"swf",enabledPlugin:H}),H.install({type:"application/x-shockwave-flash2-preview",description:"Shockwave Flash",suffixes:"swf",enabledPlugin:H}),H.install({type:"application/vnd.adobe.flash-movie",description:"Shockwave Flash",suffixes:"swf",enabledPlugin:H});const z=document.createElement("template");z.innerHTML="\n <style>\n :host {\n display: inline-block;\n /* Default width/height; this will get overridden by user styles/attributes */\n width: 550px;\n height: 400px;\n font-family: Arial, sans-serif;\n letter-spacing: 0.4px;\n touch-action: none;\n user-select: none;\n -webkit-user-select: none;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n }\n\n /* All of these use the dimensions specified by the embed */\n #container,\n #container canvas,\n #play_button,\n #unmute_overlay,\n #unmute_overlay .background,\n #panic,\n #message_overlay {\n width: inherit;\n height: inherit;\n }\n\n #container {\n position: relative;\n overflow: hidden;\n }\n\n #play_button,\n #unmute_overlay {\n position: absolute;\n cursor: pointer;\n display: none;\n }\n\n #unmute_overlay .background {\n position: absolute;\n background-color: #000;\n opacity: 0.7;\n }\n\n #play_button .icon,\n #unmute_overlay .icon {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50%;\n height: 50%;\n max-width: 384px;\n max-height: 384px;\n transform: translate(-50%, -50%);\n opacity: 0.8;\n }\n\n #play_button:hover .icon,\n #unmute_overlay:hover .icon {\n opacity: 1;\n }\n\n #panic {\n position: absolute;\n font-size: 20px;\n text-align: center;\n /* Inverted colours from play button! */\n background: linear-gradient(180deg, rgba(253,58,64,1) 0%, rgba(253,161,56,1) 100%);\n color: #FFF;\n }\n\n #panic a {\n color: #37528C;\n font-weight: bold;\n }\n\n #panic > div {\n position: absolute;\n }\n\n #panic-title {\n width: inherit;\n top: 30px;\n font-size: 42px;\n font-weight: bold;\n }\n\n #panic-body {\n top: 100px;\n bottom: 80px;\n left: 50px;\n right: 50px;\n }\n\n #panic-body textarea {\n width: 100%;\n height: 100%;\n }\n\n #panic-footer {\n bottom: 30px;\n width: inherit;\n }\n\n #panic ul {\n margin-top: 35px;\n padding: 0;\n width: inherit;\n display: flex;\n list-style-type: none;\n justify-content: center;\n align-items: center;\n }\n\n #panic li {\n padding: 10px 50px;\n }\n\n #message_overlay {\n position: absolute;\n background-color: #37528C;\n color: #FFAD33;\n opacity: 1.0;\n z-index: 2;\n text-align: center;\n }\n\n #message_overlay .message {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n padding: 20px;\n transform: translate(-50%, -50%);\n }\n\n #continue-btn {\n cursor: pointer;\n background-color: #37528C;\n color: #FFAD33;\n border: 2px solid #FFAD33;\n font-weight: bold;\n font-size: 20px;\n border-radius: 20px;\n padding: 10px;\n }\n\n #continue-btn:hover {\n background-color: rgba(255, 255, 255, 0.3);\n }\n\n #right_click_menu {\n color: #FFAD33;\n background-color: #37528c;\n border-radius: 5px;\n box-shadow: 0px 5px 15px -5px #000;\n position: absolute;\n font-size: 16px;\n text-align: left;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n #right_click_menu .menu_item {\n padding: 5px 10px;\n }\n\n #right_click_menu .menu_separator {\n padding: 5px 5px;\n }\n\n #right_click_menu .active {\n cursor: pointer;\n color: #FFAD33;\n }\n\n #right_click_menu .disabled {\n cursor: default;\n color: #94672F;\n }\n\n #right_click_menu .active:hover {\n background-color: #184778;\n }\n\n #right_click_menu hr {\n color: #FFAD33;\n }\n\n #right_click_menu > :first-child {\n border-top-right-radius: 5px;\n border-top-left-radius: 5px;\n }\n\n #right_click_menu > :last-child {\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n </style>\n <style id=\"dynamic_styles\"></style>\n\n <div id=\"container\">\n <div id=\"play_button\"><div class=\"icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid\" viewBox=\"0 0 250 250\" style=\"width:100%;height:100%;\"><defs><linearGradient id=\"a\" gradientUnits=\"userSpaceOnUse\" x1=\"125\" y1=\"0\" x2=\"125\" y2=\"250\" spreadMethod=\"pad\"><stop offset=\"0%\" stop-color=\"#FDA138\"/><stop offset=\"100%\" stop-color=\"#FD3A40\"/></linearGradient><g id=\"b\"><path fill=\"url(#a)\" d=\"M250 125q0-52-37-88-36-37-88-37T37 37Q0 73 0 125t37 88q36 37 88 37t88-37q37-36 37-88M87 195V55l100 70-100 70z\"/><path fill=\"#FFF\" d=\"M87 55v140l100-70L87 55z\"/></g></defs><use xlink:href=\"#b\"/></svg></div></div>\n <div id=\"unmute_overlay\"><div class=\"background\"></div><div class=\"icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid\" viewBox=\"0 0 512 584\" style=\"width:100%;height:100%;scale:0.8;\"><path fill=\"#FFF\" stroke=\"#FFF\" d=\"m457.941 256 47.029-47.029c9.372-9.373 9.372-24.568 0-33.941-9.373-9.373-24.568-9.373-33.941 0l-47.029 47.029-47.029-47.029c-9.373-9.373-24.568-9.373-33.941 0-9.372 9.373-9.372 24.568 0 33.941l47.029 47.029-47.029 47.029c-9.372 9.373-9.372 24.568 0 33.941 4.686 4.687 10.827 7.03 16.97 7.03s12.284-2.343 16.971-7.029l47.029-47.03 47.029 47.029c4.687 4.687 10.828 7.03 16.971 7.03s12.284-2.343 16.971-7.029c9.372-9.373 9.372-24.568 0-33.941z\"/><path fill=\"#FFF\" stroke=\"#FFF\" d=\"m99 160h-55c-24.301 0-44 19.699-44 44v104c0 24.301 19.699 44 44 44h55c2.761 0 5-2.239 5-5v-182c0-2.761-2.239-5-5-5z\"/><path fill=\"#FFF\" stroke=\"#FFF\" d=\"m280 56h-24c-5.269 0-10.392 1.734-14.578 4.935l-103.459 79.116c-1.237.946-1.963 2.414-1.963 3.972v223.955c0 1.557.726 3.026 1.963 3.972l103.459 79.115c4.186 3.201 9.309 4.936 14.579 4.936h23.999c13.255 0 24-10.745 24-24v-352.001c0-13.255-10.745-24-24-24z\"/><text x=\"256\" y=\"560\" text-anchor=\"middle\" style=\"font-size:60px;fill:#FFF;stroke:#FFF;\">Click to unmute</text></svg></div></div>\n </div>\n\n <ul id=\"right_click_menu\" style=\"display: none\"></ul>\n";const J={};var G,Ve,qe,Ue;!function(t){t.On="on",t.Off="off",t.Auto="auto"}(G||(G={})),function(t){t.Off="off",t.Fullscreen="fullscreen",t.On="on"}(Ve||(Ve={})),function(t){t.Visible="visible",t.Hidden="hidden"}(qe||(qe={})),function(t){t.Error="error",t.Warn="warn",t.Info="info",t.Debug="debug",t.Trace="trace"}(Ue||(Ue={}));var ze=function(_,e,d,t){return new(d||(d=Promise))(function(n,r){function i(n){try{o(t.next(n))}catch(t){r(t)}}function a(n){try{o(t.throw(n))}catch(t){r(t)}}function o(_){var r;_.done?n(_.value):(r=_.value,r instanceof d?r:new d(function(t){t(r)})).then(i,a)}o((t=t.apply(_,e||[])).next())})};const ee="application/x-shockwave-flash",te="application/futuresplash",ne="application/x-shockwave-flash2-preview",re="application/vnd.adobe.flash-movie",ie="https://ruffle.rs";var oe;!function(t){t[t.Unknown=0]="Unknown",t[t.FileProtocol=1]="FileProtocol",t[t.JavascriptConfiguration=2]="JavascriptConfiguration",t[t.JavascriptConflict=3]="JavascriptConflict",t[t.WasmCors=4]="WasmCors",t[t.WasmMimeType=5]="WasmMimeType",t[t.WasmNotFound=6]="WasmNotFound"}(oe||(oe={}));class He extends HTMLElement{constructor(){return super(),this.panicked=!1,this.config={},this.shadow=this.attachShadow({mode:"open"}),this.shadow.appendChild(z.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.playButtonClicked.bind(this)),this.unmuteOverlay=this.shadow.getElementById("unmute_overlay"),this.unmuteOverlay.addEventListener("click",this.unmuteOverlayClicked.bind(this)),this.rightClickMenu=this.shadow.getElementById("right_click_menu"),this.addEventListener("contextmenu",this.openRightClickMenu.bind(this)),window.addEventListener("click",this.hideRightClickMenu.bind(this)),this.instance=null,this.allowScriptAccess=!1,this._trace_observer=null,this.ruffleConstructor=L(),this}connectedCallback(){this.updateStyles()}static get observedAttributes(){return["width","height"]}attributeChangedCallback(t){"width"!==t&&"height"!==t||this.updateStyles()}disconnectedCallback(){this.instance&&(this.instance.destroy(),this.instance=null,console.log("Ruffle instance destroyed."))}updateStyles(){if(this.dynamicStyles.sheet){if(this.dynamicStyles.sheet.rules)for(let t=0;t<this.dynamicStyles.sheet.rules.length;t++)this.dynamicStyles.sheet.deleteRule(t);const n=this.attributes.getNamedItem("width");if(null!=n){const e=He.htmlDimensionToCssDimension(n.value);null!==e&&this.dynamicStyles.sheet.insertRule(`:host { width: ${e}; }`)}const a=this.attributes.getNamedItem("height");if(null!=a){const t=He.htmlDimensionToCssDimension(a.value);null!==t&&this.dynamicStyles.sheet.insertRule(`:host { height: ${t}; }`)}}}isUnusedFallbackObject(){let n=this.parentNode;const a=function(n){const e=J[n];return void 0===e?null:{internalName:n,name:e.name,class:e.class}}("ruffle-object");if(null!==a)for(;n!=document&&null!=n;){if(n.nodeName===a.name)return!0;n=n.parentNode}return!1}ensureFreshInstance(a){var n;return ze(this,void 0,void 0,function*(){this.instance&&(this.instance.destroy(),this.instance=null,console.log("Ruffle instance destroyed."));const e=yield this.ruffleConstructor.catch(n=>{if(console.error(`Serious error loading Ruffle: ${n}`),"file:"===window.location.protocol)n.ruffleIndexError=oe.FileProtocol;else if(!n.ruffleIsExtension){n.ruffleIndexError=oe.WasmNotFound;const e=(n.message+"").toLowerCase();e.includes("mime")?n.ruffleIndexError=oe.WasmMimeType:e.includes("networkerror")||e.includes("failed to fetch")?n.ruffleIndexError=oe.WasmCors:e.includes("magic")||"CompileError"!==n.name&&"TypeError"!==n.name||(n.ruffleIndexError=oe.JavascriptConflict)}throw this.panic(n),n});this.instance=new e(this.container,this,this.allowScriptAccess,a),console.log("New Ruffle instance created."),"running"!==this.audioState()&&(this.container.style.visibility="hidden",yield new Promise(t=>{window.setTimeout(()=>{t()},200)}),this.container.style.visibility="");const t=Object.values(Object(G)).includes(a.autoplay)?a.autoplay:G.Auto,_=Object.values(Object(qe)).includes(a.unmuteOverlay)?a.unmuteOverlay:qe.Visible;if(!(t==G.On||t==G.Auto&&"running"===this.audioState()))this.playButton.style.display="block";else if(this.play(),"running"!==this.audioState()){this.unmuteOverlay.style.display="block",this.unmuteOverlay.childNodes.forEach(t=>{"style"in t&&(t.style.visibility=_==qe.Visible?"":"hidden")});const t=null===(n=this.instance)||void 0===n?void 0:n.audio_context();t&&(t.onstatechange=()=>{"running"===t.state&&this.unmuteOverlayClicked(),t.onstatechange=null})}})}load(a){var _,i;return ze(this,void 0,void 0,function*(){let t="";switch(typeof a){case"string":a={url:a};break;case"object":null===a?t="Argument 0 must be a string or object":"url"in a||"data"in a?"url"in a&&"string"!=typeof a.url&&(t="`url` must be a string"):t="Argument 0 must contain a `url` or `data` key";break;default:t="Argument 0 must be a string or object";}if(0<t.length){const n=new TypeError(t);throw n.ruffleIndexError=oe.JavascriptConfiguration,this.panic(n),n}try{if(this.isConnected&&!this.isUnusedFallbackObject()){const e=Object.assign(Object.assign(Object.assign({},null!==(i=null===(_=window.RufflePlayer)||void 0===_?void 0:_.config)&&void 0!==i?i:{}),this.config),a);if(e.backgroundColor&&(this.container.style.backgroundColor=e.backgroundColor),yield this.ensureFreshInstance(e),"url"in a){console.log(`Loading SWF file ${a.url}`);try{this.swfUrl=new URL(a.url,document.location.href).href}catch(e){this.swfUrl=a.url}const e=Object.assign(Object.assign({},D(a.url.substring(a.url.indexOf("?")))),D(a.parameters));this.instance.stream_from(a.url,e)}else"data"in a&&(console.log("Loading SWF data"),this.instance.load_data(new Uint8Array(a.data),D(a.parameters)))}else console.warn("Ignoring attempt to play a disconnected or suspended Ruffle element")}catch(t){throw console.error(`Serious error occurred loading SWF file: ${t}`),t}})}playButtonClicked(){this.play()}play(){this.instance&&(this.instance.play(),this.playButton&&(this.playButton.style.display="none"))}get fullscreenEnabled(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}get isFullscreen(){return(document.fullscreenElement||document.webkitFullscreenElement)===this}enterFullscreen(){this.requestFullscreen?this.requestFullscreen():this.webkitRequestFullScreen&&this.webkitRequestFullScreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}contextMenuItems(){const t=[];return this.fullscreenEnabled&&(this.isFullscreen?t.push({text:"Exit fullscreen",onClick:this.exitFullscreen.bind(this)}):t.push({text:"Enter fullscreen",onClick:this.enterFullscreen.bind(this)})),t.push({text:"Ruffle nightly 2021-01-25",onClick(){window.open(ie,"_blank")}}),t}openRightClickMenu(a){var e=Math.floor,_=Math.min;for(a.preventDefault();this.rightClickMenu.firstChild;)this.rightClickMenu.removeChild(this.rightClickMenu.firstChild);for(const{text:_,onClick:e}of this.contextMenuItems()){const t=document.createElement("li");t.className="menu_item active",t.textContent=_,t.addEventListener("click",e),this.rightClickMenu.appendChild(t)}this.rightClickMenu.style.left="0",this.rightClickMenu.style.top="0",this.rightClickMenu.style.display="block";const d=this.getBoundingClientRect(),t=a.clientX-d.x,n=a.clientY-d.y,r=d.width-this.rightClickMenu.clientWidth-1,i=d.height-this.rightClickMenu.clientHeight-1;this.rightClickMenu.style.left=e(_(t,r))+"px",this.rightClickMenu.style.top=e(_(n,i))+"px"}hideRightClickMenu(){this.rightClickMenu.style.display="none"}pause(){this.instance&&(this.instance.pause(),this.playButton&&(this.playButton.style.display="block"))}audioState(){if(this.instance){const t=this.instance.audio_context();return t&&t.state||"running"}return"suspended"}unmuteOverlayClicked(){if(this.instance){if("running"!==this.audioState()){const t=this.instance.audio_context();t&&t.resume()}this.unmuteOverlay&&(this.unmuteOverlay.style.display="none")}}copyElement(a){if(a){for(let e=0;e<a.attributes.length;e++){const t=a.attributes[e];if(t.specified){if("title"===t.name&&"Adobe Flash Player"===t.value)continue;try{this.setAttribute(t.name,t.value)}catch(n){console.warn(`Unable to set attribute ${t.name} on Ruffle instance`)}}}for(const e of Array.from(a.children))this.appendChild(e)}}static htmlDimensionToCssDimension(n){if(n){const a=n.match(/^\s*(\d+(\.\d+)?(%)?)/);if(a){let t=a[1];return a[3]||(t+="px"),t}}return null}onCallbackAvailable(a){const e=this.instance;this[a]=(...t)=>null==e?void 0:e.call_exposed_callback(a,t)}set traceObserver(n){var e;null===(e=this.instance)||void 0===e||e.set_trace_observer(n)}panic(_){var e;if(this.panicked)return;if(this.panicked=!0,_ instanceof Error&&("AbortError"===_.name||_.message.includes("AbortError")))return;const d=null!==(e=null==_?void 0:_.ruffleIndexError)&&void 0!==e?e:oe.Unknown,n=Object.assign([],{stackIndex:-1});if(!(n.push("# Error Info\n"),_ instanceof Error))n.push(`Error: ${_}\n`);else if(n.push(`Error name: ${_.name}\n`),n.push(`Error message: ${_.message}\n`),_.stack){const e=n.push(`Error stack:\n\`\`\`\n${_.stack}\n\`\`\`\n`)-1;n.stackIndex=e}n.push("\n# Player Info\n"),n.push(this.debugPlayerInfo()),n.push("\n# Page Info\n"),n.push(`Page URL: ${document.location.href}\n`),this.swfUrl&&n.push(`SWF URL: ${this.swfUrl}\n`),n.push("\n# Browser Info\n"),n.push(`Useragent: ${window.navigator.userAgent}\n`),n.push(`OS: ${window.navigator.platform}\n`),n.push("\n# Ruffle Info\n"),n.push("Version: 0.1.0\n"),n.push("Name: nightly 2021-01-25\n"),n.push("Channel: nightly\n"),n.push("Built: 2021-01-25T01:05:41.178Z\n"),n.push("Commit: 32fd3fb71befbceecbba7c73d08af5ddd0f5a3d0\n");const r=n.join(""),i=`Error on ${document.location.href}`;let o,b,g=`https://github.com/ruffle-rs/ruffle/issues/new?title=${encodeURIComponent(i)}&body=`,f=encodeURIComponent(r);switch(-1<n.stackIndex&&8195<(g+f+"").length&&(n[n.stackIndex]=null,f=encodeURIComponent(n.join(""))),g+=f,d){case oe.FileProtocol:o="\n <p>It appears you are running Ruffle on the \"file:\" protocol.</p>\n <p>This doesn't work as browsers block many features from working for security reasons.</p>\n <p>Instead, we invite you to setup a local server or either use the web demo or the desktop application.</p>\n ",b=`\n <li><a target="_top" href="${ie}/demo">Web Demo</a></li>\n <li><a target="_top" href="https://github.com/ruffle-rs/ruffle/tags">Desktop Application</a></li>\n `;break;case oe.JavascriptConfiguration:o="\n <p>Ruffle has encountered a major issue due to an incorrect JavaScript configuration.</p>\n <p>If you are the server administrator, we invite you to check the error details to find out which parameter is at fault.</p>\n <p>You can also consult the Ruffle wiki for help.</p>\n ",b="\n <li><a target=\"_top\" href=\"https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#javascript-api\">View Ruffle Wiki</a></li>\n <li><a href=\"#\" id=\"panic-view-details\">View Error Details</a></li>\n ";break;case oe.WasmNotFound:o="\n <p>Ruffle failed to load the required \".wasm\" file component.</p>\n <p>If you are the server administrator, please ensure the file has correctly been uploaded.</p>\n <p>If the issue persists, you may need to use the \"publicPath\" setting: please consult the Ruffle wiki for help.</p>\n ",b="\n <li><a target=\"_top\" href=\"https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#configuration-options\">View Ruffle Wiki</a></li>\n <li><a href=\"#\" id=\"panic-view-details\">View Error Details</a></li>\n ";break;case oe.WasmMimeType:o="\n <p>Ruffle has encountered a major issue whilst trying to initialize.</p>\n <p>This web server is not serving \".wasm\" files with the correct MIME type.</p>\n <p>If you are the server administrator, please consult the Ruffle wiki for help.</p>\n ",b="\n <li><a target=\"_top\" href=\"https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#configure-webassembly-mime-type\">View Ruffle Wiki</a></li>\n <li><a href=\"#\" id=\"panic-view-details\">View Error Details</a></li>\n ";break;case oe.WasmCors:o="\n <p>Ruffle failed to load the required \".wasm\" file component.</p>\n <p>Access to fetch has likely been blocked by CORS policy.</p>\n <p>If you are the server administrator, please consult the Ruffle wiki for help.</p>\n ",b="\n <li><a target=\"_top\" href=\"https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#web\">View Ruffle Wiki</a></li>\n <li><a href=\"#\" id=\"panic-view-details\">View Error Details</a></li>\n ";break;case oe.JavascriptConflict:o="\n <p>Ruffle has encountered a major issue whilst trying to initialize.</p>\n <p>It seems like this page uses JavaScript code that conflicts with Ruffle.</p>\n <p>If you are the server administrator, we invite you to try loading the file on a blank page.</p>\n ",b=`\n <li><a target="_top" href="${g}">Report Bug</a></li>\n <li><a href="#" id="panic-view-details">View Error Details</a></li>\n `;break;default:o="\n <p>Ruffle has encountered a major issue whilst trying to display this Flash content.</p>\n <p>This isn't supposed to happen, so we'd really appreciate if you could file a bug!</p>\n ",b=`\n <li><a target="_top" href="${g}">Report Bug</a></li>\n <li><a href="#" id="panic-view-details">View Error Details</a></li>\n `;}this.container.innerHTML=`\n <div id="panic">\n <div id="panic-title">Something went wrong :(</div>\n <div id="panic-body">${o}</div>\n <div id="panic-footer">\n <ul>${b}</ul>\n </div>\n </div>\n `;const w=this.container.querySelector("#panic-view-details");w&&(w.onclick=()=>(this.container.querySelector("#panic-body").innerHTML=`<textarea>${r}</textarea>`,!1)),this.instance&&(this.instance.destroy(),this.instance=null)}displayMessage(n){const e=document.createElement("div");e.id="message_overlay",e.innerHTML=`<div class="message">\n <div>\n <p>${n}</p>\n </div>\n <div>\n <button id="continue-btn">continue</button>\n </div>`,this.container.prepend(e),this.container.querySelector("#continue-btn").onclick=()=>{e.remove()}}debugPlayerInfo(){return`Allows script access: ${this.allowScriptAccess}\n`}}class ue extends He{constructor(){super()}connectedCallback(){var a,_,d,b;super.connectedCallback();const l=this.attributes.getNamedItem("src");if(l){const e=null!==(_=null===(a=this.attributes.getNamedItem("allowScriptAccess"))||void 0===a?void 0:a.value)&&void 0!==_?_:null;this.allowScriptAccess=Y(e,l.value),this.load({url:l.value,parameters:null===(d=this.attributes.getNamedItem("flashvars"))||void 0===d?void 0:d.value,backgroundColor:null===(b=this.attributes.getNamedItem("bgcolor"))||void 0===b?void 0:b.value})}}get src(){var t;return null===(t=this.attributes.getNamedItem("src"))||void 0===t?void 0:t.value}set src(n){if(null!=n){const e=document.createAttribute("src");e.value=n,this.attributes.setNamedItem(e)}else this.attributes.removeNamedItem("src")}static get observedAttributes(){return["src","width","height"]}attributeChangedCallback(a,e,t){if(super.attributeChangedCallback(a,e,t),this.isConnected&&"src"===a){let a;const e=this.attributes.getNamedItem("flashvars");e&&(a=e.value);const t=this.attributes.getNamedItem("src");t&&this.load({url:t.value,parameters:a})}}static isInterdictable(a){var e;if(!a.getAttribute("src"))return!1;const _=null===(e=a.getAttribute("type"))||void 0===e?void 0:e.toLowerCase();return _===ee.toLowerCase()||_===te.toLowerCase()||_===ne.toLowerCase()||_===re.toLowerCase()||(null==_||""===_)&&$(a.getAttribute("src"))}static fromNativeEmbedElement(a){const e=j("ruffle-embed",ue),t=document.createElement(e);return t.copyElement(a),t}}class fe extends He{constructor(){super(),this.params={}}connectedCallback(){var a;super.connectedCallback(),this.params=be(this);const _=_e(this.params,"allowScriptAccess",null);let t=null;this.attributes.getNamedItem("data")?t=null===(a=this.attributes.getNamedItem("data"))||void 0===a?void 0:a.value:this.params.movie&&(t=this.params.movie);const d=_e(this.params,"flashvars",this.getAttribute("flashvars")),r=_e(this.params,"bgcolor",this.getAttribute("bgcolor"));if(t){this.allowScriptAccess=Y(_,t);const n={url:t};d&&(n.parameters=d),r&&(n.backgroundColor=r),this.load(n)}}debugPlayerInfo(){var a;let _=super.debugPlayerInfo();_+="Player type: Object\n";let r=null;return this.attributes.getNamedItem("data")?r=null===(a=this.attributes.getNamedItem("data"))||void 0===a?void 0:a.value:this.params.movie&&(r=this.params.movie),_+=`SWF URL: ${r}\n`,Object.keys(this.params).forEach(t=>{_+=`Param ${t}: ${this.params[t]}\n`}),Object.keys(this.attributes).forEach(t=>{var e;_+=`Attribute ${t}: ${null===(e=this.attributes.getNamedItem(t))||void 0===e?void 0:e.value}\n`}),_}get data(){return this.getAttribute("data")}set data(n){if(null!=n){const e=document.createAttribute("data");e.value=n,this.attributes.setNamedItem(e)}else this.attributes.removeNamedItem("data")}static isInterdictable(_){var e,d,b;if(0<_.getElementsByTagName("ruffle-embed").length)return!1;const l=null===(e=_.attributes.getNamedItem("data"))||void 0===e?void 0:e.value.toLowerCase(),i=be(_);let o;if(l)o=$(l);else{if(!i||!i.movie)return!1;o=$(i.movie)}const g=null===(d=_.attributes.getNamedItem("classid"))||void 0===d?void 0:d.value.toLowerCase();if(g==="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000".toLowerCase())return!Array.from(_.getElementsByTagName("embed")).some(ue.isInterdictable);if(null!=g&&""!==g)return!1;const c=null===(b=_.attributes.getNamedItem("type"))||void 0===b?void 0:b.value.toLowerCase();return c===ee.toLowerCase()||c===te.toLowerCase()||c===ne.toLowerCase()||c===re.toLowerCase()||(null==c||""===c)&&o}static fromNativeObjectElement(a){const e=j("ruffle-object",fe),t=document.createElement(e);for(const e of Array.from(a.getElementsByTagName("embed")))ue.isInterdictable(e)&&e.remove();for(const e of Array.from(a.getElementsByTagName("object")))fe.isInterdictable(e)&&e.remove();return t.copyElement(a),t}}var ge,Je;let Ge;const Ye=null!==(Je=null===(ge=window.RufflePlayer)||void 0===ge?void 0:ge.config)&&void 0!==Je?Je:{},me=function(a,e){let t="";if(void 0!==a&&void 0!==a.publicPaths&&void 0!==a.publicPaths[e])t=a.publicPaths[e];else if(void 0!==a&&void 0!==a.publicPath)t=a.publicPath;else if(void 0!==document.currentScript&&null!==document.currentScript&&"src"in document.currentScript&&""!==document.currentScript.src)try{t=new URL(".",document.currentScript.src).href}catch(t){console.warn("Unable to get currentScript URL")}return""===t||t.endsWith("/")||(t+="/"),t}(Ye,"ruffle.js")+"ruffle.js";let ye,Xe,Ke,Qe;class Ze{constructor(a,e,t,n,_){this.major=a,this.minor=e,this.patch=t,this.prIdent=n,this.buildIdent=_}static fromSemver(_){const e=_.split("+"),t=e[0].split("-"),n=t[0].split("."),r=parseInt(n[0],10);let i=0,d=0,b=null,l=null;return null!=n[1]&&(i=parseInt(n[1],10)),null!=n[2]&&(d=parseInt(n[2],10)),null!=t[1]&&(b=t[1].split(".")),null!=e[1]&&(l=e[1].split(".")),new Ze(r,i,d,b,l)}isCompatibleWith(t){return 0!==this.major&&this.major===t.major||0===this.major&&0===t.major&&0!==this.minor&&this.minor===t.minor||0===this.major&&0===t.major&&0===this.minor&&0===t.minor&&0!==this.patch&&this.patch===t.patch}hasPrecedenceOver(a){if(this.major>a.major)return!0;if(this.major<a.major)return!1;if(this.minor>a.minor)return!0;if(this.minor<a.minor)return!1;if(this.patch>a.patch)return!0;if(this.patch<a.patch)return!1;if(null==this.prIdent&&null!=a.prIdent)return!0;if(null!=this.prIdent&&null!=a.prIdent){const e=/^[0-9]*$/;for(let t=0;t<this.prIdent.length&&t<a.prIdent.length;t+=1){if(!e.test(this.prIdent[t])&&e.test(a.prIdent[t]))return!0;if(e.test(this.prIdent[t])&&e.test(a.prIdent[t])){if(parseInt(this.prIdent[t],10)>parseInt(a.prIdent[t],10))return!0;if(parseInt(this.prIdent[t],10)<parseInt(a.prIdent[t],10))return!1}else{if(e.test(this.prIdent[t])&&!e.test(a.prIdent[t]))return!1;if(!e.test(this.prIdent[t])&&!e.test(a.prIdent[t])){if(this.prIdent[t]>a.prIdent[t])return!0;if(this.prIdent[t]<a.prIdent[t])return!1}}}return this.prIdent.length>a.prIdent.length}return!1}isEqual(t){return this.major===t.major&&this.minor===t.minor&&this.patch===t.patch}isStableOrCompatiblePrerelease(t){return null==t.prIdent||this.major===t.major&&this.minor===t.minor&&this.patch===t.patch}}class Ae{constructor(t){this.requirements=t}satisfiedBy(a){for(let e,n=0;n<this.requirements.length;n+=1){e=!0;for(let t=0;t<this.requirements[n].length;t+=1){const _=this.requirements[n][t].comparator,r=this.requirements[n][t].version;e=e&&r.isStableOrCompatiblePrerelease(a),""===_||"="===_?e=e&&r.isEqual(a):">"===_?e=e&&a.hasPrecedenceOver(r):">="===_?e=e&&(a.hasPrecedenceOver(r)||r.isEqual(a)):"<"===_?e=e&&r.hasPrecedenceOver(a):"<="===_?e=e&&(r.hasPrecedenceOver(a)||r.isEqual(a)):"^"===_&&(e=e&&r.isCompatibleWith(a))}if(e)return!0}return!1}static fromRequirementString(a){const _=a.split(" ");let t=[];const i=[];for(let n=0;n<_.length;n+=1)if("||"===_[n])0<t.length&&(i.push(t),t=[]);else if(0<_[n].length){const e=/[0-9]/.exec(_[n]);if(e){const a=_[n].slice(0,e.index).trim(),r=Ze.fromSemver(_[n].slice(e.index).trim());t.push({comparator:a,version:r})}}return 0<t.length&&i.push(t),new Ae(i)}}class Fe{constructor(t){this.sources={},this.config={},this.invoked=!1,this.newestName=null,this.conflict=null,null!=t&&(t instanceof Fe?(this.sources=t.sources,this.config=t.config,this.invoked=t.invoked,this.conflict=t.conflict,this.newestName=t.newestName,t.superseded()):t.constructor===Object&&t.config instanceof Object?this.config=t.config:this.conflict=t),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",this.init.bind(this)):window.setTimeout(this.init.bind(this),0)}get version(){return"0.1.0"}registerSource(n,e){this.sources[n]=e}newestSourceName(){let a=null,_=Ze.fromSemver("0.0.0");for(const e in this.sources)if(Object.prototype.hasOwnProperty.call(this.sources,e)){const t=Ze.fromSemver(this.sources[e].version);t.hasPrecedenceOver(_)&&(a=e,_=t)}return a}init(){if(!this.invoked){if(this.invoked=!0,this.newestName=this.newestSourceName(),null===this.newestName)throw new Error("No registered Ruffle source!");!1!==this.config.polyfills&&this.sources[this.newestName].polyfill("extension"===this.newestName)}}newest(){const t=this.newestSourceName();return null==t?null:this.sources[t]}satisfying(a){const _=Ae.fromRequirementString(a);let t=null;for(const n in this.sources)if(Object.prototype.hasOwnProperty.call(this.sources,n)){const e=Ze.fromSemver(this.sources[n].version);_.satisfiedBy(e)&&(t=this.sources[n])}return t}localCompatible(){return void 0===this.sources.local?this.newest():this.satisfying("^"+this.sources.local.version)}local(){return void 0===this.sources.local?this.newest():this.satisfying("="+this.sources.local.version)}superseded(){this.invoked=!0}static negotiate(a,e,t){let n;return n=a instanceof Fe?a:new Fe(a),void 0!==e&&void 0!==t&&(n.registerSource(e,t),!1!==n.config.polyfills&&t.pluginPolyfill()),n}}window.RufflePlayer=Fe.negotiate(window.RufflePlayer,"extension",new class{constructor(t){this.name=t}get version(){return"0.1.0"}polyfill(t){!function(t){Ge=t,de(),le(),new MutationObserver(function(t){t.some(t=>0<t.addedNodes.length)&&(de(),le())}).observe(document,{childList:!0,subtree:!0})}(t)}pluginPolyfill(){!function(a){"install"in navigator.plugins&&navigator.plugins.install||Object.defineProperty(navigator,"plugins",{value:new q(navigator.plugins),writable:!1}),navigator.plugins.install(a),!(0<a.length)||"install"in navigator.mimeTypes&&navigator.mimeTypes.install||Object.defineProperty(navigator,"mimeTypes",{value:new De(navigator.mimeTypes),writable:!1});const e=navigator.mimeTypes;for(let t=0;t<a.length;t+=1)e.install(a[t])}(H)}createPlayer(){const t=j("ruffle-player",He);return document.createElement(t)}}("extension")),obfuscatedEventPrefix&&document.addEventListener(obfuscatedEventPrefix+"_request",function(n){JSON.parse(n.detail).action;let e=new CustomEvent(obfuscatedEventPrefix+"_response",{detail:JSON.stringify({})});document.dispatchEvent(e)})})()})();}())</script></head>
<body data-new-gr-c-s-check-loaded="14.1001.0" data-gr-ext-installed="">
<div id="gamepadPrompt">To begin using your gamepad, connect it and press any button!</div>
<div id="gamepadDisplay"></div>
<script>
var hasGP = false;
var repGP;
function canGame() {
return "getGamepads" in navigator;
}
function reportOnGamepad() {
var gp = navigator.getGamepads()[0];
var html = "";
html += "id: "+gp.id+"<br/>";
for(var i=0;i<gp.buttons.length;i++) {
html+= "Button "+(i+1)+": ";
if(gp.buttons[i].pressed) html+= " pressed";
html+= "<br/>";
}
for(var i=0;i<gp.axes.length; i+=2) {
html+= "Stick "+(Math.ceil(i/2)+1)+": "+gp.axes[i]+","+gp.axes[i+1]+"<br/>";
}
$("#gamepadDisplay").html(html);
}
$(document).ready(function() {
if(canGame()) {
var prompt = "To begin using your gamepad, connect it and press any button!";
$("#gamepadPrompt").text(prompt);
$(window).on("gamepadconnected", function() {
hasGP = true;
$("#gamepadPrompt").html("Gamepad connected!");
console.log("connection event");
repGP = window.setInterval(reportOnGamepad,100);
});
$(window).on("gamepaddisconnected", function() {
console.log("disconnection event");
$("#gamepadPrompt").text(prompt);
window.clearInterval(repGP);
});
//setup an interval for Chrome
var checkGP = window.setInterval(function() {
console.log('checkGP');
if(navigator.getGamepads()[0]) {
if(!hasGP) $(window).trigger("gamepadconnected");
window.clearInterval(checkGP);
}
}, 500);
}
});
</script>
<div style="background-color: rgb(255, 143, 0); display: none; color: white; text-align: center; position: fixed; top: 0px; left: 0px; width: 100%; height: auto; min-width: 100%; min-height: auto; max-width: 100%; font: 12px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; cursor: pointer; padding: 5px;"><span style="color: white; font: 12px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;">You have turned off the paragraph player. You can turn it on again from the options page.</span><img src="chrome-extension://gfjopfpjmkcfgjpogepmdjmcnihfpokn/img/icons/icon-close_16.png" style="width: 20px; height: auto; min-width: 20px; min-height: auto; max-width: 20px; float: right; margin-right: 10px;"></div></body></html>