text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.rexmousewheeltoupdownplugin=t():e.rexmousewheeltoupdownplugin=t()}(window,function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,function(t){return e[t]}.bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=291)}({180:function(e,t,n){"use strict";var s=n(49);var r=class extends s.a{constructor(e,t){super(),this.scene=e,this.boot()}boot(){var e=this;this.onWheeling=function(t){var n=t.deltaY;e.setKeyState("up",n<0),e.setKeyState("down",n>0)},this.scene.sys.canvas.addEventListener("wheel",this.onWheeling,!1),this.scene.events.on("postupdate",this.clearAllKeysState,this),this.scene.events.on("destroy",this.destroy,this)}shutdown(){this.scene&&(this.scene.sys.canvas.removeEventListener("wheel",this.onWheeling,!1),this.scene.events.off("postupdate",this.clearAllKeysState,this))}destroy(){this.shutdown()}};t.a=r},291:function(e,t,n){"use strict";n.r(t);var s=n(180);t.default=class extends Phaser.Plugins.BasePlugin{constructor(e){super(e)}start(){this.game.events.once("destroy",this.destroy,this)}add(e,t){return new s.a(e,t)}}},49:function(e,t,n){"use strict";const s=Phaser.Input.Keyboard.Key;var r={altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,location:0};t.a=class{constructor(){this.cursorKeys={up:new s,down:new s,left:new s,right:new s},this.noKeyDown=!0}createCursorKeys(){return this.cursorKeys}setKeyState(e,t){var n=this.cursorKeys[e];return n.enabled?(t&&(this.noKeyDown=!1),n.isDown!==t&&(r.timeDown=Date.now(),t?n.onDown(r):n.onUp(r)),this):this}clearAllKeysState(){for(var e in this.noKeyDown=!0,this.cursorKeys)this.setKeyState(e,!1);return this}getKeyState(e){return this.cursorKeys[e]}get upKeyDown(){return this.cursorKeys.up.isDown}get downKeyDown(){return this.cursorKeys.down.isDown}get leftKeyDown(){return this.cursorKeys.left.isDown}get rightKeyDown(){return this.cursorKeys.right.isDown}get anyKeyDown(){return!this.noKeyDown}}}}).default});