diff --git a/dist/phaser-arcade-physics.js b/dist/phaser-arcade-physics.js index 135f57752..fb21c87d1 100644 --- a/dist/phaser-arcade-physics.js +++ b/dist/phaser-arcade-physics.js @@ -1161,8 +1161,8 @@ module.exports = Point; */ var Class = __webpack_require__(0); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -1703,6 +1703,205 @@ module.exports = { /* 10 */ /***/ (function(module, exports, __webpack_require__) { +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Global constants. + * + * @ignore + */ + +var CONST = { + + /** + * Phaser Release Version + * + * @name Phaser.VERSION + * @const + * @type {string} + * @since 3.0.0 + */ + VERSION: '3.23.0-beta1', + + BlendModes: __webpack_require__(52), + + ScaleModes: __webpack_require__(229), + + /** + * AUTO Detect Renderer. + * + * @name Phaser.AUTO + * @const + * @type {integer} + * @since 3.0.0 + */ + AUTO: 0, + + /** + * Canvas Renderer. + * + * @name Phaser.CANVAS + * @const + * @type {integer} + * @since 3.0.0 + */ + CANVAS: 1, + + /** + * WebGL Renderer. + * + * @name Phaser.WEBGL + * @const + * @type {integer} + * @since 3.0.0 + */ + WEBGL: 2, + + /** + * Headless Renderer. + * + * @name Phaser.HEADLESS + * @const + * @type {integer} + * @since 3.0.0 + */ + HEADLESS: 3, + + /** + * In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead + * to help you remember what the value is doing in your code. + * + * @name Phaser.FOREVER + * @const + * @type {integer} + * @since 3.0.0 + */ + FOREVER: -1, + + /** + * Direction constant. + * + * @name Phaser.NONE + * @const + * @type {integer} + * @since 3.0.0 + */ + NONE: 4, + + /** + * Direction constant. + * + * @name Phaser.UP + * @const + * @type {integer} + * @since 3.0.0 + */ + UP: 5, + + /** + * Direction constant. + * + * @name Phaser.DOWN + * @const + * @type {integer} + * @since 3.0.0 + */ + DOWN: 6, + + /** + * Direction constant. + * + * @name Phaser.LEFT + * @const + * @type {integer} + * @since 3.0.0 + */ + LEFT: 7, + + /** + * Direction constant. + * + * @name Phaser.RIGHT + * @const + * @type {integer} + * @since 3.0.0 + */ + RIGHT: 8, + + + /** + * Orientation constant. + * + * @name Phaser.ORTHOGONAL + * @const + * @type {integer} + * @since 3.2.2 + */ + ORTHOGONAL: 0, + + + /** + * Orientation constant. + * + * @name Phaser.ISOMETRIC + * @const + * @type {integer} + * @since 3.2.2 + */ + ISOMETRIC: 1, + + + /** + * Orientation constant. + * + * @name Phaser.STAGGERED + * @const + * @type {integer} + * @since 3.2.2 + */ + STAGGERED: 2, + + /** + * Orientation constant. + * + * @name Phaser.HEXAGONAL + * @const + * @type {integer} + * @since 3.2.2 + */ + HEXAGONAL: 3, + + fromOrientationString: function (orientation) + { + var constor = CONST.ORTHOGONAL; + + if (orientation === 'isometric') + { + constor = CONST.ISOMETRIC; + } + else if (orientation === 'staggered') + { + constor = CONST.STAGGERED; + } + else if (orientation === 'hexagonal') + { + constor = CONST.HEXAGONAL; + } + return constor; + } +}; + +module.exports = CONST; + + +/***/ }), +/* 11 */ +/***/ (function(module, exports, __webpack_require__) { + "use strict"; @@ -2043,7 +2242,7 @@ if (true) { /***/ }), -/* 11 */ +/* 12 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2058,34 +2257,34 @@ if (true) { module.exports = { - Alpha: __webpack_require__(532), - AlphaSingle: __webpack_require__(266), - Animation: __webpack_require__(503), - BlendMode: __webpack_require__(269), - ComputedSize: __webpack_require__(551), - Crop: __webpack_require__(552), - Depth: __webpack_require__(270), - Flip: __webpack_require__(553), - GetBounds: __webpack_require__(554), - Mask: __webpack_require__(274), - Origin: __webpack_require__(571), - PathFollower: __webpack_require__(572), - Pipeline: __webpack_require__(151), - ScrollFactor: __webpack_require__(277), - Size: __webpack_require__(573), - Texture: __webpack_require__(574), - TextureCrop: __webpack_require__(575), - Tint: __webpack_require__(576), - ToJSON: __webpack_require__(278), - Transform: __webpack_require__(279), + Alpha: __webpack_require__(528), + AlphaSingle: __webpack_require__(264), + Animation: __webpack_require__(499), + BlendMode: __webpack_require__(267), + ComputedSize: __webpack_require__(547), + Crop: __webpack_require__(548), + Depth: __webpack_require__(268), + Flip: __webpack_require__(549), + GetBounds: __webpack_require__(550), + Mask: __webpack_require__(272), + Origin: __webpack_require__(567), + PathFollower: __webpack_require__(568), + Pipeline: __webpack_require__(150), + ScrollFactor: __webpack_require__(275), + Size: __webpack_require__(569), + Texture: __webpack_require__(570), + TextureCrop: __webpack_require__(571), + Tint: __webpack_require__(572), + ToJSON: __webpack_require__(276), + Transform: __webpack_require__(277), TransformMatrix: __webpack_require__(30), - Visible: __webpack_require__(280) + Visible: __webpack_require__(278) }; /***/ }), -/* 12 */ +/* 13 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2096,11 +2295,11 @@ module.exports = { var Class = __webpack_require__(0); var Contains = __webpack_require__(47); -var GetPoint = __webpack_require__(147); -var GetPoints = __webpack_require__(271); +var GetPoint = __webpack_require__(146); +var GetPoints = __webpack_require__(269); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(150); +var Random = __webpack_require__(149); /** * @classdesc @@ -2596,7 +2795,7 @@ module.exports = Rectangle; /***/ }), -/* 13 */ +/* 14 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2606,10 +2805,10 @@ module.exports = Rectangle; */ var Class = __webpack_require__(0); -var ComponentsToJSON = __webpack_require__(278); -var DataManager = __webpack_require__(110); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(89); +var ComponentsToJSON = __webpack_require__(276); +var DataManager = __webpack_require__(109); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(88); /** * @classdesc @@ -3237,7 +3436,7 @@ module.exports = GameObject; /***/ }), -/* 14 */ +/* 15 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3246,7 +3445,7 @@ module.exports = GameObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH = __webpack_require__(166); +var MATH = __webpack_require__(165); var GetValue = __webpack_require__(6); /** @@ -3324,7 +3523,7 @@ module.exports = GetAdvancedValue; /***/ }), -/* 15 */ +/* 16 */ /***/ (function(module, exports) { /** @@ -3416,7 +3615,7 @@ module.exports = MATH_CONST; /***/ }), -/* 16 */ +/* 17 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3426,8 +3625,8 @@ module.exports = MATH_CONST; */ var Class = __webpack_require__(0); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -3584,7 +3783,7 @@ module.exports = GameObjectCreator; /***/ }), -/* 17 */ +/* 18 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3683,7 +3882,7 @@ module.exports = Extend; /***/ }), -/* 18 */ +/* 19 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3698,28 +3897,28 @@ module.exports = Extend; module.exports = { - BLUR: __webpack_require__(555), - BOOT: __webpack_require__(556), - CONTEXT_LOST: __webpack_require__(557), - CONTEXT_RESTORED: __webpack_require__(558), - DESTROY: __webpack_require__(559), - FOCUS: __webpack_require__(560), - HIDDEN: __webpack_require__(561), - PAUSE: __webpack_require__(562), - POST_RENDER: __webpack_require__(563), - POST_STEP: __webpack_require__(564), - PRE_RENDER: __webpack_require__(565), - PRE_STEP: __webpack_require__(566), - READY: __webpack_require__(567), - RESUME: __webpack_require__(568), - STEP: __webpack_require__(569), - VISIBLE: __webpack_require__(570) + BLUR: __webpack_require__(551), + BOOT: __webpack_require__(552), + CONTEXT_LOST: __webpack_require__(553), + CONTEXT_RESTORED: __webpack_require__(554), + DESTROY: __webpack_require__(555), + FOCUS: __webpack_require__(556), + HIDDEN: __webpack_require__(557), + PAUSE: __webpack_require__(558), + POST_RENDER: __webpack_require__(559), + POST_STEP: __webpack_require__(560), + PRE_RENDER: __webpack_require__(561), + PRE_STEP: __webpack_require__(562), + READY: __webpack_require__(563), + RESUME: __webpack_require__(564), + STEP: __webpack_require__(565), + VISIBLE: __webpack_require__(566) }; /***/ }), -/* 19 */ +/* 20 */ /***/ (function(module, exports) { /** @@ -3871,7 +4070,7 @@ module.exports = FILE_CONST; /***/ }), -/* 20 */ +/* 21 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3881,13 +4080,13 @@ module.exports = FILE_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var Events = __webpack_require__(81); +var CONST = __webpack_require__(20); +var Events = __webpack_require__(80); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(133); -var MergeXHRSettings = __webpack_require__(211); -var XHRLoader = __webpack_require__(450); -var XHRSettings = __webpack_require__(134); +var GetURL = __webpack_require__(132); +var MergeXHRSettings = __webpack_require__(210); +var XHRLoader = __webpack_require__(448); +var XHRSettings = __webpack_require__(133); /** * @classdesc @@ -4412,7 +4611,7 @@ module.exports = File; /***/ }), -/* 21 */ +/* 22 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4427,31 +4626,31 @@ module.exports = File; module.exports = { - BOOT: __webpack_require__(705), - CREATE: __webpack_require__(706), - DESTROY: __webpack_require__(707), - PAUSE: __webpack_require__(708), - POST_UPDATE: __webpack_require__(709), - PRE_UPDATE: __webpack_require__(710), - READY: __webpack_require__(711), - RENDER: __webpack_require__(712), - RESUME: __webpack_require__(713), - SHUTDOWN: __webpack_require__(714), - SLEEP: __webpack_require__(715), - START: __webpack_require__(716), - TRANSITION_COMPLETE: __webpack_require__(717), - TRANSITION_INIT: __webpack_require__(718), - TRANSITION_OUT: __webpack_require__(719), - TRANSITION_START: __webpack_require__(720), - TRANSITION_WAKE: __webpack_require__(721), - UPDATE: __webpack_require__(722), - WAKE: __webpack_require__(723) + BOOT: __webpack_require__(701), + CREATE: __webpack_require__(702), + DESTROY: __webpack_require__(703), + PAUSE: __webpack_require__(704), + POST_UPDATE: __webpack_require__(705), + PRE_UPDATE: __webpack_require__(706), + READY: __webpack_require__(707), + RENDER: __webpack_require__(708), + RESUME: __webpack_require__(709), + SHUTDOWN: __webpack_require__(710), + SLEEP: __webpack_require__(711), + START: __webpack_require__(712), + TRANSITION_COMPLETE: __webpack_require__(713), + TRANSITION_INIT: __webpack_require__(714), + TRANSITION_OUT: __webpack_require__(715), + TRANSITION_START: __webpack_require__(716), + TRANSITION_WAKE: __webpack_require__(717), + UPDATE: __webpack_require__(718), + WAKE: __webpack_require__(719) }; /***/ }), -/* 22 */ +/* 23 */ /***/ (function(module, exports) { /** @@ -4481,7 +4680,7 @@ module.exports = Clamp; /***/ }), -/* 23 */ +/* 24 */ /***/ (function(module, exports) { /** @@ -4690,7 +4889,7 @@ module.exports = PluginCache; /***/ }), -/* 24 */ +/* 25 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4774,7 +4973,7 @@ module.exports = GetTilesWithin; /***/ }), -/* 25 */ +/* 26 */ /***/ (function(module, exports) { /** @@ -4841,7 +5040,7 @@ module.exports = PropertyValueSet; /***/ }), -/* 26 */ +/* 27 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4850,8 +5049,8 @@ module.exports = PropertyValueSet; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(29); -var Smoothing = __webpack_require__(162); +var CONST = __webpack_require__(10); +var Smoothing = __webpack_require__(161); // The pool into which the canvas elements are placed. var pool = []; @@ -5102,7 +5301,7 @@ module.exports = CanvasPool(); /***/ }), -/* 27 */ +/* 28 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -5112,7 +5311,7 @@ module.exports = CanvasPool(); */ var BlendModes = __webpack_require__(52); -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); /** * Builds a Game Object using the provided configuration object. @@ -5230,7 +5429,7 @@ module.exports = BuildGameObject; /***/ }), -/* 28 */ +/* 29 */ /***/ (function(module, exports) { /** @@ -5317,144 +5516,6 @@ var SetTransform = function (renderer, ctx, src, camera, parentMatrix) module.exports = SetTransform; -/***/ }), -/* 29 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Global constants. - * - * @ignore - */ - -var CONST = { - - /** - * Phaser Release Version - * - * @name Phaser.VERSION - * @const - * @type {string} - * @since 3.0.0 - */ - VERSION: '3.23.0-beta1', - - BlendModes: __webpack_require__(52), - - ScaleModes: __webpack_require__(231), - - /** - * AUTO Detect Renderer. - * - * @name Phaser.AUTO - * @const - * @type {integer} - * @since 3.0.0 - */ - AUTO: 0, - - /** - * Canvas Renderer. - * - * @name Phaser.CANVAS - * @const - * @type {integer} - * @since 3.0.0 - */ - CANVAS: 1, - - /** - * WebGL Renderer. - * - * @name Phaser.WEBGL - * @const - * @type {integer} - * @since 3.0.0 - */ - WEBGL: 2, - - /** - * Headless Renderer. - * - * @name Phaser.HEADLESS - * @const - * @type {integer} - * @since 3.0.0 - */ - HEADLESS: 3, - - /** - * In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead - * to help you remember what the value is doing in your code. - * - * @name Phaser.FOREVER - * @const - * @type {integer} - * @since 3.0.0 - */ - FOREVER: -1, - - /** - * Direction constant. - * - * @name Phaser.NONE - * @const - * @type {integer} - * @since 3.0.0 - */ - NONE: 4, - - /** - * Direction constant. - * - * @name Phaser.UP - * @const - * @type {integer} - * @since 3.0.0 - */ - UP: 5, - - /** - * Direction constant. - * - * @name Phaser.DOWN - * @const - * @type {integer} - * @since 3.0.0 - */ - DOWN: 6, - - /** - * Direction constant. - * - * @name Phaser.LEFT - * @const - * @type {integer} - * @since 3.0.0 - */ - LEFT: 7, - - /** - * Direction constant. - * - * @name Phaser.RIGHT - * @const - * @type {integer} - * @since 3.0.0 - */ - RIGHT: 8 - -}; - -module.exports = CONST; - - /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { @@ -5466,7 +5527,7 @@ module.exports = CONST; */ var Class = __webpack_require__(0); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Vector2 = __webpack_require__(3); /** @@ -6434,8 +6495,8 @@ module.exports = TransformMatrix; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); var Line = __webpack_require__(56); /** @@ -6734,10 +6795,10 @@ module.exports = Shape; */ var Class = __webpack_require__(0); -var GetColor = __webpack_require__(160); -var GetColor32 = __webpack_require__(292); -var HSVToRGB = __webpack_require__(161); -var RGBToHSV = __webpack_require__(293); +var GetColor = __webpack_require__(159); +var GetColor32 = __webpack_require__(290); +var HSVToRGB = __webpack_require__(160); +var RGBToHSV = __webpack_require__(291); /** * @namespace Phaser.Display.Color @@ -7718,7 +7779,7 @@ module.exports = PropertyValueInc; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Convert the given angle from degrees, to the equivalent angle in radians. @@ -8151,21 +8212,21 @@ module.exports = Contains; module.exports = { - DESTROY: __webpack_require__(646), - FADE_IN_COMPLETE: __webpack_require__(647), - FADE_IN_START: __webpack_require__(648), - FADE_OUT_COMPLETE: __webpack_require__(649), - FADE_OUT_START: __webpack_require__(650), - FLASH_COMPLETE: __webpack_require__(651), - FLASH_START: __webpack_require__(652), - PAN_COMPLETE: __webpack_require__(653), - PAN_START: __webpack_require__(654), - POST_RENDER: __webpack_require__(655), - PRE_RENDER: __webpack_require__(656), - SHAKE_COMPLETE: __webpack_require__(657), - SHAKE_START: __webpack_require__(658), - ZOOM_COMPLETE: __webpack_require__(659), - ZOOM_START: __webpack_require__(660) + DESTROY: __webpack_require__(642), + FADE_IN_COMPLETE: __webpack_require__(643), + FADE_IN_START: __webpack_require__(644), + FADE_OUT_COMPLETE: __webpack_require__(645), + FADE_OUT_START: __webpack_require__(646), + FLASH_COMPLETE: __webpack_require__(647), + FLASH_START: __webpack_require__(648), + PAN_COMPLETE: __webpack_require__(649), + PAN_START: __webpack_require__(650), + POST_RENDER: __webpack_require__(651), + PRE_RENDER: __webpack_require__(652), + SHAKE_COMPLETE: __webpack_require__(653), + SHAKE_START: __webpack_require__(654), + ZOOM_COMPLETE: __webpack_require__(655), + ZOOM_START: __webpack_require__(656) }; @@ -8347,8 +8408,8 @@ module.exports = CONST; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); -var GetTilesWithin = __webpack_require__(24); +var GetTileAt = __webpack_require__(136); +var GetTilesWithin = __webpack_require__(25); /** * Calculates interesting faces within the rectangular area specified (in tile coordinates) of the @@ -8792,52 +8853,52 @@ module.exports = DistanceBetween; module.exports = { - BOOT: __webpack_require__(816), - DESTROY: __webpack_require__(817), - DRAG_END: __webpack_require__(818), - DRAG_ENTER: __webpack_require__(819), - DRAG: __webpack_require__(820), - DRAG_LEAVE: __webpack_require__(821), - DRAG_OVER: __webpack_require__(822), - DRAG_START: __webpack_require__(823), - DROP: __webpack_require__(824), - GAME_OUT: __webpack_require__(825), - GAME_OVER: __webpack_require__(826), - GAMEOBJECT_DOWN: __webpack_require__(827), - GAMEOBJECT_DRAG_END: __webpack_require__(828), - GAMEOBJECT_DRAG_ENTER: __webpack_require__(829), - GAMEOBJECT_DRAG: __webpack_require__(830), - GAMEOBJECT_DRAG_LEAVE: __webpack_require__(831), - GAMEOBJECT_DRAG_OVER: __webpack_require__(832), - GAMEOBJECT_DRAG_START: __webpack_require__(833), - GAMEOBJECT_DROP: __webpack_require__(834), - GAMEOBJECT_MOVE: __webpack_require__(835), - GAMEOBJECT_OUT: __webpack_require__(836), - GAMEOBJECT_OVER: __webpack_require__(837), - GAMEOBJECT_POINTER_DOWN: __webpack_require__(838), - GAMEOBJECT_POINTER_MOVE: __webpack_require__(839), - GAMEOBJECT_POINTER_OUT: __webpack_require__(840), - GAMEOBJECT_POINTER_OVER: __webpack_require__(841), - GAMEOBJECT_POINTER_UP: __webpack_require__(842), - GAMEOBJECT_POINTER_WHEEL: __webpack_require__(843), - GAMEOBJECT_UP: __webpack_require__(844), - GAMEOBJECT_WHEEL: __webpack_require__(845), - MANAGER_BOOT: __webpack_require__(846), - MANAGER_PROCESS: __webpack_require__(847), - MANAGER_UPDATE: __webpack_require__(848), - POINTER_DOWN: __webpack_require__(849), - POINTER_DOWN_OUTSIDE: __webpack_require__(850), - POINTER_MOVE: __webpack_require__(851), - POINTER_OUT: __webpack_require__(852), - POINTER_OVER: __webpack_require__(853), - POINTER_UP: __webpack_require__(854), - POINTER_UP_OUTSIDE: __webpack_require__(855), - POINTER_WHEEL: __webpack_require__(856), - POINTERLOCK_CHANGE: __webpack_require__(857), - PRE_UPDATE: __webpack_require__(858), - SHUTDOWN: __webpack_require__(859), - START: __webpack_require__(860), - UPDATE: __webpack_require__(861) + BOOT: __webpack_require__(812), + DESTROY: __webpack_require__(813), + DRAG_END: __webpack_require__(814), + DRAG_ENTER: __webpack_require__(815), + DRAG: __webpack_require__(816), + DRAG_LEAVE: __webpack_require__(817), + DRAG_OVER: __webpack_require__(818), + DRAG_START: __webpack_require__(819), + DROP: __webpack_require__(820), + GAME_OUT: __webpack_require__(821), + GAME_OVER: __webpack_require__(822), + GAMEOBJECT_DOWN: __webpack_require__(823), + GAMEOBJECT_DRAG_END: __webpack_require__(824), + GAMEOBJECT_DRAG_ENTER: __webpack_require__(825), + GAMEOBJECT_DRAG: __webpack_require__(826), + GAMEOBJECT_DRAG_LEAVE: __webpack_require__(827), + GAMEOBJECT_DRAG_OVER: __webpack_require__(828), + GAMEOBJECT_DRAG_START: __webpack_require__(829), + GAMEOBJECT_DROP: __webpack_require__(830), + GAMEOBJECT_MOVE: __webpack_require__(831), + GAMEOBJECT_OUT: __webpack_require__(832), + GAMEOBJECT_OVER: __webpack_require__(833), + GAMEOBJECT_POINTER_DOWN: __webpack_require__(834), + GAMEOBJECT_POINTER_MOVE: __webpack_require__(835), + GAMEOBJECT_POINTER_OUT: __webpack_require__(836), + GAMEOBJECT_POINTER_OVER: __webpack_require__(837), + GAMEOBJECT_POINTER_UP: __webpack_require__(838), + GAMEOBJECT_POINTER_WHEEL: __webpack_require__(839), + GAMEOBJECT_UP: __webpack_require__(840), + GAMEOBJECT_WHEEL: __webpack_require__(841), + MANAGER_BOOT: __webpack_require__(842), + MANAGER_PROCESS: __webpack_require__(843), + MANAGER_UPDATE: __webpack_require__(844), + POINTER_DOWN: __webpack_require__(845), + POINTER_DOWN_OUTSIDE: __webpack_require__(846), + POINTER_MOVE: __webpack_require__(847), + POINTER_OUT: __webpack_require__(848), + POINTER_OVER: __webpack_require__(849), + POINTER_UP: __webpack_require__(850), + POINTER_UP_OUTSIDE: __webpack_require__(851), + POINTER_WHEEL: __webpack_require__(852), + POINTERLOCK_CHANGE: __webpack_require__(853), + PRE_UPDATE: __webpack_require__(854), + SHUTDOWN: __webpack_require__(855), + START: __webpack_require__(856), + UPDATE: __webpack_require__(857) }; @@ -8894,10 +8955,10 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var GetPoint = __webpack_require__(272); -var GetPoints = __webpack_require__(148); +var GetPoint = __webpack_require__(270); +var GetPoints = __webpack_require__(147); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(149); +var Random = __webpack_require__(148); var Vector2 = __webpack_require__(3); /** @@ -9296,29 +9357,29 @@ module.exports = Wrap; module.exports = { - COMPLETE: __webpack_require__(884), - DECODED: __webpack_require__(885), - DECODED_ALL: __webpack_require__(886), - DESTROY: __webpack_require__(887), - DETUNE: __webpack_require__(888), - GLOBAL_DETUNE: __webpack_require__(889), - GLOBAL_MUTE: __webpack_require__(890), - GLOBAL_RATE: __webpack_require__(891), - GLOBAL_VOLUME: __webpack_require__(892), - LOOP: __webpack_require__(893), - LOOPED: __webpack_require__(894), - MUTE: __webpack_require__(895), - PAUSE_ALL: __webpack_require__(896), - PAUSE: __webpack_require__(897), - PLAY: __webpack_require__(898), - RATE: __webpack_require__(899), - RESUME_ALL: __webpack_require__(900), - RESUME: __webpack_require__(901), - SEEK: __webpack_require__(902), - STOP_ALL: __webpack_require__(903), - STOP: __webpack_require__(904), - UNLOCKED: __webpack_require__(905), - VOLUME: __webpack_require__(906) + COMPLETE: __webpack_require__(880), + DECODED: __webpack_require__(881), + DECODED_ALL: __webpack_require__(882), + DESTROY: __webpack_require__(883), + DETUNE: __webpack_require__(884), + GLOBAL_DETUNE: __webpack_require__(885), + GLOBAL_MUTE: __webpack_require__(886), + GLOBAL_RATE: __webpack_require__(887), + GLOBAL_VOLUME: __webpack_require__(888), + LOOP: __webpack_require__(889), + LOOPED: __webpack_require__(890), + MUTE: __webpack_require__(891), + PAUSE_ALL: __webpack_require__(892), + PAUSE: __webpack_require__(893), + PLAY: __webpack_require__(894), + RATE: __webpack_require__(895), + RESUME_ALL: __webpack_require__(896), + RESUME: __webpack_require__(897), + SEEK: __webpack_require__(898), + STOP_ALL: __webpack_require__(899), + STOP: __webpack_require__(900), + UNLOCKED: __webpack_require__(901), + VOLUME: __webpack_require__(902) }; @@ -9334,8 +9395,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); @@ -9800,10 +9861,10 @@ module.exports = MultiFile; var Class = __webpack_require__(0); var Contains = __webpack_require__(55); -var GetPoint = __webpack_require__(263); -var GetPoints = __webpack_require__(264); +var GetPoint = __webpack_require__(261); +var GetPoints = __webpack_require__(262); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(145); +var Random = __webpack_require__(144); /** * @classdesc @@ -10946,8 +11007,8 @@ module.exports = SafeRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var EaseMap = __webpack_require__(164); -var UppercaseFirst = __webpack_require__(177); +var EaseMap = __webpack_require__(163); +var UppercaseFirst = __webpack_require__(176); /** * This internal function is used to return the correct ease function for a Tween. @@ -11131,12 +11192,12 @@ module.exports = StrokePathWebGL; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(82); -var GetPoint = __webpack_require__(420); -var GetPoints = __webpack_require__(421); +var Contains = __webpack_require__(81); +var GetPoint = __webpack_require__(418); +var GetPoints = __webpack_require__(419); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(153); +var Random = __webpack_require__(152); /** * @classdesc @@ -11578,8 +11639,8 @@ module.exports = Triangle; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -11887,127 +11948,10 @@ module.exports = SetTileCollision; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var WorldToTileX = __webpack_require__(473); -var WorldToTileY = __webpack_require__(474); -var Vector2 = __webpack_require__(3); - -/** - * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.WorldToTileXY - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in tile units. - */ -var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) -{ - var orientation = layer.orientation; - if (point === undefined) { point = new Vector2(0, 0); } - - if (orientation === 'orthogonal') - { - point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); - point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - // console.log(1,worldY) - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - // console.log(worldY) - tileHeight *= tilemapLayer.scaleY; - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'isometric') - { - point.x = snapToFloor - ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) - : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); - - point.y = snapToFloor - ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) - : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); - } - if (orientation === 'orthogonal') - { - point.x = snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - point.y = snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } - else if (orientation === 'staggered') - { - point.y = snapToFloor - ? Math.floor((worldY / (tileHeight / 2))) - : (worldY / (tileHeight / 2)); - point.x = snapToFloor - ? Math.floor((worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth) - : (worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth; - - } - else if (orientation === 'hexagonal') - { - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // similar to staggered, because Tiled uses the oddr representation. - point.y = snapToFloor - ? Math.floor((worldY / rowHeight)) - : (worldY / rowHeight); - point.x = snapToFloor - ? Math.floor((worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth) - : (worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth; - } - } - - return point; -}; - -module.exports = WorldToTileXY; - - -/***/ }), -/* 73 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - +var CONST = __webpack_require__(10); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Rectangle = __webpack_require__(439); +var Components = __webpack_require__(12); +var Rectangle = __webpack_require__(437); /** * @classdesc @@ -12707,34 +12651,34 @@ var Tile = new Class({ */ updatePixelXY: function () { - if (this.layer.orientation === 'orthogonal') - { - // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the - // bottom left, while the Phaser renderer assumes the origin is the top left. The y - // coordinate needs to be adjusted by the difference. - this.pixelX = this.x * this.baseWidth; - this.pixelY = this.y * this.baseHeight; - - } - else if (this.layer.orientation === 'isometric') + if (this.layer.orientation === CONST.ISOMETRIC) { // reminder : for the tilemap to be centered we have to move the image to the right with the camera ! // this is crucial for wordtotile, tiletoworld to work. this.pixelX = (this.x - this.y) * this.baseWidth * 0.5; this.pixelY = (this.x + this.y) * this.baseHeight * 0.5; } - else if (this.layer.orientation === 'staggered') + else if (this.layer.orientation === CONST.STAGGERED) { this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2); this.pixelY = this.y * (this.baseHeight / 2); } - else if (this.layer.orientation === 'hexagonal') + else if (this.layer.orientation === CONST.HEXAGONAL) { var sidel = this.layer.hexSideLength; var rowHeight = ((this.baseHeight - sidel) / 2 + sidel); this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2); this.pixelY = this.y * rowHeight; } + else if (this.layer.orientation === CONST.ORTHOGONAL) + { + // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the + // bottom left, while the Phaser renderer assumes the origin is the top left. The y + // coordinate needs to be adjusted by the difference. + this.pixelX = this.x * this.baseWidth; + this.pixelY = this.y * this.baseHeight; + + } return this; }, @@ -12854,7 +12798,7 @@ module.exports = Tile; /***/ }), -/* 74 */ +/* 73 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -12864,9 +12808,9 @@ module.exports = Tile; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var SpriteRender = __webpack_require__(962); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var SpriteRender = __webpack_require__(958); /** * @classdesc @@ -13032,7 +12976,7 @@ module.exports = Sprite; /***/ }), -/* 75 */ +/* 74 */ /***/ (function(module, exports) { /** @@ -13060,7 +13004,7 @@ module.exports = GetCenterX; /***/ }), -/* 76 */ +/* 75 */ /***/ (function(module, exports) { /** @@ -13095,7 +13039,7 @@ module.exports = SetCenterX; /***/ }), -/* 77 */ +/* 76 */ /***/ (function(module, exports) { /** @@ -13123,7 +13067,7 @@ module.exports = GetCenterY; /***/ }), -/* 78 */ +/* 77 */ /***/ (function(module, exports) { /** @@ -13158,7 +13102,7 @@ module.exports = SetCenterY; /***/ }), -/* 79 */ +/* 78 */ /***/ (function(module, exports) { /** @@ -13204,7 +13148,7 @@ module.exports = SpliceOne; /***/ }), -/* 80 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13214,8 +13158,8 @@ module.exports = SpliceOne; */ var Class = __webpack_require__(0); -var FromPoints = __webpack_require__(172); -var Rectangle = __webpack_require__(12); +var FromPoints = __webpack_require__(171); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); /** @@ -13824,7 +13768,7 @@ module.exports = Curve; /***/ }), -/* 81 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13839,22 +13783,22 @@ module.exports = Curve; module.exports = { - ADD: __webpack_require__(863), - COMPLETE: __webpack_require__(864), - FILE_COMPLETE: __webpack_require__(865), - FILE_KEY_COMPLETE: __webpack_require__(866), - FILE_LOAD_ERROR: __webpack_require__(867), - FILE_LOAD: __webpack_require__(868), - FILE_PROGRESS: __webpack_require__(869), - POST_PROCESS: __webpack_require__(870), - PROGRESS: __webpack_require__(871), - START: __webpack_require__(872) + ADD: __webpack_require__(859), + COMPLETE: __webpack_require__(860), + FILE_COMPLETE: __webpack_require__(861), + FILE_KEY_COMPLETE: __webpack_require__(862), + FILE_LOAD_ERROR: __webpack_require__(863), + FILE_LOAD: __webpack_require__(864), + FILE_PROGRESS: __webpack_require__(865), + POST_PROCESS: __webpack_require__(866), + PROGRESS: __webpack_require__(867), + START: __webpack_require__(868) }; /***/ }), -/* 82 */ +/* 81 */ /***/ (function(module, exports) { /** @@ -13907,7 +13851,7 @@ module.exports = Contains; /***/ }), -/* 83 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13983,7 +13927,7 @@ module.exports = LineToLine; /***/ }), -/* 84 */ +/* 83 */ /***/ (function(module, exports) { /** @@ -14011,8 +13955,8 @@ module.exports = Angle; /***/ }), -/* 85 */, -/* 86 */ +/* 84 */, +/* 85 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14021,7 +13965,7 @@ module.exports = Angle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); /** * Return a value based on the range between `min` and `max` and the percentage given. @@ -14046,7 +13990,7 @@ module.exports = FromPercent; /***/ }), -/* 87 */ +/* 86 */ /***/ (function(module, exports) { /** @@ -14087,7 +14031,7 @@ module.exports = GetBoolean; /***/ }), -/* 88 */ +/* 87 */ /***/ (function(module, exports) { /** @@ -14259,7 +14203,7 @@ module.exports = TWEEN_CONST; /***/ }), -/* 89 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14274,23 +14218,23 @@ module.exports = TWEEN_CONST; module.exports = { - DESTROY: __webpack_require__(581), - VIDEO_COMPLETE: __webpack_require__(582), - VIDEO_CREATED: __webpack_require__(583), - VIDEO_ERROR: __webpack_require__(584), - VIDEO_LOOP: __webpack_require__(585), - VIDEO_PLAY: __webpack_require__(586), - VIDEO_SEEKED: __webpack_require__(587), - VIDEO_SEEKING: __webpack_require__(588), - VIDEO_STOP: __webpack_require__(589), - VIDEO_TIMEOUT: __webpack_require__(590), - VIDEO_UNLOCKED: __webpack_require__(591) + DESTROY: __webpack_require__(577), + VIDEO_COMPLETE: __webpack_require__(578), + VIDEO_CREATED: __webpack_require__(579), + VIDEO_ERROR: __webpack_require__(580), + VIDEO_LOOP: __webpack_require__(581), + VIDEO_PLAY: __webpack_require__(582), + VIDEO_SEEKED: __webpack_require__(583), + VIDEO_SEEKING: __webpack_require__(584), + VIDEO_STOP: __webpack_require__(585), + VIDEO_TIMEOUT: __webpack_require__(586), + VIDEO_UNLOCKED: __webpack_require__(587) }; /***/ }), -/* 90 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14300,13 +14244,13 @@ module.exports = { */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); +var Components = __webpack_require__(12); var DegToRad = __webpack_require__(35); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(48); -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); var TransformMatrix = __webpack_require__(30); -var ValueToColor = __webpack_require__(159); +var ValueToColor = __webpack_require__(158); var Vector2 = __webpack_require__(3); /** @@ -16211,7 +16155,7 @@ module.exports = BaseCamera; /***/ }), -/* 91 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16226,18 +16170,18 @@ module.exports = BaseCamera; module.exports = { - ENTER_FULLSCREEN: __webpack_require__(699), - FULLSCREEN_FAILED: __webpack_require__(700), - FULLSCREEN_UNSUPPORTED: __webpack_require__(701), - LEAVE_FULLSCREEN: __webpack_require__(702), - ORIENTATION_CHANGE: __webpack_require__(703), - RESIZE: __webpack_require__(704) + ENTER_FULLSCREEN: __webpack_require__(695), + FULLSCREEN_FAILED: __webpack_require__(696), + FULLSCREEN_UNSUPPORTED: __webpack_require__(697), + LEAVE_FULLSCREEN: __webpack_require__(698), + ORIENTATION_CHANGE: __webpack_require__(699), + RESIZE: __webpack_require__(700) }; /***/ }), -/* 92 */ +/* 91 */ /***/ (function(module, exports) { /** @@ -16281,7 +16225,7 @@ module.exports = SnapFloor; /***/ }), -/* 93 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16291,8 +16235,8 @@ module.exports = SnapFloor; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); -var Extend = __webpack_require__(17); +var Clamp = __webpack_require__(23); +var Extend = __webpack_require__(18); /** * @classdesc @@ -17100,7 +17044,7 @@ module.exports = Frame; /***/ }), -/* 94 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -17110,11 +17054,11 @@ module.exports = Frame; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(95); -var GetPoint = __webpack_require__(393); -var GetPoints = __webpack_require__(394); +var Contains = __webpack_require__(94); +var GetPoint = __webpack_require__(391); +var GetPoints = __webpack_require__(392); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(152); +var Random = __webpack_require__(151); /** * @classdesc @@ -17482,7 +17426,7 @@ module.exports = Ellipse; /***/ }), -/* 95 */ +/* 94 */ /***/ (function(module, exports) { /** @@ -17524,7 +17468,7 @@ module.exports = Contains; /***/ }), -/* 96 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -17533,15 +17477,15 @@ module.exports = Contains; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Actions = __webpack_require__(238); +var Actions = __webpack_require__(236); var Class = __webpack_require__(0); -var Events = __webpack_require__(89); +var Events = __webpack_require__(88); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var Range = __webpack_require__(387); -var Set = __webpack_require__(128); -var Sprite = __webpack_require__(74); +var Range = __webpack_require__(385); +var Set = __webpack_require__(127); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -19162,7 +19106,7 @@ module.exports = Group; /***/ }), -/* 97 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19226,9 +19170,9 @@ module.exports = FillPathWebGL; /***/ }), +/* 97 */, /* 98 */, -/* 99 */, -/* 100 */ +/* 99 */ /***/ (function(module, exports) { /** @@ -19259,7 +19203,7 @@ module.exports = IsInLayerBounds; /***/ }), -/* 101 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19270,6 +19214,7 @@ module.exports = IsInLayerBounds; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); +var CONST = __webpack_require__(10); /** * @classdesc @@ -19380,7 +19325,7 @@ var LayerData = new Class({ * @type {string} * @since 3.23beta.PR_svipal */ - this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); + this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL); /** * The width in pixels of the entire layer. @@ -19498,7 +19443,7 @@ module.exports = LayerData; /***/ }), -/* 102 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19509,6 +19454,7 @@ module.exports = LayerData; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); +var CONST = __webpack_require__(10); /** * @classdesc @@ -19619,7 +19565,7 @@ var MapData = new Class({ * @type {string} * @since 3.0.0 */ - this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); + this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL); /** * Determines the draw order of tilemap. Default is right-down @@ -19732,7 +19678,7 @@ module.exports = MapData; /***/ }), -/* 103 */ +/* 102 */ /***/ (function(module, exports) { /** @@ -19866,7 +19812,7 @@ module.exports = ALIGN_CONST; /***/ }), -/* 104 */ +/* 103 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19876,9 +19822,9 @@ module.exports = ALIGN_CONST; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ImageRender = __webpack_require__(965); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var ImageRender = __webpack_require__(961); /** * @classdesc @@ -19967,7 +19913,7 @@ module.exports = Image; /***/ }), -/* 105 */ +/* 104 */ /***/ (function(module, exports) { /** @@ -19996,8 +19942,8 @@ module.exports = HasValue; /***/ }), -/* 106 */, -/* 107 */ +/* 105 */, +/* 106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20010,9 +19956,9 @@ var BlendModes = __webpack_require__(52); var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var Rectangle = __webpack_require__(12); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); /** @@ -20310,7 +20256,7 @@ module.exports = Zone; /***/ }), -/* 108 */ +/* 107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20325,30 +20271,30 @@ module.exports = Zone; module.exports = { - ADD_ANIMATION: __webpack_require__(533), - ANIMATION_COMPLETE: __webpack_require__(534), - ANIMATION_REPEAT: __webpack_require__(535), - ANIMATION_RESTART: __webpack_require__(536), - ANIMATION_START: __webpack_require__(537), - PAUSE_ALL: __webpack_require__(538), - REMOVE_ANIMATION: __webpack_require__(539), - RESUME_ALL: __webpack_require__(540), - SPRITE_ANIMATION_COMPLETE: __webpack_require__(541), - SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(542), - SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(543), - SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(544), - SPRITE_ANIMATION_KEY_START: __webpack_require__(545), - SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(546), - SPRITE_ANIMATION_REPEAT: __webpack_require__(547), - SPRITE_ANIMATION_RESTART: __webpack_require__(548), - SPRITE_ANIMATION_START: __webpack_require__(549), - SPRITE_ANIMATION_UPDATE: __webpack_require__(550) + ADD_ANIMATION: __webpack_require__(529), + ANIMATION_COMPLETE: __webpack_require__(530), + ANIMATION_REPEAT: __webpack_require__(531), + ANIMATION_RESTART: __webpack_require__(532), + ANIMATION_START: __webpack_require__(533), + PAUSE_ALL: __webpack_require__(534), + REMOVE_ANIMATION: __webpack_require__(535), + RESUME_ALL: __webpack_require__(536), + SPRITE_ANIMATION_COMPLETE: __webpack_require__(537), + SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(538), + SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(539), + SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(540), + SPRITE_ANIMATION_KEY_START: __webpack_require__(541), + SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(542), + SPRITE_ANIMATION_REPEAT: __webpack_require__(543), + SPRITE_ANIMATION_RESTART: __webpack_require__(544), + SPRITE_ANIMATION_START: __webpack_require__(545), + SPRITE_ANIMATION_UPDATE: __webpack_require__(546) }; /***/ }), -/* 109 */ +/* 108 */ /***/ (function(module, exports) { /** @@ -20376,7 +20322,7 @@ module.exports = Perimeter; /***/ }), -/* 110 */ +/* 109 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20386,7 +20332,7 @@ module.exports = Perimeter; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(281); +var Events = __webpack_require__(279); /** * @callback DataEachCallback @@ -21017,7 +20963,7 @@ module.exports = DataManager; /***/ }), -/* 111 */ +/* 110 */ /***/ (function(module, exports) { /** @@ -21058,7 +21004,7 @@ module.exports = Shuffle; /***/ }), -/* 112 */ +/* 111 */ /***/ (function(module, exports) { /** @@ -21088,7 +21034,7 @@ module.exports = Linear; /***/ }), -/* 113 */ +/* 112 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -21257,10 +21203,10 @@ function init () module.exports = init(); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(725))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(721))) /***/ }), -/* 114 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21269,7 +21215,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); +var OS = __webpack_require__(112); /** * Determines the browser type and version running this Phaser Game instance. @@ -21370,7 +21316,7 @@ module.exports = init(); /***/ }), -/* 115 */ +/* 114 */ /***/ (function(module, exports) { /** @@ -21400,7 +21346,7 @@ module.exports = IsSizePowerOfTwo; /***/ }), -/* 116 */ +/* 115 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21415,17 +21361,17 @@ module.exports = IsSizePowerOfTwo; module.exports = { - ADD: __webpack_require__(775), - ERROR: __webpack_require__(776), - LOAD: __webpack_require__(777), - READY: __webpack_require__(778), - REMOVE: __webpack_require__(779) + ADD: __webpack_require__(771), + ERROR: __webpack_require__(772), + LOAD: __webpack_require__(773), + READY: __webpack_require__(774), + REMOVE: __webpack_require__(775) }; /***/ }), -/* 117 */ +/* 116 */ /***/ (function(module, exports) { /** @@ -21483,7 +21429,7 @@ module.exports = AddToDOM; /***/ }), -/* 118 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21492,7 +21438,7 @@ module.exports = AddToDOM; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes the given item, or array of items, from the array. @@ -21574,7 +21520,7 @@ module.exports = Remove; /***/ }), -/* 119 */ +/* 118 */ /***/ (function(module, exports) { /** @@ -22480,7 +22426,7 @@ module.exports = KeyCodes; /***/ }), -/* 120 */ +/* 119 */ /***/ (function(module, exports) { /** @@ -22603,7 +22549,7 @@ module.exports = CONST; /***/ }), -/* 121 */ +/* 120 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22648,7 +22594,7 @@ module.exports = Merge; /***/ }), -/* 122 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22660,9 +22606,9 @@ module.exports = Merge; var Class = __webpack_require__(0); var Clone = __webpack_require__(65); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(59); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); var NOOP = __webpack_require__(1); /** @@ -23273,7 +23219,7 @@ module.exports = BaseSoundManager; /***/ }), -/* 123 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23284,9 +23230,9 @@ module.exports = BaseSoundManager; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(59); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); var NOOP = __webpack_require__(1); /** @@ -23773,7 +23719,7 @@ module.exports = BaseSound; /***/ }), -/* 124 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23782,10 +23728,10 @@ module.exports = BaseSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(179); +var ArrayUtils = __webpack_require__(178); var Class = __webpack_require__(0); var NOOP = __webpack_require__(1); -var StableSort = __webpack_require__(126); +var StableSort = __webpack_require__(125); /** * @callback EachListCallback @@ -24589,7 +24535,7 @@ module.exports = List; /***/ }), -/* 125 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24598,8 +24544,8 @@ module.exports = List; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CheckMatrix = __webpack_require__(180); -var TransposeMatrix = __webpack_require__(385); +var CheckMatrix = __webpack_require__(179); +var TransposeMatrix = __webpack_require__(383); /** * Rotates the array matrix based on the given rotation value. @@ -24661,7 +24607,7 @@ module.exports = RotateMatrix; /***/ }), -/* 126 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24806,7 +24752,7 @@ else {} })(); /***/ }), -/* 127 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24816,12 +24762,12 @@ else {} */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var GetBitmapTextSize = __webpack_require__(940); -var ParseFromAtlas = __webpack_require__(941); -var ParseXMLBitmapFont = __webpack_require__(183); -var Render = __webpack_require__(942); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var GetBitmapTextSize = __webpack_require__(936); +var ParseFromAtlas = __webpack_require__(937); +var ParseXMLBitmapFont = __webpack_require__(182); +var Render = __webpack_require__(938); /** * @classdesc @@ -25535,7 +25481,7 @@ module.exports = BitmapText; /***/ }), -/* 128 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25984,7 +25930,7 @@ module.exports = Set; /***/ }), -/* 129 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25994,9 +25940,9 @@ module.exports = Set; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var MeshRender = __webpack_require__(1072); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var MeshRender = __webpack_require__(1068); var NOOP = __webpack_require__(1); /** @@ -26155,7 +26101,7 @@ module.exports = Mesh; /***/ }), -/* 130 */ +/* 129 */ /***/ (function(module, exports) { /** @@ -26193,7 +26139,7 @@ module.exports = RectangleToRectangle; /***/ }), -/* 131 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26301,7 +26247,7 @@ module.exports = InputPluginCache; /***/ }), -/* 132 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26316,19 +26262,19 @@ module.exports = InputPluginCache; module.exports = { - ANY_KEY_DOWN: __webpack_require__(1211), - ANY_KEY_UP: __webpack_require__(1212), - COMBO_MATCH: __webpack_require__(1213), - DOWN: __webpack_require__(1214), - KEY_DOWN: __webpack_require__(1215), - KEY_UP: __webpack_require__(1216), - UP: __webpack_require__(1217) + ANY_KEY_DOWN: __webpack_require__(1207), + ANY_KEY_UP: __webpack_require__(1208), + COMBO_MATCH: __webpack_require__(1209), + DOWN: __webpack_require__(1210), + KEY_DOWN: __webpack_require__(1211), + KEY_UP: __webpack_require__(1212), + UP: __webpack_require__(1213) }; /***/ }), -/* 133 */ +/* 132 */ /***/ (function(module, exports) { /** @@ -26369,7 +26315,7 @@ module.exports = GetURL; /***/ }), -/* 134 */ +/* 133 */ /***/ (function(module, exports) { /** @@ -26438,7 +26384,7 @@ module.exports = XHRSettings; /***/ }), -/* 135 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26448,8 +26394,8 @@ module.exports = XHRSettings; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(213); -var Sprite = __webpack_require__(74); +var Components = __webpack_require__(212); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -26539,7 +26485,7 @@ module.exports = ArcadeSprite; /***/ }), -/* 136 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26554,54 +26500,54 @@ module.exports = ArcadeSprite; module.exports = { - CalculateFacesAt: __webpack_require__(216), + CalculateFacesAt: __webpack_require__(215), CalculateFacesWithin: __webpack_require__(51), - Copy: __webpack_require__(1307), - CreateFromTiles: __webpack_require__(1308), - CullTiles: __webpack_require__(1309), - Fill: __webpack_require__(1311), - FilterTiles: __webpack_require__(1312), - FindByIndex: __webpack_require__(1313), - FindTile: __webpack_require__(1314), - ForEachTile: __webpack_require__(1315), - GetTileAt: __webpack_require__(137), - GetTileAtWorldXY: __webpack_require__(1316), - GetTilesWithin: __webpack_require__(24), - GetTilesWithinShape: __webpack_require__(1317), - GetTilesWithinWorldXY: __webpack_require__(1318), - HasTileAt: __webpack_require__(475), - HasTileAtWorldXY: __webpack_require__(1319), - IsInLayerBounds: __webpack_require__(100), - PutTileAt: __webpack_require__(218), - PutTileAtWorldXY: __webpack_require__(1320), - PutTilesAt: __webpack_require__(1321), - Randomize: __webpack_require__(1322), - RemoveTileAt: __webpack_require__(476), - RemoveTileAtWorldXY: __webpack_require__(1323), - RenderDebug: __webpack_require__(1324), - ReplaceByIndex: __webpack_require__(472), - SetCollision: __webpack_require__(1325), - SetCollisionBetween: __webpack_require__(1326), - SetCollisionByExclusion: __webpack_require__(1327), - SetCollisionByProperty: __webpack_require__(1328), - SetCollisionFromCollisionGroup: __webpack_require__(1329), - SetTileIndexCallback: __webpack_require__(1330), - SetTileLocationCallback: __webpack_require__(1331), - Shuffle: __webpack_require__(1332), - SwapByIndex: __webpack_require__(1333), - TileToWorldX: __webpack_require__(470), - TileToWorldXY: __webpack_require__(217), - TileToWorldY: __webpack_require__(471), - WeightedRandomize: __webpack_require__(1334), - WorldToTileX: __webpack_require__(473), - WorldToTileXY: __webpack_require__(72), - WorldToTileY: __webpack_require__(474) + Copy: __webpack_require__(1303), + CreateFromTiles: __webpack_require__(1304), + CullTiles: __webpack_require__(1305), + Fill: __webpack_require__(1307), + FilterTiles: __webpack_require__(1308), + FindByIndex: __webpack_require__(1309), + FindTile: __webpack_require__(1310), + ForEachTile: __webpack_require__(1311), + GetTileAt: __webpack_require__(136), + GetTileAtWorldXY: __webpack_require__(1312), + GetTilesWithin: __webpack_require__(25), + GetTilesWithinShape: __webpack_require__(1313), + GetTilesWithinWorldXY: __webpack_require__(1314), + HasTileAt: __webpack_require__(469), + HasTileAtWorldXY: __webpack_require__(1315), + IsInLayerBounds: __webpack_require__(99), + PutTileAt: __webpack_require__(216), + PutTileAtWorldXY: __webpack_require__(1316), + PutTilesAt: __webpack_require__(1317), + Randomize: __webpack_require__(1318), + RemoveTileAt: __webpack_require__(470), + RemoveTileAtWorldXY: __webpack_require__(1319), + RenderDebug: __webpack_require__(1320), + ReplaceByIndex: __webpack_require__(468), + SetCollision: __webpack_require__(1321), + SetCollisionBetween: __webpack_require__(1322), + SetCollisionByExclusion: __webpack_require__(1323), + SetCollisionByProperty: __webpack_require__(1324), + SetCollisionFromCollisionGroup: __webpack_require__(1325), + SetTileIndexCallback: __webpack_require__(1326), + SetTileLocationCallback: __webpack_require__(1327), + Shuffle: __webpack_require__(1328), + SwapByIndex: __webpack_require__(1329), + TileToWorldX: __webpack_require__(1330), + TileToWorldXY: __webpack_require__(1331), + TileToWorldY: __webpack_require__(1332), + WeightedRandomize: __webpack_require__(1333), + WorldToTileX: __webpack_require__(471), + WorldToTileXY: __webpack_require__(1334), + WorldToTileY: __webpack_require__(472) }; /***/ }), -/* 137 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26610,7 +26556,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(100); +var IsInLayerBounds = __webpack_require__(99); /** * Gets a tile at the given tile coordinates from the given layer. @@ -26657,7 +26603,7 @@ module.exports = GetTileAt; /***/ }), -/* 138 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27061,7 +27007,7 @@ module.exports = Tileset; /***/ }), -/* 139 */ +/* 138 */ /***/ (function(module, exports) { /** @@ -27125,7 +27071,7 @@ module.exports = GetNewValue; /***/ }), -/* 140 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27134,17 +27080,17 @@ module.exports = GetNewValue; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); -var GetProps = __webpack_require__(497); -var GetTargets = __webpack_require__(225); +var GetNewValue = __webpack_require__(138); +var GetProps = __webpack_require__(493); +var GetTargets = __webpack_require__(223); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(226); -var Tween = __webpack_require__(228); -var TweenData = __webpack_require__(230); +var GetValueOp = __webpack_require__(224); +var Tween = __webpack_require__(226); +var TweenData = __webpack_require__(228); /** * Creates a new Tween. @@ -27258,7 +27204,7 @@ module.exports = TweenBuilder; /***/ }), -/* 141 */ +/* 140 */ /***/ (function(module, exports) { /** @@ -27292,7 +27238,7 @@ module.exports = Equal; /***/ }), -/* 142 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28061,8 +28007,8 @@ module.exports = WebGLPipeline; /***/ }), -/* 143 */, -/* 144 */ +/* 142 */, +/* 143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28101,7 +28047,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 145 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28145,7 +28091,7 @@ module.exports = Random; /***/ }), -/* 146 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28154,12 +28100,12 @@ module.exports = Random; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(108); -var FindClosestInSorted = __webpack_require__(267); -var Frame = __webpack_require__(268); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(107); +var FindClosestInSorted = __webpack_require__(265); +var Frame = __webpack_require__(266); var GetValue = __webpack_require__(6); /** @@ -29105,7 +29051,7 @@ module.exports = Animation; /***/ }), -/* 147 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29114,7 +29060,7 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(109); +var Perimeter = __webpack_require__(108); var Point = __webpack_require__(4); /** @@ -29186,7 +29132,7 @@ module.exports = GetPoint; /***/ }), -/* 148 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29251,7 +29197,7 @@ module.exports = GetPoints; /***/ }), -/* 149 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29291,7 +29237,7 @@ module.exports = Random; /***/ }), -/* 150 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29329,7 +29275,7 @@ module.exports = Random; /***/ }), -/* 151 */ +/* 150 */ /***/ (function(module, exports) { /** @@ -29458,7 +29404,7 @@ module.exports = Pipeline; /***/ }), -/* 152 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29499,7 +29445,7 @@ module.exports = Random; /***/ }), -/* 153 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29555,7 +29501,7 @@ module.exports = Random; /***/ }), -/* 154 */ +/* 153 */ /***/ (function(module, exports) { /** @@ -29592,7 +29538,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 155 */ +/* 154 */ /***/ (function(module, exports) { /** @@ -29631,7 +29577,7 @@ module.exports = SmootherStep; /***/ }), -/* 156 */ +/* 155 */ /***/ (function(module, exports) { /** @@ -29678,7 +29624,7 @@ module.exports = SmoothStep; /***/ }), -/* 157 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30051,7 +29997,7 @@ module.exports = Map; /***/ }), -/* 158 */ +/* 157 */ /***/ (function(module, exports) { /** @@ -30127,7 +30073,7 @@ module.exports = Pad; /***/ }), -/* 159 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30136,10 +30082,10 @@ module.exports = Pad; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HexStringToColor = __webpack_require__(291); -var IntegerToColor = __webpack_require__(294); -var ObjectToColor = __webpack_require__(296); -var RGBStringToColor = __webpack_require__(297); +var HexStringToColor = __webpack_require__(289); +var IntegerToColor = __webpack_require__(292); +var ObjectToColor = __webpack_require__(294); +var RGBStringToColor = __webpack_require__(295); /** * Converts the given source color value into an instance of a Color class. @@ -30183,7 +30129,7 @@ module.exports = ValueToColor; /***/ }), -/* 160 */ +/* 159 */ /***/ (function(module, exports) { /** @@ -30213,7 +30159,7 @@ module.exports = GetColor; /***/ }), -/* 161 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30222,7 +30168,7 @@ module.exports = GetColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetColor = __webpack_require__(160); +var GetColor = __webpack_require__(159); /** * Converts an HSV (hue, saturation and value) color value to RGB. @@ -30314,7 +30260,7 @@ module.exports = HSVToRGB; /***/ }), -/* 162 */ +/* 161 */ /***/ (function(module, exports) { /** @@ -30446,7 +30392,7 @@ module.exports = Smoothing(); /***/ }), -/* 163 */ +/* 162 */ /***/ (function(module, exports) { /** @@ -30483,7 +30429,7 @@ module.exports = CenterOn; /***/ }), -/* 164 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30492,18 +30438,18 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Back = __webpack_require__(299); -var Bounce = __webpack_require__(300); -var Circular = __webpack_require__(301); -var Cubic = __webpack_require__(302); -var Elastic = __webpack_require__(303); -var Expo = __webpack_require__(304); -var Linear = __webpack_require__(305); -var Quadratic = __webpack_require__(306); -var Quartic = __webpack_require__(307); -var Quintic = __webpack_require__(308); -var Sine = __webpack_require__(309); -var Stepped = __webpack_require__(310); +var Back = __webpack_require__(297); +var Bounce = __webpack_require__(298); +var Circular = __webpack_require__(299); +var Cubic = __webpack_require__(300); +var Elastic = __webpack_require__(301); +var Expo = __webpack_require__(302); +var Linear = __webpack_require__(303); +var Quadratic = __webpack_require__(304); +var Quartic = __webpack_require__(305); +var Quintic = __webpack_require__(306); +var Sine = __webpack_require__(307); +var Stepped = __webpack_require__(308); // EaseMap module.exports = { @@ -30564,7 +30510,7 @@ module.exports = { /***/ }), -/* 165 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30573,9 +30519,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); -var Browser = __webpack_require__(114); -var CanvasPool = __webpack_require__(26); +var OS = __webpack_require__(112); +var Browser = __webpack_require__(113); +var CanvasPool = __webpack_require__(27); /** * Determines the features of the browser running this Phaser Game instance. @@ -30756,7 +30702,7 @@ module.exports = init(); /***/ }), -/* 166 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30765,8 +30711,8 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(16); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Math @@ -30775,62 +30721,62 @@ var Extend = __webpack_require__(17); var PhaserMath = { // Collections of functions - Angle: __webpack_require__(730), - Distance: __webpack_require__(738), - Easing: __webpack_require__(743), - Fuzzy: __webpack_require__(744), - Interpolation: __webpack_require__(747), - Pow2: __webpack_require__(752), - Snap: __webpack_require__(754), + Angle: __webpack_require__(726), + Distance: __webpack_require__(734), + Easing: __webpack_require__(739), + Fuzzy: __webpack_require__(740), + Interpolation: __webpack_require__(743), + Pow2: __webpack_require__(748), + Snap: __webpack_require__(750), // Expose the RNG Class - RandomDataGenerator: __webpack_require__(756), + RandomDataGenerator: __webpack_require__(752), // Single functions - Average: __webpack_require__(757), - Bernstein: __webpack_require__(320), - Between: __webpack_require__(168), - CatmullRom: __webpack_require__(167), - CeilTo: __webpack_require__(758), - Clamp: __webpack_require__(22), + Average: __webpack_require__(753), + Bernstein: __webpack_require__(318), + Between: __webpack_require__(167), + CatmullRom: __webpack_require__(166), + CeilTo: __webpack_require__(754), + Clamp: __webpack_require__(23), DegToRad: __webpack_require__(35), - Difference: __webpack_require__(759), - Factorial: __webpack_require__(321), - FloatBetween: __webpack_require__(327), - FloorTo: __webpack_require__(760), - FromPercent: __webpack_require__(86), - GetSpeed: __webpack_require__(761), - IsEven: __webpack_require__(762), - IsEvenStrict: __webpack_require__(763), - Linear: __webpack_require__(112), - MaxAdd: __webpack_require__(764), - MinSub: __webpack_require__(765), - Percent: __webpack_require__(766), - RadToDeg: __webpack_require__(169), - RandomXY: __webpack_require__(767), - RandomXYZ: __webpack_require__(768), - RandomXYZW: __webpack_require__(769), - Rotate: __webpack_require__(328), - RotateAround: __webpack_require__(273), - RotateAroundDistance: __webpack_require__(154), - RoundAwayFromZero: __webpack_require__(329), - RoundTo: __webpack_require__(770), - SinCosTableGenerator: __webpack_require__(771), - SmootherStep: __webpack_require__(155), - SmoothStep: __webpack_require__(156), - ToXY: __webpack_require__(772), - TransformXY: __webpack_require__(330), - Within: __webpack_require__(773), + Difference: __webpack_require__(755), + Factorial: __webpack_require__(319), + FloatBetween: __webpack_require__(325), + FloorTo: __webpack_require__(756), + FromPercent: __webpack_require__(85), + GetSpeed: __webpack_require__(757), + IsEven: __webpack_require__(758), + IsEvenStrict: __webpack_require__(759), + Linear: __webpack_require__(111), + MaxAdd: __webpack_require__(760), + MinSub: __webpack_require__(761), + Percent: __webpack_require__(762), + RadToDeg: __webpack_require__(168), + RandomXY: __webpack_require__(763), + RandomXYZ: __webpack_require__(764), + RandomXYZW: __webpack_require__(765), + Rotate: __webpack_require__(326), + RotateAround: __webpack_require__(271), + RotateAroundDistance: __webpack_require__(153), + RoundAwayFromZero: __webpack_require__(327), + RoundTo: __webpack_require__(766), + SinCosTableGenerator: __webpack_require__(767), + SmootherStep: __webpack_require__(154), + SmoothStep: __webpack_require__(155), + ToXY: __webpack_require__(768), + TransformXY: __webpack_require__(328), + Within: __webpack_require__(769), Wrap: __webpack_require__(58), // Vector classes Vector2: __webpack_require__(3), - Vector3: __webpack_require__(170), - Vector4: __webpack_require__(331), - Matrix3: __webpack_require__(332), - Matrix4: __webpack_require__(333), - Quaternion: __webpack_require__(334), - RotateVec3: __webpack_require__(774) + Vector3: __webpack_require__(169), + Vector4: __webpack_require__(329), + Matrix3: __webpack_require__(330), + Matrix4: __webpack_require__(331), + Quaternion: __webpack_require__(332), + RotateVec3: __webpack_require__(770) }; @@ -30844,7 +30790,7 @@ module.exports = PhaserMath; /***/ }), -/* 167 */ +/* 166 */ /***/ (function(module, exports) { /** @@ -30881,7 +30827,7 @@ module.exports = CatmullRom; /***/ }), -/* 168 */ +/* 167 */ /***/ (function(module, exports) { /** @@ -30910,7 +30856,7 @@ module.exports = Between; /***/ }), -/* 169 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30919,7 +30865,7 @@ module.exports = Between; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Convert the given angle in radians, to the equivalent angle in degrees. @@ -30940,7 +30886,7 @@ module.exports = RadToDeg; /***/ }), -/* 170 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31750,7 +31696,7 @@ module.exports = Vector3; /***/ }), -/* 171 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31851,7 +31797,7 @@ module.exports = DefaultPlugins; /***/ }), -/* 172 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31860,8 +31806,8 @@ module.exports = DefaultPlugins; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var MATH_CONST = __webpack_require__(15); +var Rectangle = __webpack_require__(13); +var MATH_CONST = __webpack_require__(16); // points is an array of Point-like objects, // either 2 dimensional arrays, or objects with public x/y properties: @@ -31937,7 +31883,7 @@ module.exports = FromPoints; /***/ }), -/* 173 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31948,10 +31894,10 @@ module.exports = FromPoints; var CONST = { - CENTER: __webpack_require__(356), - ORIENTATION: __webpack_require__(357), - SCALE_MODE: __webpack_require__(358), - ZOOM: __webpack_require__(359) + CENTER: __webpack_require__(354), + ORIENTATION: __webpack_require__(355), + SCALE_MODE: __webpack_require__(356), + ZOOM: __webpack_require__(357) }; @@ -31959,7 +31905,7 @@ module.exports = CONST; /***/ }), -/* 174 */ +/* 173 */ /***/ (function(module, exports) { /** @@ -31988,7 +31934,7 @@ module.exports = RemoveFromDOM; /***/ }), -/* 175 */ +/* 174 */ /***/ (function(module, exports) { /** @@ -32086,7 +32032,7 @@ module.exports = INPUT_CONST; /***/ }), -/* 176 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32096,13 +32042,13 @@ module.exports = INPUT_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(120); -var DefaultPlugins = __webpack_require__(171); -var Events = __webpack_require__(21); -var GetPhysicsPlugins = __webpack_require__(873); -var GetScenePlugins = __webpack_require__(874); +var CONST = __webpack_require__(119); +var DefaultPlugins = __webpack_require__(170); +var Events = __webpack_require__(22); +var GetPhysicsPlugins = __webpack_require__(869); +var GetScenePlugins = __webpack_require__(870); var NOOP = __webpack_require__(1); -var Settings = __webpack_require__(372); +var Settings = __webpack_require__(370); /** * @classdesc @@ -32860,7 +32806,7 @@ module.exports = Systems; /***/ }), -/* 177 */ +/* 176 */ /***/ (function(module, exports) { /** @@ -32897,7 +32843,7 @@ module.exports = UppercaseFirst; /***/ }), -/* 178 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32907,8 +32853,8 @@ module.exports = UppercaseFirst; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(93); -var TextureSource = __webpack_require__(375); +var Frame = __webpack_require__(92); +var TextureSource = __webpack_require__(373); var TEXTURE_MISSING_ERROR = 'Texture.frame missing: '; @@ -33417,7 +33363,7 @@ module.exports = Texture; /***/ }), -/* 179 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33432,45 +33378,45 @@ module.exports = Texture; module.exports = { - Matrix: __webpack_require__(909), + Matrix: __webpack_require__(905), - Add: __webpack_require__(916), - AddAt: __webpack_require__(917), - BringToTop: __webpack_require__(918), - CountAllMatching: __webpack_require__(919), - Each: __webpack_require__(920), - EachInRange: __webpack_require__(921), - FindClosestInSorted: __webpack_require__(267), - GetAll: __webpack_require__(922), - GetFirst: __webpack_require__(923), - GetRandom: __webpack_require__(181), - MoveDown: __webpack_require__(924), - MoveTo: __webpack_require__(925), - MoveUp: __webpack_require__(926), - NumberArray: __webpack_require__(927), - NumberArrayStep: __webpack_require__(928), - QuickSelect: __webpack_require__(386), - Range: __webpack_require__(387), - Remove: __webpack_require__(118), - RemoveAt: __webpack_require__(929), - RemoveBetween: __webpack_require__(930), - RemoveRandomElement: __webpack_require__(931), - Replace: __webpack_require__(932), - RotateLeft: __webpack_require__(283), - RotateRight: __webpack_require__(284), + Add: __webpack_require__(912), + AddAt: __webpack_require__(913), + BringToTop: __webpack_require__(914), + CountAllMatching: __webpack_require__(915), + Each: __webpack_require__(916), + EachInRange: __webpack_require__(917), + FindClosestInSorted: __webpack_require__(265), + GetAll: __webpack_require__(918), + GetFirst: __webpack_require__(919), + GetRandom: __webpack_require__(180), + MoveDown: __webpack_require__(920), + MoveTo: __webpack_require__(921), + MoveUp: __webpack_require__(922), + NumberArray: __webpack_require__(923), + NumberArrayStep: __webpack_require__(924), + QuickSelect: __webpack_require__(384), + Range: __webpack_require__(385), + Remove: __webpack_require__(117), + RemoveAt: __webpack_require__(925), + RemoveBetween: __webpack_require__(926), + RemoveRandomElement: __webpack_require__(927), + Replace: __webpack_require__(928), + RotateLeft: __webpack_require__(281), + RotateRight: __webpack_require__(282), SafeRange: __webpack_require__(66), - SendToBack: __webpack_require__(933), - SetAll: __webpack_require__(934), - Shuffle: __webpack_require__(111), - SpliceOne: __webpack_require__(79), - StableSort: __webpack_require__(126), - Swap: __webpack_require__(935) + SendToBack: __webpack_require__(929), + SetAll: __webpack_require__(930), + Shuffle: __webpack_require__(110), + SpliceOne: __webpack_require__(78), + StableSort: __webpack_require__(125), + Swap: __webpack_require__(931) }; /***/ }), -/* 180 */ +/* 179 */ /***/ (function(module, exports) { /** @@ -33531,7 +33477,7 @@ module.exports = CheckMatrix; /***/ }), -/* 181 */ +/* 180 */ /***/ (function(module, exports) { /** @@ -33566,7 +33512,7 @@ module.exports = GetRandom; /***/ }), -/* 182 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33576,8 +33522,8 @@ module.exports = GetRandom; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(937); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(933); /** * @classdesc @@ -33857,7 +33803,7 @@ module.exports = ProcessQueue; /***/ }), -/* 183 */ +/* 182 */ /***/ (function(module, exports) { /** @@ -33996,7 +33942,7 @@ module.exports = ParseXMLBitmapFont; /***/ }), -/* 184 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34005,13 +33951,13 @@ module.exports = ParseXMLBitmapFont; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BlitterRender = __webpack_require__(945); -var Bob = __webpack_require__(948); +var BlitterRender = __webpack_require__(941); +var Bob = __webpack_require__(944); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Frame = __webpack_require__(93); -var GameObject = __webpack_require__(13); -var List = __webpack_require__(124); +var Components = __webpack_require__(12); +var Frame = __webpack_require__(92); +var GameObject = __webpack_require__(14); +var List = __webpack_require__(123); /** * @callback CreateCallback @@ -34295,7 +34241,7 @@ module.exports = Blitter; /***/ }), -/* 185 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34305,15 +34251,15 @@ module.exports = Blitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(179); +var ArrayUtils = __webpack_require__(178); var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Events = __webpack_require__(89); -var GameObject = __webpack_require__(13); -var Rectangle = __webpack_require__(12); -var Render = __webpack_require__(949); -var Union = __webpack_require__(389); +var Components = __webpack_require__(12); +var Events = __webpack_require__(88); +var GameObject = __webpack_require__(14); +var Rectangle = __webpack_require__(13); +var Render = __webpack_require__(945); +var Union = __webpack_require__(387); var Vector2 = __webpack_require__(3); /** @@ -35620,7 +35566,7 @@ module.exports = Container; /***/ }), -/* 186 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35629,9 +35575,9 @@ module.exports = Container; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); +var BitmapText = __webpack_require__(126); var Class = __webpack_require__(0); -var Render = __webpack_require__(954); +var Render = __webpack_require__(950); /** * @classdesc @@ -35853,7 +35799,7 @@ module.exports = DynamicBitmapText; /***/ }), -/* 187 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35862,26 +35808,26 @@ module.exports = DynamicBitmapText; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); +var BaseCamera = __webpack_require__(89); var Class = __webpack_require__(0); -var Commands = __webpack_require__(188); -var ComponentsAlpha = __webpack_require__(266); -var ComponentsBlendMode = __webpack_require__(269); -var ComponentsDepth = __webpack_require__(270); -var ComponentsMask = __webpack_require__(274); -var ComponentsPipeline = __webpack_require__(151); -var ComponentsTransform = __webpack_require__(279); -var ComponentsVisible = __webpack_require__(280); -var ComponentsScrollFactor = __webpack_require__(277); +var Commands = __webpack_require__(187); +var ComponentsAlpha = __webpack_require__(264); +var ComponentsBlendMode = __webpack_require__(267); +var ComponentsDepth = __webpack_require__(268); +var ComponentsMask = __webpack_require__(272); +var ComponentsPipeline = __webpack_require__(150); +var ComponentsTransform = __webpack_require__(277); +var ComponentsVisible = __webpack_require__(278); +var ComponentsScrollFactor = __webpack_require__(275); var TransformMatrix = __webpack_require__(30); -var Ellipse = __webpack_require__(94); -var GameObject = __webpack_require__(13); +var Ellipse = __webpack_require__(93); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); -var MATH_CONST = __webpack_require__(15); -var Render = __webpack_require__(960); +var MATH_CONST = __webpack_require__(16); +var Render = __webpack_require__(956); /** * @classdesc @@ -37403,7 +37349,7 @@ module.exports = Graphics; /***/ }), -/* 188 */ +/* 187 */ /***/ (function(module, exports) { /** @@ -37440,7 +37386,7 @@ module.exports = { /***/ }), -/* 189 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37482,7 +37428,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 190 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37492,12 +37438,12 @@ module.exports = CircumferencePoint; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var GravityWell = __webpack_require__(397); -var List = __webpack_require__(124); -var ParticleEmitter = __webpack_require__(399); -var Render = __webpack_require__(970); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var GravityWell = __webpack_require__(395); +var List = __webpack_require__(123); +var ParticleEmitter = __webpack_require__(397); +var Render = __webpack_require__(966); /** * @classdesc @@ -37971,7 +37917,7 @@ module.exports = ParticleEmitterManager; /***/ }), -/* 191 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37981,16 +37927,16 @@ module.exports = ParticleEmitterManager; */ var BlendModes = __webpack_require__(52); -var Camera = __webpack_require__(90); -var CanvasPool = __webpack_require__(26); +var Camera = __webpack_require__(89); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var CONST = __webpack_require__(29); -var Frame = __webpack_require__(93); -var GameObject = __webpack_require__(13); -var Render = __webpack_require__(974); +var Components = __webpack_require__(12); +var CONST = __webpack_require__(10); +var Frame = __webpack_require__(92); +var GameObject = __webpack_require__(14); +var Render = __webpack_require__(970); var Utils = __webpack_require__(9); -var UUID = __webpack_require__(192); +var UUID = __webpack_require__(191); /** * @classdesc @@ -39210,7 +39156,7 @@ module.exports = RenderTexture; /***/ }), -/* 192 */ +/* 191 */ /***/ (function(module, exports) { /** @@ -39245,7 +39191,7 @@ module.exports = UUID; /***/ }), -/* 193 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39255,9 +39201,9 @@ module.exports = UUID; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var RopeRender = __webpack_require__(980); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var RopeRender = __webpack_require__(976); var Vector2 = __webpack_require__(3); /** @@ -40351,7 +40297,7 @@ module.exports = Rope; /***/ }), -/* 194 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -40360,17 +40306,17 @@ module.exports = Rope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); -var CanvasPool = __webpack_require__(26); +var AddToDOM = __webpack_require__(116); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); -var GetTextSize = __webpack_require__(983); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); +var GetTextSize = __webpack_require__(979); var GetValue = __webpack_require__(6); -var RemoveFromDOM = __webpack_require__(174); -var TextRender = __webpack_require__(984); -var TextStyle = __webpack_require__(987); +var RemoveFromDOM = __webpack_require__(173); +var TextRender = __webpack_require__(980); +var TextStyle = __webpack_require__(983); /** * @classdesc @@ -41760,7 +41706,7 @@ module.exports = Text; /***/ }), -/* 195 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41769,14 +41715,14 @@ module.exports = Text; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); -var GetPowerOfTwo = __webpack_require__(325); -var Smoothing = __webpack_require__(162); -var TileSpriteRender = __webpack_require__(989); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); +var GetPowerOfTwo = __webpack_require__(323); +var Smoothing = __webpack_require__(161); +var TileSpriteRender = __webpack_require__(985); var Vector2 = __webpack_require__(3); // bitmask flag for GameObject.renderMask @@ -42412,7 +42358,7 @@ module.exports = TileSprite; /***/ }), -/* 196 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -42422,15 +42368,15 @@ module.exports = TileSprite; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); -var Components = __webpack_require__(11); -var Events = __webpack_require__(89); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); +var Clamp = __webpack_require__(23); +var Components = __webpack_require__(12); +var Events = __webpack_require__(88); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); var SoundEvents = __webpack_require__(59); -var UUID = __webpack_require__(192); -var VideoRender = __webpack_require__(992); -var MATH_CONST = __webpack_require__(15); +var UUID = __webpack_require__(191); +var VideoRender = __webpack_require__(988); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -44181,7 +44127,7 @@ module.exports = Video; /***/ }), -/* 197 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44191,8 +44137,8 @@ module.exports = Video; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(198); -var GetPoints = __webpack_require__(414); +var Contains = __webpack_require__(197); +var GetPoints = __webpack_require__(412); var GEOM_CONST = __webpack_require__(46); /** @@ -44415,7 +44361,7 @@ module.exports = Polygon; /***/ }), -/* 198 */ +/* 197 */ /***/ (function(module, exports) { /** @@ -44464,7 +44410,7 @@ module.exports = Contains; /***/ }), -/* 199 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44474,7 +44420,7 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); /** * @classdesc @@ -45125,7 +45071,7 @@ module.exports = Quad; /***/ }), -/* 200 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -45135,12 +45081,12 @@ module.exports = Quad; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var Extend = __webpack_require__(17); -var SetValue = __webpack_require__(422); -var ShaderRender = __webpack_require__(1075); +var Extend = __webpack_require__(18); +var SetValue = __webpack_require__(420); +var ShaderRender = __webpack_require__(1071); var TransformMatrix = __webpack_require__(30); /** @@ -46348,7 +46294,7 @@ module.exports = Shader; /***/ }), -/* 201 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46379,7 +46325,7 @@ module.exports = CircleToCircle; /***/ }), -/* 202 */ +/* 201 */ /***/ (function(module, exports) { /** @@ -46433,7 +46379,7 @@ module.exports = CircleToRectangle; /***/ }), -/* 203 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46444,7 +46390,7 @@ module.exports = CircleToRectangle; */ var Point = __webpack_require__(4); -var LineToCircle = __webpack_require__(204); +var LineToCircle = __webpack_require__(203); /** * Checks for intersection between the line segment and circle, @@ -46525,7 +46471,7 @@ module.exports = GetLineToCircle; /***/ }), -/* 204 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46609,7 +46555,7 @@ module.exports = LineToCircle; /***/ }), -/* 205 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46620,8 +46566,8 @@ module.exports = LineToCircle; */ var Point = __webpack_require__(4); -var LineToLine = __webpack_require__(83); -var LineToRectangle = __webpack_require__(427); +var LineToLine = __webpack_require__(82); +var LineToRectangle = __webpack_require__(425); /** * Checks for intersection between the Line and a Rectangle shape, @@ -46669,7 +46615,7 @@ module.exports = GetLineToRectangle; /***/ }), -/* 206 */ +/* 205 */ /***/ (function(module, exports) { /** @@ -46756,7 +46702,7 @@ module.exports = ContainsArray; /***/ }), -/* 207 */ +/* 206 */ /***/ (function(module, exports) { /** @@ -46804,7 +46750,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 208 */ +/* 207 */ /***/ (function(module, exports) { /** @@ -46832,7 +46778,7 @@ module.exports = GetAspectRatio; /***/ }), -/* 209 */ +/* 208 */ /***/ (function(module, exports) { /** @@ -46886,7 +46832,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 210 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46901,18 +46847,18 @@ module.exports = RotateAroundXY; module.exports = { - BUTTON_DOWN: __webpack_require__(1197), - BUTTON_UP: __webpack_require__(1198), - CONNECTED: __webpack_require__(1199), - DISCONNECTED: __webpack_require__(1200), - GAMEPAD_BUTTON_DOWN: __webpack_require__(1201), - GAMEPAD_BUTTON_UP: __webpack_require__(1202) + BUTTON_DOWN: __webpack_require__(1193), + BUTTON_UP: __webpack_require__(1194), + CONNECTED: __webpack_require__(1195), + DISCONNECTED: __webpack_require__(1196), + GAMEPAD_BUTTON_DOWN: __webpack_require__(1197), + GAMEPAD_BUTTON_UP: __webpack_require__(1198) }; /***/ }), -/* 211 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46921,8 +46867,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var XHRSettings = __webpack_require__(134); +var Extend = __webpack_require__(18); +var XHRSettings = __webpack_require__(133); /** * Takes two XHRSettings Objects and creates a new XHRSettings object from them. @@ -46960,7 +46906,7 @@ module.exports = MergeXHRSettings; /***/ }), -/* 212 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46970,12 +46916,12 @@ module.exports = MergeXHRSettings; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var ParseXML = __webpack_require__(361); +var ParseXML = __webpack_require__(359); /** * @classdesc @@ -47145,7 +47091,7 @@ module.exports = XMLFile; /***/ }), -/* 213 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47160,24 +47106,24 @@ module.exports = XMLFile; module.exports = { - Acceleration: __webpack_require__(1257), - Angular: __webpack_require__(1258), - Bounce: __webpack_require__(1259), - Debug: __webpack_require__(1260), - Drag: __webpack_require__(1261), - Enable: __webpack_require__(1262), - Friction: __webpack_require__(1263), - Gravity: __webpack_require__(1264), - Immovable: __webpack_require__(1265), - Mass: __webpack_require__(1266), - Size: __webpack_require__(1267), - Velocity: __webpack_require__(1268) + Acceleration: __webpack_require__(1253), + Angular: __webpack_require__(1254), + Bounce: __webpack_require__(1255), + Debug: __webpack_require__(1256), + Drag: __webpack_require__(1257), + Enable: __webpack_require__(1258), + Friction: __webpack_require__(1259), + Gravity: __webpack_require__(1260), + Immovable: __webpack_require__(1261), + Mass: __webpack_require__(1262), + Size: __webpack_require__(1263), + Velocity: __webpack_require__(1264) }; /***/ }), -/* 214 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47192,21 +47138,21 @@ module.exports = { module.exports = { - COLLIDE: __webpack_require__(1270), - OVERLAP: __webpack_require__(1271), - PAUSE: __webpack_require__(1272), - RESUME: __webpack_require__(1273), - TILE_COLLIDE: __webpack_require__(1274), - TILE_OVERLAP: __webpack_require__(1275), - WORLD_BOUNDS: __webpack_require__(1276), - WORLD_STEP: __webpack_require__(1277) + COLLIDE: __webpack_require__(1266), + OVERLAP: __webpack_require__(1267), + PAUSE: __webpack_require__(1268), + RESUME: __webpack_require__(1269), + TILE_COLLIDE: __webpack_require__(1270), + TILE_OVERLAP: __webpack_require__(1271), + WORLD_BOUNDS: __webpack_require__(1272), + WORLD_STEP: __webpack_require__(1273) }; /***/ }), -/* 215 */, -/* 216 */ +/* 214 */, +/* 215 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47215,7 +47161,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); +var GetTileAt = __webpack_require__(136); /** * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting @@ -47282,7 +47228,7 @@ module.exports = CalculateFacesAt; /***/ }), -/* 217 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47291,103 +47237,9 @@ module.exports = CalculateFacesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldX = __webpack_require__(470); -var TileToWorldY = __webpack_require__(471); -var Vector2 = __webpack_require__(3); - -/** - * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.TileToWorldXY - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {integer} tileY - The y coordinate, in tiles, not pixels. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in world coordinates. - */ -var TileToWorldXY = function (tileX, tileY, point, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (point === undefined) { point = new Vector2(0, 0); } - - - - - - if (orientation === 'orthogonal') - { - point.x = TileToWorldX(tileX, camera, layer, orientation); - point.y = TileToWorldY(tileY, camera, layer, orientation); - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - - var layerWorldX = 0; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - tileWidth *= tilemapLayer.scaleX; - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - - if (orientation === 'isometric') - { - point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); - point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); - } - else if (orientation === 'staggered') - { - point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); - point.y = layerWorldY + tileY * (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // similar to staggered, because Tiled uses the oddr representation. - point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); - point.y = layerWorldY + tileY * rowHeight; - } - - - } - - return point; -}; - -module.exports = TileToWorldXY; - - -/***/ }), -/* 218 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Tile = __webpack_require__(73); -var IsInLayerBounds = __webpack_require__(100); -var CalculateFacesAt = __webpack_require__(216); +var Tile = __webpack_require__(72); +var IsInLayerBounds = __webpack_require__(99); +var CalculateFacesAt = __webpack_require__(215); var SetTileCollision = __webpack_require__(71); /** @@ -47456,7 +47308,7 @@ module.exports = PutTileAt; /***/ }), -/* 219 */ +/* 217 */ /***/ (function(module, exports) { /** @@ -47495,7 +47347,7 @@ module.exports = SetLayerCollisionIndex; /***/ }), -/* 220 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47505,9 +47357,9 @@ module.exports = SetLayerCollisionIndex; */ var Formats = __webpack_require__(33); -var LayerData = __webpack_require__(101); -var MapData = __webpack_require__(102); -var Tile = __webpack_require__(73); +var LayerData = __webpack_require__(100); +var MapData = __webpack_require__(101); +var Tile = __webpack_require__(72); /** * Parses a 2D array of tile indexes into a new MapData object with a single layer. @@ -47586,7 +47438,7 @@ module.exports = Parse2DArray; /***/ }), -/* 221 */ +/* 219 */ /***/ (function(module, exports) { /** @@ -47676,7 +47528,7 @@ module.exports = ParseGID; /***/ }), -/* 222 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47737,7 +47589,7 @@ module.exports = CreateGroupLayer; /***/ }), -/* 223 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47746,8 +47598,8 @@ module.exports = CreateGroupLayer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pick = __webpack_require__(485); -var ParseGID = __webpack_require__(221); +var Pick = __webpack_require__(481); +var ParseGID = __webpack_require__(219); var copyPoints = function (p) { return { x: p.x, y: p.y }; }; @@ -47819,7 +47671,7 @@ module.exports = ParseObject; /***/ }), -/* 224 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47829,9 +47681,9 @@ module.exports = ParseObject; */ var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var Parse = __webpack_require__(477); -var Tilemap = __webpack_require__(493); +var MapData = __webpack_require__(101); +var Parse = __webpack_require__(473); +var Tilemap = __webpack_require__(489); /** * Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When @@ -47905,7 +47757,7 @@ module.exports = ParseToTilemap; /***/ }), -/* 225 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47954,7 +47806,7 @@ module.exports = GetTargets; /***/ }), -/* 226 */ +/* 224 */ /***/ (function(module, exports) { /** @@ -48222,7 +48074,7 @@ module.exports = GetValueOp; /***/ }), -/* 227 */ +/* 225 */ /***/ (function(module, exports) { /** @@ -48266,7 +48118,7 @@ module.exports = TWEEN_DEFAULTS; /***/ }), -/* 228 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48276,12 +48128,12 @@ module.exports = TWEEN_DEFAULTS; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(229); -var GameObjectCreator = __webpack_require__(16); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(227); +var GameObjectCreator = __webpack_require__(17); var GameObjectFactory = __webpack_require__(5); -var TWEEN_CONST = __webpack_require__(88); -var MATH_CONST = __webpack_require__(15); +var TWEEN_CONST = __webpack_require__(87); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -49910,7 +49762,7 @@ module.exports = Tween; /***/ }), -/* 229 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -49943,7 +49795,7 @@ module.exports = { /***/ }), -/* 230 */ +/* 228 */ /***/ (function(module, exports) { /** @@ -50070,7 +49922,7 @@ module.exports = TweenData; /***/ }), -/* 231 */ +/* 229 */ /***/ (function(module, exports) { /** @@ -50124,7 +49976,7 @@ module.exports = ScaleModes; /***/ }), -/* 232 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50156,7 +50008,7 @@ module.exports = Wrap; /***/ }), -/* 233 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50188,7 +50040,7 @@ module.exports = WrapDegrees; /***/ }), -/* 234 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50201,12 +50053,12 @@ module.exports = WrapDegrees; var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(235); -var ShaderSourceFS = __webpack_require__(337); -var ShaderSourceVS = __webpack_require__(338); +var ModelViewProjection = __webpack_require__(233); +var ShaderSourceFS = __webpack_require__(335); +var ShaderSourceVS = __webpack_require__(336); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); -var WebGLPipeline = __webpack_require__(142); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -51696,7 +51548,7 @@ module.exports = TextureTintPipeline; /***/ }), -/* 235 */ +/* 233 */ /***/ (function(module, exports) { /** @@ -52446,9 +52298,9 @@ module.exports = ModelViewProjection; /***/ }), -/* 236 */, -/* 237 */, -/* 238 */ +/* 234 */, +/* 235 */, +/* 236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52463,65 +52315,65 @@ module.exports = ModelViewProjection; module.exports = { - AlignTo: __webpack_require__(526), - Angle: __webpack_require__(527), - Call: __webpack_require__(528), - GetFirst: __webpack_require__(529), - GetLast: __webpack_require__(530), - GridAlign: __webpack_require__(531), - IncAlpha: __webpack_require__(592), - IncX: __webpack_require__(593), - IncXY: __webpack_require__(594), - IncY: __webpack_require__(595), - PlaceOnCircle: __webpack_require__(596), - PlaceOnEllipse: __webpack_require__(597), - PlaceOnLine: __webpack_require__(598), - PlaceOnRectangle: __webpack_require__(599), - PlaceOnTriangle: __webpack_require__(600), - PlayAnimation: __webpack_require__(601), + AlignTo: __webpack_require__(522), + Angle: __webpack_require__(523), + Call: __webpack_require__(524), + GetFirst: __webpack_require__(525), + GetLast: __webpack_require__(526), + GridAlign: __webpack_require__(527), + IncAlpha: __webpack_require__(588), + IncX: __webpack_require__(589), + IncXY: __webpack_require__(590), + IncY: __webpack_require__(591), + PlaceOnCircle: __webpack_require__(592), + PlaceOnEllipse: __webpack_require__(593), + PlaceOnLine: __webpack_require__(594), + PlaceOnRectangle: __webpack_require__(595), + PlaceOnTriangle: __webpack_require__(596), + PlayAnimation: __webpack_require__(597), PropertyValueInc: __webpack_require__(34), - PropertyValueSet: __webpack_require__(25), - RandomCircle: __webpack_require__(602), - RandomEllipse: __webpack_require__(603), - RandomLine: __webpack_require__(604), - RandomRectangle: __webpack_require__(605), - RandomTriangle: __webpack_require__(606), - Rotate: __webpack_require__(607), - RotateAround: __webpack_require__(608), - RotateAroundDistance: __webpack_require__(609), - ScaleX: __webpack_require__(610), - ScaleXY: __webpack_require__(611), - ScaleY: __webpack_require__(612), - SetAlpha: __webpack_require__(613), - SetBlendMode: __webpack_require__(614), - SetDepth: __webpack_require__(615), - SetHitArea: __webpack_require__(616), - SetOrigin: __webpack_require__(617), - SetRotation: __webpack_require__(618), - SetScale: __webpack_require__(619), - SetScaleX: __webpack_require__(620), - SetScaleY: __webpack_require__(621), - SetScrollFactor: __webpack_require__(622), - SetScrollFactorX: __webpack_require__(623), - SetScrollFactorY: __webpack_require__(624), - SetTint: __webpack_require__(625), - SetVisible: __webpack_require__(626), - SetX: __webpack_require__(627), - SetXY: __webpack_require__(628), - SetY: __webpack_require__(629), - ShiftPosition: __webpack_require__(630), - Shuffle: __webpack_require__(631), - SmootherStep: __webpack_require__(632), - SmoothStep: __webpack_require__(633), - Spread: __webpack_require__(634), - ToggleVisible: __webpack_require__(635), - WrapInRectangle: __webpack_require__(636) + PropertyValueSet: __webpack_require__(26), + RandomCircle: __webpack_require__(598), + RandomEllipse: __webpack_require__(599), + RandomLine: __webpack_require__(600), + RandomRectangle: __webpack_require__(601), + RandomTriangle: __webpack_require__(602), + Rotate: __webpack_require__(603), + RotateAround: __webpack_require__(604), + RotateAroundDistance: __webpack_require__(605), + ScaleX: __webpack_require__(606), + ScaleXY: __webpack_require__(607), + ScaleY: __webpack_require__(608), + SetAlpha: __webpack_require__(609), + SetBlendMode: __webpack_require__(610), + SetDepth: __webpack_require__(611), + SetHitArea: __webpack_require__(612), + SetOrigin: __webpack_require__(613), + SetRotation: __webpack_require__(614), + SetScale: __webpack_require__(615), + SetScaleX: __webpack_require__(616), + SetScaleY: __webpack_require__(617), + SetScrollFactor: __webpack_require__(618), + SetScrollFactorX: __webpack_require__(619), + SetScrollFactorY: __webpack_require__(620), + SetTint: __webpack_require__(621), + SetVisible: __webpack_require__(622), + SetX: __webpack_require__(623), + SetXY: __webpack_require__(624), + SetY: __webpack_require__(625), + ShiftPosition: __webpack_require__(626), + Shuffle: __webpack_require__(627), + SmootherStep: __webpack_require__(628), + SmoothStep: __webpack_require__(629), + Spread: __webpack_require__(630), + ToggleVisible: __webpack_require__(631), + WrapInRectangle: __webpack_require__(632) }; /***/ }), -/* 239 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52530,22 +52382,22 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(103); +var ALIGN_CONST = __webpack_require__(102); var AlignToMap = []; -AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(240); -AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(241); -AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(242); -AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(243); -AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(244); -AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(245); -AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(246); -AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(247); -AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(248); -AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(249); -AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(250); -AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(251); +AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(238); +AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(239); +AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(240); +AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(241); +AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(242); +AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(243); +AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(244); +AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(245); +AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(246); +AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(247); +AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(248); +AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(249); /** * Takes a Game Object and aligns it next to another, at the given position. @@ -52573,7 +52425,7 @@ module.exports = QuickSet; /***/ }), -/* 240 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52583,8 +52435,8 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(75); -var SetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(74); +var SetCenterX = __webpack_require__(75); var SetTop = __webpack_require__(39); /** @@ -52617,7 +52469,7 @@ module.exports = BottomCenter; /***/ }), -/* 241 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52661,7 +52513,7 @@ module.exports = BottomLeft; /***/ }), -/* 242 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52705,7 +52557,7 @@ module.exports = BottomRight; /***/ }), -/* 243 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52749,7 +52601,7 @@ module.exports = LeftBottom; /***/ }), -/* 244 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52758,9 +52610,9 @@ module.exports = LeftBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetRight = __webpack_require__(43); /** @@ -52793,7 +52645,7 @@ module.exports = LeftCenter; /***/ }), -/* 245 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52837,7 +52689,7 @@ module.exports = LeftTop; /***/ }), -/* 246 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52881,7 +52733,7 @@ module.exports = RightBottom; /***/ }), -/* 247 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52890,9 +52742,9 @@ module.exports = RightBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetLeft = __webpack_require__(41); /** @@ -52925,7 +52777,7 @@ module.exports = RightCenter; /***/ }), -/* 248 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52969,7 +52821,7 @@ module.exports = RightTop; /***/ }), -/* 249 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52978,10 +52830,10 @@ module.exports = RightTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var GetTop = __webpack_require__(45); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); /** * Takes given Game Object and aligns it so that it is positioned next to the top center position of the other. @@ -53013,7 +52865,7 @@ module.exports = TopCenter; /***/ }), -/* 250 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53057,7 +52909,7 @@ module.exports = TopLeft; /***/ }), -/* 251 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53101,7 +52953,7 @@ module.exports = TopRight; /***/ }), -/* 252 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53110,19 +52962,19 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(103); +var ALIGN_CONST = __webpack_require__(102); var AlignInMap = []; -AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(253); -AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(254); -AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(255); -AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(256); -AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(258); -AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(259); -AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(260); -AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(261); -AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(262); +AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(251); +AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(252); +AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(253); +AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(254); +AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(256); +AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(257); +AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(258); +AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(259); +AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(260); AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT]; AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT]; AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT]; @@ -53154,7 +53006,7 @@ module.exports = QuickSet; /***/ }), -/* 253 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53164,9 +53016,9 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); /** * Takes given Game Object and aligns it so that it is positioned in the bottom center of the other. @@ -53198,7 +53050,7 @@ module.exports = BottomCenter; /***/ }), -/* 254 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53242,7 +53094,7 @@ module.exports = BottomLeft; /***/ }), -/* 255 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53286,7 +53138,7 @@ module.exports = BottomRight; /***/ }), -/* 256 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53295,9 +53147,9 @@ module.exports = BottomRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(257); -var GetCenterX = __webpack_require__(75); -var GetCenterY = __webpack_require__(77); +var CenterOn = __webpack_require__(255); +var GetCenterX = __webpack_require__(74); +var GetCenterY = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned in the center of the other. @@ -53328,7 +53180,7 @@ module.exports = Center; /***/ }), -/* 257 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53337,8 +53189,8 @@ module.exports = Center; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetCenterX = __webpack_require__(76); -var SetCenterY = __webpack_require__(78); +var SetCenterX = __webpack_require__(75); +var SetCenterY = __webpack_require__(77); /** * Positions the Game Object so that it is centered on the given coordinates. @@ -53365,7 +53217,7 @@ module.exports = CenterOn; /***/ }), -/* 258 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53374,9 +53226,9 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetLeft = __webpack_require__(41); /** @@ -53409,7 +53261,7 @@ module.exports = LeftCenter; /***/ }), -/* 259 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53418,9 +53270,9 @@ module.exports = LeftCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetRight = __webpack_require__(43); /** @@ -53453,7 +53305,7 @@ module.exports = RightCenter; /***/ }), -/* 260 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53462,9 +53314,9 @@ module.exports = RightCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var GetTop = __webpack_require__(45); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); var SetTop = __webpack_require__(39); /** @@ -53497,7 +53349,7 @@ module.exports = TopCenter; /***/ }), -/* 261 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53541,7 +53393,7 @@ module.exports = TopLeft; /***/ }), -/* 262 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53585,7 +53437,7 @@ module.exports = TopRight; /***/ }), -/* 263 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53594,9 +53446,9 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(144); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var CircumferencePoint = __webpack_require__(143); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); var Point = __webpack_require__(4); /** @@ -53628,7 +53480,7 @@ module.exports = GetPoint; /***/ }), -/* 264 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53637,10 +53489,10 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(265); -var CircumferencePoint = __webpack_require__(144); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var Circumference = __webpack_require__(263); +var CircumferencePoint = __webpack_require__(143); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); /** * Returns an array of Point objects containing the coordinates of the points around the circumference of the Circle, @@ -53680,7 +53532,7 @@ module.exports = GetPoints; /***/ }), -/* 265 */ +/* 263 */ /***/ (function(module, exports) { /** @@ -53708,7 +53560,7 @@ module.exports = Circumference; /***/ }), -/* 266 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53717,7 +53569,7 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); // bitmask flag for GameObject.renderMask var _FLAG = 2; // 0010 @@ -53818,7 +53670,7 @@ module.exports = AlphaSingle; /***/ }), -/* 267 */ +/* 265 */ /***/ (function(module, exports) { /** @@ -53902,7 +53754,7 @@ module.exports = FindClosestInSorted; /***/ }), -/* 268 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54076,7 +53928,7 @@ module.exports = AnimationFrame; /***/ }), -/* 269 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54198,7 +54050,7 @@ module.exports = BlendMode; /***/ }), -/* 270 */ +/* 268 */ /***/ (function(module, exports) { /** @@ -54291,7 +54143,7 @@ module.exports = Depth; /***/ }), -/* 271 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54300,8 +54152,8 @@ module.exports = Depth; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoint = __webpack_require__(147); -var Perimeter = __webpack_require__(109); +var GetPoint = __webpack_require__(146); +var Perimeter = __webpack_require__(108); // Return an array of points from the perimeter of the rectangle // each spaced out based on the quantity or step required @@ -54345,7 +54197,7 @@ module.exports = GetPoints; /***/ }), -/* 272 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54384,7 +54236,7 @@ module.exports = GetPoint; /***/ }), -/* 273 */ +/* 271 */ /***/ (function(module, exports) { /** @@ -54424,7 +54276,7 @@ module.exports = RotateAround; /***/ }), -/* 274 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54433,8 +54285,8 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapMask = __webpack_require__(275); -var GeometryMask = __webpack_require__(276); +var BitmapMask = __webpack_require__(273); +var GeometryMask = __webpack_require__(274); /** * Provides methods used for getting and setting the mask of a Game Object. @@ -54571,7 +54423,7 @@ module.exports = Mask; /***/ }), -/* 275 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54581,7 +54433,7 @@ module.exports = Mask; */ var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); /** * @classdesc @@ -54864,7 +54716,7 @@ module.exports = BitmapMask; /***/ }), -/* 276 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55179,7 +55031,7 @@ module.exports = GeometryMask; /***/ }), -/* 277 */ +/* 275 */ /***/ (function(module, exports) { /** @@ -55286,7 +55138,7 @@ module.exports = ScrollFactor; /***/ }), -/* 278 */ +/* 276 */ /***/ (function(module, exports) { /** @@ -55347,7 +55199,7 @@ module.exports = ToJSON; /***/ }), -/* 279 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55356,10 +55208,10 @@ module.exports = ToJSON; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var TransformMatrix = __webpack_require__(30); -var WrapAngle = __webpack_require__(232); -var WrapAngleDegrees = __webpack_require__(233); +var WrapAngle = __webpack_require__(230); +var WrapAngleDegrees = __webpack_require__(231); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -55886,7 +55738,7 @@ module.exports = Transform; /***/ }), -/* 280 */ +/* 278 */ /***/ (function(module, exports) { /** @@ -55975,7 +55827,7 @@ module.exports = Visible; /***/ }), -/* 281 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55990,16 +55842,16 @@ module.exports = Visible; module.exports = { - CHANGE_DATA: __webpack_require__(577), - CHANGE_DATA_KEY: __webpack_require__(578), - REMOVE_DATA: __webpack_require__(579), - SET_DATA: __webpack_require__(580) + CHANGE_DATA: __webpack_require__(573), + CHANGE_DATA_KEY: __webpack_require__(574), + REMOVE_DATA: __webpack_require__(575), + SET_DATA: __webpack_require__(576) }; /***/ }), -/* 282 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56008,7 +55860,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(109); +var Perimeter = __webpack_require__(108); var Point = __webpack_require__(4); @@ -56118,7 +55970,7 @@ module.exports = MarchingAnts; /***/ }), -/* 283 */ +/* 281 */ /***/ (function(module, exports) { /** @@ -56158,7 +56010,7 @@ module.exports = RotateLeft; /***/ }), -/* 284 */ +/* 282 */ /***/ (function(module, exports) { /** @@ -56198,7 +56050,7 @@ module.exports = RotateRight; /***/ }), -/* 285 */ +/* 283 */ /***/ (function(module, exports) { /** @@ -56272,7 +56124,7 @@ module.exports = BresenhamPoints; /***/ }), -/* 286 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56281,14 +56133,14 @@ module.exports = BresenhamPoints; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Animation = __webpack_require__(146); +var Animation = __webpack_require__(145); var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(157); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(108); -var GameEvents = __webpack_require__(18); +var CustomMap = __webpack_require__(156); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(107); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); -var Pad = __webpack_require__(158); +var Pad = __webpack_require__(157); /** * @classdesc @@ -56954,7 +56806,7 @@ module.exports = AnimationManager; /***/ }), -/* 287 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56964,9 +56816,9 @@ module.exports = AnimationManager; */ var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(157); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(288); +var CustomMap = __webpack_require__(156); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(286); /** * @classdesc @@ -57140,7 +56992,7 @@ module.exports = BaseCache; /***/ }), -/* 288 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57155,14 +57007,14 @@ module.exports = BaseCache; module.exports = { - ADD: __webpack_require__(639), - REMOVE: __webpack_require__(640) + ADD: __webpack_require__(635), + REMOVE: __webpack_require__(636) }; /***/ }), -/* 289 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57171,9 +57023,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCache = __webpack_require__(287); +var BaseCache = __webpack_require__(285); var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); /** * @classdesc @@ -57396,7 +57248,7 @@ module.exports = CacheManager; /***/ }), -/* 290 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57405,15 +57257,15 @@ module.exports = CacheManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); -var CanvasPool = __webpack_require__(26); -var CenterOn = __webpack_require__(163); -var Clamp = __webpack_require__(22); +var BaseCamera = __webpack_require__(89); +var CanvasPool = __webpack_require__(27); +var CenterOn = __webpack_require__(162); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Effects = __webpack_require__(298); -var Linear = __webpack_require__(112); -var Rectangle = __webpack_require__(12); +var Components = __webpack_require__(12); +var Effects = __webpack_require__(296); +var Linear = __webpack_require__(111); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); /** @@ -58414,7 +58266,7 @@ module.exports = Camera; /***/ }), -/* 291 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58467,7 +58319,7 @@ module.exports = HexStringToColor; /***/ }), -/* 292 */ +/* 290 */ /***/ (function(module, exports) { /** @@ -58498,7 +58350,7 @@ module.exports = GetColor32; /***/ }), -/* 293 */ +/* 291 */ /***/ (function(module, exports) { /** @@ -58578,7 +58430,7 @@ module.exports = RGBToHSV; /***/ }), -/* 294 */ +/* 292 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58588,7 +58440,7 @@ module.exports = RGBToHSV; */ var Color = __webpack_require__(32); -var IntegerToRGB = __webpack_require__(295); +var IntegerToRGB = __webpack_require__(293); /** * Converts the given color value into an instance of a Color object. @@ -58611,7 +58463,7 @@ module.exports = IntegerToColor; /***/ }), -/* 295 */ +/* 293 */ /***/ (function(module, exports) { /** @@ -58659,7 +58511,7 @@ module.exports = IntegerToRGB; /***/ }), -/* 296 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58689,7 +58541,7 @@ module.exports = ObjectToColor; /***/ }), -/* 297 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58735,7 +58587,7 @@ module.exports = RGBStringToColor; /***/ }), -/* 298 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58750,11 +58602,57 @@ module.exports = RGBStringToColor; module.exports = { - Fade: __webpack_require__(661), - Flash: __webpack_require__(662), - Pan: __webpack_require__(663), - Shake: __webpack_require__(696), - Zoom: __webpack_require__(697) + Fade: __webpack_require__(657), + Flash: __webpack_require__(658), + Pan: __webpack_require__(659), + Shake: __webpack_require__(692), + Zoom: __webpack_require__(693) + +}; + + +/***/ }), +/* 297 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Back + */ + +module.exports = { + + In: __webpack_require__(660), + Out: __webpack_require__(661), + InOut: __webpack_require__(662) + +}; + + +/***/ }), +/* 298 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Bounce + */ + +module.exports = { + + In: __webpack_require__(663), + Out: __webpack_require__(664), + InOut: __webpack_require__(665) }; @@ -58770,14 +58668,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Back + * @namespace Phaser.Math.Easing.Circular */ module.exports = { - In: __webpack_require__(664), - Out: __webpack_require__(665), - InOut: __webpack_require__(666) + In: __webpack_require__(666), + Out: __webpack_require__(667), + InOut: __webpack_require__(668) }; @@ -58793,14 +58691,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Bounce + * @namespace Phaser.Math.Easing.Cubic */ module.exports = { - In: __webpack_require__(667), - Out: __webpack_require__(668), - InOut: __webpack_require__(669) + In: __webpack_require__(669), + Out: __webpack_require__(670), + InOut: __webpack_require__(671) }; @@ -58816,14 +58714,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Circular + * @namespace Phaser.Math.Easing.Elastic */ module.exports = { - In: __webpack_require__(670), - Out: __webpack_require__(671), - InOut: __webpack_require__(672) + In: __webpack_require__(672), + Out: __webpack_require__(673), + InOut: __webpack_require__(674) }; @@ -58839,14 +58737,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Cubic + * @namespace Phaser.Math.Easing.Expo */ module.exports = { - In: __webpack_require__(673), - Out: __webpack_require__(674), - InOut: __webpack_require__(675) + In: __webpack_require__(675), + Out: __webpack_require__(676), + InOut: __webpack_require__(677) }; @@ -58862,16 +58760,10 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Elastic + * @namespace Phaser.Math.Easing.Linear */ -module.exports = { - - In: __webpack_require__(676), - Out: __webpack_require__(677), - InOut: __webpack_require__(678) - -}; +module.exports = __webpack_require__(678); /***/ }), @@ -58885,7 +58777,7 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Expo + * @namespace Phaser.Math.Easing.Quadratic */ module.exports = { @@ -58908,10 +58800,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Linear + * @namespace Phaser.Math.Easing.Quartic */ -module.exports = __webpack_require__(682); +module.exports = { + + In: __webpack_require__(682), + Out: __webpack_require__(683), + InOut: __webpack_require__(684) + +}; /***/ }), @@ -58925,14 +58823,14 @@ module.exports = __webpack_require__(682); */ /** - * @namespace Phaser.Math.Easing.Quadratic + * @namespace Phaser.Math.Easing.Quintic */ module.exports = { - In: __webpack_require__(683), - Out: __webpack_require__(684), - InOut: __webpack_require__(685) + In: __webpack_require__(685), + Out: __webpack_require__(686), + InOut: __webpack_require__(687) }; @@ -58948,14 +58846,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quartic + * @namespace Phaser.Math.Easing.Sine */ module.exports = { - In: __webpack_require__(686), - Out: __webpack_require__(687), - InOut: __webpack_require__(688) + In: __webpack_require__(688), + Out: __webpack_require__(689), + InOut: __webpack_require__(690) }; @@ -58971,62 +58869,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quintic + * @namespace Phaser.Math.Easing.Stepped */ -module.exports = { - - In: __webpack_require__(689), - Out: __webpack_require__(690), - InOut: __webpack_require__(691) - -}; +module.exports = __webpack_require__(691); /***/ }), /* 309 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Sine - */ - -module.exports = { - - In: __webpack_require__(692), - Out: __webpack_require__(693), - InOut: __webpack_require__(694) - -}; - - -/***/ }), -/* 310 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Stepped - */ - -module.exports = __webpack_require__(695); - - -/***/ }), -/* 311 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -59034,15 +58886,15 @@ module.exports = __webpack_require__(695); */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var Device = __webpack_require__(312); +var CONST = __webpack_require__(10); +var Device = __webpack_require__(310); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var PhaserMath = __webpack_require__(166); +var PhaserMath = __webpack_require__(165); var NOOP = __webpack_require__(1); -var DefaultPlugins = __webpack_require__(171); -var ValueToColor = __webpack_require__(159); +var DefaultPlugins = __webpack_require__(170); +var ValueToColor = __webpack_require__(158); /** * @classdesc @@ -59605,7 +59457,7 @@ module.exports = Config; /***/ }), -/* 312 */ +/* 310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59639,20 +59491,20 @@ module.exports = Config; module.exports = { - os: __webpack_require__(113), - browser: __webpack_require__(114), - features: __webpack_require__(165), - input: __webpack_require__(726), - audio: __webpack_require__(727), - video: __webpack_require__(728), - fullscreen: __webpack_require__(729), - canvasFeatures: __webpack_require__(313) + os: __webpack_require__(112), + browser: __webpack_require__(113), + features: __webpack_require__(164), + input: __webpack_require__(722), + audio: __webpack_require__(723), + video: __webpack_require__(724), + fullscreen: __webpack_require__(725), + canvasFeatures: __webpack_require__(311) }; /***/ }), -/* 313 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59661,7 +59513,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); /** * Determines the canvas features of the browser running this Phaser Game instance. @@ -59766,7 +59618,7 @@ module.exports = init(); /***/ }), -/* 314 */ +/* 312 */ /***/ (function(module, exports) { /** @@ -59797,7 +59649,7 @@ module.exports = Between; /***/ }), -/* 315 */ +/* 313 */ /***/ (function(module, exports) { /** @@ -59834,7 +59686,7 @@ module.exports = Normalize; /***/ }), -/* 316 */ +/* 314 */ /***/ (function(module, exports) { /** @@ -59866,7 +59718,7 @@ module.exports = DistanceBetweenPoints; /***/ }), -/* 317 */ +/* 315 */ /***/ (function(module, exports) { /** @@ -59900,7 +59752,7 @@ module.exports = DistanceSquared; /***/ }), -/* 318 */ +/* 316 */ /***/ (function(module, exports) { /** @@ -59934,7 +59786,7 @@ module.exports = GreaterThan; /***/ }), -/* 319 */ +/* 317 */ /***/ (function(module, exports) { /** @@ -59968,7 +59820,7 @@ module.exports = LessThan; /***/ }), -/* 320 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59977,7 +59829,7 @@ module.exports = LessThan; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Factorial = __webpack_require__(321); +var Factorial = __webpack_require__(319); /** * Calculates the Bernstein basis from the three factorial coefficients. @@ -59999,7 +59851,7 @@ module.exports = Bernstein; /***/ }), -/* 321 */ +/* 319 */ /***/ (function(module, exports) { /** @@ -60039,7 +59891,7 @@ module.exports = Factorial; /***/ }), -/* 322 */ +/* 320 */ /***/ (function(module, exports) { /** @@ -60109,7 +59961,7 @@ module.exports = CubicBezierInterpolation; /***/ }), -/* 323 */ +/* 321 */ /***/ (function(module, exports) { /** @@ -60168,7 +60020,7 @@ module.exports = QuadraticBezierInterpolation; /***/ }), -/* 324 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60177,7 +60029,7 @@ module.exports = QuadraticBezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmoothStep = __webpack_require__(156); +var SmoothStep = __webpack_require__(155); /** * A Smooth Step interpolation method. @@ -60201,7 +60053,7 @@ module.exports = SmoothStepInterpolation; /***/ }), -/* 325 */ +/* 323 */ /***/ (function(module, exports) { /** @@ -60231,7 +60083,7 @@ module.exports = GetPowerOfTwo; /***/ }), -/* 326 */ +/* 324 */ /***/ (function(module, exports) { /** @@ -60275,7 +60127,7 @@ module.exports = SnapCeil; /***/ }), -/* 327 */ +/* 325 */ /***/ (function(module, exports) { /** @@ -60304,7 +60156,7 @@ module.exports = FloatBetween; /***/ }), -/* 328 */ +/* 326 */ /***/ (function(module, exports) { /** @@ -60339,7 +60191,7 @@ module.exports = Rotate; /***/ }), -/* 329 */ +/* 327 */ /***/ (function(module, exports) { /** @@ -60368,7 +60220,7 @@ module.exports = RoundAwayFromZero; /***/ }), -/* 330 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60423,7 +60275,7 @@ module.exports = TransformXY; /***/ }), -/* 331 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60968,7 +60820,7 @@ module.exports = Vector4; /***/ }), -/* 332 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61561,7 +61413,7 @@ module.exports = Matrix3; /***/ }), -/* 333 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63023,7 +62875,7 @@ module.exports = Matrix4; /***/ }), -/* 334 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63036,8 +62888,8 @@ module.exports = Matrix4; // and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl var Class = __webpack_require__(0); -var Vector3 = __webpack_require__(170); -var Matrix3 = __webpack_require__(332); +var Vector3 = __webpack_require__(169); +var Matrix3 = __webpack_require__(330); var EPSILON = 0.000001; @@ -63795,7 +63647,7 @@ module.exports = Quaternion; /***/ }), -/* 335 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63804,10 +63656,10 @@ module.exports = Quaternion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasInterpolation = __webpack_require__(336); -var CanvasPool = __webpack_require__(26); -var CONST = __webpack_require__(29); -var Features = __webpack_require__(165); +var CanvasInterpolation = __webpack_require__(334); +var CanvasPool = __webpack_require__(27); +var CONST = __webpack_require__(10); +var Features = __webpack_require__(164); /** * Called automatically by Phaser.Game and responsible for creating the renderer it will use. @@ -63897,8 +63749,8 @@ var CreateRenderer = function (game) if (true) { - CanvasRenderer = __webpack_require__(504); - WebGLRenderer = __webpack_require__(507); + CanvasRenderer = __webpack_require__(500); + WebGLRenderer = __webpack_require__(503); // Let the config pick the renderer type, as both are included if (config.renderType === CONST.WEBGL) @@ -63923,7 +63775,7 @@ module.exports = CreateRenderer; /***/ }), -/* 336 */ +/* 334 */ /***/ (function(module, exports) { /** @@ -63986,7 +63838,7 @@ module.exports = CanvasInterpolation; /***/ }), -/* 337 */ +/* 335 */ /***/ (function(module, exports) { module.exports = [ @@ -64030,7 +63882,7 @@ module.exports = [ /***/ }), -/* 338 */ +/* 336 */ /***/ (function(module, exports) { module.exports = [ @@ -64065,7 +63917,7 @@ module.exports = [ /***/ }), -/* 339 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64074,7 +63926,7 @@ module.exports = [ * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(29); +var CONST = __webpack_require__(10); /** * Called automatically by Phaser.Game and responsible for creating the console.log debug header. @@ -64195,7 +64047,7 @@ module.exports = DebugHeader; /***/ }), -/* 340 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64207,7 +64059,7 @@ module.exports = DebugHeader; var Class = __webpack_require__(0); var GetValue = __webpack_require__(6); var NOOP = __webpack_require__(1); -var RequestAnimationFrame = __webpack_require__(341); +var RequestAnimationFrame = __webpack_require__(339); // http://www.testufo.com/#test=animation-time-graph @@ -64925,7 +64777,7 @@ module.exports = TimeStep; /***/ }), -/* 341 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65139,7 +64991,7 @@ module.exports = RequestAnimationFrame; /***/ }), -/* 342 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65148,7 +65000,7 @@ module.exports = RequestAnimationFrame; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Events = __webpack_require__(18); +var Events = __webpack_require__(19); /** * The Visibility Handler is responsible for listening out for document level visibility change events. @@ -65230,7 +65082,7 @@ module.exports = VisibilityHandler; /***/ }), -/* 343 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65239,8 +65091,8 @@ module.exports = VisibilityHandler; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arne16 = __webpack_require__(344); -var CanvasPool = __webpack_require__(26); +var Arne16 = __webpack_require__(342); +var CanvasPool = __webpack_require__(27); var GetValue = __webpack_require__(6); /** @@ -65352,7 +65204,7 @@ module.exports = GenerateTexture; /***/ }), -/* 344 */ +/* 342 */ /***/ (function(module, exports) { /** @@ -65390,7 +65242,7 @@ module.exports = { /***/ }), -/* 345 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65402,8 +65254,8 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezier = __webpack_require__(322); -var Curve = __webpack_require__(80); +var CubicBezier = __webpack_require__(320); +var Curve = __webpack_require__(79); var Vector2 = __webpack_require__(3); /** @@ -65617,7 +65469,7 @@ module.exports = CubicBezierCurve; /***/ }), -/* 346 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65629,10 +65481,10 @@ module.exports = CubicBezierCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); +var Curve = __webpack_require__(79); var DegToRad = __webpack_require__(35); var GetValue = __webpack_require__(6); -var RadToDeg = __webpack_require__(169); +var RadToDeg = __webpack_require__(168); var Vector2 = __webpack_require__(3); /** @@ -66241,7 +66093,7 @@ module.exports = EllipseCurve; /***/ }), -/* 347 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66253,9 +66105,9 @@ module.exports = EllipseCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); -var FromPoints = __webpack_require__(172); -var Rectangle = __webpack_require__(12); +var Curve = __webpack_require__(79); +var FromPoints = __webpack_require__(171); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); var tmpVec2 = new Vector2(); @@ -66546,7 +66398,7 @@ module.exports = LineCurve; /***/ }), -/* 348 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66556,8 +66408,8 @@ module.exports = LineCurve; */ var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); -var QuadraticBezierInterpolation = __webpack_require__(323); +var Curve = __webpack_require__(79); +var QuadraticBezierInterpolation = __webpack_require__(321); var Vector2 = __webpack_require__(3); /** @@ -66760,7 +66612,7 @@ module.exports = QuadraticBezier; /***/ }), -/* 349 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66771,9 +66623,9 @@ module.exports = QuadraticBezier; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) -var CatmullRom = __webpack_require__(167); +var CatmullRom = __webpack_require__(166); var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); +var Curve = __webpack_require__(79); var Vector2 = __webpack_require__(3); /** @@ -66985,7 +66837,7 @@ module.exports = SplineCurve; /***/ }), -/* 350 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67109,7 +66961,7 @@ module.exports = BaseShader; /***/ }), -/* 351 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67120,30 +66972,30 @@ module.exports = BaseShader; var Color = __webpack_require__(32); -Color.ColorToRGBA = __webpack_require__(804); -Color.ComponentToHex = __webpack_require__(352); -Color.GetColor = __webpack_require__(160); -Color.GetColor32 = __webpack_require__(292); -Color.HexStringToColor = __webpack_require__(291); -Color.HSLToColor = __webpack_require__(805); -Color.HSVColorWheel = __webpack_require__(806); -Color.HSVToRGB = __webpack_require__(161); -Color.HueToComponent = __webpack_require__(353); -Color.IntegerToColor = __webpack_require__(294); -Color.IntegerToRGB = __webpack_require__(295); -Color.Interpolate = __webpack_require__(807); -Color.ObjectToColor = __webpack_require__(296); -Color.RandomRGB = __webpack_require__(808); -Color.RGBStringToColor = __webpack_require__(297); -Color.RGBToHSV = __webpack_require__(293); -Color.RGBToString = __webpack_require__(809); -Color.ValueToColor = __webpack_require__(159); +Color.ColorToRGBA = __webpack_require__(800); +Color.ComponentToHex = __webpack_require__(350); +Color.GetColor = __webpack_require__(159); +Color.GetColor32 = __webpack_require__(290); +Color.HexStringToColor = __webpack_require__(289); +Color.HSLToColor = __webpack_require__(801); +Color.HSVColorWheel = __webpack_require__(802); +Color.HSVToRGB = __webpack_require__(160); +Color.HueToComponent = __webpack_require__(351); +Color.IntegerToColor = __webpack_require__(292); +Color.IntegerToRGB = __webpack_require__(293); +Color.Interpolate = __webpack_require__(803); +Color.ObjectToColor = __webpack_require__(294); +Color.RandomRGB = __webpack_require__(804); +Color.RGBStringToColor = __webpack_require__(295); +Color.RGBToHSV = __webpack_require__(291); +Color.RGBToString = __webpack_require__(805); +Color.ValueToColor = __webpack_require__(158); module.exports = Color; /***/ }), -/* 352 */ +/* 350 */ /***/ (function(module, exports) { /** @@ -67173,7 +67025,7 @@ module.exports = ComponentToHex; /***/ }), -/* 353 */ +/* 351 */ /***/ (function(module, exports) { /** @@ -67229,7 +67081,7 @@ module.exports = HueToComponent; /***/ }), -/* 354 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67238,7 +67090,7 @@ module.exports = HueToComponent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); +var OS = __webpack_require__(112); /** * @callback ContentLoadedCallback @@ -67292,7 +67144,7 @@ module.exports = DOMContentLoaded; /***/ }), -/* 355 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67301,7 +67153,7 @@ module.exports = DOMContentLoaded; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(173); +var CONST = __webpack_require__(172); /** * Attempts to determine the screen orientation using the Orientation API. @@ -67358,7 +67210,7 @@ module.exports = GetScreenOrientation; /***/ }), -/* 356 */ +/* 354 */ /***/ (function(module, exports) { /** @@ -67444,7 +67296,7 @@ module.exports = { /***/ }), -/* 357 */ +/* 355 */ /***/ (function(module, exports) { /** @@ -67497,7 +67349,7 @@ module.exports = { /***/ }), -/* 358 */ +/* 356 */ /***/ (function(module, exports) { /** @@ -67595,7 +67447,7 @@ module.exports = { /***/ }), -/* 359 */ +/* 357 */ /***/ (function(module, exports) { /** @@ -67669,7 +67521,7 @@ module.exports = { /***/ }), -/* 360 */ +/* 358 */ /***/ (function(module, exports) { /** @@ -67720,7 +67572,7 @@ module.exports = GetTarget; /***/ }), -/* 361 */ +/* 359 */ /***/ (function(module, exports) { /** @@ -67777,7 +67629,7 @@ module.exports = ParseXML; /***/ }), -/* 362 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67787,16 +67639,16 @@ module.exports = ParseXML; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(175); -var EventEmitter = __webpack_require__(10); +var CONST = __webpack_require__(174); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(54); -var GameEvents = __webpack_require__(18); -var Keyboard = __webpack_require__(363); -var Mouse = __webpack_require__(364); -var Pointer = __webpack_require__(365); -var Touch = __webpack_require__(366); +var GameEvents = __webpack_require__(19); +var Keyboard = __webpack_require__(361); +var Mouse = __webpack_require__(362); +var Pointer = __webpack_require__(363); +var Touch = __webpack_require__(364); var TransformMatrix = __webpack_require__(30); -var TransformXY = __webpack_require__(330); +var TransformXY = __webpack_require__(328); /** * @classdesc @@ -68859,7 +68711,7 @@ module.exports = InputManager; /***/ }), -/* 363 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68868,11 +68720,11 @@ module.exports = InputManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(118); +var ArrayRemove = __webpack_require__(117); var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); var InputEvents = __webpack_require__(54); -var KeyCodes = __webpack_require__(119); +var KeyCodes = __webpack_require__(118); var NOOP = __webpack_require__(0); /** @@ -69309,7 +69161,7 @@ module.exports = KeyboardManager; /***/ }), -/* 364 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69319,7 +69171,7 @@ module.exports = KeyboardManager; */ var Class = __webpack_require__(0); -var Features = __webpack_require__(165); +var Features = __webpack_require__(164); var InputEvents = __webpack_require__(54); var NOOP = __webpack_require__(0); @@ -69795,7 +69647,7 @@ module.exports = MouseManager; /***/ }), -/* 365 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69804,11 +69656,11 @@ module.exports = MouseManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(314); +var Angle = __webpack_require__(312); var Class = __webpack_require__(0); var Distance = __webpack_require__(53); -var FuzzyEqual = __webpack_require__(141); -var SmoothStepInterpolation = __webpack_require__(324); +var FuzzyEqual = __webpack_require__(140); +var SmoothStepInterpolation = __webpack_require__(322); var Vector2 = __webpack_require__(3); /** @@ -71073,7 +70925,7 @@ module.exports = Pointer; /***/ }), -/* 366 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71486,7 +71338,7 @@ module.exports = TouchManager; /***/ }), -/* 367 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71496,14 +71348,14 @@ module.exports = TouchManager; */ var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); -var EventEmitter = __webpack_require__(10); +var GameEvents = __webpack_require__(19); +var EventEmitter = __webpack_require__(11); var FileTypesManager = __webpack_require__(8); -var GameObjectCreator = __webpack_require__(16); +var GameObjectCreator = __webpack_require__(17); var GameObjectFactory = __webpack_require__(5); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); -var Remove = __webpack_require__(118); +var PluginCache = __webpack_require__(24); +var Remove = __webpack_require__(117); /** * @classdesc @@ -72388,7 +72240,7 @@ module.exports = PluginManager; /***/ }), -/* 368 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -72397,18 +72249,18 @@ module.exports = PluginManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(173); +var CONST = __webpack_require__(172); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(91); -var GameEvents = __webpack_require__(18); -var GetInnerHeight = __webpack_require__(862); -var GetTarget = __webpack_require__(360); -var GetScreenOrientation = __webpack_require__(355); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(90); +var GameEvents = __webpack_require__(19); +var GetInnerHeight = __webpack_require__(858); +var GetTarget = __webpack_require__(358); +var GetScreenOrientation = __webpack_require__(353); var NOOP = __webpack_require__(1); -var Rectangle = __webpack_require__(12); -var Size = __webpack_require__(369); -var SnapFloor = __webpack_require__(92); +var Rectangle = __webpack_require__(13); +var Size = __webpack_require__(367); +var SnapFloor = __webpack_require__(91); var Vector2 = __webpack_require__(3); /** @@ -74105,7 +73957,7 @@ module.exports = ScaleManager; /***/ }), -/* 369 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74114,9 +73966,9 @@ module.exports = ScaleManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var SnapFloor = __webpack_require__(92); +var SnapFloor = __webpack_require__(91); var Vector2 = __webpack_require__(3); /** @@ -74883,7 +74735,7 @@ module.exports = Size; /***/ }), -/* 370 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74893,14 +74745,14 @@ module.exports = Size; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(120); -var Events = __webpack_require__(21); -var GameEvents = __webpack_require__(18); +var CONST = __webpack_require__(119); +var Events = __webpack_require__(22); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); -var LoaderEvents = __webpack_require__(81); +var LoaderEvents = __webpack_require__(80); var NOOP = __webpack_require__(1); -var Scene = __webpack_require__(371); -var Systems = __webpack_require__(176); +var Scene = __webpack_require__(369); +var Systems = __webpack_require__(175); /** * @classdesc @@ -76523,7 +76375,7 @@ module.exports = SceneManager; /***/ }), -/* 371 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76533,7 +76385,7 @@ module.exports = SceneManager; */ var Class = __webpack_require__(0); -var Systems = __webpack_require__(176); +var Systems = __webpack_require__(175); /** * @classdesc @@ -76809,7 +76661,7 @@ module.exports = Scene; /***/ }), -/* 372 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76818,10 +76670,10 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(120); +var CONST = __webpack_require__(119); var GetValue = __webpack_require__(6); -var Merge = __webpack_require__(121); -var InjectionMap = __webpack_require__(875); +var Merge = __webpack_require__(120); +var InjectionMap = __webpack_require__(871); /** * @namespace Phaser.Scenes.Settings @@ -76905,7 +76757,7 @@ module.exports = Settings; /***/ }), -/* 373 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76914,18 +76766,18 @@ module.exports = Settings; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); -var CanvasTexture = __webpack_require__(374); +var CanvasPool = __webpack_require__(27); +var CanvasTexture = __webpack_require__(372); var Class = __webpack_require__(0); var Color = __webpack_require__(32); -var CONST = __webpack_require__(29); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(116); -var GameEvents = __webpack_require__(18); -var GenerateTexture = __webpack_require__(343); +var CONST = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(115); +var GameEvents = __webpack_require__(19); +var GenerateTexture = __webpack_require__(341); var GetValue = __webpack_require__(6); -var Parser = __webpack_require__(376); -var Texture = __webpack_require__(178); +var Parser = __webpack_require__(374); +var Texture = __webpack_require__(177); /** * @callback EachTextureCallback @@ -78107,7 +77959,7 @@ module.exports = TextureManager; /***/ }), -/* 374 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78117,11 +77969,11 @@ module.exports = TextureManager; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Color = __webpack_require__(32); -var CONST = __webpack_require__(29); -var IsSizePowerOfTwo = __webpack_require__(115); -var Texture = __webpack_require__(178); +var CONST = __webpack_require__(10); +var IsSizePowerOfTwo = __webpack_require__(114); +var Texture = __webpack_require__(177); /** * @classdesc @@ -78738,7 +78590,7 @@ module.exports = CanvasTexture; /***/ }), -/* 375 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78747,10 +78599,10 @@ module.exports = CanvasTexture; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var IsSizePowerOfTwo = __webpack_require__(115); -var ScaleModes = __webpack_require__(231); +var IsSizePowerOfTwo = __webpack_require__(114); +var ScaleModes = __webpack_require__(229); /** * @classdesc @@ -79079,7 +78931,7 @@ module.exports = TextureSource; /***/ }), -/* 376 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79094,20 +78946,20 @@ module.exports = TextureSource; module.exports = { - AtlasXML: __webpack_require__(876), - Canvas: __webpack_require__(877), - Image: __webpack_require__(878), - JSONArray: __webpack_require__(879), - JSONHash: __webpack_require__(880), - SpriteSheet: __webpack_require__(881), - SpriteSheetFromAtlas: __webpack_require__(882), - UnityYAML: __webpack_require__(883) + AtlasXML: __webpack_require__(872), + Canvas: __webpack_require__(873), + Image: __webpack_require__(874), + JSONArray: __webpack_require__(875), + JSONHash: __webpack_require__(876), + SpriteSheet: __webpack_require__(877), + SpriteSheetFromAtlas: __webpack_require__(878), + UnityYAML: __webpack_require__(879) }; /***/ }), -/* 377 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79117,9 +78969,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HTML5AudioSoundManager = __webpack_require__(378); -var NoAudioSoundManager = __webpack_require__(380); -var WebAudioSoundManager = __webpack_require__(382); +var HTML5AudioSoundManager = __webpack_require__(376); +var NoAudioSoundManager = __webpack_require__(378); +var WebAudioSoundManager = __webpack_require__(380); /** * Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings. @@ -79159,7 +79011,7 @@ module.exports = SoundManagerCreator; /***/ }), -/* 378 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79169,10 +79021,10 @@ module.exports = SoundManagerCreator; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(122); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var HTML5AudioSound = __webpack_require__(379); +var HTML5AudioSound = __webpack_require__(377); /** * HTML5 Audio implementation of the Sound Manager. @@ -79624,7 +79476,7 @@ module.exports = HTML5AudioSoundManager; /***/ }), -/* 379 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79634,7 +79486,7 @@ module.exports = HTML5AudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -80549,7 +80401,7 @@ module.exports = HTML5AudioSound; /***/ }), -/* 380 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80559,10 +80411,10 @@ module.exports = HTML5AudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(122); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var NoAudioSound = __webpack_require__(381); +var EventEmitter = __webpack_require__(11); +var NoAudioSound = __webpack_require__(379); var NOOP = __webpack_require__(1); /** @@ -80667,7 +80519,7 @@ module.exports = NoAudioSoundManager; /***/ }), -/* 381 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80677,10 +80529,10 @@ module.exports = NoAudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Extend = __webpack_require__(17); +var EventEmitter = __webpack_require__(11); +var Extend = __webpack_require__(18); /** * @classdesc @@ -80794,7 +80646,7 @@ module.exports = NoAudioSound; /***/ }), -/* 382 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80804,11 +80656,11 @@ module.exports = NoAudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64ToArrayBuffer = __webpack_require__(383); -var BaseSoundManager = __webpack_require__(122); +var Base64ToArrayBuffer = __webpack_require__(381); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var WebAudioSound = __webpack_require__(384); +var WebAudioSound = __webpack_require__(382); /** * @classdesc @@ -81253,7 +81105,7 @@ module.exports = WebAudioSoundManager; /***/ }), -/* 383 */ +/* 381 */ /***/ (function(module, exports) { /** @@ -81328,7 +81180,7 @@ module.exports = Base64ToArrayBuffer; /***/ }), -/* 384 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81338,7 +81190,7 @@ module.exports = Base64ToArrayBuffer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -82234,7 +82086,7 @@ module.exports = WebAudioSound; /***/ }), -/* 385 */ +/* 383 */ /***/ (function(module, exports) { /** @@ -82282,7 +82134,7 @@ module.exports = TransposeMatrix; /***/ }), -/* 386 */ +/* 384 */ /***/ (function(module, exports) { /** @@ -82404,7 +82256,7 @@ module.exports = QuickSelect; /***/ }), -/* 387 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82414,7 +82266,7 @@ module.exports = QuickSelect; */ var GetValue = __webpack_require__(6); -var Shuffle = __webpack_require__(111); +var Shuffle = __webpack_require__(110); var BuildChunk = function (a, b, qty) { @@ -82542,7 +82394,7 @@ module.exports = Range; /***/ }), -/* 388 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82551,7 +82403,7 @@ module.exports = Range; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); /** * Adds an Animation component to a Sprite and populates it based on the given config. @@ -82631,7 +82483,7 @@ module.exports = BuildGameObjectAnimation; /***/ }), -/* 389 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82640,7 +82492,7 @@ module.exports = BuildGameObjectAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Creates a new Rectangle or repositions and/or resizes an existing Rectangle so that it encompasses the two given Rectangles, i.e. calculates their union. @@ -82673,7 +82525,7 @@ module.exports = Union; /***/ }), -/* 390 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82683,13 +82535,13 @@ module.exports = Union; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var DOMElementRender = __webpack_require__(952); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var DOMElementRender = __webpack_require__(948); +var GameObject = __webpack_require__(14); var IsPlainObject = __webpack_require__(7); -var RemoveFromDOM = __webpack_require__(174); -var SCENE_EVENTS = __webpack_require__(21); -var Vector4 = __webpack_require__(331); +var RemoveFromDOM = __webpack_require__(173); +var SCENE_EVENTS = __webpack_require__(22); +var Vector4 = __webpack_require__(329); /** * @classdesc @@ -83647,7 +83499,7 @@ module.exports = DOMElement; /***/ }), -/* 391 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83656,8 +83508,8 @@ module.exports = DOMElement; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CSSBlendModes = __webpack_require__(953); -var GameObject = __webpack_require__(13); +var CSSBlendModes = __webpack_require__(949); +var GameObject = __webpack_require__(14); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -83769,7 +83621,7 @@ module.exports = DOMElementCSSRenderer; /***/ }), -/* 392 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83779,9 +83631,9 @@ module.exports = DOMElementCSSRenderer; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ExternRender = __webpack_require__(957); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var ExternRender = __webpack_require__(953); /** * @classdesc @@ -83865,7 +83717,7 @@ module.exports = Extern; /***/ }), -/* 393 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83874,9 +83726,9 @@ module.exports = Extern; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(189); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var CircumferencePoint = __webpack_require__(188); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); var Point = __webpack_require__(4); /** @@ -83908,7 +83760,7 @@ module.exports = GetPoint; /***/ }), -/* 394 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83917,10 +83769,10 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(395); -var CircumferencePoint = __webpack_require__(189); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var Circumference = __webpack_require__(393); +var CircumferencePoint = __webpack_require__(188); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); /** * Returns an array of Point objects containing the coordinates of the points around the circumference of the Ellipse, @@ -83962,7 +83814,7 @@ module.exports = GetPoints; /***/ }), -/* 395 */ +/* 393 */ /***/ (function(module, exports) { /** @@ -83994,7 +83846,7 @@ module.exports = Circumference; /***/ }), -/* 396 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84003,8 +83855,8 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(188); -var SetTransform = __webpack_require__(28); +var Commands = __webpack_require__(187); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -84244,7 +84096,7 @@ module.exports = GraphicsCanvasRenderer; /***/ }), -/* 397 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84463,7 +84315,7 @@ module.exports = GravityWell; /***/ }), -/* 398 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85032,7 +84884,7 @@ module.exports = Particle; /***/ }), -/* 399 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85043,18 +84895,18 @@ module.exports = Particle; var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var DeathZone = __webpack_require__(400); -var EdgeZone = __webpack_require__(401); -var EmitterOp = __webpack_require__(969); +var Components = __webpack_require__(12); +var DeathZone = __webpack_require__(398); +var EdgeZone = __webpack_require__(399); +var EmitterOp = __webpack_require__(965); var GetFastValue = __webpack_require__(2); -var GetRandom = __webpack_require__(181); -var HasAny = __webpack_require__(402); -var HasValue = __webpack_require__(105); -var Particle = __webpack_require__(398); -var RandomZone = __webpack_require__(403); -var Rectangle = __webpack_require__(12); -var StableSort = __webpack_require__(126); +var GetRandom = __webpack_require__(180); +var HasAny = __webpack_require__(400); +var HasValue = __webpack_require__(104); +var Particle = __webpack_require__(396); +var RandomZone = __webpack_require__(401); +var Rectangle = __webpack_require__(13); +var StableSort = __webpack_require__(125); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -87103,7 +86955,7 @@ module.exports = ParticleEmitter; /***/ }), -/* 400 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87181,7 +87033,7 @@ module.exports = DeathZone; /***/ }), -/* 401 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87425,7 +87277,7 @@ module.exports = EdgeZone; /***/ }), -/* 402 */ +/* 400 */ /***/ (function(module, exports) { /** @@ -87462,7 +87314,7 @@ module.exports = HasAny; /***/ }), -/* 403 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87535,7 +87387,7 @@ module.exports = RandomZone; /***/ }), -/* 404 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87545,8 +87397,8 @@ module.exports = RandomZone; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Sprite = __webpack_require__(74); +var Components = __webpack_require__(12); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -87617,7 +87469,7 @@ module.exports = PathFollower; /***/ }), -/* 405 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87626,12 +87478,12 @@ module.exports = PathFollower; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcRender = __webpack_require__(995); +var ArcRender = __webpack_require__(991); var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var Earcut = __webpack_require__(64); var GeomCircle = __webpack_require__(63); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Shape = __webpack_require__(31); /** @@ -88026,7 +87878,7 @@ module.exports = Arc; /***/ }), -/* 406 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88036,9 +87888,9 @@ module.exports = Arc; */ var Class = __webpack_require__(0); -var CurveRender = __webpack_require__(998); +var CurveRender = __webpack_require__(994); var Earcut = __webpack_require__(64); -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); var Shape = __webpack_require__(31); /** @@ -88208,7 +88060,7 @@ module.exports = Curve; /***/ }), -/* 407 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88219,8 +88071,8 @@ module.exports = Curve; var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); -var EllipseRender = __webpack_require__(1001); -var GeomEllipse = __webpack_require__(94); +var EllipseRender = __webpack_require__(997); +var GeomEllipse = __webpack_require__(93); var Shape = __webpack_require__(31); /** @@ -88395,7 +88247,7 @@ module.exports = Ellipse; /***/ }), -/* 408 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88406,7 +88258,7 @@ module.exports = Ellipse; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GridRender = __webpack_require__(1004); +var GridRender = __webpack_require__(1000); /** * @classdesc @@ -88677,7 +88529,7 @@ module.exports = Grid; /***/ }), -/* 409 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88686,7 +88538,7 @@ module.exports = Grid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsoBoxRender = __webpack_require__(1007); +var IsoBoxRender = __webpack_require__(1003); var Class = __webpack_require__(0); var Shape = __webpack_require__(31); @@ -88892,7 +88744,7 @@ module.exports = IsoBox; /***/ }), -/* 410 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88902,7 +88754,7 @@ module.exports = IsoBox; */ var Class = __webpack_require__(0); -var IsoTriangleRender = __webpack_require__(1010); +var IsoTriangleRender = __webpack_require__(1006); var Shape = __webpack_require__(31); /** @@ -89138,7 +88990,7 @@ module.exports = IsoTriangle; /***/ }), -/* 411 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89150,7 +89002,7 @@ module.exports = IsoTriangle; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomLine = __webpack_require__(56); -var LineRender = __webpack_require__(1013); +var LineRender = __webpack_require__(1009); /** * @classdesc @@ -89305,7 +89157,7 @@ module.exports = Line; /***/ }), -/* 412 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89314,13 +89166,13 @@ module.exports = Line; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PolygonRender = __webpack_require__(1016); +var PolygonRender = __webpack_require__(1012); var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); -var GetAABB = __webpack_require__(413); -var GeomPolygon = __webpack_require__(197); +var GetAABB = __webpack_require__(411); +var GeomPolygon = __webpack_require__(196); var Shape = __webpack_require__(31); -var Smooth = __webpack_require__(416); +var Smooth = __webpack_require__(414); /** * @classdesc @@ -89444,7 +89296,7 @@ module.exports = Polygon; /***/ }), -/* 413 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89453,7 +89305,7 @@ module.exports = Polygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Calculates the bounding AABB rectangle of a polygon. @@ -89500,7 +89352,7 @@ module.exports = GetAABB; /***/ }), -/* 414 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89511,7 +89363,7 @@ module.exports = GetAABB; var Length = __webpack_require__(57); var Line = __webpack_require__(56); -var Perimeter = __webpack_require__(415); +var Perimeter = __webpack_require__(413); /** * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon, @@ -89577,7 +89429,7 @@ module.exports = GetPoints; /***/ }), -/* 415 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89625,7 +89477,7 @@ module.exports = Perimeter; /***/ }), -/* 416 */ +/* 414 */ /***/ (function(module, exports) { /** @@ -89701,7 +89553,7 @@ module.exports = Smooth; /***/ }), -/* 417 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89711,9 +89563,9 @@ module.exports = Smooth; */ var Class = __webpack_require__(0); -var GeomRectangle = __webpack_require__(12); +var GeomRectangle = __webpack_require__(13); var Shape = __webpack_require__(31); -var RectangleRender = __webpack_require__(1019); +var RectangleRender = __webpack_require__(1015); /** * @classdesc @@ -89813,7 +89665,7 @@ module.exports = Rectangle; /***/ }), -/* 418 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89822,7 +89674,7 @@ module.exports = Rectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StarRender = __webpack_require__(1022); +var StarRender = __webpack_require__(1018); var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); var Shape = __webpack_require__(31); @@ -90101,7 +89953,7 @@ module.exports = Star; /***/ }), -/* 419 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90113,7 +89965,7 @@ module.exports = Star; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomTriangle = __webpack_require__(69); -var TriangleRender = __webpack_require__(1025); +var TriangleRender = __webpack_require__(1021); /** * @classdesc @@ -90244,7 +90096,7 @@ module.exports = Triangle; /***/ }), -/* 420 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90331,7 +90183,7 @@ module.exports = GetPoint; /***/ }), -/* 421 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90424,7 +90276,7 @@ module.exports = GetPoints; /***/ }), -/* 422 */ +/* 420 */ /***/ (function(module, exports) { /** @@ -90507,7 +90359,7 @@ module.exports = SetValue; /***/ }), -/* 423 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90770,7 +90622,7 @@ module.exports = Light; /***/ }), -/* 424 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90780,7 +90632,7 @@ module.exports = Light; */ var Class = __webpack_require__(0); -var Light = __webpack_require__(423); +var Light = __webpack_require__(421); var Utils = __webpack_require__(9); /** @@ -91133,7 +90985,7 @@ module.exports = LightsManager; /***/ }), -/* 425 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91143,7 +90995,7 @@ module.exports = LightsManager; */ var CONST = __webpack_require__(46); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Geom @@ -91151,14 +91003,14 @@ var Extend = __webpack_require__(17); var Geom = { - Circle: __webpack_require__(1085), - Ellipse: __webpack_require__(1095), - Intersects: __webpack_require__(426), - Line: __webpack_require__(1114), - Point: __webpack_require__(1136), - Polygon: __webpack_require__(1150), - Rectangle: __webpack_require__(439), - Triangle: __webpack_require__(1180) + Circle: __webpack_require__(1081), + Ellipse: __webpack_require__(1091), + Intersects: __webpack_require__(424), + Line: __webpack_require__(1110), + Point: __webpack_require__(1132), + Polygon: __webpack_require__(1146), + Rectangle: __webpack_require__(437), + Triangle: __webpack_require__(1176) }; @@ -91169,7 +91021,7 @@ module.exports = Geom; /***/ }), -/* 426 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91184,35 +91036,35 @@ module.exports = Geom; module.exports = { - CircleToCircle: __webpack_require__(201), - CircleToRectangle: __webpack_require__(202), - GetCircleToCircle: __webpack_require__(1105), - GetCircleToRectangle: __webpack_require__(1106), - GetLineToCircle: __webpack_require__(203), - GetLineToRectangle: __webpack_require__(205), - GetRectangleIntersection: __webpack_require__(1107), - GetRectangleToRectangle: __webpack_require__(1108), - GetRectangleToTriangle: __webpack_require__(1109), - GetTriangleToCircle: __webpack_require__(1110), - GetTriangleToLine: __webpack_require__(431), - GetTriangleToTriangle: __webpack_require__(1111), - LineToCircle: __webpack_require__(204), - LineToLine: __webpack_require__(83), - LineToRectangle: __webpack_require__(427), - PointToLine: __webpack_require__(435), - PointToLineSegment: __webpack_require__(1112), - RectangleToRectangle: __webpack_require__(130), - RectangleToTriangle: __webpack_require__(428), - RectangleToValues: __webpack_require__(1113), - TriangleToCircle: __webpack_require__(430), - TriangleToLine: __webpack_require__(432), - TriangleToTriangle: __webpack_require__(433) + CircleToCircle: __webpack_require__(200), + CircleToRectangle: __webpack_require__(201), + GetCircleToCircle: __webpack_require__(1101), + GetCircleToRectangle: __webpack_require__(1102), + GetLineToCircle: __webpack_require__(202), + GetLineToRectangle: __webpack_require__(204), + GetRectangleIntersection: __webpack_require__(1103), + GetRectangleToRectangle: __webpack_require__(1104), + GetRectangleToTriangle: __webpack_require__(1105), + GetTriangleToCircle: __webpack_require__(1106), + GetTriangleToLine: __webpack_require__(429), + GetTriangleToTriangle: __webpack_require__(1107), + LineToCircle: __webpack_require__(203), + LineToLine: __webpack_require__(82), + LineToRectangle: __webpack_require__(425), + PointToLine: __webpack_require__(433), + PointToLineSegment: __webpack_require__(1108), + RectangleToRectangle: __webpack_require__(129), + RectangleToTriangle: __webpack_require__(426), + RectangleToValues: __webpack_require__(1109), + TriangleToCircle: __webpack_require__(428), + TriangleToLine: __webpack_require__(430), + TriangleToTriangle: __webpack_require__(431) }; /***/ }), -/* 427 */ +/* 425 */ /***/ (function(module, exports) { /** @@ -91313,7 +91165,7 @@ module.exports = LineToRectangle; /***/ }), -/* 428 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91322,10 +91174,10 @@ module.exports = LineToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToLine = __webpack_require__(83); +var LineToLine = __webpack_require__(82); var Contains = __webpack_require__(47); -var ContainsArray = __webpack_require__(206); -var Decompose = __webpack_require__(429); +var ContainsArray = __webpack_require__(205); +var Decompose = __webpack_require__(427); /** * Checks for intersection between Rectangle shape and Triangle shape. @@ -91406,7 +91258,7 @@ module.exports = RectangleToTriangle; /***/ }), -/* 429 */ +/* 427 */ /***/ (function(module, exports) { /** @@ -91443,7 +91295,7 @@ module.exports = Decompose; /***/ }), -/* 430 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91452,8 +91304,8 @@ module.exports = Decompose; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToCircle = __webpack_require__(204); -var Contains = __webpack_require__(82); +var LineToCircle = __webpack_require__(203); +var Contains = __webpack_require__(81); /** * Checks if a Triangle and a Circle intersect. @@ -91508,7 +91360,7 @@ module.exports = TriangleToCircle; /***/ }), -/* 431 */ +/* 429 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91519,8 +91371,8 @@ module.exports = TriangleToCircle; */ var Point = __webpack_require__(4); -var TriangleToLine = __webpack_require__(432); -var LineToLine = __webpack_require__(83); +var TriangleToLine = __webpack_require__(430); +var LineToLine = __webpack_require__(82); /** * Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array. @@ -91567,7 +91419,7 @@ module.exports = GetTriangleToLine; /***/ }), -/* 432 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91576,8 +91428,8 @@ module.exports = GetTriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(82); -var LineToLine = __webpack_require__(83); +var Contains = __webpack_require__(81); +var LineToLine = __webpack_require__(82); /** * Checks if a Triangle and a Line intersect. @@ -91623,7 +91475,7 @@ module.exports = TriangleToLine; /***/ }), -/* 433 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91632,9 +91484,9 @@ module.exports = TriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ContainsArray = __webpack_require__(206); -var Decompose = __webpack_require__(434); -var LineToLine = __webpack_require__(83); +var ContainsArray = __webpack_require__(205); +var Decompose = __webpack_require__(432); +var LineToLine = __webpack_require__(82); /** * Checks if two Triangles intersect. @@ -91713,7 +91565,7 @@ module.exports = TriangleToTriangle; /***/ }), -/* 434 */ +/* 432 */ /***/ (function(module, exports) { /** @@ -91748,7 +91600,7 @@ module.exports = Decompose; /***/ }), -/* 435 */ +/* 433 */ /***/ (function(module, exports) { /** @@ -91818,7 +91670,7 @@ module.exports = PointToLine; /***/ }), -/* 436 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91827,9 +91679,9 @@ module.exports = PointToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Wrap = __webpack_require__(58); -var Angle = __webpack_require__(84); +var Angle = __webpack_require__(83); /** * Get the angle of the normal of the given line in radians. @@ -91852,7 +91704,7 @@ module.exports = NormalAngle; /***/ }), -/* 437 */ +/* 435 */ /***/ (function(module, exports) { /** @@ -91880,7 +91732,7 @@ module.exports = GetMagnitude; /***/ }), -/* 438 */ +/* 436 */ /***/ (function(module, exports) { /** @@ -91908,7 +91760,7 @@ module.exports = GetMagnitudeSq; /***/ }), -/* 439 */ +/* 437 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91917,51 +91769,51 @@ module.exports = GetMagnitudeSq; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); -Rectangle.Area = __webpack_require__(1155); -Rectangle.Ceil = __webpack_require__(1156); -Rectangle.CeilAll = __webpack_require__(1157); -Rectangle.CenterOn = __webpack_require__(163); -Rectangle.Clone = __webpack_require__(1158); +Rectangle.Area = __webpack_require__(1151); +Rectangle.Ceil = __webpack_require__(1152); +Rectangle.CeilAll = __webpack_require__(1153); +Rectangle.CenterOn = __webpack_require__(162); +Rectangle.Clone = __webpack_require__(1154); Rectangle.Contains = __webpack_require__(47); -Rectangle.ContainsPoint = __webpack_require__(1159); -Rectangle.ContainsRect = __webpack_require__(440); -Rectangle.CopyFrom = __webpack_require__(1160); -Rectangle.Decompose = __webpack_require__(429); -Rectangle.Equals = __webpack_require__(1161); -Rectangle.FitInside = __webpack_require__(1162); -Rectangle.FitOutside = __webpack_require__(1163); -Rectangle.Floor = __webpack_require__(1164); -Rectangle.FloorAll = __webpack_require__(1165); -Rectangle.FromPoints = __webpack_require__(172); -Rectangle.GetAspectRatio = __webpack_require__(208); -Rectangle.GetCenter = __webpack_require__(1166); -Rectangle.GetPoint = __webpack_require__(147); -Rectangle.GetPoints = __webpack_require__(271); -Rectangle.GetSize = __webpack_require__(1167); -Rectangle.Inflate = __webpack_require__(1168); -Rectangle.Intersection = __webpack_require__(1169); -Rectangle.MarchingAnts = __webpack_require__(282); -Rectangle.MergePoints = __webpack_require__(1170); -Rectangle.MergeRect = __webpack_require__(1171); -Rectangle.MergeXY = __webpack_require__(1172); -Rectangle.Offset = __webpack_require__(1173); -Rectangle.OffsetPoint = __webpack_require__(1174); -Rectangle.Overlaps = __webpack_require__(1175); -Rectangle.Perimeter = __webpack_require__(109); -Rectangle.PerimeterPoint = __webpack_require__(1176); -Rectangle.Random = __webpack_require__(150); -Rectangle.RandomOutside = __webpack_require__(1177); -Rectangle.SameDimensions = __webpack_require__(1178); -Rectangle.Scale = __webpack_require__(1179); -Rectangle.Union = __webpack_require__(389); +Rectangle.ContainsPoint = __webpack_require__(1155); +Rectangle.ContainsRect = __webpack_require__(438); +Rectangle.CopyFrom = __webpack_require__(1156); +Rectangle.Decompose = __webpack_require__(427); +Rectangle.Equals = __webpack_require__(1157); +Rectangle.FitInside = __webpack_require__(1158); +Rectangle.FitOutside = __webpack_require__(1159); +Rectangle.Floor = __webpack_require__(1160); +Rectangle.FloorAll = __webpack_require__(1161); +Rectangle.FromPoints = __webpack_require__(171); +Rectangle.GetAspectRatio = __webpack_require__(207); +Rectangle.GetCenter = __webpack_require__(1162); +Rectangle.GetPoint = __webpack_require__(146); +Rectangle.GetPoints = __webpack_require__(269); +Rectangle.GetSize = __webpack_require__(1163); +Rectangle.Inflate = __webpack_require__(1164); +Rectangle.Intersection = __webpack_require__(1165); +Rectangle.MarchingAnts = __webpack_require__(280); +Rectangle.MergePoints = __webpack_require__(1166); +Rectangle.MergeRect = __webpack_require__(1167); +Rectangle.MergeXY = __webpack_require__(1168); +Rectangle.Offset = __webpack_require__(1169); +Rectangle.OffsetPoint = __webpack_require__(1170); +Rectangle.Overlaps = __webpack_require__(1171); +Rectangle.Perimeter = __webpack_require__(108); +Rectangle.PerimeterPoint = __webpack_require__(1172); +Rectangle.Random = __webpack_require__(149); +Rectangle.RandomOutside = __webpack_require__(1173); +Rectangle.SameDimensions = __webpack_require__(1174); +Rectangle.Scale = __webpack_require__(1175); +Rectangle.Union = __webpack_require__(387); module.exports = Rectangle; /***/ }), -/* 440 */ +/* 438 */ /***/ (function(module, exports) { /** @@ -92001,7 +91853,7 @@ module.exports = ContainsRect; /***/ }), -/* 441 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92045,7 +91897,7 @@ module.exports = Centroid; /***/ }), -/* 442 */ +/* 440 */ /***/ (function(module, exports) { /** @@ -92086,7 +91938,7 @@ module.exports = Offset; /***/ }), -/* 443 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92151,7 +92003,7 @@ module.exports = InCenter; /***/ }), -/* 444 */ +/* 442 */ /***/ (function(module, exports) { /** @@ -92222,7 +92074,7 @@ module.exports = CreateInteractiveObject; /***/ }), -/* 445 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92347,7 +92199,7 @@ module.exports = Axis; /***/ }), -/* 446 */ +/* 444 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92357,7 +92209,7 @@ module.exports = Axis; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(210); +var Events = __webpack_require__(209); /** * @classdesc @@ -92493,7 +92345,7 @@ module.exports = Button; /***/ }), -/* 447 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92502,10 +92354,10 @@ module.exports = Button; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Axis = __webpack_require__(445); -var Button = __webpack_require__(446); +var Axis = __webpack_require__(443); +var Button = __webpack_require__(444); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Vector2 = __webpack_require__(3); /** @@ -93251,7 +93103,7 @@ module.exports = Gamepad; /***/ }), -/* 448 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93261,8 +93113,8 @@ module.exports = Gamepad; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(132); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(131); /** * @classdesc @@ -93653,7 +93505,7 @@ module.exports = Key; /***/ }), -/* 449 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93663,10 +93515,10 @@ module.exports = Key; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(132); +var Events = __webpack_require__(131); var GetFastValue = __webpack_require__(2); -var ProcessKeyCombo = __webpack_require__(1219); -var ResetKeyCombo = __webpack_require__(1221); +var ProcessKeyCombo = __webpack_require__(1215); +var ResetKeyCombo = __webpack_require__(1217); /** * @classdesc @@ -93946,7 +93798,7 @@ module.exports = KeyCombo; /***/ }), -/* 450 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93955,7 +93807,7 @@ module.exports = KeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MergeXHRSettings = __webpack_require__(211); +var MergeXHRSettings = __webpack_require__(210); /** * Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings @@ -94019,7 +93871,7 @@ module.exports = XHRLoader; /***/ }), -/* 451 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94029,11 +93881,11 @@ module.exports = XHRLoader; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var File = __webpack_require__(20); +var CONST = __webpack_require__(10); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var HTML5AudioFile = __webpack_require__(452); +var HTML5AudioFile = __webpack_require__(450); var IsPlainObject = __webpack_require__(7); /** @@ -94290,7 +94142,7 @@ module.exports = AudioFile; /***/ }), -/* 452 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94300,10 +94152,10 @@ module.exports = AudioFile; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(81); -var File = __webpack_require__(20); +var Events = __webpack_require__(80); +var File = __webpack_require__(21); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(133); +var GetURL = __webpack_require__(132); var IsPlainObject = __webpack_require__(7); /** @@ -94488,7 +94340,7 @@ module.exports = HTML5AudioFile; /***/ }), -/* 453 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94498,8 +94350,8 @@ module.exports = HTML5AudioFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -94659,7 +94511,7 @@ module.exports = ScriptFile; /***/ }), -/* 454 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94669,8 +94521,8 @@ module.exports = ScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -94834,7 +94686,7 @@ module.exports = TextFile; /***/ }), -/* 455 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94843,12 +94695,12 @@ module.exports = TextFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeImage = __webpack_require__(456); -var ArcadeSprite = __webpack_require__(135); +var ArcadeImage = __webpack_require__(454); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var PhysicsGroup = __webpack_require__(457); -var StaticPhysicsGroup = __webpack_require__(458); +var PhysicsGroup = __webpack_require__(455); +var StaticPhysicsGroup = __webpack_require__(456); /** * @classdesc @@ -95105,7 +94957,7 @@ module.exports = Factory; /***/ }), -/* 456 */ +/* 454 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95115,8 +94967,8 @@ module.exports = Factory; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(213); -var Image = __webpack_require__(104); +var Components = __webpack_require__(212); +var Image = __webpack_require__(103); /** * @classdesc @@ -95205,7 +95057,7 @@ module.exports = ArcadeImage; /***/ }), -/* 457 */ +/* 455 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95214,11 +95066,11 @@ module.exports = ArcadeImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(135); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var IsPlainObject = __webpack_require__(7); /** @@ -95490,7 +95342,7 @@ module.exports = PhysicsGroup; /***/ }), -/* 458 */ +/* 456 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95499,11 +95351,11 @@ module.exports = PhysicsGroup; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(135); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var IsPlainObject = __webpack_require__(7); /** @@ -95681,7 +95533,7 @@ module.exports = StaticPhysicsGroup; /***/ }), -/* 459 */ +/* 457 */ /***/ (function(module, exports) { /** @@ -95766,7 +95618,7 @@ module.exports = OverlapRect; /***/ }), -/* 460 */ +/* 458 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95775,30 +95627,30 @@ module.exports = OverlapRect; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Body = __webpack_require__(461); -var Clamp = __webpack_require__(22); +var Body = __webpack_require__(459); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Collider = __webpack_require__(462); +var Collider = __webpack_require__(460); var CONST = __webpack_require__(50); var DistanceBetween = __webpack_require__(53); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(214); -var FuzzyEqual = __webpack_require__(141); -var FuzzyGreaterThan = __webpack_require__(318); -var FuzzyLessThan = __webpack_require__(319); -var GetOverlapX = __webpack_require__(463); -var GetOverlapY = __webpack_require__(464); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(213); +var FuzzyEqual = __webpack_require__(140); +var FuzzyGreaterThan = __webpack_require__(316); +var FuzzyLessThan = __webpack_require__(317); +var GetOverlapX = __webpack_require__(461); +var GetOverlapY = __webpack_require__(462); var GetValue = __webpack_require__(6); -var ProcessQueue = __webpack_require__(182); -var ProcessTileCallbacks = __webpack_require__(1278); -var Rectangle = __webpack_require__(12); -var RTree = __webpack_require__(465); -var SeparateTile = __webpack_require__(1279); -var SeparateX = __webpack_require__(1284); -var SeparateY = __webpack_require__(1285); -var Set = __webpack_require__(128); -var StaticBody = __webpack_require__(467); -var TileIntersectsBody = __webpack_require__(466); +var ProcessQueue = __webpack_require__(181); +var ProcessTileCallbacks = __webpack_require__(1274); +var Rectangle = __webpack_require__(13); +var RTree = __webpack_require__(463); +var SeparateTile = __webpack_require__(1275); +var SeparateX = __webpack_require__(1280); +var SeparateY = __webpack_require__(1281); +var Set = __webpack_require__(127); +var StaticBody = __webpack_require__(465); +var TileIntersectsBody = __webpack_require__(464); var TransformMatrix = __webpack_require__(30); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -98155,7 +98007,7 @@ module.exports = World; /***/ }), -/* 461 */ +/* 459 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98167,9 +98019,9 @@ module.exports = World; var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var Events = __webpack_require__(214); -var RadToDeg = __webpack_require__(169); -var Rectangle = __webpack_require__(12); +var Events = __webpack_require__(213); +var RadToDeg = __webpack_require__(168); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); var Vector2 = __webpack_require__(3); @@ -100490,7 +100342,7 @@ module.exports = Body; /***/ }), -/* 462 */ +/* 460 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100673,7 +100525,7 @@ module.exports = Collider; /***/ }), -/* 463 */ +/* 461 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100781,7 +100633,7 @@ module.exports = GetOverlapX; /***/ }), -/* 464 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100889,7 +100741,7 @@ module.exports = GetOverlapY; /***/ }), -/* 465 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100899,7 +100751,7 @@ module.exports = GetOverlapY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var quickselect = __webpack_require__(386); +var quickselect = __webpack_require__(384); /** * @classdesc @@ -101500,7 +101352,7 @@ function multiSelect (arr, left, right, n, compare) module.exports = rbush; /***/ }), -/* 466 */ +/* 464 */ /***/ (function(module, exports) { /** @@ -101536,7 +101388,7 @@ module.exports = TileIntersectsBody; /***/ }), -/* 467 */ +/* 465 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102525,8 +102377,8 @@ module.exports = StaticBody; /***/ }), -/* 468 */, -/* 469 */ +/* 466 */, +/* 467 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102656,130 +102508,7 @@ module.exports = BasePlugin; /***/ }), -/* 470 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldX - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldX = function (tileX, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - var layerWorldX = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'orthogonal') - { - return layerWorldX + tileX * tileWidth; - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - // Not Best Solution ? - console.warn('With the current map type you have to use the TileToWorldXY function.'); - return null; - } - - - -}; - -module.exports = TileToWorldX; - - -/***/ }), -/* 471 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldY - * @private - * @since 3.0.0 - * - * @param {integer} tileY - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldY = function (tileY, camera, layer) -{ - var orientation = layer.orientation; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - if (orientation === 'orthogonal') - { - return layerWorldY + tileY * tileHeight; - } - else if (orientation === 'isometric') - { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } - else if (orientation === 'staggered') - { - return layerWorldY + tileY * (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - var sidel = layer.tilemapLayer.tilemap.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // same as staggered - return layerWorldY + tileY * rowHeight; - } -}; - -module.exports = TileToWorldY; - - -/***/ }), -/* 472 */ +/* 468 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102788,7 +102517,7 @@ module.exports = TileToWorldY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching @@ -102824,145 +102553,7 @@ module.exports = ReplaceByIndex; /***/ }), -/* 473 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileX - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The X location in tile units. - */ -var WorldToTileX = function (worldX, snapToFloor, camera, layer) -{ - - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'orthogonal') - { - return snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - } - else if (orientation === 'isometric') - { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null; - } - -}; - -module.exports = WorldToTileX; - - -/***/ }), -/* 474 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileY - * @private - * @since 3.0.0 - * - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The Y location in tile units. - */ -var WorldToTileY = function (worldY, snapToFloor, camera, layer) -{ - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - tileHeight *= tilemapLayer.scaleY; - - } - - if (orientation === 'orthogonal') - { - return snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } - else if (orientation === 'isometric') - { - console.warn('With standard isometric map types you have to use the WorldToTileXY function.'); - return null; - - } - else if (orientation === 'staggered') - { - return snapToFloor - ? Math.floor(worldY / (tileHeight / 2)) - : worldY / (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - return snapToFloor - ? Math.floor(worldY / rowHeight) - : worldY / rowHeight; - } -}; - -module.exports = WorldToTileY; - - -/***/ }), -/* 475 */ +/* 469 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102971,7 +102562,7 @@ module.exports = WorldToTileY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(100); +var IsInLayerBounds = __webpack_require__(99); /** * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns @@ -103005,7 +102596,7 @@ module.exports = HasTileAt; /***/ }), -/* 476 */ +/* 470 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103014,9 +102605,9 @@ module.exports = HasTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(73); -var IsInLayerBounds = __webpack_require__(100); -var CalculateFacesAt = __webpack_require__(216); +var Tile = __webpack_require__(72); +var IsInLayerBounds = __webpack_require__(99); +var CalculateFacesAt = __webpack_require__(215); /** * Removes the tile at the given tile coordinates in the specified layer and updates the layer's @@ -103068,7 +102659,244 @@ module.exports = RemoveTileAt; /***/ }), -/* 477 */ +/* 471 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); + +/** + * Converts from world X coordinates (pixels) to orthogonal tile X coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileX + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The X location in tile units. + */ +var OrthoWorldToTileX = function (worldX, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + return snapToFloor + ? Math.floor(worldX / tileWidth) + : worldX / tileWidth; + +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the WorldToTileXY function.'); + return null; +}; + +var WorldToTileX = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoWorldToTileX; + + default: + return nullFunc; + + } + +}; + +module.exports = WorldToTileX; + + +/***/ }), +/* 472 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); + +/** + * Converts from world Y coordinates (pixels) to orthogonal tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.OrthoWorldToTileY + * @private + * @since 3.0.0 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var OrthoWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + return snapToFloor + ? Math.floor(worldY / tileHeight) + : worldY / tileHeight; + +}; + +/** + * Converts from world Y coordinates (pixels) to staggered tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.StagWorldToTileY + * @private + * @since 3.2.2 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var StagWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + return snapToFloor + ? Math.floor(worldY / (tileHeight / 2)) + : worldY / (tileHeight / 2); +}; + +/** + * Converts from world Y coordinates (pixels) to hexagonal tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.HexWorldToTileY + * @private + * @since 3.2.2 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var HexWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + return snapToFloor + ? Math.floor(worldY / rowHeight) + : worldY / rowHeight; +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the WorldToTileXY function.'); + return null; +}; + +var WorldToTileY = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoWorldToTileY; + + case CONST.HEXAGONAL: + return HexWorldToTileY; + + case CONST.STAGGERED: + return StagWorldToTileY; + + default: + return nullFunc; + + } + +}; + +module.exports = WorldToTileY; + + +/***/ }), +/* 473 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103078,10 +102906,10 @@ module.exports = RemoveTileAt; */ var Formats = __webpack_require__(33); -var Parse2DArray = __webpack_require__(220); -var ParseCSV = __webpack_require__(478); -var ParseJSONTiled = __webpack_require__(479); -var ParseWeltmeister = __webpack_require__(490); +var Parse2DArray = __webpack_require__(218); +var ParseCSV = __webpack_require__(474); +var ParseJSONTiled = __webpack_require__(475); +var ParseWeltmeister = __webpack_require__(486); /** * Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format @@ -103138,7 +102966,7 @@ module.exports = Parse; /***/ }), -/* 478 */ +/* 474 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103148,7 +102976,7 @@ module.exports = Parse; */ var Formats = __webpack_require__(33); -var Parse2DArray = __webpack_require__(220); +var Parse2DArray = __webpack_require__(218); /** * Parses a CSV string of tile indexes into a new MapData object with a single layer. @@ -103186,7 +103014,7 @@ module.exports = ParseCSV; /***/ }), -/* 479 */ +/* 475 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103195,14 +103023,15 @@ module.exports = ParseCSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ +var CONST = __webpack_require__(10); var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var ParseTileLayers = __webpack_require__(480); -var ParseImageLayers = __webpack_require__(482); -var ParseTilesets = __webpack_require__(483); -var ParseObjectLayers = __webpack_require__(486); -var BuildTilesetIndex = __webpack_require__(488); -var AssignTileProperties = __webpack_require__(489); +var MapData = __webpack_require__(101); +var ParseTileLayers = __webpack_require__(476); +var ParseImageLayers = __webpack_require__(478); +var ParseTilesets = __webpack_require__(479); +var ParseObjectLayers = __webpack_require__(482); +var BuildTilesetIndex = __webpack_require__(484); +var AssignTileProperties = __webpack_require__(485); /** * Parses a Tiled JSON object into a new MapData object. @@ -103237,6 +103066,7 @@ var ParseJSONTiled = function (name, json, insertNull) return null; } + // Map data will consist of: layers, objects, images, tilesets, sizes var mapData = new MapData({ width: json.width, @@ -103244,7 +103074,7 @@ var ParseJSONTiled = function (name, json, insertNull) name: name, tileWidth: json.tilewidth, tileHeight: json.tileheight, - orientation: json.orientation, + orientation: CONST.fromOrientationString(json.orientation), format: Formats.TILED_JSON, version: json.version, properties: json.properties, @@ -103252,7 +103082,10 @@ var ParseJSONTiled = function (name, json, insertNull) infinite: json.infinite }); - if (mapData.orientation === 'hexagonal') + + + + if (mapData.orientation === CONST.HEXAGONAL) { mapData.hexSideLength = json.hexsidelength; } @@ -103277,7 +103110,7 @@ module.exports = ParseJSONTiled; /***/ }), -/* 480 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103286,12 +103119,13 @@ module.exports = ParseJSONTiled; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64Decode = __webpack_require__(481); +var CONST = __webpack_require__(10); +var Base64Decode = __webpack_require__(477); var GetFastValue = __webpack_require__(2); -var LayerData = __webpack_require__(101); -var ParseGID = __webpack_require__(221); -var Tile = __webpack_require__(73); -var CreateGroupLayer = __webpack_require__(222); +var LayerData = __webpack_require__(100); +var ParseGID = __webpack_require__(219); +var Tile = __webpack_require__(72); +var CreateGroupLayer = __webpack_require__(220); /** * Parses all tilemap layers in a Tiled JSON object into new LayerData objects. @@ -103410,10 +103244,10 @@ var ParseTileLayers = function (json, insertNull) alpha: (curGroupState.opacity * curl.opacity), visible: (curGroupState.visible && curl.visible), properties: GetFastValue(curl, 'properties', {}), - orientation: json.orientation + orientation: CONST.fromOrientationString(json.orientation) }); - if (layerData.orientation === 'hexagonal') + if (layerData.orientation === CONST.HEXAGONAL) { layerData.hexSideLength = json.hexsidelength; } @@ -103489,10 +103323,10 @@ var ParseTileLayers = function (json, insertNull) alpha: (curGroupState.opacity * curl.opacity), visible: (curGroupState.visible && curl.visible), properties: GetFastValue(curl, 'properties', {}), - orientation: json.orientation + orientation: CONST.fromOrientationString(json.orientation) }); - if (layerData.orientation === 'hexagonal') + if (layerData.orientation === CONST.HEXAGONAL) { layerData.hexSideLength = json.hexsidelength; } @@ -103546,7 +103380,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 481 */ +/* 477 */ /***/ (function(module, exports) { /** @@ -103589,7 +103423,7 @@ module.exports = Base64Decode; /***/ }), -/* 482 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103599,7 +103433,7 @@ module.exports = Base64Decode; */ var GetFastValue = __webpack_require__(2); -var CreateGroupLayer = __webpack_require__(222); +var CreateGroupLayer = __webpack_require__(220); /** * Parses a Tiled JSON object into an array of objects with details about the image layers. @@ -103677,7 +103511,7 @@ module.exports = ParseImageLayers; /***/ }), -/* 483 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103686,9 +103520,9 @@ module.exports = ParseImageLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(138); -var ImageCollection = __webpack_require__(484); -var ParseObject = __webpack_require__(223); +var Tileset = __webpack_require__(137); +var ImageCollection = __webpack_require__(480); +var ParseObject = __webpack_require__(221); /** * Tilesets and Image Collections @@ -103846,7 +103680,7 @@ module.exports = ParseTilesets; /***/ }), -/* 484 */ +/* 480 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104018,7 +103852,7 @@ module.exports = ImageCollection; /***/ }), -/* 485 */ +/* 481 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104027,7 +103861,7 @@ module.exports = ImageCollection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasValue = __webpack_require__(105); +var HasValue = __webpack_require__(104); /** * Returns a new object that only contains the `keys` that were found on the object provided. @@ -104062,7 +103896,7 @@ module.exports = Pick; /***/ }), -/* 486 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104072,9 +103906,9 @@ module.exports = Pick; */ var GetFastValue = __webpack_require__(2); -var ParseObject = __webpack_require__(223); -var ObjectLayer = __webpack_require__(487); -var CreateGroupLayer = __webpack_require__(222); +var ParseObject = __webpack_require__(221); +var ObjectLayer = __webpack_require__(483); +var CreateGroupLayer = __webpack_require__(220); /** * Parses a Tiled JSON object into an array of ObjectLayer objects. @@ -104161,7 +103995,7 @@ module.exports = ParseObjectLayers; /***/ }), -/* 487 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104283,7 +104117,7 @@ module.exports = ObjectLayer; /***/ }), -/* 488 */ +/* 484 */ /***/ (function(module, exports) { /** @@ -104356,7 +104190,7 @@ module.exports = BuildTilesetIndex; /***/ }), -/* 489 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104365,7 +104199,7 @@ module.exports = BuildTilesetIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * Copy properties from tileset to tiles. @@ -104429,7 +104263,7 @@ module.exports = AssignTileProperties; /***/ }), -/* 490 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104439,9 +104273,9 @@ module.exports = AssignTileProperties; */ var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var ParseTileLayers = __webpack_require__(491); -var ParseTilesets = __webpack_require__(492); +var MapData = __webpack_require__(101); +var ParseTileLayers = __webpack_require__(487); +var ParseTilesets = __webpack_require__(488); /** * Parses a Weltmeister JSON object into a new MapData object. @@ -104496,7 +104330,7 @@ module.exports = ParseWeltmeister; /***/ }), -/* 491 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104505,8 +104339,8 @@ module.exports = ParseWeltmeister; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LayerData = __webpack_require__(101); -var Tile = __webpack_require__(73); +var LayerData = __webpack_require__(100); +var Tile = __webpack_require__(72); /** * [description] @@ -104580,7 +104414,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 492 */ +/* 488 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104589,7 +104423,7 @@ module.exports = ParseTileLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(138); +var Tileset = __webpack_require__(137); /** * [description] @@ -104631,7 +104465,7 @@ module.exports = ParseTilesets; /***/ }), -/* 493 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104642,16 +104476,16 @@ module.exports = ParseTilesets; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var DynamicTilemapLayer = __webpack_require__(494); -var Extend = __webpack_require__(17); +var DynamicTilemapLayer = __webpack_require__(490); +var Extend = __webpack_require__(18); var Formats = __webpack_require__(33); -var LayerData = __webpack_require__(101); -var Rotate = __webpack_require__(328); -var SpliceOne = __webpack_require__(79); -var StaticTilemapLayer = __webpack_require__(495); -var Tile = __webpack_require__(73); -var TilemapComponents = __webpack_require__(136); -var Tileset = __webpack_require__(138); +var LayerData = __webpack_require__(100); +var Rotate = __webpack_require__(326); +var SpliceOne = __webpack_require__(78); +var StaticTilemapLayer = __webpack_require__(491); +var Tile = __webpack_require__(72); +var TilemapComponents = __webpack_require__(135); +var Tileset = __webpack_require__(137); /** * @callback TilemapFilterCallback @@ -104896,6 +104730,19 @@ var Tilemap = new Class({ * @since 3.0.0 */ this.hexSideLength = mapData.hexSideLength; + + /** + * Components used for conversions between real world coordinates and tile coordinates, + * initialized here to prevent switching between them at runtime depending on map orientation. + * refer to the components themselves for documentation. + * @since 3.2.2 + */ + this.WorldToTileXY = TilemapComponents.WorldToTileXY(this.orientation); + this.WorldToTileX = TilemapComponents.WorldToTileX(this.orientation); + this.WorldToTileY = TilemapComponents.WorldToTileY(this.orientation); + this.TileToWorldXY = TilemapComponents.TileToWorldXY(this.orientation); + this.TileToWorldX = TilemapComponents.TileToWorldX(this.orientation); + this.TileToWorldY = TilemapComponents.TileToWorldY(this.orientation); }, /** @@ -106991,7 +106838,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldX(tileX, camera, layer); + return this.TileToWorldX(tileX, camera, layer); }, /** @@ -107016,7 +106863,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldY(tileX, camera, layer); + return this.TileToWorldY(tileX, camera, layer); }, /** @@ -107037,13 +106884,14 @@ var Tilemap = new Class({ * * @return {?Phaser.Math.Vector2} Returns a point, or null if the layer given was invalid. */ + tileToWorldXY: function (tileX, tileY, point, camera, layer) { layer = this.getLayer(layer); if (layer === null) { return null; } - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer); + return this.TileToWorldXY(tileX, tileY, point, camera, layer); }, /** @@ -107114,7 +106962,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer); + return this.WorldToTileX(worldX, snapToFloor, camera, layer); }, /** @@ -107139,7 +106987,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer); + return this.WorldToTileY(worldY, snapToFloor, camera, layer); }, /** @@ -107167,7 +107015,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); + return this.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); }, /** @@ -107198,7 +107046,7 @@ module.exports = Tilemap; /***/ }), -/* 494 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107208,10 +107056,10 @@ module.exports = Tilemap; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); +var Components = __webpack_require__(12); var DynamicTilemapLayerRender = __webpack_require__(1338); -var GameObject = __webpack_require__(13); -var TilemapComponents = __webpack_require__(136); +var GameObject = __webpack_require__(14); +var TilemapComponents = __webpack_require__(135); var Vector2 = __webpack_require__(3); /** @@ -107315,7 +107163,6 @@ var DynamicTilemapLayer = new Class({ // Link the LayerData with this static tilemap layer this.layer.tilemapLayer = this; - console.log('fug',this.layer); /** * The Tileset/s associated with this layer. @@ -107465,9 +107312,6 @@ var DynamicTilemapLayer = new Class({ this.setSize(tilemap.tileWidth * this.layer.width, tilemap.tileHeight * this.layer.height); this.initPipeline('TextureTintPipeline'); - - console.log('layer sizes'); - console.log(this.layer.tileWidth,this.layer.tileHeight); }, /** @@ -108398,7 +108242,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldX: function (tileX, camera) { - return TilemapComponents.TileToWorldX(tileX, camera, this.layer); + return this.tilemap.TileToWorldX(tileX, camera, this.layer); }, /** @@ -108415,7 +108259,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldY: function (tileY, camera) { - return TilemapComponents.TileToWorldY(tileY, camera, this.layer); + return this.tilemap.TileToWorldY(tileY, camera, this.layer); }, /** @@ -108435,7 +108279,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldXY: function (tileX, tileY, point, camera) { - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, this.layer); + return this.tilemap.TileToWorldXY(tileX, tileY, point, camera, this.layer); }, /** @@ -108488,7 +108332,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileX: function (worldX, snapToFloor, camera) { - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileX(worldX, snapToFloor, camera, this.layer); }, /** @@ -108506,7 +108350,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileY: function (worldY, snapToFloor, camera) { - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileY(worldY, snapToFloor, camera, this.layer); }, /** @@ -108527,7 +108371,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileXY: function (worldX, worldY, snapToFloor, point, camera) { - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); + return this.tilemap.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); } }); @@ -108536,7 +108380,7 @@ module.exports = DynamicTilemapLayer; /***/ }), -/* 495 */ +/* 491 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108546,13 +108390,14 @@ module.exports = DynamicTilemapLayer; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); var StaticTilemapLayerRender = __webpack_require__(1341); -var TilemapComponents = __webpack_require__(136); +var TilemapComponents = __webpack_require__(135); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); +var Vector2 = __webpack_require__(3); /** * @classdesc @@ -108691,6 +108536,18 @@ var StaticTilemapLayer = new Class({ */ this.skipCull = false; + /** + * In isometric mode, you can control the amount of distance (in tiles, from the cameras' borders) that the Cameras before culling. + * By default the camera will allow 1 full tile in all directions. + * + * However, there are some instances when you may wish to adjust this, and changing this variable allows you to do so. + * + * @name Phaser.Tilemaps.StaticTilemapLayer#isoCullDistances + * @type {Phaser.Math.Vector2} + * @since 3.23.0 + */ + this.isoCullDistances = new Vector2(1, 1); + /** * Canvas only. * @@ -108904,6 +108761,7 @@ var StaticTilemapLayer = new Class({ { this.updateVBOData(); }, this); + }, /** @@ -109874,7 +109732,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldX: function (tileX, camera) { - return TilemapComponents.TileToWorldX(tileX, camera, this.layer); + return this.tilemap.TileToWorldX(tileX, camera, this.layer); }, /** @@ -109891,7 +109749,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldY: function (tileY, camera) { - return TilemapComponents.TileToWorldY(tileY, camera, this.layer); + return this.tilemap.TileToWorldY(tileY, camera, this.layer); }, /** @@ -109911,7 +109769,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldXY: function (tileX, tileY, point, camera) { - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, this.layer); + return this.tilemap.TileToWorldXY(tileX, tileY, point, camera, this.layer); }, /** @@ -109930,7 +109788,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileX: function (worldX, snapToFloor, camera) { - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileX(worldX, snapToFloor, camera, this.layer); }, /** @@ -109949,7 +109807,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileY: function (worldY, snapToFloor, camera) { - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileY(worldY, snapToFloor, camera, this.layer); }, /** @@ -109971,7 +109829,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileXY: function (worldX, worldY, snapToFloor, point, camera) { - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); + return this.tilemap.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); }, /** @@ -110030,7 +109888,7 @@ module.exports = StaticTilemapLayer; /***/ }), -/* 496 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110343,7 +110201,7 @@ module.exports = TimerEvent; /***/ }), -/* 497 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110404,7 +110262,7 @@ module.exports = GetProps; /***/ }), -/* 498 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110452,7 +110310,7 @@ module.exports = GetTweens; /***/ }), -/* 499 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110461,15 +110319,15 @@ module.exports = GetTweens; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); +var GetNewValue = __webpack_require__(138); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(226); -var Tween = __webpack_require__(228); -var TweenData = __webpack_require__(230); +var GetValueOp = __webpack_require__(224); +var Tween = __webpack_require__(226); +var TweenData = __webpack_require__(228); /** * Creates a new Number Tween. @@ -110582,7 +110440,7 @@ module.exports = NumberTweenBuilder; /***/ }), -/* 500 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110593,7 +110451,7 @@ module.exports = NumberTweenBuilder; var GetEaseFunction = __webpack_require__(67); var GetValue = __webpack_require__(6); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * Creates a Stagger function to be used by a Tween property. @@ -110828,7 +110686,7 @@ module.exports = StaggerBuilder; /***/ }), -/* 501 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110838,16 +110696,16 @@ module.exports = StaggerBuilder; */ var Clone = __webpack_require__(65); -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); -var GetTargets = __webpack_require__(225); -var GetTweens = __webpack_require__(498); +var GetNewValue = __webpack_require__(138); +var GetTargets = __webpack_require__(223); +var GetTweens = __webpack_require__(494); var GetValue = __webpack_require__(6); -var Timeline = __webpack_require__(502); -var TweenBuilder = __webpack_require__(140); +var Timeline = __webpack_require__(498); +var TweenBuilder = __webpack_require__(139); /** * Builds a Timeline of Tweens based on a configuration object. @@ -110980,7 +110838,7 @@ module.exports = TimelineBuilder; /***/ }), -/* 502 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110990,10 +110848,10 @@ module.exports = TimelineBuilder; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(229); -var TweenBuilder = __webpack_require__(140); -var TWEEN_CONST = __webpack_require__(88); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(227); +var TweenBuilder = __webpack_require__(139); +var TWEEN_CONST = __webpack_require__(87); /** * @classdesc @@ -111885,7 +111743,7 @@ module.exports = Timeline; /***/ }), -/* 503 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -111894,9 +111752,9 @@ module.exports = Timeline; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseAnimation = __webpack_require__(146); +var BaseAnimation = __webpack_require__(145); var Class = __webpack_require__(0); -var Events = __webpack_require__(108); +var Events = __webpack_require__(107); /** * @classdesc @@ -113063,7 +112921,7 @@ module.exports = Animation; /***/ }), -/* 504 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113073,12 +112931,12 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasSnapshot = __webpack_require__(505); +var CanvasSnapshot = __webpack_require__(501); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var GetBlendModes = __webpack_require__(506); -var ScaleEvents = __webpack_require__(91); +var CONST = __webpack_require__(10); +var GetBlendModes = __webpack_require__(502); +var ScaleEvents = __webpack_require__(90); var TransformMatrix = __webpack_require__(30); /** @@ -113860,7 +113718,7 @@ module.exports = CanvasRenderer; /***/ }), -/* 505 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113869,7 +113727,7 @@ module.exports = CanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); @@ -113953,7 +113811,7 @@ module.exports = CanvasSnapshot; /***/ }), -/* 506 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113963,7 +113821,7 @@ module.exports = CanvasSnapshot; */ var modes = __webpack_require__(52); -var CanvasFeatures = __webpack_require__(313); +var CanvasFeatures = __webpack_require__(311); /** * Returns an array which maps the default blend modes to supported Canvas blend modes. @@ -114017,7 +113875,7 @@ module.exports = GetBlendModes; /***/ }), -/* 507 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -114027,25 +113885,25 @@ module.exports = GetBlendModes; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); +var BaseCamera = __webpack_require__(89); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var GameEvents = __webpack_require__(18); -var IsSizePowerOfTwo = __webpack_require__(115); +var CONST = __webpack_require__(10); +var GameEvents = __webpack_require__(19); +var IsSizePowerOfTwo = __webpack_require__(114); var NOOP = __webpack_require__(1); -var ScaleEvents = __webpack_require__(91); -var SpliceOne = __webpack_require__(79); -var TextureEvents = __webpack_require__(116); +var ScaleEvents = __webpack_require__(90); +var SpliceOne = __webpack_require__(78); +var TextureEvents = __webpack_require__(115); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); -var WebGLSnapshot = __webpack_require__(508); +var WebGLSnapshot = __webpack_require__(504); // Default Pipelines -var BitmapMaskPipeline = __webpack_require__(509); -var ForwardDiffuseLightPipeline = __webpack_require__(510); -var TextureTintPipeline = __webpack_require__(234); -var TextureTintStripPipeline = __webpack_require__(511); +var BitmapMaskPipeline = __webpack_require__(505); +var ForwardDiffuseLightPipeline = __webpack_require__(506); +var TextureTintPipeline = __webpack_require__(232); +var TextureTintStripPipeline = __webpack_require__(507); /** * @callback WebGLContextCallback @@ -117006,7 +116864,7 @@ module.exports = WebGLRenderer; /***/ }), -/* 508 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117015,7 +116873,7 @@ module.exports = WebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); @@ -117116,7 +116974,7 @@ module.exports = WebGLSnapshot; /***/ }), -/* 509 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117127,9 +116985,9 @@ module.exports = WebGLSnapshot; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(780); -var ShaderSourceVS = __webpack_require__(781); -var WebGLPipeline = __webpack_require__(142); +var ShaderSourceFS = __webpack_require__(776); +var ShaderSourceVS = __webpack_require__(777); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -117381,7 +117239,7 @@ module.exports = BitmapMaskPipeline; /***/ }), -/* 510 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117392,8 +117250,8 @@ module.exports = BitmapMaskPipeline; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(782); -var TextureTintPipeline = __webpack_require__(234); +var ShaderSourceFS = __webpack_require__(778); +var TextureTintPipeline = __webpack_require__(232); var LIGHT_COUNT = 10; @@ -117902,7 +117760,7 @@ module.exports = ForwardDiffuseLightPipeline; /***/ }), -/* 511 */ +/* 507 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117914,11 +117772,11 @@ module.exports = ForwardDiffuseLightPipeline; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(235); -var ShaderSourceFS = __webpack_require__(337); -var ShaderSourceVS = __webpack_require__(338); +var ModelViewProjection = __webpack_require__(233); +var ShaderSourceFS = __webpack_require__(335); +var ShaderSourceVS = __webpack_require__(336); var TransformMatrix = __webpack_require__(30); -var WebGLPipeline = __webpack_require__(142); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -118312,11 +118170,11 @@ module.exports = TextureTintStripPipeline; /***/ }), -/* 512 */, -/* 513 */, -/* 514 */, -/* 515 */, -/* 516 */ +/* 508 */, +/* 509 */, +/* 510 */, +/* 511 */, +/* 512 */ /***/ (function(module, exports) { var g; @@ -118342,21 +118200,21 @@ module.exports = g; /***/ }), -/* 517 */ +/* 513 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(514); +__webpack_require__(515); +__webpack_require__(516); +__webpack_require__(517); __webpack_require__(518); __webpack_require__(519); __webpack_require__(520); __webpack_require__(521); -__webpack_require__(522); -__webpack_require__(523); -__webpack_require__(524); -__webpack_require__(525); /***/ }), -/* 518 */ +/* 514 */ /***/ (function(module, exports) { /** @@ -118396,7 +118254,7 @@ if (!Array.prototype.forEach) /***/ }), -/* 519 */ +/* 515 */ /***/ (function(module, exports) { /** @@ -118412,7 +118270,7 @@ if (!Array.isArray) /***/ }), -/* 520 */ +/* 516 */ /***/ (function(module, exports) { /* Copyright 2013 Chris Wilson @@ -118599,7 +118457,7 @@ BiquadFilterNode.type and OscillatorNode.type. /***/ }), -/* 521 */ +/* 517 */ /***/ (function(module, exports) { /** @@ -118614,7 +118472,7 @@ if (!window.console) /***/ }), -/* 522 */ +/* 518 */ /***/ (function(module, exports) { // ES6 Math.trunc - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc @@ -118626,7 +118484,7 @@ if (!Math.trunc) { /***/ }), -/* 523 */ +/* 519 */ /***/ (function(module, exports) { /** @@ -118663,7 +118521,7 @@ if (!Math.trunc) { /***/ }), -/* 524 */ +/* 520 */ /***/ (function(module, exports) { // References: @@ -118720,7 +118578,7 @@ if (!window.cancelAnimationFrame) /***/ }), -/* 525 */ +/* 521 */ /***/ (function(module, exports) { /** @@ -118773,7 +118631,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o /***/ }), -/* 526 */ +/* 522 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118782,7 +118640,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var QuickSet = __webpack_require__(239); +var QuickSet = __webpack_require__(237); /** * Takes an array of Game Objects, or any objects that have public `x` and `y` properties, and aligns them next to each other. @@ -118821,7 +118679,7 @@ module.exports = AlignTo; /***/ }), -/* 527 */ +/* 523 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118862,7 +118720,7 @@ module.exports = Angle; /***/ }), -/* 528 */ +/* 524 */ /***/ (function(module, exports) { /** @@ -118901,7 +118759,7 @@ module.exports = Call; /***/ }), -/* 529 */ +/* 525 */ /***/ (function(module, exports) { /** @@ -118959,7 +118817,7 @@ module.exports = GetFirst; /***/ }), -/* 530 */ +/* 526 */ /***/ (function(module, exports) { /** @@ -119017,7 +118875,7 @@ module.exports = GetLast; /***/ }), -/* 531 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -119026,11 +118884,11 @@ module.exports = GetLast; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AlignIn = __webpack_require__(252); -var CONST = __webpack_require__(103); +var AlignIn = __webpack_require__(250); +var CONST = __webpack_require__(102); var GetFastValue = __webpack_require__(2); var NOOP = __webpack_require__(1); -var Zone = __webpack_require__(107); +var Zone = __webpack_require__(106); var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1); @@ -119116,7 +118974,7 @@ module.exports = GridAlign; /***/ }), -/* 532 */ +/* 528 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -119125,7 +118983,7 @@ module.exports = GridAlign; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); // bitmask flag for GameObject.renderMask var _FLAG = 2; // 0010 @@ -119411,7 +119269,7 @@ module.exports = Alpha; /***/ }), -/* 533 */ +/* 529 */ /***/ (function(module, exports) { /** @@ -119438,7 +119296,7 @@ module.exports = 'add'; /***/ }), -/* 534 */ +/* 530 */ /***/ (function(module, exports) { /** @@ -119466,7 +119324,7 @@ module.exports = 'complete'; /***/ }), -/* 535 */ +/* 531 */ /***/ (function(module, exports) { /** @@ -119493,7 +119351,7 @@ module.exports = 'repeat'; /***/ }), -/* 536 */ +/* 532 */ /***/ (function(module, exports) { /** @@ -119521,7 +119379,7 @@ module.exports = 'restart'; /***/ }), -/* 537 */ +/* 533 */ /***/ (function(module, exports) { /** @@ -119549,7 +119407,7 @@ module.exports = 'start'; /***/ }), -/* 538 */ +/* 534 */ /***/ (function(module, exports) { /** @@ -119573,7 +119431,7 @@ module.exports = 'pauseall'; /***/ }), -/* 539 */ +/* 535 */ /***/ (function(module, exports) { /** @@ -119597,7 +119455,7 @@ module.exports = 'remove'; /***/ }), -/* 540 */ +/* 536 */ /***/ (function(module, exports) { /** @@ -119620,7 +119478,7 @@ module.exports = 'resumeall'; /***/ }), -/* 541 */ +/* 537 */ /***/ (function(module, exports) { /** @@ -119649,7 +119507,7 @@ module.exports = 'animationcomplete'; /***/ }), -/* 542 */ +/* 538 */ /***/ (function(module, exports) { /** @@ -119677,7 +119535,7 @@ module.exports = 'animationcomplete-'; /***/ }), -/* 543 */ +/* 539 */ /***/ (function(module, exports) { /** @@ -119706,7 +119564,7 @@ module.exports = 'animationrepeat-'; /***/ }), -/* 544 */ +/* 540 */ /***/ (function(module, exports) { /** @@ -119734,7 +119592,7 @@ module.exports = 'animationrestart-'; /***/ }), -/* 545 */ +/* 541 */ /***/ (function(module, exports) { /** @@ -119762,7 +119620,7 @@ module.exports = 'animationstart-'; /***/ }), -/* 546 */ +/* 542 */ /***/ (function(module, exports) { /** @@ -119791,7 +119649,7 @@ module.exports = 'animationupdate-'; /***/ }), -/* 547 */ +/* 543 */ /***/ (function(module, exports) { /** @@ -119821,7 +119679,7 @@ module.exports = 'animationrepeat'; /***/ }), -/* 548 */ +/* 544 */ /***/ (function(module, exports) { /** @@ -119850,7 +119708,7 @@ module.exports = 'animationrestart'; /***/ }), -/* 549 */ +/* 545 */ /***/ (function(module, exports) { /** @@ -119879,7 +119737,7 @@ module.exports = 'animationstart'; /***/ }), -/* 550 */ +/* 546 */ /***/ (function(module, exports) { /** @@ -119909,7 +119767,7 @@ module.exports = 'animationupdate'; /***/ }), -/* 551 */ +/* 547 */ /***/ (function(module, exports) { /** @@ -120058,7 +119916,7 @@ module.exports = ComputedSize; /***/ }), -/* 552 */ +/* 548 */ /***/ (function(module, exports) { /** @@ -120183,7 +120041,7 @@ module.exports = Crop; /***/ }), -/* 553 */ +/* 549 */ /***/ (function(module, exports) { /** @@ -120347,7 +120205,7 @@ module.exports = Flip; /***/ }), -/* 554 */ +/* 550 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -120356,8 +120214,8 @@ module.exports = Flip; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var RotateAround = __webpack_require__(273); +var Rectangle = __webpack_require__(13); +var RotateAround = __webpack_require__(271); var Vector2 = __webpack_require__(3); /** @@ -120706,7 +120564,7 @@ module.exports = GetBounds; /***/ }), -/* 555 */ +/* 551 */ /***/ (function(module, exports) { /** @@ -120729,7 +120587,7 @@ module.exports = 'blur'; /***/ }), -/* 556 */ +/* 552 */ /***/ (function(module, exports) { /** @@ -120751,7 +120609,7 @@ module.exports = 'boot'; /***/ }), -/* 557 */ +/* 553 */ /***/ (function(module, exports) { /** @@ -120774,7 +120632,7 @@ module.exports = 'contextlost'; /***/ }), -/* 558 */ +/* 554 */ /***/ (function(module, exports) { /** @@ -120797,7 +120655,7 @@ module.exports = 'contextrestored'; /***/ }), -/* 559 */ +/* 555 */ /***/ (function(module, exports) { /** @@ -120820,7 +120678,7 @@ module.exports = 'destroy'; /***/ }), -/* 560 */ +/* 556 */ /***/ (function(module, exports) { /** @@ -120842,7 +120700,7 @@ module.exports = 'focus'; /***/ }), -/* 561 */ +/* 557 */ /***/ (function(module, exports) { /** @@ -120868,7 +120726,7 @@ module.exports = 'hidden'; /***/ }), -/* 562 */ +/* 558 */ /***/ (function(module, exports) { /** @@ -120889,7 +120747,7 @@ module.exports = 'pause'; /***/ }), -/* 563 */ +/* 559 */ /***/ (function(module, exports) { /** @@ -120915,7 +120773,7 @@ module.exports = 'postrender'; /***/ }), -/* 564 */ +/* 560 */ /***/ (function(module, exports) { /** @@ -120940,7 +120798,7 @@ module.exports = 'poststep'; /***/ }), -/* 565 */ +/* 561 */ /***/ (function(module, exports) { /** @@ -120965,7 +120823,7 @@ module.exports = 'prerender'; /***/ }), -/* 566 */ +/* 562 */ /***/ (function(module, exports) { /** @@ -120990,7 +120848,7 @@ module.exports = 'prestep'; /***/ }), -/* 567 */ +/* 563 */ /***/ (function(module, exports) { /** @@ -121012,7 +120870,7 @@ module.exports = 'ready'; /***/ }), -/* 568 */ +/* 564 */ /***/ (function(module, exports) { /** @@ -121033,7 +120891,7 @@ module.exports = 'resume'; /***/ }), -/* 569 */ +/* 565 */ /***/ (function(module, exports) { /** @@ -121058,7 +120916,7 @@ module.exports = 'step'; /***/ }), -/* 570 */ +/* 566 */ /***/ (function(module, exports) { /** @@ -121082,7 +120940,7 @@ module.exports = 'visible'; /***/ }), -/* 571 */ +/* 567 */ /***/ (function(module, exports) { /** @@ -121285,7 +121143,7 @@ module.exports = Origin; /***/ }), -/* 572 */ +/* 568 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121295,9 +121153,9 @@ module.exports = Origin; */ var DegToRad = __webpack_require__(35); -var GetBoolean = __webpack_require__(87); +var GetBoolean = __webpack_require__(86); var GetValue = __webpack_require__(6); -var TWEEN_CONST = __webpack_require__(88); +var TWEEN_CONST = __webpack_require__(87); var Vector2 = __webpack_require__(3); /** @@ -121691,7 +121549,7 @@ module.exports = PathFollower; /***/ }), -/* 573 */ +/* 569 */ /***/ (function(module, exports) { /** @@ -121878,7 +121736,7 @@ module.exports = Size; /***/ }), -/* 574 */ +/* 570 */ /***/ (function(module, exports) { /** @@ -122008,7 +121866,7 @@ module.exports = Texture; /***/ }), -/* 575 */ +/* 571 */ /***/ (function(module, exports) { /** @@ -122216,7 +122074,7 @@ module.exports = TextureCrop; /***/ }), -/* 576 */ +/* 572 */ /***/ (function(module, exports) { /** @@ -122556,7 +122414,7 @@ module.exports = Tint; /***/ }), -/* 577 */ +/* 573 */ /***/ (function(module, exports) { /** @@ -122588,7 +122446,7 @@ module.exports = 'changedata'; /***/ }), -/* 578 */ +/* 574 */ /***/ (function(module, exports) { /** @@ -122618,7 +122476,7 @@ module.exports = 'changedata-'; /***/ }), -/* 579 */ +/* 575 */ /***/ (function(module, exports) { /** @@ -122646,7 +122504,7 @@ module.exports = 'removedata'; /***/ }), -/* 580 */ +/* 576 */ /***/ (function(module, exports) { /** @@ -122674,7 +122532,7 @@ module.exports = 'setdata'; /***/ }), -/* 581 */ +/* 577 */ /***/ (function(module, exports) { /** @@ -122699,7 +122557,7 @@ module.exports = 'destroy'; /***/ }), -/* 582 */ +/* 578 */ /***/ (function(module, exports) { /** @@ -122731,7 +122589,7 @@ module.exports = 'complete'; /***/ }), -/* 583 */ +/* 579 */ /***/ (function(module, exports) { /** @@ -122760,7 +122618,7 @@ module.exports = 'created'; /***/ }), -/* 584 */ +/* 580 */ /***/ (function(module, exports) { /** @@ -122786,7 +122644,7 @@ module.exports = 'error'; /***/ }), -/* 585 */ +/* 581 */ /***/ (function(module, exports) { /** @@ -122818,7 +122676,7 @@ module.exports = 'loop'; /***/ }), -/* 586 */ +/* 582 */ /***/ (function(module, exports) { /** @@ -122846,7 +122704,7 @@ module.exports = 'play'; /***/ }), -/* 587 */ +/* 583 */ /***/ (function(module, exports) { /** @@ -122871,7 +122729,7 @@ module.exports = 'seeked'; /***/ }), -/* 588 */ +/* 584 */ /***/ (function(module, exports) { /** @@ -122897,7 +122755,7 @@ module.exports = 'seeking'; /***/ }), -/* 589 */ +/* 585 */ /***/ (function(module, exports) { /** @@ -122923,7 +122781,7 @@ module.exports = 'stop'; /***/ }), -/* 590 */ +/* 586 */ /***/ (function(module, exports) { /** @@ -122949,7 +122807,7 @@ module.exports = 'timeout'; /***/ }), -/* 591 */ +/* 587 */ /***/ (function(module, exports) { /** @@ -122975,7 +122833,7 @@ module.exports = 'unlocked'; /***/ }), -/* 592 */ +/* 588 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123016,7 +122874,7 @@ module.exports = IncAlpha; /***/ }), -/* 593 */ +/* 589 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123057,7 +122915,7 @@ module.exports = IncX; /***/ }), -/* 594 */ +/* 590 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123104,7 +122962,7 @@ module.exports = IncXY; /***/ }), -/* 595 */ +/* 591 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123145,7 +123003,7 @@ module.exports = IncY; /***/ }), -/* 596 */ +/* 592 */ /***/ (function(module, exports) { /** @@ -123194,7 +123052,7 @@ module.exports = PlaceOnCircle; /***/ }), -/* 597 */ +/* 593 */ /***/ (function(module, exports) { /** @@ -123246,7 +123104,7 @@ module.exports = PlaceOnEllipse; /***/ }), -/* 598 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123255,7 +123113,7 @@ module.exports = PlaceOnEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoints = __webpack_require__(148); +var GetPoints = __webpack_require__(147); /** * Positions an array of Game Objects on evenly spaced points of a Line. @@ -123290,7 +123148,7 @@ module.exports = PlaceOnLine; /***/ }), -/* 599 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123299,9 +123157,9 @@ module.exports = PlaceOnLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MarchingAnts = __webpack_require__(282); -var RotateLeft = __webpack_require__(283); -var RotateRight = __webpack_require__(284); +var MarchingAnts = __webpack_require__(280); +var RotateLeft = __webpack_require__(281); +var RotateRight = __webpack_require__(282); /** * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle. @@ -123348,7 +123206,7 @@ module.exports = PlaceOnRectangle; /***/ }), -/* 600 */ +/* 596 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123357,7 +123215,7 @@ module.exports = PlaceOnRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BresenhamPoints = __webpack_require__(285); +var BresenhamPoints = __webpack_require__(283); /** * Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle. @@ -123409,7 +123267,7 @@ module.exports = PlaceOnTriangle; /***/ }), -/* 601 */ +/* 597 */ /***/ (function(module, exports) { /** @@ -123446,7 +123304,7 @@ module.exports = PlayAnimation; /***/ }), -/* 602 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123455,7 +123313,7 @@ module.exports = PlayAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(145); +var Random = __webpack_require__(144); /** * Takes an array of Game Objects and positions them at random locations within the Circle. @@ -123486,7 +123344,7 @@ module.exports = RandomCircle; /***/ }), -/* 603 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123495,7 +123353,7 @@ module.exports = RandomCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(152); +var Random = __webpack_require__(151); /** * Takes an array of Game Objects and positions them at random locations within the Ellipse. @@ -123526,7 +123384,7 @@ module.exports = RandomEllipse; /***/ }), -/* 604 */ +/* 600 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123535,7 +123393,7 @@ module.exports = RandomEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(149); +var Random = __webpack_require__(148); /** * Takes an array of Game Objects and positions them at random locations on the Line. @@ -123566,7 +123424,7 @@ module.exports = RandomLine; /***/ }), -/* 605 */ +/* 601 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123575,7 +123433,7 @@ module.exports = RandomLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(150); +var Random = __webpack_require__(149); /** * Takes an array of Game Objects and positions them at random locations within the Rectangle. @@ -123604,7 +123462,7 @@ module.exports = RandomRectangle; /***/ }), -/* 606 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123613,7 +123471,7 @@ module.exports = RandomRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(153); +var Random = __webpack_require__(152); /** * Takes an array of Game Objects and positions them at random locations within the Triangle. @@ -123644,7 +123502,7 @@ module.exports = RandomTriangle; /***/ }), -/* 607 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123685,7 +123543,7 @@ module.exports = Rotate; /***/ }), -/* 608 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123694,7 +123552,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundDistance = __webpack_require__(154); +var RotateAroundDistance = __webpack_require__(153); var DistanceBetween = __webpack_require__(53); /** @@ -123731,7 +123589,7 @@ module.exports = RotateAround; /***/ }), -/* 609 */ +/* 605 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123740,7 +123598,7 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathRotateAroundDistance = __webpack_require__(154); +var MathRotateAroundDistance = __webpack_require__(153); /** * Rotates an array of Game Objects around a point by the given angle and distance. @@ -123780,7 +123638,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 610 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123821,7 +123679,7 @@ module.exports = ScaleX; /***/ }), -/* 611 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123868,7 +123726,7 @@ module.exports = ScaleXY; /***/ }), -/* 612 */ +/* 608 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123909,7 +123767,7 @@ module.exports = ScaleY; /***/ }), -/* 613 */ +/* 609 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123918,7 +123776,7 @@ module.exports = ScaleY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `alpha` @@ -123950,7 +123808,7 @@ module.exports = SetAlpha; /***/ }), -/* 614 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123959,7 +123817,7 @@ module.exports = SetAlpha; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `blendMode` @@ -123990,7 +123848,7 @@ module.exports = SetBlendMode; /***/ }), -/* 615 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123999,7 +123857,7 @@ module.exports = SetBlendMode; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `depth` @@ -124031,7 +123889,7 @@ module.exports = SetDepth; /***/ }), -/* 616 */ +/* 612 */ /***/ (function(module, exports) { /** @@ -124070,7 +123928,7 @@ module.exports = SetHitArea; /***/ }), -/* 617 */ +/* 613 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124079,7 +123937,7 @@ module.exports = SetHitArea; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `originX` and `originY` @@ -124117,7 +123975,7 @@ module.exports = SetOrigin; /***/ }), -/* 618 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124126,7 +123984,7 @@ module.exports = SetOrigin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `rotation` @@ -124158,7 +124016,7 @@ module.exports = SetRotation; /***/ }), -/* 619 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124167,7 +124025,7 @@ module.exports = SetRotation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `scaleX` and `scaleY` @@ -124205,7 +124063,7 @@ module.exports = SetScale; /***/ }), -/* 620 */ +/* 616 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124214,7 +124072,7 @@ module.exports = SetScale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scaleX` @@ -124246,7 +124104,7 @@ module.exports = SetScaleX; /***/ }), -/* 621 */ +/* 617 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124255,7 +124113,7 @@ module.exports = SetScaleX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scaleY` @@ -124287,7 +124145,7 @@ module.exports = SetScaleY; /***/ }), -/* 622 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124296,7 +124154,7 @@ module.exports = SetScaleY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `scrollFactorX` and `scrollFactorY` @@ -124334,7 +124192,7 @@ module.exports = SetScrollFactor; /***/ }), -/* 623 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124343,7 +124201,7 @@ module.exports = SetScrollFactor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scrollFactorX` @@ -124375,7 +124233,7 @@ module.exports = SetScrollFactorX; /***/ }), -/* 624 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124384,7 +124242,7 @@ module.exports = SetScrollFactorX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scrollFactorY` @@ -124416,7 +124274,7 @@ module.exports = SetScrollFactorY; /***/ }), -/* 625 */ +/* 621 */ /***/ (function(module, exports) { /** @@ -124455,7 +124313,7 @@ module.exports = SetTint; /***/ }), -/* 626 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124464,7 +124322,7 @@ module.exports = SetTint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `visible` @@ -124493,7 +124351,7 @@ module.exports = SetVisible; /***/ }), -/* 627 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124502,7 +124360,7 @@ module.exports = SetVisible; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `x` @@ -124534,7 +124392,7 @@ module.exports = SetX; /***/ }), -/* 628 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124543,7 +124401,7 @@ module.exports = SetX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `x` and `y` @@ -124581,7 +124439,7 @@ module.exports = SetXY; /***/ }), -/* 629 */ +/* 625 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124590,7 +124448,7 @@ module.exports = SetXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `y` @@ -124622,7 +124480,7 @@ module.exports = SetY; /***/ }), -/* 630 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124752,7 +124610,7 @@ module.exports = ShiftPosition; /***/ }), -/* 631 */ +/* 627 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124761,7 +124619,7 @@ module.exports = ShiftPosition; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayShuffle = __webpack_require__(111); +var ArrayShuffle = __webpack_require__(110); /** * Shuffles the array in place. The shuffled array is both modified and returned. @@ -124785,7 +124643,7 @@ module.exports = Shuffle; /***/ }), -/* 632 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124794,7 +124652,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmootherStep = __webpack_require__(155); +var MathSmootherStep = __webpack_require__(154); /** * Smootherstep is a sigmoid-like interpolation and clamping function. @@ -124843,7 +124701,7 @@ module.exports = SmootherStep; /***/ }), -/* 633 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124852,7 +124710,7 @@ module.exports = SmootherStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmoothStep = __webpack_require__(156); +var MathSmoothStep = __webpack_require__(155); /** * Smoothstep is a sigmoid-like interpolation and clamping function. @@ -124901,7 +124759,7 @@ module.exports = SmoothStep; /***/ }), -/* 634 */ +/* 630 */ /***/ (function(module, exports) { /** @@ -124964,7 +124822,7 @@ module.exports = Spread; /***/ }), -/* 635 */ +/* 631 */ /***/ (function(module, exports) { /** @@ -125000,7 +124858,7 @@ module.exports = ToggleVisible; /***/ }), -/* 636 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125049,7 +124907,7 @@ module.exports = WrapInRectangle; /***/ }), -/* 637 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125064,16 +124922,16 @@ module.exports = WrapInRectangle; module.exports = { - Animation: __webpack_require__(146), - AnimationFrame: __webpack_require__(268), - AnimationManager: __webpack_require__(286), - Events: __webpack_require__(108) + Animation: __webpack_require__(145), + AnimationFrame: __webpack_require__(266), + AnimationManager: __webpack_require__(284), + Events: __webpack_require__(107) }; /***/ }), -/* 638 */ +/* 634 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125088,15 +124946,15 @@ module.exports = { module.exports = { - BaseCache: __webpack_require__(287), - CacheManager: __webpack_require__(289), - Events: __webpack_require__(288) + BaseCache: __webpack_require__(285), + CacheManager: __webpack_require__(287), + Events: __webpack_require__(286) }; /***/ }), -/* 639 */ +/* 635 */ /***/ (function(module, exports) { /** @@ -125121,7 +124979,7 @@ module.exports = 'add'; /***/ }), -/* 640 */ +/* 636 */ /***/ (function(module, exports) { /** @@ -125146,7 +125004,7 @@ module.exports = 'remove'; /***/ }), -/* 641 */ +/* 637 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125165,14 +125023,14 @@ module.exports = 'remove'; module.exports = { - Controls: __webpack_require__(642), - Scene2D: __webpack_require__(645) + Controls: __webpack_require__(638), + Scene2D: __webpack_require__(641) }; /***/ }), -/* 642 */ +/* 638 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125187,14 +125045,14 @@ module.exports = { module.exports = { - FixedKeyControl: __webpack_require__(643), - SmoothedKeyControl: __webpack_require__(644) + FixedKeyControl: __webpack_require__(639), + SmoothedKeyControl: __webpack_require__(640) }; /***/ }), -/* 643 */ +/* 639 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125500,7 +125358,7 @@ module.exports = FixedKeyControl; /***/ }), -/* 644 */ +/* 640 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125983,7 +125841,7 @@ module.exports = SmoothedKeyControl; /***/ }), -/* 645 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125998,17 +125856,17 @@ module.exports = SmoothedKeyControl; module.exports = { - Camera: __webpack_require__(290), - BaseCamera: __webpack_require__(90), - CameraManager: __webpack_require__(698), - Effects: __webpack_require__(298), + Camera: __webpack_require__(288), + BaseCamera: __webpack_require__(89), + CameraManager: __webpack_require__(694), + Effects: __webpack_require__(296), Events: __webpack_require__(48) }; /***/ }), -/* 646 */ +/* 642 */ /***/ (function(module, exports) { /** @@ -126031,7 +125889,7 @@ module.exports = 'cameradestroy'; /***/ }), -/* 647 */ +/* 643 */ /***/ (function(module, exports) { /** @@ -126057,7 +125915,7 @@ module.exports = 'camerafadeincomplete'; /***/ }), -/* 648 */ +/* 644 */ /***/ (function(module, exports) { /** @@ -126087,7 +125945,7 @@ module.exports = 'camerafadeinstart'; /***/ }), -/* 649 */ +/* 645 */ /***/ (function(module, exports) { /** @@ -126113,7 +125971,7 @@ module.exports = 'camerafadeoutcomplete'; /***/ }), -/* 650 */ +/* 646 */ /***/ (function(module, exports) { /** @@ -126143,7 +126001,7 @@ module.exports = 'camerafadeoutstart'; /***/ }), -/* 651 */ +/* 647 */ /***/ (function(module, exports) { /** @@ -126167,7 +126025,7 @@ module.exports = 'cameraflashcomplete'; /***/ }), -/* 652 */ +/* 648 */ /***/ (function(module, exports) { /** @@ -126195,7 +126053,7 @@ module.exports = 'cameraflashstart'; /***/ }), -/* 653 */ +/* 649 */ /***/ (function(module, exports) { /** @@ -126219,7 +126077,7 @@ module.exports = 'camerapancomplete'; /***/ }), -/* 654 */ +/* 650 */ /***/ (function(module, exports) { /** @@ -126246,7 +126104,7 @@ module.exports = 'camerapanstart'; /***/ }), -/* 655 */ +/* 651 */ /***/ (function(module, exports) { /** @@ -126272,7 +126130,7 @@ module.exports = 'postrender'; /***/ }), -/* 656 */ +/* 652 */ /***/ (function(module, exports) { /** @@ -126298,7 +126156,7 @@ module.exports = 'prerender'; /***/ }), -/* 657 */ +/* 653 */ /***/ (function(module, exports) { /** @@ -126322,7 +126180,7 @@ module.exports = 'camerashakecomplete'; /***/ }), -/* 658 */ +/* 654 */ /***/ (function(module, exports) { /** @@ -126348,7 +126206,7 @@ module.exports = 'camerashakestart'; /***/ }), -/* 659 */ +/* 655 */ /***/ (function(module, exports) { /** @@ -126372,7 +126230,7 @@ module.exports = 'camerazoomcomplete'; /***/ }), -/* 660 */ +/* 656 */ /***/ (function(module, exports) { /** @@ -126398,7 +126256,7 @@ module.exports = 'camerazoomstart'; /***/ }), -/* 661 */ +/* 657 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126407,7 +126265,7 @@ module.exports = 'camerazoomstart'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); @@ -126786,7 +126644,7 @@ module.exports = Fade; /***/ }), -/* 662 */ +/* 658 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126795,7 +126653,7 @@ module.exports = Fade; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); @@ -127137,7 +126995,7 @@ module.exports = Flash; /***/ }), -/* 663 */ +/* 659 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -127146,9 +127004,9 @@ module.exports = Flash; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(164); +var EaseMap = __webpack_require__(163); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -127462,7 +127320,7 @@ module.exports = Pan; /***/ }), -/* 664 */ +/* 660 */ /***/ (function(module, exports) { /** @@ -127493,7 +127351,7 @@ module.exports = In; /***/ }), -/* 665 */ +/* 661 */ /***/ (function(module, exports) { /** @@ -127524,7 +127382,7 @@ module.exports = Out; /***/ }), -/* 666 */ +/* 662 */ /***/ (function(module, exports) { /** @@ -127564,7 +127422,7 @@ module.exports = InOut; /***/ }), -/* 667 */ +/* 663 */ /***/ (function(module, exports) { /** @@ -127609,7 +127467,7 @@ module.exports = In; /***/ }), -/* 668 */ +/* 664 */ /***/ (function(module, exports) { /** @@ -127652,7 +127510,7 @@ module.exports = Out; /***/ }), -/* 669 */ +/* 665 */ /***/ (function(module, exports) { /** @@ -127716,7 +127574,7 @@ module.exports = InOut; /***/ }), -/* 670 */ +/* 666 */ /***/ (function(module, exports) { /** @@ -127744,7 +127602,7 @@ module.exports = In; /***/ }), -/* 671 */ +/* 667 */ /***/ (function(module, exports) { /** @@ -127772,7 +127630,7 @@ module.exports = Out; /***/ }), -/* 672 */ +/* 668 */ /***/ (function(module, exports) { /** @@ -127807,7 +127665,7 @@ module.exports = InOut; /***/ }), -/* 673 */ +/* 669 */ /***/ (function(module, exports) { /** @@ -127835,7 +127693,7 @@ module.exports = In; /***/ }), -/* 674 */ +/* 670 */ /***/ (function(module, exports) { /** @@ -127863,7 +127721,7 @@ module.exports = Out; /***/ }), -/* 675 */ +/* 671 */ /***/ (function(module, exports) { /** @@ -127898,7 +127756,7 @@ module.exports = InOut; /***/ }), -/* 676 */ +/* 672 */ /***/ (function(module, exports) { /** @@ -127953,7 +127811,7 @@ module.exports = In; /***/ }), -/* 677 */ +/* 673 */ /***/ (function(module, exports) { /** @@ -128008,7 +127866,7 @@ module.exports = Out; /***/ }), -/* 678 */ +/* 674 */ /***/ (function(module, exports) { /** @@ -128070,7 +127928,7 @@ module.exports = InOut; /***/ }), -/* 679 */ +/* 675 */ /***/ (function(module, exports) { /** @@ -128098,7 +127956,7 @@ module.exports = In; /***/ }), -/* 680 */ +/* 676 */ /***/ (function(module, exports) { /** @@ -128126,7 +127984,7 @@ module.exports = Out; /***/ }), -/* 681 */ +/* 677 */ /***/ (function(module, exports) { /** @@ -128161,7 +128019,7 @@ module.exports = InOut; /***/ }), -/* 682 */ +/* 678 */ /***/ (function(module, exports) { /** @@ -128189,7 +128047,7 @@ module.exports = Linear; /***/ }), -/* 683 */ +/* 679 */ /***/ (function(module, exports) { /** @@ -128217,7 +128075,7 @@ module.exports = In; /***/ }), -/* 684 */ +/* 680 */ /***/ (function(module, exports) { /** @@ -128245,7 +128103,7 @@ module.exports = Out; /***/ }), -/* 685 */ +/* 681 */ /***/ (function(module, exports) { /** @@ -128280,7 +128138,7 @@ module.exports = InOut; /***/ }), -/* 686 */ +/* 682 */ /***/ (function(module, exports) { /** @@ -128308,7 +128166,7 @@ module.exports = In; /***/ }), -/* 687 */ +/* 683 */ /***/ (function(module, exports) { /** @@ -128336,7 +128194,7 @@ module.exports = Out; /***/ }), -/* 688 */ +/* 684 */ /***/ (function(module, exports) { /** @@ -128371,7 +128229,7 @@ module.exports = InOut; /***/ }), -/* 689 */ +/* 685 */ /***/ (function(module, exports) { /** @@ -128399,7 +128257,7 @@ module.exports = In; /***/ }), -/* 690 */ +/* 686 */ /***/ (function(module, exports) { /** @@ -128427,7 +128285,7 @@ module.exports = Out; /***/ }), -/* 691 */ +/* 687 */ /***/ (function(module, exports) { /** @@ -128462,7 +128320,7 @@ module.exports = InOut; /***/ }), -/* 692 */ +/* 688 */ /***/ (function(module, exports) { /** @@ -128501,7 +128359,7 @@ module.exports = In; /***/ }), -/* 693 */ +/* 689 */ /***/ (function(module, exports) { /** @@ -128540,7 +128398,7 @@ module.exports = Out; /***/ }), -/* 694 */ +/* 690 */ /***/ (function(module, exports) { /** @@ -128579,7 +128437,7 @@ module.exports = InOut; /***/ }), -/* 695 */ +/* 691 */ /***/ (function(module, exports) { /** @@ -128621,7 +128479,7 @@ module.exports = Stepped; /***/ }), -/* 696 */ +/* 692 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128630,7 +128488,7 @@ module.exports = Stepped; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -128940,7 +128798,7 @@ module.exports = Shake; /***/ }), -/* 697 */ +/* 693 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128949,9 +128807,9 @@ module.exports = Shake; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(164); +var EaseMap = __webpack_require__(163); var Events = __webpack_require__(48); /** @@ -129233,7 +129091,7 @@ module.exports = Zoom; /***/ }), -/* 698 */ +/* 694 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129242,13 +129100,13 @@ module.exports = Zoom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Camera = __webpack_require__(290); +var Camera = __webpack_require__(288); var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); +var PluginCache = __webpack_require__(24); var RectangleContains = __webpack_require__(47); -var ScaleEvents = __webpack_require__(91); -var SceneEvents = __webpack_require__(21); +var ScaleEvents = __webpack_require__(90); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -129981,7 +129839,7 @@ module.exports = CameraManager; /***/ }), -/* 699 */ +/* 695 */ /***/ (function(module, exports) { /** @@ -130000,7 +129858,7 @@ module.exports = 'enterfullscreen'; /***/ }), -/* 700 */ +/* 696 */ /***/ (function(module, exports) { /** @@ -130019,7 +129877,7 @@ module.exports = 'fullscreenfailed'; /***/ }), -/* 701 */ +/* 697 */ /***/ (function(module, exports) { /** @@ -130038,7 +129896,7 @@ module.exports = 'fullscreenunsupported'; /***/ }), -/* 702 */ +/* 698 */ /***/ (function(module, exports) { /** @@ -130058,7 +129916,7 @@ module.exports = 'leavefullscreen'; /***/ }), -/* 703 */ +/* 699 */ /***/ (function(module, exports) { /** @@ -130079,7 +129937,7 @@ module.exports = 'orientationchange'; /***/ }), -/* 704 */ +/* 700 */ /***/ (function(module, exports) { /** @@ -130110,7 +129968,7 @@ module.exports = 'resize'; /***/ }), -/* 705 */ +/* 701 */ /***/ (function(module, exports) { /** @@ -130135,7 +129993,7 @@ module.exports = 'boot'; /***/ }), -/* 706 */ +/* 702 */ /***/ (function(module, exports) { /** @@ -130164,7 +130022,7 @@ module.exports = 'create'; /***/ }), -/* 707 */ +/* 703 */ /***/ (function(module, exports) { /** @@ -130191,7 +130049,7 @@ module.exports = 'destroy'; /***/ }), -/* 708 */ +/* 704 */ /***/ (function(module, exports) { /** @@ -130218,7 +130076,7 @@ module.exports = 'pause'; /***/ }), -/* 709 */ +/* 705 */ /***/ (function(module, exports) { /** @@ -130255,7 +130113,7 @@ module.exports = 'postupdate'; /***/ }), -/* 710 */ +/* 706 */ /***/ (function(module, exports) { /** @@ -130292,7 +130150,7 @@ module.exports = 'preupdate'; /***/ }), -/* 711 */ +/* 707 */ /***/ (function(module, exports) { /** @@ -130320,7 +130178,7 @@ module.exports = 'ready'; /***/ }), -/* 712 */ +/* 708 */ /***/ (function(module, exports) { /** @@ -130356,7 +130214,7 @@ module.exports = 'render'; /***/ }), -/* 713 */ +/* 709 */ /***/ (function(module, exports) { /** @@ -130383,7 +130241,7 @@ module.exports = 'resume'; /***/ }), -/* 714 */ +/* 710 */ /***/ (function(module, exports) { /** @@ -130413,7 +130271,7 @@ module.exports = 'shutdown'; /***/ }), -/* 715 */ +/* 711 */ /***/ (function(module, exports) { /** @@ -130440,7 +130298,7 @@ module.exports = 'sleep'; /***/ }), -/* 716 */ +/* 712 */ /***/ (function(module, exports) { /** @@ -130465,7 +130323,7 @@ module.exports = 'start'; /***/ }), -/* 717 */ +/* 713 */ /***/ (function(module, exports) { /** @@ -130501,7 +130359,7 @@ module.exports = 'transitioncomplete'; /***/ }), -/* 718 */ +/* 714 */ /***/ (function(module, exports) { /** @@ -130538,7 +130396,7 @@ module.exports = 'transitioninit'; /***/ }), -/* 719 */ +/* 715 */ /***/ (function(module, exports) { /** @@ -130572,7 +130430,7 @@ module.exports = 'transitionout'; /***/ }), -/* 720 */ +/* 716 */ /***/ (function(module, exports) { /** @@ -130612,7 +130470,7 @@ module.exports = 'transitionstart'; /***/ }), -/* 721 */ +/* 717 */ /***/ (function(module, exports) { /** @@ -130647,7 +130505,7 @@ module.exports = 'transitionwake'; /***/ }), -/* 722 */ +/* 718 */ /***/ (function(module, exports) { /** @@ -130684,7 +130542,7 @@ module.exports = 'update'; /***/ }), -/* 723 */ +/* 719 */ /***/ (function(module, exports) { /** @@ -130711,7 +130569,7 @@ module.exports = 'wake'; /***/ }), -/* 724 */ +/* 720 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130726,18 +130584,18 @@ module.exports = 'wake'; module.exports = { - Config: __webpack_require__(311), - CreateRenderer: __webpack_require__(335), - DebugHeader: __webpack_require__(339), - Events: __webpack_require__(18), - TimeStep: __webpack_require__(340), - VisibilityHandler: __webpack_require__(342) + Config: __webpack_require__(309), + CreateRenderer: __webpack_require__(333), + DebugHeader: __webpack_require__(337), + Events: __webpack_require__(19), + TimeStep: __webpack_require__(338), + VisibilityHandler: __webpack_require__(340) }; /***/ }), -/* 725 */ +/* 721 */ /***/ (function(module, exports) { // shim for using process in browser @@ -130927,7 +130785,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 726 */ +/* 722 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130936,7 +130794,7 @@ process.umask = function() { return 0; }; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(114); +var Browser = __webpack_require__(113); /** * Determines the input support of the browser running this Phaser Game instance. @@ -131002,7 +130860,7 @@ module.exports = init(); /***/ }), -/* 727 */ +/* 723 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131011,7 +130869,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(114); +var Browser = __webpack_require__(113); /** * Determines the audio playback capabilities of the device running this Phaser Game instance. @@ -131127,7 +130985,7 @@ module.exports = init(); /***/ }), -/* 728 */ +/* 724 */ /***/ (function(module, exports) { /** @@ -131214,7 +131072,7 @@ module.exports = init(); /***/ }), -/* 729 */ +/* 725 */ /***/ (function(module, exports) { /** @@ -131318,7 +131176,7 @@ module.exports = init(); /***/ }), -/* 730 */ +/* 726 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131333,23 +131191,23 @@ module.exports = init(); module.exports = { - Between: __webpack_require__(314), - BetweenPoints: __webpack_require__(731), - BetweenPointsY: __webpack_require__(732), - BetweenY: __webpack_require__(733), - CounterClockwise: __webpack_require__(734), - Normalize: __webpack_require__(315), - Reverse: __webpack_require__(735), - RotateTo: __webpack_require__(736), - ShortestBetween: __webpack_require__(737), - Wrap: __webpack_require__(232), - WrapDegrees: __webpack_require__(233) + Between: __webpack_require__(312), + BetweenPoints: __webpack_require__(727), + BetweenPointsY: __webpack_require__(728), + BetweenY: __webpack_require__(729), + CounterClockwise: __webpack_require__(730), + Normalize: __webpack_require__(313), + Reverse: __webpack_require__(731), + RotateTo: __webpack_require__(732), + ShortestBetween: __webpack_require__(733), + Wrap: __webpack_require__(230), + WrapDegrees: __webpack_require__(231) }; /***/ }), -/* 731 */ +/* 727 */ /***/ (function(module, exports) { /** @@ -131380,7 +131238,7 @@ module.exports = BetweenPoints; /***/ }), -/* 732 */ +/* 728 */ /***/ (function(module, exports) { /** @@ -131412,7 +131270,7 @@ module.exports = BetweenPointsY; /***/ }), -/* 733 */ +/* 729 */ /***/ (function(module, exports) { /** @@ -131446,7 +131304,7 @@ module.exports = BetweenY; /***/ }), -/* 734 */ +/* 730 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131455,7 +131313,7 @@ module.exports = BetweenY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Takes an angle in Phasers default clockwise format and converts it so that @@ -131491,7 +131349,7 @@ module.exports = CounterClockwise; /***/ }), -/* 735 */ +/* 731 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131500,7 +131358,7 @@ module.exports = CounterClockwise; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Normalize = __webpack_require__(315); +var Normalize = __webpack_require__(313); /** * Reverse the given angle. @@ -131521,7 +131379,7 @@ module.exports = Reverse; /***/ }), -/* 736 */ +/* 732 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131530,7 +131388,7 @@ module.exports = Reverse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * Rotates `currentAngle` towards `targetAngle`, taking the shortest rotation distance. The `lerp` argument is the amount to rotate by in this call. @@ -131588,7 +131446,7 @@ module.exports = RotateTo; /***/ }), -/* 737 */ +/* 733 */ /***/ (function(module, exports) { /** @@ -131637,7 +131495,7 @@ module.exports = ShortestBetween; /***/ }), -/* 738 */ +/* 734 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131653,18 +131511,18 @@ module.exports = ShortestBetween; module.exports = { Between: __webpack_require__(53), - BetweenPoints: __webpack_require__(316), - BetweenPointsSquared: __webpack_require__(739), - Chebyshev: __webpack_require__(740), - Power: __webpack_require__(741), - Snake: __webpack_require__(742), - Squared: __webpack_require__(317) + BetweenPoints: __webpack_require__(314), + BetweenPointsSquared: __webpack_require__(735), + Chebyshev: __webpack_require__(736), + Power: __webpack_require__(737), + Snake: __webpack_require__(738), + Squared: __webpack_require__(315) }; /***/ }), -/* 739 */ +/* 735 */ /***/ (function(module, exports) { /** @@ -131696,7 +131554,7 @@ module.exports = DistanceBetweenPointsSquared; /***/ }), -/* 740 */ +/* 736 */ /***/ (function(module, exports) { /** @@ -131730,7 +131588,7 @@ module.exports = ChebyshevDistance; /***/ }), -/* 741 */ +/* 737 */ /***/ (function(module, exports) { /** @@ -131764,7 +131622,7 @@ module.exports = DistancePower; /***/ }), -/* 742 */ +/* 738 */ /***/ (function(module, exports) { /** @@ -131798,7 +131656,7 @@ module.exports = SnakeDistance; /***/ }), -/* 743 */ +/* 739 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131813,24 +131671,24 @@ module.exports = SnakeDistance; module.exports = { - Back: __webpack_require__(299), - Bounce: __webpack_require__(300), - Circular: __webpack_require__(301), - Cubic: __webpack_require__(302), - Elastic: __webpack_require__(303), - Expo: __webpack_require__(304), - Linear: __webpack_require__(305), - Quadratic: __webpack_require__(306), - Quartic: __webpack_require__(307), - Quintic: __webpack_require__(308), - Sine: __webpack_require__(309), - Stepped: __webpack_require__(310) + Back: __webpack_require__(297), + Bounce: __webpack_require__(298), + Circular: __webpack_require__(299), + Cubic: __webpack_require__(300), + Elastic: __webpack_require__(301), + Expo: __webpack_require__(302), + Linear: __webpack_require__(303), + Quadratic: __webpack_require__(304), + Quartic: __webpack_require__(305), + Quintic: __webpack_require__(306), + Sine: __webpack_require__(307), + Stepped: __webpack_require__(308) }; /***/ }), -/* 744 */ +/* 740 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131845,17 +131703,17 @@ module.exports = { module.exports = { - Ceil: __webpack_require__(745), - Equal: __webpack_require__(141), - Floor: __webpack_require__(746), - GreaterThan: __webpack_require__(318), - LessThan: __webpack_require__(319) + Ceil: __webpack_require__(741), + Equal: __webpack_require__(140), + Floor: __webpack_require__(742), + GreaterThan: __webpack_require__(316), + LessThan: __webpack_require__(317) }; /***/ }), -/* 745 */ +/* 741 */ /***/ (function(module, exports) { /** @@ -131886,7 +131744,7 @@ module.exports = Ceil; /***/ }), -/* 746 */ +/* 742 */ /***/ (function(module, exports) { /** @@ -131917,7 +131775,7 @@ module.exports = Floor; /***/ }), -/* 747 */ +/* 743 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131932,19 +131790,19 @@ module.exports = Floor; module.exports = { - Bezier: __webpack_require__(748), - CatmullRom: __webpack_require__(749), - CubicBezier: __webpack_require__(322), - Linear: __webpack_require__(750), - QuadraticBezier: __webpack_require__(323), - SmoothStep: __webpack_require__(324), - SmootherStep: __webpack_require__(751) + Bezier: __webpack_require__(744), + CatmullRom: __webpack_require__(745), + CubicBezier: __webpack_require__(320), + Linear: __webpack_require__(746), + QuadraticBezier: __webpack_require__(321), + SmoothStep: __webpack_require__(322), + SmootherStep: __webpack_require__(747) }; /***/ }), -/* 748 */ +/* 744 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131953,7 +131811,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bernstein = __webpack_require__(320); +var Bernstein = __webpack_require__(318); /** * A bezier interpolation method. @@ -131983,7 +131841,7 @@ module.exports = BezierInterpolation; /***/ }), -/* 749 */ +/* 745 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131992,7 +131850,7 @@ module.exports = BezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CatmullRom = __webpack_require__(167); +var CatmullRom = __webpack_require__(166); /** * A Catmull-Rom interpolation method. @@ -132040,7 +131898,7 @@ module.exports = CatmullRomInterpolation; /***/ }), -/* 750 */ +/* 746 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132049,7 +131907,7 @@ module.exports = CatmullRomInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(112); +var Linear = __webpack_require__(111); /** * A linear interpolation method. @@ -132087,7 +131945,7 @@ module.exports = LinearInterpolation; /***/ }), -/* 751 */ +/* 747 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132096,7 +131954,7 @@ module.exports = LinearInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmootherStep = __webpack_require__(155); +var SmootherStep = __webpack_require__(154); /** * A Smoother Step interpolation method. @@ -132120,7 +131978,7 @@ module.exports = SmootherStepInterpolation; /***/ }), -/* 752 */ +/* 748 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132135,15 +131993,15 @@ module.exports = SmootherStepInterpolation; module.exports = { - GetNext: __webpack_require__(325), - IsSize: __webpack_require__(115), - IsValue: __webpack_require__(753) + GetNext: __webpack_require__(323), + IsSize: __webpack_require__(114), + IsValue: __webpack_require__(749) }; /***/ }), -/* 753 */ +/* 749 */ /***/ (function(module, exports) { /** @@ -132171,7 +132029,7 @@ module.exports = IsValuePowerOfTwo; /***/ }), -/* 754 */ +/* 750 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132186,15 +132044,15 @@ module.exports = IsValuePowerOfTwo; module.exports = { - Ceil: __webpack_require__(326), - Floor: __webpack_require__(92), - To: __webpack_require__(755) + Ceil: __webpack_require__(324), + Floor: __webpack_require__(91), + To: __webpack_require__(751) }; /***/ }), -/* 755 */ +/* 751 */ /***/ (function(module, exports) { /** @@ -132237,7 +132095,7 @@ module.exports = SnapTo; /***/ }), -/* 756 */ +/* 752 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132747,7 +132605,7 @@ module.exports = RandomDataGenerator; /***/ }), -/* 757 */ +/* 753 */ /***/ (function(module, exports) { /** @@ -132782,7 +132640,7 @@ module.exports = Average; /***/ }), -/* 758 */ +/* 754 */ /***/ (function(module, exports) { /** @@ -132819,7 +132677,7 @@ module.exports = CeilTo; /***/ }), -/* 759 */ +/* 755 */ /***/ (function(module, exports) { /** @@ -132848,7 +132706,7 @@ module.exports = Difference; /***/ }), -/* 760 */ +/* 756 */ /***/ (function(module, exports) { /** @@ -132885,7 +132743,7 @@ module.exports = FloorTo; /***/ }), -/* 761 */ +/* 757 */ /***/ (function(module, exports) { /** @@ -132918,7 +132776,7 @@ module.exports = GetSpeed; /***/ }), -/* 762 */ +/* 758 */ /***/ (function(module, exports) { /** @@ -132949,7 +132807,7 @@ module.exports = IsEven; /***/ }), -/* 763 */ +/* 759 */ /***/ (function(module, exports) { /** @@ -132978,7 +132836,7 @@ module.exports = IsEvenStrict; /***/ }), -/* 764 */ +/* 760 */ /***/ (function(module, exports) { /** @@ -133008,7 +132866,7 @@ module.exports = MaxAdd; /***/ }), -/* 765 */ +/* 761 */ /***/ (function(module, exports) { /** @@ -133038,7 +132896,7 @@ module.exports = MinSub; /***/ }), -/* 766 */ +/* 762 */ /***/ (function(module, exports) { /** @@ -133097,7 +132955,7 @@ module.exports = Percent; /***/ }), -/* 767 */ +/* 763 */ /***/ (function(module, exports) { /** @@ -133137,7 +132995,7 @@ module.exports = RandomXY; /***/ }), -/* 768 */ +/* 764 */ /***/ (function(module, exports) { /** @@ -133176,7 +133034,7 @@ module.exports = RandomXYZ; /***/ }), -/* 769 */ +/* 765 */ /***/ (function(module, exports) { /** @@ -133213,7 +133071,7 @@ module.exports = RandomXYZW; /***/ }), -/* 770 */ +/* 766 */ /***/ (function(module, exports) { /** @@ -133265,7 +133123,7 @@ module.exports = RoundTo; /***/ }), -/* 771 */ +/* 767 */ /***/ (function(module, exports) { /** @@ -133318,7 +133176,7 @@ module.exports = SinCosTableGenerator; /***/ }), -/* 772 */ +/* 768 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133376,7 +133234,7 @@ module.exports = ToXY; /***/ }), -/* 773 */ +/* 769 */ /***/ (function(module, exports) { /** @@ -133406,7 +133264,7 @@ module.exports = Within; /***/ }), -/* 774 */ +/* 770 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133415,9 +133273,9 @@ module.exports = Within; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Vector3 = __webpack_require__(170); -var Matrix4 = __webpack_require__(333); -var Quaternion = __webpack_require__(334); +var Vector3 = __webpack_require__(169); +var Matrix4 = __webpack_require__(331); +var Quaternion = __webpack_require__(332); var tmpMat4 = new Matrix4(); var tmpQuat = new Quaternion(); @@ -133454,7 +133312,7 @@ module.exports = RotateVec3; /***/ }), -/* 775 */ +/* 771 */ /***/ (function(module, exports) { /** @@ -133480,7 +133338,7 @@ module.exports = 'addtexture'; /***/ }), -/* 776 */ +/* 772 */ /***/ (function(module, exports) { /** @@ -133506,7 +133364,7 @@ module.exports = 'onerror'; /***/ }), -/* 777 */ +/* 773 */ /***/ (function(module, exports) { /** @@ -133535,7 +133393,7 @@ module.exports = 'onload'; /***/ }), -/* 778 */ +/* 774 */ /***/ (function(module, exports) { /** @@ -133558,7 +133416,7 @@ module.exports = 'ready'; /***/ }), -/* 779 */ +/* 775 */ /***/ (function(module, exports) { /** @@ -133586,7 +133444,7 @@ module.exports = 'removetexture'; /***/ }), -/* 780 */ +/* 776 */ /***/ (function(module, exports) { module.exports = [ @@ -133622,7 +133480,7 @@ module.exports = [ /***/ }), -/* 781 */ +/* 777 */ /***/ (function(module, exports) { module.exports = [ @@ -133641,7 +133499,7 @@ module.exports = [ /***/ }), -/* 782 */ +/* 778 */ /***/ (function(module, exports) { module.exports = [ @@ -133700,7 +133558,7 @@ module.exports = [ /***/ }), -/* 783 */ +/* 779 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133715,14 +133573,14 @@ module.exports = [ module.exports = { - GenerateTexture: __webpack_require__(343), - Palettes: __webpack_require__(784) + GenerateTexture: __webpack_require__(341), + Palettes: __webpack_require__(780) }; /***/ }), -/* 784 */ +/* 780 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133737,17 +133595,17 @@ module.exports = { module.exports = { - ARNE16: __webpack_require__(344), - C64: __webpack_require__(785), - CGA: __webpack_require__(786), - JMP: __webpack_require__(787), - MSX: __webpack_require__(788) + ARNE16: __webpack_require__(342), + C64: __webpack_require__(781), + CGA: __webpack_require__(782), + JMP: __webpack_require__(783), + MSX: __webpack_require__(784) }; /***/ }), -/* 785 */ +/* 781 */ /***/ (function(module, exports) { /** @@ -133785,7 +133643,7 @@ module.exports = { /***/ }), -/* 786 */ +/* 782 */ /***/ (function(module, exports) { /** @@ -133823,7 +133681,7 @@ module.exports = { /***/ }), -/* 787 */ +/* 783 */ /***/ (function(module, exports) { /** @@ -133861,7 +133719,7 @@ module.exports = { /***/ }), -/* 788 */ +/* 784 */ /***/ (function(module, exports) { /** @@ -133899,7 +133757,7 @@ module.exports = { /***/ }), -/* 789 */ +/* 785 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133913,19 +133771,19 @@ module.exports = { */ module.exports = { - Path: __webpack_require__(790), + Path: __webpack_require__(786), - CubicBezier: __webpack_require__(345), - Curve: __webpack_require__(80), - Ellipse: __webpack_require__(346), - Line: __webpack_require__(347), - QuadraticBezier: __webpack_require__(348), - Spline: __webpack_require__(349) + CubicBezier: __webpack_require__(343), + Curve: __webpack_require__(79), + Ellipse: __webpack_require__(344), + Line: __webpack_require__(345), + QuadraticBezier: __webpack_require__(346), + Spline: __webpack_require__(347) }; /***/ }), -/* 790 */ +/* 786 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133937,16 +133795,16 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezierCurve = __webpack_require__(345); -var EllipseCurve = __webpack_require__(346); +var CubicBezierCurve = __webpack_require__(343); +var EllipseCurve = __webpack_require__(344); var GameObjectFactory = __webpack_require__(5); -var LineCurve = __webpack_require__(347); -var MovePathTo = __webpack_require__(791); -var QuadraticBezierCurve = __webpack_require__(348); -var Rectangle = __webpack_require__(12); -var SplineCurve = __webpack_require__(349); +var LineCurve = __webpack_require__(345); +var MovePathTo = __webpack_require__(787); +var QuadraticBezierCurve = __webpack_require__(346); +var Rectangle = __webpack_require__(13); +var SplineCurve = __webpack_require__(347); var Vector2 = __webpack_require__(3); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -134774,7 +134632,7 @@ module.exports = Path; /***/ }), -/* 791 */ +/* 787 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134914,7 +134772,7 @@ module.exports = MoveTo; /***/ }), -/* 792 */ +/* 788 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134929,15 +134787,15 @@ module.exports = MoveTo; module.exports = { - DataManager: __webpack_require__(110), - DataManagerPlugin: __webpack_require__(793), - Events: __webpack_require__(281) + DataManager: __webpack_require__(109), + DataManagerPlugin: __webpack_require__(789), + Events: __webpack_require__(279) }; /***/ }), -/* 793 */ +/* 789 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134947,9 +134805,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var DataManager = __webpack_require__(110); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var DataManager = __webpack_require__(109); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -135064,7 +134922,7 @@ module.exports = DataManagerPlugin; /***/ }), -/* 794 */ +/* 790 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135079,18 +134937,18 @@ module.exports = DataManagerPlugin; module.exports = { - Align: __webpack_require__(795), - BaseShader: __webpack_require__(350), - Bounds: __webpack_require__(798), - Canvas: __webpack_require__(801), - Color: __webpack_require__(351), - Masks: __webpack_require__(810) + Align: __webpack_require__(791), + BaseShader: __webpack_require__(348), + Bounds: __webpack_require__(794), + Canvas: __webpack_require__(797), + Color: __webpack_require__(349), + Masks: __webpack_require__(806) }; /***/ }), -/* 795 */ +/* 791 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135099,8 +134957,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(103); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(102); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Display.Align @@ -135108,8 +134966,8 @@ var Extend = __webpack_require__(17); var Align = { - In: __webpack_require__(796), - To: __webpack_require__(797) + In: __webpack_require__(792), + To: __webpack_require__(793) }; @@ -135120,7 +134978,7 @@ module.exports = Align; /***/ }), -/* 796 */ +/* 792 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135135,22 +134993,22 @@ module.exports = Align; module.exports = { - BottomCenter: __webpack_require__(253), - BottomLeft: __webpack_require__(254), - BottomRight: __webpack_require__(255), - Center: __webpack_require__(256), - LeftCenter: __webpack_require__(258), - QuickSet: __webpack_require__(252), - RightCenter: __webpack_require__(259), - TopCenter: __webpack_require__(260), - TopLeft: __webpack_require__(261), - TopRight: __webpack_require__(262) + BottomCenter: __webpack_require__(251), + BottomLeft: __webpack_require__(252), + BottomRight: __webpack_require__(253), + Center: __webpack_require__(254), + LeftCenter: __webpack_require__(256), + QuickSet: __webpack_require__(250), + RightCenter: __webpack_require__(257), + TopCenter: __webpack_require__(258), + TopLeft: __webpack_require__(259), + TopRight: __webpack_require__(260) }; /***/ }), -/* 797 */ +/* 793 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135165,25 +135023,25 @@ module.exports = { module.exports = { - BottomCenter: __webpack_require__(240), - BottomLeft: __webpack_require__(241), - BottomRight: __webpack_require__(242), - LeftBottom: __webpack_require__(243), - LeftCenter: __webpack_require__(244), - LeftTop: __webpack_require__(245), - QuickSet: __webpack_require__(239), - RightBottom: __webpack_require__(246), - RightCenter: __webpack_require__(247), - RightTop: __webpack_require__(248), - TopCenter: __webpack_require__(249), - TopLeft: __webpack_require__(250), - TopRight: __webpack_require__(251) + BottomCenter: __webpack_require__(238), + BottomLeft: __webpack_require__(239), + BottomRight: __webpack_require__(240), + LeftBottom: __webpack_require__(241), + LeftCenter: __webpack_require__(242), + LeftTop: __webpack_require__(243), + QuickSet: __webpack_require__(237), + RightBottom: __webpack_require__(244), + RightCenter: __webpack_require__(245), + RightTop: __webpack_require__(246), + TopCenter: __webpack_require__(247), + TopLeft: __webpack_require__(248), + TopRight: __webpack_require__(249) }; /***/ }), -/* 798 */ +/* 794 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135198,18 +135056,18 @@ module.exports = { module.exports = { - CenterOn: __webpack_require__(257), + CenterOn: __webpack_require__(255), GetBottom: __webpack_require__(38), - GetCenterX: __webpack_require__(75), - GetCenterY: __webpack_require__(77), + GetCenterX: __webpack_require__(74), + GetCenterY: __webpack_require__(76), GetLeft: __webpack_require__(40), - GetOffsetX: __webpack_require__(799), - GetOffsetY: __webpack_require__(800), + GetOffsetX: __webpack_require__(795), + GetOffsetY: __webpack_require__(796), GetRight: __webpack_require__(42), GetTop: __webpack_require__(45), SetBottom: __webpack_require__(44), - SetCenterX: __webpack_require__(76), - SetCenterY: __webpack_require__(78), + SetCenterX: __webpack_require__(75), + SetCenterY: __webpack_require__(77), SetLeft: __webpack_require__(41), SetRight: __webpack_require__(43), SetTop: __webpack_require__(39) @@ -135218,7 +135076,7 @@ module.exports = { /***/ }), -/* 799 */ +/* 795 */ /***/ (function(module, exports) { /** @@ -135248,7 +135106,7 @@ module.exports = GetOffsetX; /***/ }), -/* 800 */ +/* 796 */ /***/ (function(module, exports) { /** @@ -135278,7 +135136,7 @@ module.exports = GetOffsetY; /***/ }), -/* 801 */ +/* 797 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135293,17 +135151,17 @@ module.exports = GetOffsetY; module.exports = { - CanvasInterpolation: __webpack_require__(336), - CanvasPool: __webpack_require__(26), - Smoothing: __webpack_require__(162), - TouchAction: __webpack_require__(802), - UserSelect: __webpack_require__(803) + CanvasInterpolation: __webpack_require__(334), + CanvasPool: __webpack_require__(27), + Smoothing: __webpack_require__(161), + TouchAction: __webpack_require__(798), + UserSelect: __webpack_require__(799) }; /***/ }), -/* 802 */ +/* 798 */ /***/ (function(module, exports) { /** @@ -135338,7 +135196,7 @@ module.exports = TouchAction; /***/ }), -/* 803 */ +/* 799 */ /***/ (function(module, exports) { /** @@ -135385,7 +135243,7 @@ module.exports = UserSelect; /***/ }), -/* 804 */ +/* 800 */ /***/ (function(module, exports) { /** @@ -135425,7 +135283,7 @@ module.exports = ColorToRGBA; /***/ }), -/* 805 */ +/* 801 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135435,7 +135293,7 @@ module.exports = ColorToRGBA; */ var Color = __webpack_require__(32); -var HueToComponent = __webpack_require__(353); +var HueToComponent = __webpack_require__(351); /** * Converts HSL (hue, saturation and lightness) values to a Phaser Color object. @@ -135475,7 +135333,7 @@ module.exports = HSLToColor; /***/ }), -/* 806 */ +/* 802 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135484,7 +135342,7 @@ module.exports = HSLToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HSVToRGB = __webpack_require__(161); +var HSVToRGB = __webpack_require__(160); /** * Get HSV color wheel values in an array which will be 360 elements in size. @@ -135516,7 +135374,7 @@ module.exports = HSVColorWheel; /***/ }), -/* 807 */ +/* 803 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135525,7 +135383,7 @@ module.exports = HSVColorWheel; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(112); +var Linear = __webpack_require__(111); /** * @namespace Phaser.Display.Color.Interpolate @@ -135624,7 +135482,7 @@ module.exports = { /***/ }), -/* 808 */ +/* 804 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135633,7 +135491,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(168); +var Between = __webpack_require__(167); var Color = __webpack_require__(32); /** @@ -135660,7 +135518,7 @@ module.exports = RandomRGB; /***/ }), -/* 809 */ +/* 805 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135669,7 +135527,7 @@ module.exports = RandomRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ComponentToHex = __webpack_require__(352); +var ComponentToHex = __webpack_require__(350); /** * Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`. @@ -135704,7 +135562,7 @@ module.exports = RGBToString; /***/ }), -/* 810 */ +/* 806 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135719,14 +135577,14 @@ module.exports = RGBToString; module.exports = { - BitmapMask: __webpack_require__(275), - GeometryMask: __webpack_require__(276) + BitmapMask: __webpack_require__(273), + GeometryMask: __webpack_require__(274) }; /***/ }), -/* 811 */ +/* 807 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135741,13 +135599,13 @@ module.exports = { var Dom = { - AddToDOM: __webpack_require__(117), - DOMContentLoaded: __webpack_require__(354), - GetScreenOrientation: __webpack_require__(355), - GetTarget: __webpack_require__(360), - ParseXML: __webpack_require__(361), - RemoveFromDOM: __webpack_require__(174), - RequestAnimationFrame: __webpack_require__(341) + AddToDOM: __webpack_require__(116), + DOMContentLoaded: __webpack_require__(352), + GetScreenOrientation: __webpack_require__(353), + GetTarget: __webpack_require__(358), + ParseXML: __webpack_require__(359), + RemoveFromDOM: __webpack_require__(173), + RequestAnimationFrame: __webpack_require__(339) }; @@ -135755,7 +135613,7 @@ module.exports = Dom; /***/ }), -/* 812 */ +/* 808 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135768,11 +135626,11 @@ module.exports = Dom; * @namespace Phaser.Events */ -module.exports = { EventEmitter: __webpack_require__(813) }; +module.exports = { EventEmitter: __webpack_require__(809) }; /***/ }), -/* 813 */ +/* 809 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135782,8 +135640,8 @@ module.exports = { EventEmitter: __webpack_require__(813) }; */ var Class = __webpack_require__(0); -var EE = __webpack_require__(10); -var PluginCache = __webpack_require__(23); +var EE = __webpack_require__(11); +var PluginCache = __webpack_require__(24); /** * @classdesc @@ -135956,7 +135814,7 @@ module.exports = EventEmitter; /***/ }), -/* 814 */ +/* 810 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135965,33 +135823,33 @@ module.exports = EventEmitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); -var AnimationManager = __webpack_require__(286); -var CacheManager = __webpack_require__(289); -var CanvasPool = __webpack_require__(26); +var AddToDOM = __webpack_require__(116); +var AnimationManager = __webpack_require__(284); +var CacheManager = __webpack_require__(287); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Config = __webpack_require__(311); -var CreateDOMContainer = __webpack_require__(815); -var CreateRenderer = __webpack_require__(335); -var DataManager = __webpack_require__(110); -var DebugHeader = __webpack_require__(339); -var Device = __webpack_require__(312); -var DOMContentLoaded = __webpack_require__(354); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(18); -var InputManager = __webpack_require__(362); -var PluginCache = __webpack_require__(23); -var PluginManager = __webpack_require__(367); -var ScaleManager = __webpack_require__(368); -var SceneManager = __webpack_require__(370); -var TextureEvents = __webpack_require__(116); -var TextureManager = __webpack_require__(373); -var TimeStep = __webpack_require__(340); -var VisibilityHandler = __webpack_require__(342); +var Config = __webpack_require__(309); +var CreateDOMContainer = __webpack_require__(811); +var CreateRenderer = __webpack_require__(333); +var DataManager = __webpack_require__(109); +var DebugHeader = __webpack_require__(337); +var Device = __webpack_require__(310); +var DOMContentLoaded = __webpack_require__(352); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(19); +var InputManager = __webpack_require__(360); +var PluginCache = __webpack_require__(24); +var PluginManager = __webpack_require__(365); +var ScaleManager = __webpack_require__(366); +var SceneManager = __webpack_require__(368); +var TextureEvents = __webpack_require__(115); +var TextureManager = __webpack_require__(371); +var TimeStep = __webpack_require__(338); +var VisibilityHandler = __webpack_require__(340); if (true) { - var SoundManagerCreator = __webpack_require__(377); + var SoundManagerCreator = __webpack_require__(375); } if (false) @@ -136659,7 +136517,7 @@ module.exports = Game; /***/ }), -/* 815 */ +/* 811 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136668,7 +136526,7 @@ module.exports = Game; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); +var AddToDOM = __webpack_require__(116); var CreateDOMContainer = function (game) { @@ -136703,7 +136561,7 @@ module.exports = CreateDOMContainer; /***/ }), -/* 816 */ +/* 812 */ /***/ (function(module, exports) { /** @@ -136724,7 +136582,7 @@ module.exports = 'boot'; /***/ }), -/* 817 */ +/* 813 */ /***/ (function(module, exports) { /** @@ -136745,7 +136603,7 @@ module.exports = 'destroy'; /***/ }), -/* 818 */ +/* 814 */ /***/ (function(module, exports) { /** @@ -136773,7 +136631,7 @@ module.exports = 'dragend'; /***/ }), -/* 819 */ +/* 815 */ /***/ (function(module, exports) { /** @@ -136804,7 +136662,7 @@ module.exports = 'dragenter'; /***/ }), -/* 820 */ +/* 816 */ /***/ (function(module, exports) { /** @@ -136836,7 +136694,7 @@ module.exports = 'drag'; /***/ }), -/* 821 */ +/* 817 */ /***/ (function(module, exports) { /** @@ -136867,7 +136725,7 @@ module.exports = 'dragleave'; /***/ }), -/* 822 */ +/* 818 */ /***/ (function(module, exports) { /** @@ -136901,7 +136759,7 @@ module.exports = 'dragover'; /***/ }), -/* 823 */ +/* 819 */ /***/ (function(module, exports) { /** @@ -136931,7 +136789,7 @@ module.exports = 'dragstart'; /***/ }), -/* 824 */ +/* 820 */ /***/ (function(module, exports) { /** @@ -136960,7 +136818,7 @@ module.exports = 'drop'; /***/ }), -/* 825 */ +/* 821 */ /***/ (function(module, exports) { /** @@ -136987,7 +136845,7 @@ module.exports = 'gameout'; /***/ }), -/* 826 */ +/* 822 */ /***/ (function(module, exports) { /** @@ -137014,7 +136872,7 @@ module.exports = 'gameover'; /***/ }), -/* 827 */ +/* 823 */ /***/ (function(module, exports) { /** @@ -137055,7 +136913,7 @@ module.exports = 'gameobjectdown'; /***/ }), -/* 828 */ +/* 824 */ /***/ (function(module, exports) { /** @@ -137086,7 +136944,7 @@ module.exports = 'dragend'; /***/ }), -/* 829 */ +/* 825 */ /***/ (function(module, exports) { /** @@ -137116,7 +136974,7 @@ module.exports = 'dragenter'; /***/ }), -/* 830 */ +/* 826 */ /***/ (function(module, exports) { /** @@ -137147,7 +137005,7 @@ module.exports = 'drag'; /***/ }), -/* 831 */ +/* 827 */ /***/ (function(module, exports) { /** @@ -137177,7 +137035,7 @@ module.exports = 'dragleave'; /***/ }), -/* 832 */ +/* 828 */ /***/ (function(module, exports) { /** @@ -137210,7 +137068,7 @@ module.exports = 'dragover'; /***/ }), -/* 833 */ +/* 829 */ /***/ (function(module, exports) { /** @@ -137244,7 +137102,7 @@ module.exports = 'dragstart'; /***/ }), -/* 834 */ +/* 830 */ /***/ (function(module, exports) { /** @@ -137274,7 +137132,7 @@ module.exports = 'drop'; /***/ }), -/* 835 */ +/* 831 */ /***/ (function(module, exports) { /** @@ -137315,7 +137173,7 @@ module.exports = 'gameobjectmove'; /***/ }), -/* 836 */ +/* 832 */ /***/ (function(module, exports) { /** @@ -137356,7 +137214,7 @@ module.exports = 'gameobjectout'; /***/ }), -/* 837 */ +/* 833 */ /***/ (function(module, exports) { /** @@ -137397,7 +137255,7 @@ module.exports = 'gameobjectover'; /***/ }), -/* 838 */ +/* 834 */ /***/ (function(module, exports) { /** @@ -137438,7 +137296,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 839 */ +/* 835 */ /***/ (function(module, exports) { /** @@ -137479,7 +137337,7 @@ module.exports = 'pointermove'; /***/ }), -/* 840 */ +/* 836 */ /***/ (function(module, exports) { /** @@ -137518,7 +137376,7 @@ module.exports = 'pointerout'; /***/ }), -/* 841 */ +/* 837 */ /***/ (function(module, exports) { /** @@ -137559,7 +137417,7 @@ module.exports = 'pointerover'; /***/ }), -/* 842 */ +/* 838 */ /***/ (function(module, exports) { /** @@ -137600,7 +137458,7 @@ module.exports = 'pointerup'; /***/ }), -/* 843 */ +/* 839 */ /***/ (function(module, exports) { /** @@ -137642,7 +137500,7 @@ module.exports = 'wheel'; /***/ }), -/* 844 */ +/* 840 */ /***/ (function(module, exports) { /** @@ -137683,7 +137541,7 @@ module.exports = 'gameobjectup'; /***/ }), -/* 845 */ +/* 841 */ /***/ (function(module, exports) { /** @@ -137727,7 +137585,7 @@ module.exports = 'gameobjectwheel'; /***/ }), -/* 846 */ +/* 842 */ /***/ (function(module, exports) { /** @@ -137748,7 +137606,7 @@ module.exports = 'boot'; /***/ }), -/* 847 */ +/* 843 */ /***/ (function(module, exports) { /** @@ -137773,7 +137631,7 @@ module.exports = 'process'; /***/ }), -/* 848 */ +/* 844 */ /***/ (function(module, exports) { /** @@ -137794,7 +137652,7 @@ module.exports = 'update'; /***/ }), -/* 849 */ +/* 845 */ /***/ (function(module, exports) { /** @@ -137829,7 +137687,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 850 */ +/* 846 */ /***/ (function(module, exports) { /** @@ -137863,7 +137721,7 @@ module.exports = 'pointerdownoutside'; /***/ }), -/* 851 */ +/* 847 */ /***/ (function(module, exports) { /** @@ -137898,7 +137756,7 @@ module.exports = 'pointermove'; /***/ }), -/* 852 */ +/* 848 */ /***/ (function(module, exports) { /** @@ -137933,7 +137791,7 @@ module.exports = 'pointerout'; /***/ }), -/* 853 */ +/* 849 */ /***/ (function(module, exports) { /** @@ -137968,7 +137826,7 @@ module.exports = 'pointerover'; /***/ }), -/* 854 */ +/* 850 */ /***/ (function(module, exports) { /** @@ -138003,7 +137861,7 @@ module.exports = 'pointerup'; /***/ }), -/* 855 */ +/* 851 */ /***/ (function(module, exports) { /** @@ -138037,7 +137895,7 @@ module.exports = 'pointerupoutside'; /***/ }), -/* 856 */ +/* 852 */ /***/ (function(module, exports) { /** @@ -138075,7 +137933,7 @@ module.exports = 'wheel'; /***/ }), -/* 857 */ +/* 853 */ /***/ (function(module, exports) { /** @@ -138099,7 +137957,7 @@ module.exports = 'pointerlockchange'; /***/ }), -/* 858 */ +/* 854 */ /***/ (function(module, exports) { /** @@ -138121,7 +137979,7 @@ module.exports = 'preupdate'; /***/ }), -/* 859 */ +/* 855 */ /***/ (function(module, exports) { /** @@ -138142,7 +138000,7 @@ module.exports = 'shutdown'; /***/ }), -/* 860 */ +/* 856 */ /***/ (function(module, exports) { /** @@ -138164,7 +138022,7 @@ module.exports = 'start'; /***/ }), -/* 861 */ +/* 857 */ /***/ (function(module, exports) { /** @@ -138189,7 +138047,7 @@ module.exports = 'update'; /***/ }), -/* 862 */ +/* 858 */ /***/ (function(module, exports) { /** @@ -138248,7 +138106,7 @@ module.exports = GetInnerHeight; /***/ }), -/* 863 */ +/* 859 */ /***/ (function(module, exports) { /** @@ -138278,7 +138136,7 @@ module.exports = 'addfile'; /***/ }), -/* 864 */ +/* 860 */ /***/ (function(module, exports) { /** @@ -138306,7 +138164,7 @@ module.exports = 'complete'; /***/ }), -/* 865 */ +/* 861 */ /***/ (function(module, exports) { /** @@ -138335,7 +138193,7 @@ module.exports = 'filecomplete'; /***/ }), -/* 866 */ +/* 862 */ /***/ (function(module, exports) { /** @@ -138389,7 +138247,7 @@ module.exports = 'filecomplete-'; /***/ }), -/* 867 */ +/* 863 */ /***/ (function(module, exports) { /** @@ -138414,7 +138272,7 @@ module.exports = 'loaderror'; /***/ }), -/* 868 */ +/* 864 */ /***/ (function(module, exports) { /** @@ -138440,7 +138298,7 @@ module.exports = 'load'; /***/ }), -/* 869 */ +/* 865 */ /***/ (function(module, exports) { /** @@ -138467,7 +138325,7 @@ module.exports = 'fileprogress'; /***/ }), -/* 870 */ +/* 866 */ /***/ (function(module, exports) { /** @@ -138496,7 +138354,7 @@ module.exports = 'postprocess'; /***/ }), -/* 871 */ +/* 867 */ /***/ (function(module, exports) { /** @@ -138521,7 +138379,7 @@ module.exports = 'progress'; /***/ }), -/* 872 */ +/* 868 */ /***/ (function(module, exports) { /** @@ -138548,7 +138406,7 @@ module.exports = 'start'; /***/ }), -/* 873 */ +/* 869 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138558,7 +138416,7 @@ module.exports = 'start'; */ var GetFastValue = __webpack_require__(2); -var UppercaseFirst = __webpack_require__(177); +var UppercaseFirst = __webpack_require__(176); /** * Builds an array of which physics plugins should be activated for the given Scene. @@ -138610,7 +138468,7 @@ module.exports = GetPhysicsPlugins; /***/ }), -/* 874 */ +/* 870 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138657,7 +138515,7 @@ module.exports = GetScenePlugins; /***/ }), -/* 875 */ +/* 871 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138718,7 +138576,7 @@ module.exports = InjectionMap; /***/ }), -/* 876 */ +/* 872 */ /***/ (function(module, exports) { /** @@ -138799,7 +138657,7 @@ module.exports = AtlasXML; /***/ }), -/* 877 */ +/* 873 */ /***/ (function(module, exports) { /** @@ -138834,7 +138692,7 @@ module.exports = Canvas; /***/ }), -/* 878 */ +/* 874 */ /***/ (function(module, exports) { /** @@ -138869,7 +138727,7 @@ module.exports = Image; /***/ }), -/* 879 */ +/* 875 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138976,7 +138834,7 @@ module.exports = JSONArray; /***/ }), -/* 880 */ +/* 876 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139075,7 +138933,7 @@ module.exports = JSONHash; /***/ }), -/* 881 */ +/* 877 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139200,7 +139058,7 @@ module.exports = SpriteSheet; /***/ }), -/* 882 */ +/* 878 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139391,7 +139249,7 @@ module.exports = SpriteSheetFromAtlas; /***/ }), -/* 883 */ +/* 879 */ /***/ (function(module, exports) { /** @@ -139561,7 +139419,7 @@ TextureImporter: /***/ }), -/* 884 */ +/* 880 */ /***/ (function(module, exports) { /** @@ -139592,7 +139450,7 @@ module.exports = 'complete'; /***/ }), -/* 885 */ +/* 881 */ /***/ (function(module, exports) { /** @@ -139622,7 +139480,7 @@ module.exports = 'decoded'; /***/ }), -/* 886 */ +/* 882 */ /***/ (function(module, exports) { /** @@ -139654,7 +139512,7 @@ module.exports = 'decodedall'; /***/ }), -/* 887 */ +/* 883 */ /***/ (function(module, exports) { /** @@ -139686,7 +139544,7 @@ module.exports = 'destroy'; /***/ }), -/* 888 */ +/* 884 */ /***/ (function(module, exports) { /** @@ -139719,7 +139577,7 @@ module.exports = 'detune'; /***/ }), -/* 889 */ +/* 885 */ /***/ (function(module, exports) { /** @@ -139747,7 +139605,7 @@ module.exports = 'detune'; /***/ }), -/* 890 */ +/* 886 */ /***/ (function(module, exports) { /** @@ -139774,7 +139632,7 @@ module.exports = 'mute'; /***/ }), -/* 891 */ +/* 887 */ /***/ (function(module, exports) { /** @@ -139802,7 +139660,7 @@ module.exports = 'rate'; /***/ }), -/* 892 */ +/* 888 */ /***/ (function(module, exports) { /** @@ -139829,7 +139687,7 @@ module.exports = 'volume'; /***/ }), -/* 893 */ +/* 889 */ /***/ (function(module, exports) { /** @@ -139863,7 +139721,7 @@ module.exports = 'loop'; /***/ }), -/* 894 */ +/* 890 */ /***/ (function(module, exports) { /** @@ -139897,7 +139755,7 @@ module.exports = 'looped'; /***/ }), -/* 895 */ +/* 891 */ /***/ (function(module, exports) { /** @@ -139930,7 +139788,7 @@ module.exports = 'mute'; /***/ }), -/* 896 */ +/* 892 */ /***/ (function(module, exports) { /** @@ -139957,7 +139815,7 @@ module.exports = 'pauseall'; /***/ }), -/* 897 */ +/* 893 */ /***/ (function(module, exports) { /** @@ -139989,7 +139847,7 @@ module.exports = 'pause'; /***/ }), -/* 898 */ +/* 894 */ /***/ (function(module, exports) { /** @@ -140020,7 +139878,7 @@ module.exports = 'play'; /***/ }), -/* 899 */ +/* 895 */ /***/ (function(module, exports) { /** @@ -140053,7 +139911,7 @@ module.exports = 'rate'; /***/ }), -/* 900 */ +/* 896 */ /***/ (function(module, exports) { /** @@ -140080,7 +139938,7 @@ module.exports = 'resumeall'; /***/ }), -/* 901 */ +/* 897 */ /***/ (function(module, exports) { /** @@ -140113,7 +139971,7 @@ module.exports = 'resume'; /***/ }), -/* 902 */ +/* 898 */ /***/ (function(module, exports) { /** @@ -140146,7 +140004,7 @@ module.exports = 'seek'; /***/ }), -/* 903 */ +/* 899 */ /***/ (function(module, exports) { /** @@ -140173,7 +140031,7 @@ module.exports = 'stopall'; /***/ }), -/* 904 */ +/* 900 */ /***/ (function(module, exports) { /** @@ -140205,7 +140063,7 @@ module.exports = 'stop'; /***/ }), -/* 905 */ +/* 901 */ /***/ (function(module, exports) { /** @@ -140232,7 +140090,7 @@ module.exports = 'unlocked'; /***/ }), -/* 906 */ +/* 902 */ /***/ (function(module, exports) { /** @@ -140265,7 +140123,7 @@ module.exports = 'volume'; /***/ }), -/* 907 */ +/* 903 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140280,105 +140138,105 @@ module.exports = 'volume'; var GameObjects = { - Events: __webpack_require__(89), + Events: __webpack_require__(88), - DisplayList: __webpack_require__(908), - GameObjectCreator: __webpack_require__(16), + DisplayList: __webpack_require__(904), + GameObjectCreator: __webpack_require__(17), GameObjectFactory: __webpack_require__(5), - UpdateList: __webpack_require__(936), + UpdateList: __webpack_require__(932), - Components: __webpack_require__(11), + Components: __webpack_require__(12), - BuildGameObject: __webpack_require__(27), - BuildGameObjectAnimation: __webpack_require__(388), - GameObject: __webpack_require__(13), - BitmapText: __webpack_require__(127), - Blitter: __webpack_require__(184), - Container: __webpack_require__(185), - DOMElement: __webpack_require__(390), - DynamicBitmapText: __webpack_require__(186), - Extern: __webpack_require__(392), - Graphics: __webpack_require__(187), - Group: __webpack_require__(96), - Image: __webpack_require__(104), - Particles: __webpack_require__(968), - PathFollower: __webpack_require__(404), - RenderTexture: __webpack_require__(191), - RetroFont: __webpack_require__(977), - Rope: __webpack_require__(193), - Sprite: __webpack_require__(74), - Text: __webpack_require__(194), - TileSprite: __webpack_require__(195), - Zone: __webpack_require__(107), - Video: __webpack_require__(196), + BuildGameObject: __webpack_require__(28), + BuildGameObjectAnimation: __webpack_require__(386), + GameObject: __webpack_require__(14), + BitmapText: __webpack_require__(126), + Blitter: __webpack_require__(183), + Container: __webpack_require__(184), + DOMElement: __webpack_require__(388), + DynamicBitmapText: __webpack_require__(185), + Extern: __webpack_require__(390), + Graphics: __webpack_require__(186), + Group: __webpack_require__(95), + Image: __webpack_require__(103), + Particles: __webpack_require__(964), + PathFollower: __webpack_require__(402), + RenderTexture: __webpack_require__(190), + RetroFont: __webpack_require__(973), + Rope: __webpack_require__(192), + Sprite: __webpack_require__(73), + Text: __webpack_require__(193), + TileSprite: __webpack_require__(194), + Zone: __webpack_require__(106), + Video: __webpack_require__(195), // Shapes Shape: __webpack_require__(31), - Arc: __webpack_require__(405), - Curve: __webpack_require__(406), - Ellipse: __webpack_require__(407), - Grid: __webpack_require__(408), - IsoBox: __webpack_require__(409), - IsoTriangle: __webpack_require__(410), - Line: __webpack_require__(411), - Polygon: __webpack_require__(412), - Rectangle: __webpack_require__(417), - Star: __webpack_require__(418), - Triangle: __webpack_require__(419), + Arc: __webpack_require__(403), + Curve: __webpack_require__(404), + Ellipse: __webpack_require__(405), + Grid: __webpack_require__(406), + IsoBox: __webpack_require__(407), + IsoTriangle: __webpack_require__(408), + Line: __webpack_require__(409), + Polygon: __webpack_require__(410), + Rectangle: __webpack_require__(415), + Star: __webpack_require__(416), + Triangle: __webpack_require__(417), // Game Object Factories Factories: { - Blitter: __webpack_require__(1028), - Container: __webpack_require__(1029), - DOMElement: __webpack_require__(1030), - DynamicBitmapText: __webpack_require__(1031), - Extern: __webpack_require__(1032), - Graphics: __webpack_require__(1033), - Group: __webpack_require__(1034), - Image: __webpack_require__(1035), - Particles: __webpack_require__(1036), - PathFollower: __webpack_require__(1037), - RenderTexture: __webpack_require__(1038), - Rope: __webpack_require__(1039), - Sprite: __webpack_require__(1040), - StaticBitmapText: __webpack_require__(1041), - Text: __webpack_require__(1042), - TileSprite: __webpack_require__(1043), - Zone: __webpack_require__(1044), - Video: __webpack_require__(1045), + Blitter: __webpack_require__(1024), + Container: __webpack_require__(1025), + DOMElement: __webpack_require__(1026), + DynamicBitmapText: __webpack_require__(1027), + Extern: __webpack_require__(1028), + Graphics: __webpack_require__(1029), + Group: __webpack_require__(1030), + Image: __webpack_require__(1031), + Particles: __webpack_require__(1032), + PathFollower: __webpack_require__(1033), + RenderTexture: __webpack_require__(1034), + Rope: __webpack_require__(1035), + Sprite: __webpack_require__(1036), + StaticBitmapText: __webpack_require__(1037), + Text: __webpack_require__(1038), + TileSprite: __webpack_require__(1039), + Zone: __webpack_require__(1040), + Video: __webpack_require__(1041), // Shapes - Arc: __webpack_require__(1046), - Curve: __webpack_require__(1047), - Ellipse: __webpack_require__(1048), - Grid: __webpack_require__(1049), - IsoBox: __webpack_require__(1050), - IsoTriangle: __webpack_require__(1051), - Line: __webpack_require__(1052), - Polygon: __webpack_require__(1053), - Rectangle: __webpack_require__(1054), - Star: __webpack_require__(1055), - Triangle: __webpack_require__(1056) + Arc: __webpack_require__(1042), + Curve: __webpack_require__(1043), + Ellipse: __webpack_require__(1044), + Grid: __webpack_require__(1045), + IsoBox: __webpack_require__(1046), + IsoTriangle: __webpack_require__(1047), + Line: __webpack_require__(1048), + Polygon: __webpack_require__(1049), + Rectangle: __webpack_require__(1050), + Star: __webpack_require__(1051), + Triangle: __webpack_require__(1052) }, Creators: { - Blitter: __webpack_require__(1057), - Container: __webpack_require__(1058), - DynamicBitmapText: __webpack_require__(1059), - Graphics: __webpack_require__(1060), - Group: __webpack_require__(1061), - Image: __webpack_require__(1062), - Particles: __webpack_require__(1063), - RenderTexture: __webpack_require__(1064), - Rope: __webpack_require__(1065), - Sprite: __webpack_require__(1066), - StaticBitmapText: __webpack_require__(1067), - Text: __webpack_require__(1068), - TileSprite: __webpack_require__(1069), - Zone: __webpack_require__(1070), - Video: __webpack_require__(1071) + Blitter: __webpack_require__(1053), + Container: __webpack_require__(1054), + DynamicBitmapText: __webpack_require__(1055), + Graphics: __webpack_require__(1056), + Group: __webpack_require__(1057), + Image: __webpack_require__(1058), + Particles: __webpack_require__(1059), + RenderTexture: __webpack_require__(1060), + Rope: __webpack_require__(1061), + Sprite: __webpack_require__(1062), + StaticBitmapText: __webpack_require__(1063), + Text: __webpack_require__(1064), + TileSprite: __webpack_require__(1065), + Zone: __webpack_require__(1066), + Video: __webpack_require__(1067) } }; @@ -140386,29 +140244,29 @@ var GameObjects = { if (true) { // WebGL only Game Objects - GameObjects.Mesh = __webpack_require__(129); - GameObjects.Quad = __webpack_require__(199); - GameObjects.Shader = __webpack_require__(200); + GameObjects.Mesh = __webpack_require__(128); + GameObjects.Quad = __webpack_require__(198); + GameObjects.Shader = __webpack_require__(199); - GameObjects.Factories.Mesh = __webpack_require__(1078); - GameObjects.Factories.Quad = __webpack_require__(1079); - GameObjects.Factories.Shader = __webpack_require__(1080); + GameObjects.Factories.Mesh = __webpack_require__(1074); + GameObjects.Factories.Quad = __webpack_require__(1075); + GameObjects.Factories.Shader = __webpack_require__(1076); - GameObjects.Creators.Mesh = __webpack_require__(1081); - GameObjects.Creators.Quad = __webpack_require__(1082); - GameObjects.Creators.Shader = __webpack_require__(1083); + GameObjects.Creators.Mesh = __webpack_require__(1077); + GameObjects.Creators.Quad = __webpack_require__(1078); + GameObjects.Creators.Shader = __webpack_require__(1079); - GameObjects.Light = __webpack_require__(423); + GameObjects.Light = __webpack_require__(421); - __webpack_require__(424); - __webpack_require__(1084); + __webpack_require__(422); + __webpack_require__(1080); } module.exports = GameObjects; /***/ }), -/* 908 */ +/* 904 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140418,10 +140276,10 @@ module.exports = GameObjects; */ var Class = __webpack_require__(0); -var List = __webpack_require__(124); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var StableSort = __webpack_require__(126); +var List = __webpack_require__(123); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var StableSort = __webpack_require__(125); /** * @classdesc @@ -140613,7 +140471,7 @@ module.exports = DisplayList; /***/ }), -/* 909 */ +/* 905 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140628,21 +140486,21 @@ module.exports = DisplayList; module.exports = { - CheckMatrix: __webpack_require__(180), - MatrixToString: __webpack_require__(910), - ReverseColumns: __webpack_require__(911), - ReverseRows: __webpack_require__(912), - Rotate180: __webpack_require__(913), - RotateLeft: __webpack_require__(914), - RotateMatrix: __webpack_require__(125), - RotateRight: __webpack_require__(915), - TransposeMatrix: __webpack_require__(385) + CheckMatrix: __webpack_require__(179), + MatrixToString: __webpack_require__(906), + ReverseColumns: __webpack_require__(907), + ReverseRows: __webpack_require__(908), + Rotate180: __webpack_require__(909), + RotateLeft: __webpack_require__(910), + RotateMatrix: __webpack_require__(124), + RotateRight: __webpack_require__(911), + TransposeMatrix: __webpack_require__(383) }; /***/ }), -/* 910 */ +/* 906 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140651,8 +140509,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pad = __webpack_require__(158); -var CheckMatrix = __webpack_require__(180); +var Pad = __webpack_require__(157); +var CheckMatrix = __webpack_require__(179); /** * Generates a string (which you can pass to console.log) from the given Array Matrix. @@ -140723,7 +140581,7 @@ module.exports = MatrixToString; /***/ }), -/* 911 */ +/* 907 */ /***/ (function(module, exports) { /** @@ -140754,7 +140612,7 @@ module.exports = ReverseColumns; /***/ }), -/* 912 */ +/* 908 */ /***/ (function(module, exports) { /** @@ -140790,7 +140648,7 @@ module.exports = ReverseRows; /***/ }), -/* 913 */ +/* 909 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140799,7 +140657,7 @@ module.exports = ReverseRows; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix 180 degrees. @@ -140823,7 +140681,7 @@ module.exports = Rotate180; /***/ }), -/* 914 */ +/* 910 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140832,7 +140690,7 @@ module.exports = Rotate180; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix to the left (or 90 degrees) @@ -140856,7 +140714,7 @@ module.exports = RotateLeft; /***/ }), -/* 915 */ +/* 911 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140865,7 +140723,7 @@ module.exports = RotateLeft; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix to the left (or -90 degrees) @@ -140889,7 +140747,7 @@ module.exports = RotateRight; /***/ }), -/* 916 */ +/* 912 */ /***/ (function(module, exports) { /** @@ -141006,7 +140864,7 @@ module.exports = Add; /***/ }), -/* 917 */ +/* 913 */ /***/ (function(module, exports) { /** @@ -141128,7 +140986,7 @@ module.exports = AddAt; /***/ }), -/* 918 */ +/* 914 */ /***/ (function(module, exports) { /** @@ -141166,7 +141024,7 @@ module.exports = BringToTop; /***/ }), -/* 919 */ +/* 915 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141218,7 +141076,7 @@ module.exports = CountAllMatching; /***/ }), -/* 920 */ +/* 916 */ /***/ (function(module, exports) { /** @@ -141264,7 +141122,7 @@ module.exports = Each; /***/ }), -/* 921 */ +/* 917 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141320,7 +141178,7 @@ module.exports = EachInRange; /***/ }), -/* 922 */ +/* 918 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141382,7 +141240,7 @@ module.exports = GetAll; /***/ }), -/* 923 */ +/* 919 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141441,7 +141299,7 @@ module.exports = GetFirst; /***/ }), -/* 924 */ +/* 920 */ /***/ (function(module, exports) { /** @@ -141483,7 +141341,7 @@ module.exports = MoveDown; /***/ }), -/* 925 */ +/* 921 */ /***/ (function(module, exports) { /** @@ -141530,7 +141388,7 @@ module.exports = MoveTo; /***/ }), -/* 926 */ +/* 922 */ /***/ (function(module, exports) { /** @@ -141572,7 +141430,7 @@ module.exports = MoveUp; /***/ }), -/* 927 */ +/* 923 */ /***/ (function(module, exports) { /** @@ -141636,7 +141494,7 @@ module.exports = NumberArray; /***/ }), -/* 928 */ +/* 924 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141645,7 +141503,7 @@ module.exports = NumberArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RoundAwayFromZero = __webpack_require__(329); +var RoundAwayFromZero = __webpack_require__(327); /** * Create an array of numbers (positive and/or negative) progressing from `start` @@ -141713,7 +141571,7 @@ module.exports = NumberArrayStep; /***/ }), -/* 929 */ +/* 925 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141722,7 +141580,7 @@ module.exports = NumberArrayStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes the item from the given position in the array. @@ -141764,7 +141622,7 @@ module.exports = RemoveAt; /***/ }), -/* 930 */ +/* 926 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141827,7 +141685,7 @@ module.exports = RemoveBetween; /***/ }), -/* 931 */ +/* 927 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141836,7 +141694,7 @@ module.exports = RemoveBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes a random object from the given array and returns it. @@ -141865,7 +141723,7 @@ module.exports = RemoveRandomElement; /***/ }), -/* 932 */ +/* 928 */ /***/ (function(module, exports) { /** @@ -141909,7 +141767,7 @@ module.exports = Replace; /***/ }), -/* 933 */ +/* 929 */ /***/ (function(module, exports) { /** @@ -141947,7 +141805,7 @@ module.exports = SendToBack; /***/ }), -/* 934 */ +/* 930 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142002,7 +141860,7 @@ module.exports = SetAll; /***/ }), -/* 935 */ +/* 931 */ /***/ (function(module, exports) { /** @@ -142050,7 +141908,7 @@ module.exports = Swap; /***/ }), -/* 936 */ +/* 932 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142060,9 +141918,9 @@ module.exports = Swap; */ var Class = __webpack_require__(0); -var ProcessQueue = __webpack_require__(182); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var ProcessQueue = __webpack_require__(181); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -142351,7 +142209,7 @@ module.exports = UpdateList; /***/ }), -/* 937 */ +/* 933 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142366,14 +142224,14 @@ module.exports = UpdateList; module.exports = { - PROCESS_QUEUE_ADD: __webpack_require__(938), - PROCESS_QUEUE_REMOVE: __webpack_require__(939) + PROCESS_QUEUE_ADD: __webpack_require__(934), + PROCESS_QUEUE_REMOVE: __webpack_require__(935) }; /***/ }), -/* 938 */ +/* 934 */ /***/ (function(module, exports) { /** @@ -142400,7 +142258,7 @@ module.exports = 'add'; /***/ }), -/* 939 */ +/* 935 */ /***/ (function(module, exports) { /** @@ -142427,7 +142285,7 @@ module.exports = 'remove'; /***/ }), -/* 940 */ +/* 936 */ /***/ (function(module, exports) { /** @@ -142880,7 +142738,7 @@ module.exports = GetBitmapTextSize; /***/ }), -/* 941 */ +/* 937 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142889,7 +142747,7 @@ module.exports = GetBitmapTextSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ParseXMLBitmapFont = __webpack_require__(183); +var ParseXMLBitmapFont = __webpack_require__(182); /** * Parse an XML Bitmap Font from an Atlas. @@ -142933,7 +142791,7 @@ module.exports = ParseFromAtlas; /***/ }), -/* 942 */ +/* 938 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142947,12 +142805,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(943); + renderWebGL = __webpack_require__(939); } if (true) { - renderCanvas = __webpack_require__(944); + renderCanvas = __webpack_require__(940); } module.exports = { @@ -142964,7 +142822,7 @@ module.exports = { /***/ }), -/* 943 */ +/* 939 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143200,7 +143058,7 @@ module.exports = BitmapTextWebGLRenderer; /***/ }), -/* 944 */ +/* 940 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143209,7 +143067,7 @@ module.exports = BitmapTextWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -143382,7 +143240,7 @@ module.exports = BitmapTextCanvasRenderer; /***/ }), -/* 945 */ +/* 941 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143396,12 +143254,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(946); + renderWebGL = __webpack_require__(942); } if (true) { - renderCanvas = __webpack_require__(947); + renderCanvas = __webpack_require__(943); } module.exports = { @@ -143413,7 +143271,7 @@ module.exports = { /***/ }), -/* 946 */ +/* 942 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143543,7 +143401,7 @@ module.exports = BlitterWebGLRenderer; /***/ }), -/* 947 */ +/* 943 */ /***/ (function(module, exports) { /** @@ -143673,7 +143531,7 @@ module.exports = BlitterCanvasRenderer; /***/ }), -/* 948 */ +/* 944 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143683,7 +143541,7 @@ module.exports = BlitterCanvasRenderer; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(93); +var Frame = __webpack_require__(92); /** * @classdesc @@ -144103,7 +143961,7 @@ module.exports = Bob; /***/ }), -/* 949 */ +/* 945 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144118,12 +143976,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(950); + renderWebGL = __webpack_require__(946); } if (true) { - renderCanvas = __webpack_require__(951); + renderCanvas = __webpack_require__(947); } module.exports = { @@ -144135,7 +143993,7 @@ module.exports = { /***/ }), -/* 950 */ +/* 946 */ /***/ (function(module, exports) { /** @@ -144284,7 +144142,7 @@ module.exports = ContainerWebGLRenderer; /***/ }), -/* 951 */ +/* 947 */ /***/ (function(module, exports) { /** @@ -144381,7 +144239,7 @@ module.exports = ContainerCanvasRenderer; /***/ }), -/* 952 */ +/* 948 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144395,12 +144253,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(391); + renderWebGL = __webpack_require__(389); } if (true) { - renderCanvas = __webpack_require__(391); + renderCanvas = __webpack_require__(389); } module.exports = { @@ -144412,7 +144270,7 @@ module.exports = { /***/ }), -/* 953 */ +/* 949 */ /***/ (function(module, exports) { /** @@ -144453,7 +144311,7 @@ module.exports = [ /***/ }), -/* 954 */ +/* 950 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144467,12 +144325,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(955); + renderWebGL = __webpack_require__(951); } if (true) { - renderCanvas = __webpack_require__(956); + renderCanvas = __webpack_require__(952); } module.exports = { @@ -144484,7 +144342,7 @@ module.exports = { /***/ }), -/* 955 */ +/* 951 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144790,7 +144648,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; /***/ }), -/* 956 */ +/* 952 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144799,7 +144657,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -145001,7 +144859,7 @@ module.exports = DynamicBitmapTextCanvasRenderer; /***/ }), -/* 957 */ +/* 953 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145015,12 +144873,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(958); + renderWebGL = __webpack_require__(954); } if (true) { - renderCanvas = __webpack_require__(959); + renderCanvas = __webpack_require__(955); } module.exports = { @@ -145032,7 +144890,7 @@ module.exports = { /***/ }), -/* 958 */ +/* 954 */ /***/ (function(module, exports) { /** @@ -145101,13 +144959,13 @@ module.exports = ExternWebGLRenderer; /***/ }), -/* 959 */ +/* 955 */ /***/ (function(module, exports) { /***/ }), -/* 960 */ +/* 956 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145121,15 +144979,15 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(961); + renderWebGL = __webpack_require__(957); // Needed for Graphics.generateTexture - renderCanvas = __webpack_require__(396); + renderCanvas = __webpack_require__(394); } if (true) { - renderCanvas = __webpack_require__(396); + renderCanvas = __webpack_require__(394); } module.exports = { @@ -145141,7 +144999,7 @@ module.exports = { /***/ }), -/* 961 */ +/* 957 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145150,7 +145008,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(188); +var Commands = __webpack_require__(187); var Utils = __webpack_require__(9); // TODO: Remove the use of this @@ -145506,7 +145364,7 @@ module.exports = GraphicsWebGLRenderer; /***/ }), -/* 962 */ +/* 958 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145520,12 +145378,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(963); + renderWebGL = __webpack_require__(959); } if (true) { - renderCanvas = __webpack_require__(964); + renderCanvas = __webpack_require__(960); } module.exports = { @@ -145537,7 +145395,7 @@ module.exports = { /***/ }), -/* 963 */ +/* 959 */ /***/ (function(module, exports) { /** @@ -145570,7 +145428,7 @@ module.exports = SpriteWebGLRenderer; /***/ }), -/* 964 */ +/* 960 */ /***/ (function(module, exports) { /** @@ -145603,7 +145461,7 @@ module.exports = SpriteCanvasRenderer; /***/ }), -/* 965 */ +/* 961 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145617,12 +145475,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(966); + renderWebGL = __webpack_require__(962); } if (true) { - renderCanvas = __webpack_require__(967); + renderCanvas = __webpack_require__(963); } module.exports = { @@ -145634,7 +145492,7 @@ module.exports = { /***/ }), -/* 966 */ +/* 962 */ /***/ (function(module, exports) { /** @@ -145667,7 +145525,7 @@ module.exports = ImageWebGLRenderer; /***/ }), -/* 967 */ +/* 963 */ /***/ (function(module, exports) { /** @@ -145700,7 +145558,7 @@ module.exports = ImageCanvasRenderer; /***/ }), -/* 968 */ +/* 964 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145715,17 +145573,17 @@ module.exports = ImageCanvasRenderer; module.exports = { - GravityWell: __webpack_require__(397), - Particle: __webpack_require__(398), - ParticleEmitter: __webpack_require__(399), - ParticleEmitterManager: __webpack_require__(190), - Zones: __webpack_require__(973) + GravityWell: __webpack_require__(395), + Particle: __webpack_require__(396), + ParticleEmitter: __webpack_require__(397), + ParticleEmitterManager: __webpack_require__(189), + Zones: __webpack_require__(969) }; /***/ }), -/* 969 */ +/* 965 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145735,7 +145593,7 @@ module.exports = { */ var Class = __webpack_require__(0); -var FloatBetween = __webpack_require__(327); +var FloatBetween = __webpack_require__(325); var GetEaseFunction = __webpack_require__(67); var GetFastValue = __webpack_require__(2); var Wrap = __webpack_require__(58); @@ -146316,7 +146174,7 @@ module.exports = EmitterOp; /***/ }), -/* 970 */ +/* 966 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146330,12 +146188,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(971); + renderWebGL = __webpack_require__(967); } if (true) { - renderCanvas = __webpack_require__(972); + renderCanvas = __webpack_require__(968); } module.exports = { @@ -146347,7 +146205,7 @@ module.exports = { /***/ }), -/* 971 */ +/* 967 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146506,7 +146364,7 @@ module.exports = ParticleManagerWebGLRenderer; /***/ }), -/* 972 */ +/* 968 */ /***/ (function(module, exports) { /** @@ -146629,7 +146487,7 @@ module.exports = ParticleManagerCanvasRenderer; /***/ }), -/* 973 */ +/* 969 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146644,15 +146502,15 @@ module.exports = ParticleManagerCanvasRenderer; module.exports = { - DeathZone: __webpack_require__(400), - EdgeZone: __webpack_require__(401), - RandomZone: __webpack_require__(403) + DeathZone: __webpack_require__(398), + EdgeZone: __webpack_require__(399), + RandomZone: __webpack_require__(401) }; /***/ }), -/* 974 */ +/* 970 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146666,12 +146524,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(975); + renderWebGL = __webpack_require__(971); } if (true) { - renderCanvas = __webpack_require__(976); + renderCanvas = __webpack_require__(972); } module.exports = { @@ -146683,7 +146541,7 @@ module.exports = { /***/ }), -/* 975 */ +/* 971 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146746,7 +146604,7 @@ module.exports = RenderTextureWebGLRenderer; /***/ }), -/* 976 */ +/* 972 */ /***/ (function(module, exports) { /** @@ -146779,7 +146637,7 @@ module.exports = RenderTextureCanvasRenderer; /***/ }), -/* 977 */ +/* 973 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146788,15 +146646,15 @@ module.exports = RenderTextureCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RETRO_FONT_CONST = __webpack_require__(978); -var Extend = __webpack_require__(17); +var RETRO_FONT_CONST = __webpack_require__(974); +var Extend = __webpack_require__(18); /** * @namespace Phaser.GameObjects.RetroFont * @since 3.6.0 */ -var RetroFont = { Parse: __webpack_require__(979) }; +var RetroFont = { Parse: __webpack_require__(975) }; // Merge in the consts RetroFont = Extend(false, RetroFont, RETRO_FONT_CONST); @@ -146805,7 +146663,7 @@ module.exports = RetroFont; /***/ }), -/* 978 */ +/* 974 */ /***/ (function(module, exports) { /** @@ -146921,7 +146779,7 @@ module.exports = RETRO_FONT_CONST; /***/ }), -/* 979 */ +/* 975 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147037,7 +146895,7 @@ module.exports = ParseRetroFont; /***/ }), -/* 980 */ +/* 976 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147051,12 +146909,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(981); + renderWebGL = __webpack_require__(977); } if (true) { - renderCanvas = __webpack_require__(982); + renderCanvas = __webpack_require__(978); } module.exports = { @@ -147068,7 +146926,7 @@ module.exports = { /***/ }), -/* 981 */ +/* 977 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147207,7 +147065,7 @@ module.exports = RopeWebGLRenderer; /***/ }), -/* 982 */ +/* 978 */ /***/ (function(module, exports) { /** @@ -147236,7 +147094,7 @@ module.exports = RopeCanvasRenderer; /***/ }), -/* 983 */ +/* 979 */ /***/ (function(module, exports) { /** @@ -147318,7 +147176,7 @@ module.exports = GetTextSize; /***/ }), -/* 984 */ +/* 980 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147332,12 +147190,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(985); + renderWebGL = __webpack_require__(981); } if (true) { - renderCanvas = __webpack_require__(986); + renderCanvas = __webpack_require__(982); } module.exports = { @@ -147349,7 +147207,7 @@ module.exports = { /***/ }), -/* 985 */ +/* 981 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147414,7 +147272,7 @@ module.exports = TextWebGLRenderer; /***/ }), -/* 986 */ +/* 982 */ /***/ (function(module, exports) { /** @@ -147452,7 +147310,7 @@ module.exports = TextCanvasRenderer; /***/ }), -/* 987 */ +/* 983 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147462,9 +147320,9 @@ module.exports = TextCanvasRenderer; */ var Class = __webpack_require__(0); -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var MeasureText = __webpack_require__(988); +var MeasureText = __webpack_require__(984); // Key: [ Object Key, Default Value ] @@ -148505,7 +148363,7 @@ module.exports = TextStyle; /***/ }), -/* 988 */ +/* 984 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148514,7 +148372,7 @@ module.exports = TextStyle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); /** * Calculates the ascent, descent and fontSize of a given font style. @@ -148640,7 +148498,7 @@ module.exports = MeasureText; /***/ }), -/* 989 */ +/* 985 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148654,12 +148512,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(990); + renderWebGL = __webpack_require__(986); } if (true) { - renderCanvas = __webpack_require__(991); + renderCanvas = __webpack_require__(987); } module.exports = { @@ -148671,7 +148529,7 @@ module.exports = { /***/ }), -/* 990 */ +/* 986 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148731,7 +148589,7 @@ module.exports = TileSpriteWebGLRenderer; /***/ }), -/* 991 */ +/* 987 */ /***/ (function(module, exports) { /** @@ -148766,7 +148624,7 @@ module.exports = TileSpriteCanvasRenderer; /***/ }), -/* 992 */ +/* 988 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148780,12 +148638,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(993); + renderWebGL = __webpack_require__(989); } if (true) { - renderCanvas = __webpack_require__(994); + renderCanvas = __webpack_require__(990); } module.exports = { @@ -148797,7 +148655,7 @@ module.exports = { /***/ }), -/* 993 */ +/* 989 */ /***/ (function(module, exports) { /** @@ -148833,7 +148691,7 @@ module.exports = VideoWebGLRenderer; /***/ }), -/* 994 */ +/* 990 */ /***/ (function(module, exports) { /** @@ -148869,7 +148727,7 @@ module.exports = VideoCanvasRenderer; /***/ }), -/* 995 */ +/* 991 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148883,12 +148741,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(996); + renderWebGL = __webpack_require__(992); } if (true) { - renderCanvas = __webpack_require__(997); + renderCanvas = __webpack_require__(993); } module.exports = { @@ -148900,7 +148758,7 @@ module.exports = { /***/ }), -/* 996 */ +/* 992 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148909,7 +148767,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -148978,7 +148836,7 @@ module.exports = ArcWebGLRenderer; /***/ }), -/* 997 */ +/* 993 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148990,7 +148848,7 @@ module.exports = ArcWebGLRenderer; var DegToRad = __webpack_require__(35); var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -149054,7 +148912,7 @@ module.exports = ArcCanvasRenderer; /***/ }), -/* 998 */ +/* 994 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149068,12 +148926,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(999); + renderWebGL = __webpack_require__(995); } if (true) { - renderCanvas = __webpack_require__(1000); + renderCanvas = __webpack_require__(996); } module.exports = { @@ -149085,7 +148943,7 @@ module.exports = { /***/ }), -/* 999 */ +/* 995 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149094,7 +148952,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -149163,7 +149021,7 @@ module.exports = CurveWebGLRenderer; /***/ }), -/* 1000 */ +/* 996 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149174,7 +149032,7 @@ module.exports = CurveWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -149251,7 +149109,7 @@ module.exports = CurveCanvasRenderer; /***/ }), -/* 1001 */ +/* 997 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149265,12 +149123,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1002); + renderWebGL = __webpack_require__(998); } if (true) { - renderCanvas = __webpack_require__(1003); + renderCanvas = __webpack_require__(999); } module.exports = { @@ -149282,7 +149140,7 @@ module.exports = { /***/ }), -/* 1002 */ +/* 998 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149291,7 +149149,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -149360,7 +149218,7 @@ module.exports = EllipseWebGLRenderer; /***/ }), -/* 1003 */ +/* 999 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149371,7 +149229,7 @@ module.exports = EllipseWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -149445,7 +149303,7 @@ module.exports = EllipseCanvasRenderer; /***/ }), -/* 1004 */ +/* 1000 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149459,12 +149317,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1005); + renderWebGL = __webpack_require__(1001); } if (true) { - renderCanvas = __webpack_require__(1006); + renderCanvas = __webpack_require__(1002); } module.exports = { @@ -149476,7 +149334,7 @@ module.exports = { /***/ }), -/* 1005 */ +/* 1001 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149702,7 +149560,7 @@ module.exports = GridWebGLRenderer; /***/ }), -/* 1006 */ +/* 1002 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149713,7 +149571,7 @@ module.exports = GridWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -149891,7 +149749,7 @@ module.exports = GridCanvasRenderer; /***/ }), -/* 1007 */ +/* 1003 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149905,12 +149763,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1008); + renderWebGL = __webpack_require__(1004); } if (true) { - renderCanvas = __webpack_require__(1009); + renderCanvas = __webpack_require__(1005); } module.exports = { @@ -149922,7 +149780,7 @@ module.exports = { /***/ }), -/* 1008 */ +/* 1004 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150080,7 +149938,7 @@ module.exports = IsoBoxWebGLRenderer; /***/ }), -/* 1009 */ +/* 1005 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150090,7 +149948,7 @@ module.exports = IsoBoxWebGLRenderer; */ var FillStyleCanvas = __webpack_require__(36); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -150181,7 +150039,7 @@ module.exports = IsoBoxCanvasRenderer; /***/ }), -/* 1010 */ +/* 1006 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150195,12 +150053,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1011); + renderWebGL = __webpack_require__(1007); } if (true) { - renderCanvas = __webpack_require__(1012); + renderCanvas = __webpack_require__(1008); } module.exports = { @@ -150212,7 +150070,7 @@ module.exports = { /***/ }), -/* 1011 */ +/* 1007 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150389,7 +150247,7 @@ module.exports = IsoTriangleWebGLRenderer; /***/ }), -/* 1012 */ +/* 1008 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150399,7 +150257,7 @@ module.exports = IsoTriangleWebGLRenderer; */ var FillStyleCanvas = __webpack_require__(36); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -150503,7 +150361,7 @@ module.exports = IsoTriangleCanvasRenderer; /***/ }), -/* 1013 */ +/* 1009 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150517,12 +150375,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1014); + renderWebGL = __webpack_require__(1010); } if (true) { - renderCanvas = __webpack_require__(1015); + renderCanvas = __webpack_require__(1011); } module.exports = { @@ -150534,7 +150392,7 @@ module.exports = { /***/ }), -/* 1014 */ +/* 1010 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150627,7 +150485,7 @@ module.exports = LineWebGLRenderer; /***/ }), -/* 1015 */ +/* 1011 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150637,7 +150495,7 @@ module.exports = LineWebGLRenderer; */ var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -150684,7 +150542,7 @@ module.exports = LineCanvasRenderer; /***/ }), -/* 1016 */ +/* 1012 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150698,12 +150556,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1017); + renderWebGL = __webpack_require__(1013); } if (true) { - renderCanvas = __webpack_require__(1018); + renderCanvas = __webpack_require__(1014); } module.exports = { @@ -150715,7 +150573,7 @@ module.exports = { /***/ }), -/* 1017 */ +/* 1013 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150724,7 +150582,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -150793,7 +150651,7 @@ module.exports = PolygonWebGLRenderer; /***/ }), -/* 1018 */ +/* 1014 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150804,7 +150662,7 @@ module.exports = PolygonWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -150878,7 +150736,7 @@ module.exports = PolygonCanvasRenderer; /***/ }), -/* 1019 */ +/* 1015 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150892,12 +150750,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1020); + renderWebGL = __webpack_require__(1016); } if (true) { - renderCanvas = __webpack_require__(1021); + renderCanvas = __webpack_require__(1017); } module.exports = { @@ -150909,7 +150767,7 @@ module.exports = { /***/ }), -/* 1020 */ +/* 1016 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151001,7 +150859,7 @@ module.exports = RectangleWebGLRenderer; /***/ }), -/* 1021 */ +/* 1017 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151012,7 +150870,7 @@ module.exports = RectangleWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -151075,7 +150933,7 @@ module.exports = RectangleCanvasRenderer; /***/ }), -/* 1022 */ +/* 1018 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151089,12 +150947,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1023); + renderWebGL = __webpack_require__(1019); } if (true) { - renderCanvas = __webpack_require__(1024); + renderCanvas = __webpack_require__(1020); } module.exports = { @@ -151106,7 +150964,7 @@ module.exports = { /***/ }), -/* 1023 */ +/* 1019 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151115,7 +150973,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -151184,7 +151042,7 @@ module.exports = StarWebGLRenderer; /***/ }), -/* 1024 */ +/* 1020 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151195,7 +151053,7 @@ module.exports = StarWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -151269,7 +151127,7 @@ module.exports = StarCanvasRenderer; /***/ }), -/* 1025 */ +/* 1021 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151283,12 +151141,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1026); + renderWebGL = __webpack_require__(1022); } if (true) { - renderCanvas = __webpack_require__(1027); + renderCanvas = __webpack_require__(1023); } module.exports = { @@ -151300,7 +151158,7 @@ module.exports = { /***/ }), -/* 1026 */ +/* 1022 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151403,7 +151261,7 @@ module.exports = TriangleWebGLRenderer; /***/ }), -/* 1027 */ +/* 1023 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151414,7 +151272,7 @@ module.exports = TriangleWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -151478,7 +151336,7 @@ module.exports = TriangleCanvasRenderer; /***/ }), -/* 1028 */ +/* 1024 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151487,7 +151345,7 @@ module.exports = TriangleCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(184); +var Blitter = __webpack_require__(183); var GameObjectFactory = __webpack_require__(5); /** @@ -151520,7 +151378,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) /***/ }), -/* 1029 */ +/* 1025 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151530,7 +151388,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Container = __webpack_require__(185); +var Container = __webpack_require__(184); var GameObjectFactory = __webpack_require__(5); /** @@ -151554,7 +151412,7 @@ GameObjectFactory.register('container', function (x, y, children) /***/ }), -/* 1030 */ +/* 1026 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151563,7 +151421,7 @@ GameObjectFactory.register('container', function (x, y, children) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DOMElement = __webpack_require__(390); +var DOMElement = __webpack_require__(388); var GameObjectFactory = __webpack_require__(5); /** @@ -151644,7 +151502,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) /***/ }), -/* 1031 */ +/* 1027 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151653,7 +151511,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DynamicBitmapText = __webpack_require__(186); +var DynamicBitmapText = __webpack_require__(185); var GameObjectFactory = __webpack_require__(5); /** @@ -151713,7 +151571,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size /***/ }), -/* 1032 */ +/* 1028 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151722,7 +151580,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extern = __webpack_require__(392); +var Extern = __webpack_require__(390); var GameObjectFactory = __webpack_require__(5); /** @@ -151755,7 +151613,7 @@ GameObjectFactory.register('extern', function () /***/ }), -/* 1033 */ +/* 1029 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151764,7 +151622,7 @@ GameObjectFactory.register('extern', function () * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Graphics = __webpack_require__(187); +var Graphics = __webpack_require__(186); var GameObjectFactory = __webpack_require__(5); /** @@ -151794,7 +151652,7 @@ GameObjectFactory.register('graphics', function (config) /***/ }), -/* 1034 */ +/* 1030 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151803,7 +151661,7 @@ GameObjectFactory.register('graphics', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var GameObjectFactory = __webpack_require__(5); /** @@ -151826,7 +151684,7 @@ GameObjectFactory.register('group', function (children, config) /***/ }), -/* 1035 */ +/* 1031 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151835,7 +151693,7 @@ GameObjectFactory.register('group', function (children, config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Image = __webpack_require__(104); +var Image = __webpack_require__(103); var GameObjectFactory = __webpack_require__(5); /** @@ -151868,7 +151726,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) /***/ }), -/* 1036 */ +/* 1032 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151878,7 +151736,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var ParticleEmitterManager = __webpack_require__(190); +var ParticleEmitterManager = __webpack_require__(189); /** * Creates a new Particle Emitter Manager Game Object and adds it to the Scene. @@ -151914,7 +151772,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) /***/ }), -/* 1037 */ +/* 1033 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151924,7 +151782,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) */ var GameObjectFactory = __webpack_require__(5); -var PathFollower = __webpack_require__(404); +var PathFollower = __webpack_require__(402); /** * Creates a new PathFollower Game Object and adds it to the Scene. @@ -151962,7 +151820,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) /***/ }), -/* 1038 */ +/* 1034 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151972,7 +151830,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var RenderTexture = __webpack_require__(191); +var RenderTexture = __webpack_require__(190); /** * Creates a new Render Texture Game Object and adds it to the Scene. @@ -152002,7 +151860,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, /***/ }), -/* 1039 */ +/* 1035 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152011,7 +151869,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rope = __webpack_require__(193); +var Rope = __webpack_require__(192); var GameObjectFactory = __webpack_require__(5); /** @@ -152056,7 +151914,7 @@ if (true) /***/ }), -/* 1040 */ +/* 1036 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152066,7 +151924,7 @@ if (true) */ var GameObjectFactory = __webpack_require__(5); -var Sprite = __webpack_require__(74); +var Sprite = __webpack_require__(73); /** * Creates a new Sprite Game Object and adds it to the Scene. @@ -152103,7 +151961,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) /***/ }), -/* 1041 */ +/* 1037 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152112,7 +151970,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); +var BitmapText = __webpack_require__(126); var GameObjectFactory = __webpack_require__(5); /** @@ -152167,7 +152025,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align /***/ }), -/* 1042 */ +/* 1038 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152176,7 +152034,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Text = __webpack_require__(194); +var Text = __webpack_require__(193); var GameObjectFactory = __webpack_require__(5); /** @@ -152232,7 +152090,7 @@ GameObjectFactory.register('text', function (x, y, text, style) /***/ }), -/* 1043 */ +/* 1039 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152241,7 +152099,7 @@ GameObjectFactory.register('text', function (x, y, text, style) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileSprite = __webpack_require__(195); +var TileSprite = __webpack_require__(194); var GameObjectFactory = __webpack_require__(5); /** @@ -152276,7 +152134,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra /***/ }), -/* 1044 */ +/* 1040 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152285,7 +152143,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Zone = __webpack_require__(107); +var Zone = __webpack_require__(106); var GameObjectFactory = __webpack_require__(5); /** @@ -152318,7 +152176,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) /***/ }), -/* 1045 */ +/* 1041 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152327,7 +152185,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Video = __webpack_require__(196); +var Video = __webpack_require__(195); var GameObjectFactory = __webpack_require__(5); /** @@ -152365,7 +152223,7 @@ GameObjectFactory.register('video', function (x, y, key) /***/ }), -/* 1046 */ +/* 1042 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152374,7 +152232,7 @@ GameObjectFactory.register('video', function (x, y, key) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arc = __webpack_require__(405); +var Arc = __webpack_require__(403); var GameObjectFactory = __webpack_require__(5); /** @@ -152438,7 +152296,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph /***/ }), -/* 1047 */ +/* 1043 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152448,7 +152306,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph */ var GameObjectFactory = __webpack_require__(5); -var Curve = __webpack_require__(406); +var Curve = __webpack_require__(404); /** * Creates a new Curve Shape Game Object and adds it to the Scene. @@ -152488,7 +152346,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) /***/ }), -/* 1048 */ +/* 1044 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152497,7 +152355,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(407); +var Ellipse = __webpack_require__(405); var GameObjectFactory = __webpack_require__(5); /** @@ -152540,7 +152398,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, /***/ }), -/* 1049 */ +/* 1045 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152550,7 +152408,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, */ var GameObjectFactory = __webpack_require__(5); -var Grid = __webpack_require__(408); +var Grid = __webpack_require__(406); /** * Creates a new Grid Shape Game Object and adds it to the Scene. @@ -152595,7 +152453,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel /***/ }), -/* 1050 */ +/* 1046 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152605,7 +152463,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel */ var GameObjectFactory = __webpack_require__(5); -var IsoBox = __webpack_require__(409); +var IsoBox = __webpack_require__(407); /** * Creates a new IsoBox Shape Game Object and adds it to the Scene. @@ -152646,7 +152504,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill /***/ }), -/* 1051 */ +/* 1047 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152656,7 +152514,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill */ var GameObjectFactory = __webpack_require__(5); -var IsoTriangle = __webpack_require__(410); +var IsoTriangle = __webpack_require__(408); /** * Creates a new IsoTriangle Shape Game Object and adds it to the Scene. @@ -152699,7 +152557,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed /***/ }), -/* 1052 */ +/* 1048 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152709,7 +152567,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed */ var GameObjectFactory = __webpack_require__(5); -var Line = __webpack_require__(411); +var Line = __webpack_require__(409); /** * Creates a new Line Shape Game Object and adds it to the Scene. @@ -152750,7 +152608,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, /***/ }), -/* 1053 */ +/* 1049 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152760,7 +152618,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, */ var GameObjectFactory = __webpack_require__(5); -var Polygon = __webpack_require__(412); +var Polygon = __webpack_require__(410); /** * Creates a new Polygon Shape Game Object and adds it to the Scene. @@ -152803,7 +152661,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp /***/ }), -/* 1054 */ +/* 1050 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152813,7 +152671,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp */ var GameObjectFactory = __webpack_require__(5); -var Rectangle = __webpack_require__(417); +var Rectangle = __webpack_require__(415); /** * Creates a new Rectangle Shape Game Object and adds it to the Scene. @@ -152848,7 +152706,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor /***/ }), -/* 1055 */ +/* 1051 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152857,7 +152715,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Star = __webpack_require__(418); +var Star = __webpack_require__(416); var GameObjectFactory = __webpack_require__(5); /** @@ -152900,7 +152758,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad /***/ }), -/* 1056 */ +/* 1052 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152910,7 +152768,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad */ var GameObjectFactory = __webpack_require__(5); -var Triangle = __webpack_require__(419); +var Triangle = __webpack_require__(417); /** * Creates a new Triangle Shape Game Object and adds it to the Scene. @@ -152951,7 +152809,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f /***/ }), -/* 1057 */ +/* 1053 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152960,10 +152818,10 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(184); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var Blitter = __webpack_require__(183); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Blitter Game Object and returns it. @@ -153001,7 +152859,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) /***/ }), -/* 1058 */ +/* 1054 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153011,10 +152869,10 @@ GameObjectCreator.register('blitter', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var Container = __webpack_require__(185); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var Container = __webpack_require__(184); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Container Game Object and returns it. @@ -153050,7 +152908,7 @@ GameObjectCreator.register('container', function (config, addToScene) /***/ }), -/* 1059 */ +/* 1055 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153059,10 +152917,10 @@ GameObjectCreator.register('container', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(186); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BitmapText = __webpack_require__(185); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Dynamic Bitmap Text Game Object and returns it. @@ -153101,7 +152959,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) /***/ }), -/* 1060 */ +/* 1056 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153110,8 +152968,8 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var Graphics = __webpack_require__(187); +var GameObjectCreator = __webpack_require__(17); +var Graphics = __webpack_require__(186); /** * Creates a new Graphics Game Object and returns it. @@ -153149,7 +153007,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) /***/ }), -/* 1061 */ +/* 1057 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153158,8 +153016,8 @@ GameObjectCreator.register('graphics', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var Group = __webpack_require__(96); +var GameObjectCreator = __webpack_require__(17); +var Group = __webpack_require__(95); /** * Creates a new Group Game Object and returns it. @@ -153182,7 +153040,7 @@ GameObjectCreator.register('group', function (config) /***/ }), -/* 1062 */ +/* 1058 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153191,10 +153049,10 @@ GameObjectCreator.register('group', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Image = __webpack_require__(104); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Image = __webpack_require__(103); /** * Creates a new Image Game Object and returns it. @@ -153232,7 +153090,7 @@ GameObjectCreator.register('image', function (config, addToScene) /***/ }), -/* 1063 */ +/* 1059 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153241,10 +153099,10 @@ GameObjectCreator.register('image', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetFastValue = __webpack_require__(2); -var ParticleEmitterManager = __webpack_require__(190); +var ParticleEmitterManager = __webpack_require__(189); /** * Creates a new Particle Emitter Manager Game Object and returns it. @@ -153289,7 +153147,7 @@ GameObjectCreator.register('particles', function (config, addToScene) /***/ }), -/* 1064 */ +/* 1060 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153298,10 +153156,10 @@ GameObjectCreator.register('particles', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var RenderTexture = __webpack_require__(191); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var RenderTexture = __webpack_require__(190); /** * Creates a new Render Texture Game Object and returns it. @@ -153341,7 +153199,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) /***/ }), -/* 1065 */ +/* 1061 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153350,11 +153208,11 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var Rope = __webpack_require__(193); +var Rope = __webpack_require__(192); /** * Creates a new Rope Game Object and returns it. @@ -153396,7 +153254,7 @@ GameObjectCreator.register('rope', function (config, addToScene) /***/ }), -/* 1066 */ +/* 1062 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153405,11 +153263,11 @@ GameObjectCreator.register('rope', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var BuildGameObjectAnimation = __webpack_require__(388); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Sprite = __webpack_require__(74); +var BuildGameObject = __webpack_require__(28); +var BuildGameObjectAnimation = __webpack_require__(386); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Sprite = __webpack_require__(73); /** * Creates a new Sprite Game Object and returns it. @@ -153449,7 +153307,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) /***/ }), -/* 1067 */ +/* 1063 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153458,10 +153316,10 @@ GameObjectCreator.register('sprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BitmapText = __webpack_require__(126); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); /** @@ -153502,7 +153360,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) /***/ }), -/* 1068 */ +/* 1064 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153511,10 +153369,10 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Text = __webpack_require__(194); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Text = __webpack_require__(193); /** * Creates a new Text Game Object and returns it. @@ -153589,7 +153447,7 @@ GameObjectCreator.register('text', function (config, addToScene) /***/ }), -/* 1069 */ +/* 1065 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153598,10 +153456,10 @@ GameObjectCreator.register('text', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var TileSprite = __webpack_require__(195); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var TileSprite = __webpack_require__(194); /** * Creates a new TileSprite Game Object and returns it. @@ -153641,7 +153499,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) /***/ }), -/* 1070 */ +/* 1066 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153650,9 +153508,9 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Zone = __webpack_require__(107); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Zone = __webpack_require__(106); /** * Creates a new Zone Game Object and returns it. @@ -153680,7 +153538,7 @@ GameObjectCreator.register('zone', function (config) /***/ }), -/* 1071 */ +/* 1067 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153689,10 +153547,10 @@ GameObjectCreator.register('zone', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Video = __webpack_require__(196); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Video = __webpack_require__(195); /** * Creates a new Video Game Object and returns it. @@ -153729,7 +153587,7 @@ GameObjectCreator.register('video', function (config, addToScene) /***/ }), -/* 1072 */ +/* 1068 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153743,12 +153601,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1073); + renderWebGL = __webpack_require__(1069); } if (true) { - renderCanvas = __webpack_require__(1074); + renderCanvas = __webpack_require__(1070); } module.exports = { @@ -153760,7 +153618,7 @@ module.exports = { /***/ }), -/* 1073 */ +/* 1069 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153878,7 +153736,7 @@ module.exports = MeshWebGLRenderer; /***/ }), -/* 1074 */ +/* 1070 */ /***/ (function(module, exports) { /** @@ -153907,7 +153765,7 @@ module.exports = MeshCanvasRenderer; /***/ }), -/* 1075 */ +/* 1071 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153921,12 +153779,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1076); + renderWebGL = __webpack_require__(1072); } if (true) { - renderCanvas = __webpack_require__(1077); + renderCanvas = __webpack_require__(1073); } module.exports = { @@ -153938,7 +153796,7 @@ module.exports = { /***/ }), -/* 1076 */ +/* 1072 */ /***/ (function(module, exports) { /** @@ -154022,7 +153880,7 @@ module.exports = ShaderWebGLRenderer; /***/ }), -/* 1077 */ +/* 1073 */ /***/ (function(module, exports) { /** @@ -154051,7 +153909,7 @@ module.exports = ShaderCanvasRenderer; /***/ }), -/* 1078 */ +/* 1074 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154060,7 +153918,7 @@ module.exports = ShaderCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); var GameObjectFactory = __webpack_require__(5); /** @@ -154101,7 +153959,7 @@ if (true) /***/ }), -/* 1079 */ +/* 1075 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154110,7 +153968,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Quad = __webpack_require__(199); +var Quad = __webpack_require__(198); var GameObjectFactory = __webpack_require__(5); /** @@ -154147,7 +154005,7 @@ if (true) /***/ }), -/* 1080 */ +/* 1076 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154156,7 +154014,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Shader = __webpack_require__(200); +var Shader = __webpack_require__(199); var GameObjectFactory = __webpack_require__(5); /** @@ -154188,7 +154046,7 @@ if (true) /***/ }), -/* 1081 */ +/* 1077 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154197,11 +154055,11 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); /** * Creates a new Mesh Game Object and returns it. @@ -154243,7 +154101,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) /***/ }), -/* 1082 */ +/* 1078 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154252,10 +154110,10 @@ GameObjectCreator.register('mesh', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Quad = __webpack_require__(199); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Quad = __webpack_require__(198); /** * Creates a new Quad Game Object and returns it. @@ -154293,7 +154151,7 @@ GameObjectCreator.register('quad', function (config, addToScene) /***/ }), -/* 1083 */ +/* 1079 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154302,10 +154160,10 @@ GameObjectCreator.register('quad', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Shader = __webpack_require__(200); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Shader = __webpack_require__(199); /** * Creates a new Shader Game Object and returns it. @@ -154346,7 +154204,7 @@ GameObjectCreator.register('shader', function (config, addToScene) /***/ }), -/* 1084 */ +/* 1080 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154356,9 +154214,9 @@ GameObjectCreator.register('shader', function (config, addToScene) */ var Class = __webpack_require__(0); -var LightsManager = __webpack_require__(424); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var LightsManager = __webpack_require__(422); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -154462,7 +154320,7 @@ module.exports = LightsPlugin; /***/ }), -/* 1085 */ +/* 1081 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154473,27 +154331,27 @@ module.exports = LightsPlugin; var Circle = __webpack_require__(63); -Circle.Area = __webpack_require__(1086); -Circle.Circumference = __webpack_require__(265); -Circle.CircumferencePoint = __webpack_require__(144); -Circle.Clone = __webpack_require__(1087); +Circle.Area = __webpack_require__(1082); +Circle.Circumference = __webpack_require__(263); +Circle.CircumferencePoint = __webpack_require__(143); +Circle.Clone = __webpack_require__(1083); Circle.Contains = __webpack_require__(55); -Circle.ContainsPoint = __webpack_require__(1088); -Circle.ContainsRect = __webpack_require__(1089); -Circle.CopyFrom = __webpack_require__(1090); -Circle.Equals = __webpack_require__(1091); -Circle.GetBounds = __webpack_require__(1092); -Circle.GetPoint = __webpack_require__(263); -Circle.GetPoints = __webpack_require__(264); -Circle.Offset = __webpack_require__(1093); -Circle.OffsetPoint = __webpack_require__(1094); -Circle.Random = __webpack_require__(145); +Circle.ContainsPoint = __webpack_require__(1084); +Circle.ContainsRect = __webpack_require__(1085); +Circle.CopyFrom = __webpack_require__(1086); +Circle.Equals = __webpack_require__(1087); +Circle.GetBounds = __webpack_require__(1088); +Circle.GetPoint = __webpack_require__(261); +Circle.GetPoints = __webpack_require__(262); +Circle.Offset = __webpack_require__(1089); +Circle.OffsetPoint = __webpack_require__(1090); +Circle.Random = __webpack_require__(144); module.exports = Circle; /***/ }), -/* 1086 */ +/* 1082 */ /***/ (function(module, exports) { /** @@ -154521,7 +154379,7 @@ module.exports = Area; /***/ }), -/* 1087 */ +/* 1083 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154551,7 +154409,7 @@ module.exports = Clone; /***/ }), -/* 1088 */ +/* 1084 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154582,7 +154440,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1089 */ +/* 1085 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154618,7 +154476,7 @@ module.exports = ContainsRect; /***/ }), -/* 1090 */ +/* 1086 */ /***/ (function(module, exports) { /** @@ -154650,7 +154508,7 @@ module.exports = CopyFrom; /***/ }), -/* 1091 */ +/* 1087 */ /***/ (function(module, exports) { /** @@ -154684,7 +154542,7 @@ module.exports = Equals; /***/ }), -/* 1092 */ +/* 1088 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154693,7 +154551,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Returns the bounds of the Circle object. @@ -154724,7 +154582,7 @@ module.exports = GetBounds; /***/ }), -/* 1093 */ +/* 1089 */ /***/ (function(module, exports) { /** @@ -154759,7 +154617,7 @@ module.exports = Offset; /***/ }), -/* 1094 */ +/* 1090 */ /***/ (function(module, exports) { /** @@ -154793,7 +154651,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1095 */ +/* 1091 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154802,29 +154660,29 @@ module.exports = OffsetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(94); +var Ellipse = __webpack_require__(93); -Ellipse.Area = __webpack_require__(1096); -Ellipse.Circumference = __webpack_require__(395); -Ellipse.CircumferencePoint = __webpack_require__(189); -Ellipse.Clone = __webpack_require__(1097); -Ellipse.Contains = __webpack_require__(95); -Ellipse.ContainsPoint = __webpack_require__(1098); -Ellipse.ContainsRect = __webpack_require__(1099); -Ellipse.CopyFrom = __webpack_require__(1100); -Ellipse.Equals = __webpack_require__(1101); -Ellipse.GetBounds = __webpack_require__(1102); -Ellipse.GetPoint = __webpack_require__(393); -Ellipse.GetPoints = __webpack_require__(394); -Ellipse.Offset = __webpack_require__(1103); -Ellipse.OffsetPoint = __webpack_require__(1104); -Ellipse.Random = __webpack_require__(152); +Ellipse.Area = __webpack_require__(1092); +Ellipse.Circumference = __webpack_require__(393); +Ellipse.CircumferencePoint = __webpack_require__(188); +Ellipse.Clone = __webpack_require__(1093); +Ellipse.Contains = __webpack_require__(94); +Ellipse.ContainsPoint = __webpack_require__(1094); +Ellipse.ContainsRect = __webpack_require__(1095); +Ellipse.CopyFrom = __webpack_require__(1096); +Ellipse.Equals = __webpack_require__(1097); +Ellipse.GetBounds = __webpack_require__(1098); +Ellipse.GetPoint = __webpack_require__(391); +Ellipse.GetPoints = __webpack_require__(392); +Ellipse.Offset = __webpack_require__(1099); +Ellipse.OffsetPoint = __webpack_require__(1100); +Ellipse.Random = __webpack_require__(151); module.exports = Ellipse; /***/ }), -/* 1096 */ +/* 1092 */ /***/ (function(module, exports) { /** @@ -154858,7 +154716,7 @@ module.exports = Area; /***/ }), -/* 1097 */ +/* 1093 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154867,7 +154725,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(94); +var Ellipse = __webpack_require__(93); /** * Creates a new Ellipse instance based on the values contained in the given source. @@ -154888,7 +154746,7 @@ module.exports = Clone; /***/ }), -/* 1098 */ +/* 1094 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154897,7 +154755,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(95); +var Contains = __webpack_require__(94); /** * Check to see if the Ellipse contains the given Point object. @@ -154919,7 +154777,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1099 */ +/* 1095 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154928,7 +154786,7 @@ module.exports = ContainsPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(95); +var Contains = __webpack_require__(94); /** * Check to see if the Ellipse contains all four points of the given Rectangle object. @@ -154955,7 +154813,7 @@ module.exports = ContainsRect; /***/ }), -/* 1100 */ +/* 1096 */ /***/ (function(module, exports) { /** @@ -154987,7 +154845,7 @@ module.exports = CopyFrom; /***/ }), -/* 1101 */ +/* 1097 */ /***/ (function(module, exports) { /** @@ -155022,7 +154880,7 @@ module.exports = Equals; /***/ }), -/* 1102 */ +/* 1098 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155031,7 +154889,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Returns the bounds of the Ellipse object. @@ -155062,7 +154920,7 @@ module.exports = GetBounds; /***/ }), -/* 1103 */ +/* 1099 */ /***/ (function(module, exports) { /** @@ -155097,7 +154955,7 @@ module.exports = Offset; /***/ }), -/* 1104 */ +/* 1100 */ /***/ (function(module, exports) { /** @@ -155131,7 +154989,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1105 */ +/* 1101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155142,7 +155000,7 @@ module.exports = OffsetPoint; */ var Point = __webpack_require__(4); -var CircleToCircle = __webpack_require__(201); +var CircleToCircle = __webpack_require__(200); /** * Checks if two Circles intersect and returns the intersection points as a Point object array. @@ -155225,7 +155083,7 @@ module.exports = GetCircleToCircle; /***/ }), -/* 1106 */ +/* 1102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155235,8 +155093,8 @@ module.exports = GetCircleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(203); -var CircleToRectangle = __webpack_require__(202); +var GetLineToCircle = __webpack_require__(202); +var CircleToRectangle = __webpack_require__(201); /** * Checks for intersection between a circle and a rectangle, @@ -155275,7 +155133,7 @@ module.exports = GetCircleToRectangle; /***/ }), -/* 1107 */ +/* 1103 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155284,8 +155142,8 @@ module.exports = GetCircleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var RectangleToRectangle = __webpack_require__(130); +var Rectangle = __webpack_require__(13); +var RectangleToRectangle = __webpack_require__(129); /** * Checks if two Rectangle shapes intersect and returns the area of this intersection as Rectangle object. @@ -155324,7 +155182,7 @@ module.exports = GetRectangleIntersection; /***/ }), -/* 1108 */ +/* 1104 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155334,8 +155192,8 @@ module.exports = GetRectangleIntersection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToRectangle = __webpack_require__(205); -var RectangleToRectangle = __webpack_require__(130); +var GetLineToRectangle = __webpack_require__(204); +var RectangleToRectangle = __webpack_require__(129); /** * Checks if two Rectangles intersect and returns the intersection points as a Point object array. @@ -155375,7 +155233,7 @@ module.exports = GetRectangleToRectangle; /***/ }), -/* 1109 */ +/* 1105 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155385,8 +155243,8 @@ module.exports = GetRectangleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RectangleToTriangle = __webpack_require__(428); -var GetLineToRectangle = __webpack_require__(205); +var RectangleToTriangle = __webpack_require__(426); +var GetLineToRectangle = __webpack_require__(204); /** * Checks for intersection between Rectangle shape and Triangle shape, @@ -155423,7 +155281,7 @@ module.exports = GetRectangleToTriangle; /***/ }), -/* 1110 */ +/* 1106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155433,8 +155291,8 @@ module.exports = GetRectangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(203); -var TriangleToCircle = __webpack_require__(430); +var GetLineToCircle = __webpack_require__(202); +var TriangleToCircle = __webpack_require__(428); /** * Checks if a Triangle and a Circle intersect, and returns the intersection points as a Point object array. @@ -155472,7 +155330,7 @@ module.exports = GetTriangleToCircle; /***/ }), -/* 1111 */ +/* 1107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155482,8 +155340,8 @@ module.exports = GetTriangleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TriangleToTriangle = __webpack_require__(433); -var GetTriangleToLine = __webpack_require__(431); +var TriangleToTriangle = __webpack_require__(431); +var GetTriangleToLine = __webpack_require__(429); /** * Checks if two Triangles intersect, and returns the intersection points as a Point object array. @@ -155521,7 +155379,7 @@ module.exports = GetTriangleToTriangle; /***/ }), -/* 1112 */ +/* 1108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155530,7 +155388,7 @@ module.exports = GetTriangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PointToLine = __webpack_require__(435); +var PointToLine = __webpack_require__(433); /** * Checks if a Point is located on the given line segment. @@ -155562,7 +155420,7 @@ module.exports = PointToLineSegment; /***/ }), -/* 1113 */ +/* 1109 */ /***/ (function(module, exports) { /** @@ -155602,7 +155460,7 @@ module.exports = RectangleToValues; /***/ }), -/* 1114 */ +/* 1110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155613,41 +155471,41 @@ module.exports = RectangleToValues; var Line = __webpack_require__(56); -Line.Angle = __webpack_require__(84); -Line.BresenhamPoints = __webpack_require__(285); -Line.CenterOn = __webpack_require__(1115); -Line.Clone = __webpack_require__(1116); -Line.CopyFrom = __webpack_require__(1117); -Line.Equals = __webpack_require__(1118); -Line.Extend = __webpack_require__(1119); -Line.GetEasedPoints = __webpack_require__(1120); -Line.GetMidPoint = __webpack_require__(1121); -Line.GetNearestPoint = __webpack_require__(1122); -Line.GetNormal = __webpack_require__(1123); -Line.GetPoint = __webpack_require__(272); -Line.GetPoints = __webpack_require__(148); -Line.GetShortestDistance = __webpack_require__(1124); -Line.Height = __webpack_require__(1125); +Line.Angle = __webpack_require__(83); +Line.BresenhamPoints = __webpack_require__(283); +Line.CenterOn = __webpack_require__(1111); +Line.Clone = __webpack_require__(1112); +Line.CopyFrom = __webpack_require__(1113); +Line.Equals = __webpack_require__(1114); +Line.Extend = __webpack_require__(1115); +Line.GetEasedPoints = __webpack_require__(1116); +Line.GetMidPoint = __webpack_require__(1117); +Line.GetNearestPoint = __webpack_require__(1118); +Line.GetNormal = __webpack_require__(1119); +Line.GetPoint = __webpack_require__(270); +Line.GetPoints = __webpack_require__(147); +Line.GetShortestDistance = __webpack_require__(1120); +Line.Height = __webpack_require__(1121); Line.Length = __webpack_require__(57); -Line.NormalAngle = __webpack_require__(436); -Line.NormalX = __webpack_require__(1126); -Line.NormalY = __webpack_require__(1127); -Line.Offset = __webpack_require__(1128); -Line.PerpSlope = __webpack_require__(1129); -Line.Random = __webpack_require__(149); -Line.ReflectAngle = __webpack_require__(1130); -Line.Rotate = __webpack_require__(1131); -Line.RotateAroundPoint = __webpack_require__(1132); -Line.RotateAroundXY = __webpack_require__(207); -Line.SetToAngle = __webpack_require__(1133); -Line.Slope = __webpack_require__(1134); -Line.Width = __webpack_require__(1135); +Line.NormalAngle = __webpack_require__(434); +Line.NormalX = __webpack_require__(1122); +Line.NormalY = __webpack_require__(1123); +Line.Offset = __webpack_require__(1124); +Line.PerpSlope = __webpack_require__(1125); +Line.Random = __webpack_require__(148); +Line.ReflectAngle = __webpack_require__(1126); +Line.Rotate = __webpack_require__(1127); +Line.RotateAroundPoint = __webpack_require__(1128); +Line.RotateAroundXY = __webpack_require__(206); +Line.SetToAngle = __webpack_require__(1129); +Line.Slope = __webpack_require__(1130); +Line.Width = __webpack_require__(1131); module.exports = Line; /***/ }), -/* 1115 */ +/* 1111 */ /***/ (function(module, exports) { /** @@ -155687,7 +155545,7 @@ module.exports = CenterOn; /***/ }), -/* 1116 */ +/* 1112 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155717,7 +155575,7 @@ module.exports = Clone; /***/ }), -/* 1117 */ +/* 1113 */ /***/ (function(module, exports) { /** @@ -155748,7 +155606,7 @@ module.exports = CopyFrom; /***/ }), -/* 1118 */ +/* 1114 */ /***/ (function(module, exports) { /** @@ -155782,7 +155640,7 @@ module.exports = Equals; /***/ }), -/* 1119 */ +/* 1115 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155840,7 +155698,7 @@ module.exports = Extend; /***/ }), -/* 1120 */ +/* 1116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155849,7 +155707,7 @@ module.exports = Extend; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DistanceBetweenPoints = __webpack_require__(316); +var DistanceBetweenPoints = __webpack_require__(314); var GetEaseFunction = __webpack_require__(67); var Point = __webpack_require__(4); @@ -155960,7 +155818,7 @@ module.exports = GetEasedPoints; /***/ }), -/* 1121 */ +/* 1117 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155998,7 +155856,7 @@ module.exports = GetMidPoint; /***/ }), -/* 1122 */ +/* 1118 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156053,7 +155911,7 @@ module.exports = GetNearestPoint; /***/ }), -/* 1123 */ +/* 1119 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156062,8 +155920,8 @@ module.exports = GetNearestPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); var Point = __webpack_require__(4); /** @@ -156097,7 +155955,7 @@ module.exports = GetNormal; /***/ }), -/* 1124 */ +/* 1120 */ /***/ (function(module, exports) { /** @@ -156144,7 +156002,7 @@ module.exports = GetShortestDistance; /***/ }), -/* 1125 */ +/* 1121 */ /***/ (function(module, exports) { /** @@ -156172,7 +156030,7 @@ module.exports = Height; /***/ }), -/* 1126 */ +/* 1122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156181,8 +156039,8 @@ module.exports = Height; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); /** * Returns the x component of the normal vector of the given line. @@ -156203,7 +156061,7 @@ module.exports = NormalX; /***/ }), -/* 1127 */ +/* 1123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156212,8 +156070,8 @@ module.exports = NormalX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); /** * The Y value of the normal of the given line. @@ -156235,7 +156093,7 @@ module.exports = NormalY; /***/ }), -/* 1128 */ +/* 1124 */ /***/ (function(module, exports) { /** @@ -156273,7 +156131,7 @@ module.exports = Offset; /***/ }), -/* 1129 */ +/* 1125 */ /***/ (function(module, exports) { /** @@ -156301,7 +156159,7 @@ module.exports = PerpSlope; /***/ }), -/* 1130 */ +/* 1126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156310,8 +156168,8 @@ module.exports = PerpSlope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(84); -var NormalAngle = __webpack_require__(436); +var Angle = __webpack_require__(83); +var NormalAngle = __webpack_require__(434); /** * Calculate the reflected angle between two lines. @@ -156335,7 +156193,7 @@ module.exports = ReflectAngle; /***/ }), -/* 1131 */ +/* 1127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156344,7 +156202,7 @@ module.exports = ReflectAngle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(207); +var RotateAroundXY = __webpack_require__(206); /** * Rotate a line around its midpoint by the given angle in radians. @@ -156371,7 +156229,7 @@ module.exports = Rotate; /***/ }), -/* 1132 */ +/* 1128 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156380,7 +156238,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(207); +var RotateAroundXY = __webpack_require__(206); /** * Rotate a line around a point by the given angle in radians. @@ -156405,7 +156263,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1133 */ +/* 1129 */ /***/ (function(module, exports) { /** @@ -156445,7 +156303,7 @@ module.exports = SetToAngle; /***/ }), -/* 1134 */ +/* 1130 */ /***/ (function(module, exports) { /** @@ -156473,7 +156331,7 @@ module.exports = Slope; /***/ }), -/* 1135 */ +/* 1131 */ /***/ (function(module, exports) { /** @@ -156501,7 +156359,7 @@ module.exports = Width; /***/ }), -/* 1136 */ +/* 1132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156512,27 +156370,27 @@ module.exports = Width; var Point = __webpack_require__(4); -Point.Ceil = __webpack_require__(1137); -Point.Clone = __webpack_require__(1138); -Point.CopyFrom = __webpack_require__(1139); -Point.Equals = __webpack_require__(1140); -Point.Floor = __webpack_require__(1141); -Point.GetCentroid = __webpack_require__(1142); -Point.GetMagnitude = __webpack_require__(437); -Point.GetMagnitudeSq = __webpack_require__(438); -Point.GetRectangleFromPoints = __webpack_require__(1143); -Point.Interpolate = __webpack_require__(1144); -Point.Invert = __webpack_require__(1145); -Point.Negative = __webpack_require__(1146); -Point.Project = __webpack_require__(1147); -Point.ProjectUnit = __webpack_require__(1148); -Point.SetMagnitude = __webpack_require__(1149); +Point.Ceil = __webpack_require__(1133); +Point.Clone = __webpack_require__(1134); +Point.CopyFrom = __webpack_require__(1135); +Point.Equals = __webpack_require__(1136); +Point.Floor = __webpack_require__(1137); +Point.GetCentroid = __webpack_require__(1138); +Point.GetMagnitude = __webpack_require__(435); +Point.GetMagnitudeSq = __webpack_require__(436); +Point.GetRectangleFromPoints = __webpack_require__(1139); +Point.Interpolate = __webpack_require__(1140); +Point.Invert = __webpack_require__(1141); +Point.Negative = __webpack_require__(1142); +Point.Project = __webpack_require__(1143); +Point.ProjectUnit = __webpack_require__(1144); +Point.SetMagnitude = __webpack_require__(1145); module.exports = Point; /***/ }), -/* 1137 */ +/* 1133 */ /***/ (function(module, exports) { /** @@ -156562,7 +156420,7 @@ module.exports = Ceil; /***/ }), -/* 1138 */ +/* 1134 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156592,7 +156450,7 @@ module.exports = Clone; /***/ }), -/* 1139 */ +/* 1135 */ /***/ (function(module, exports) { /** @@ -156623,7 +156481,7 @@ module.exports = CopyFrom; /***/ }), -/* 1140 */ +/* 1136 */ /***/ (function(module, exports) { /** @@ -156652,7 +156510,7 @@ module.exports = Equals; /***/ }), -/* 1141 */ +/* 1137 */ /***/ (function(module, exports) { /** @@ -156682,7 +156540,7 @@ module.exports = Floor; /***/ }), -/* 1142 */ +/* 1138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156746,7 +156604,7 @@ module.exports = GetCentroid; /***/ }), -/* 1143 */ +/* 1139 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156755,7 +156613,7 @@ module.exports = GetCentroid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Calculates the Axis Aligned Bounding Box (or aabb) from an array of points. @@ -156816,7 +156674,7 @@ module.exports = GetRectangleFromPoints; /***/ }), -/* 1144 */ +/* 1140 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156857,7 +156715,7 @@ module.exports = Interpolate; /***/ }), -/* 1145 */ +/* 1141 */ /***/ (function(module, exports) { /** @@ -156887,7 +156745,7 @@ module.exports = Invert; /***/ }), -/* 1146 */ +/* 1142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156922,7 +156780,7 @@ module.exports = Negative; /***/ }), -/* 1147 */ +/* 1143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156932,7 +156790,7 @@ module.exports = Negative; */ var Point = __webpack_require__(4); -var GetMagnitudeSq = __webpack_require__(438); +var GetMagnitudeSq = __webpack_require__(436); /** * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the @@ -156969,7 +156827,7 @@ module.exports = Project; /***/ }), -/* 1148 */ +/* 1144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157014,7 +156872,7 @@ module.exports = ProjectUnit; /***/ }), -/* 1149 */ +/* 1145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157023,7 +156881,7 @@ module.exports = ProjectUnit; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetMagnitude = __webpack_require__(437); +var GetMagnitude = __webpack_require__(435); /** * Changes the magnitude (length) of a two-dimensional vector without changing its direction. @@ -157058,7 +156916,7 @@ module.exports = SetMagnitude; /***/ }), -/* 1150 */ +/* 1146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157067,23 +156925,23 @@ module.exports = SetMagnitude; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(197); +var Polygon = __webpack_require__(196); -Polygon.Clone = __webpack_require__(1151); -Polygon.Contains = __webpack_require__(198); -Polygon.ContainsPoint = __webpack_require__(1152); -Polygon.GetAABB = __webpack_require__(413); -Polygon.GetNumberArray = __webpack_require__(1153); -Polygon.GetPoints = __webpack_require__(414); -Polygon.Perimeter = __webpack_require__(415); -Polygon.Reverse = __webpack_require__(1154); -Polygon.Smooth = __webpack_require__(416); +Polygon.Clone = __webpack_require__(1147); +Polygon.Contains = __webpack_require__(197); +Polygon.ContainsPoint = __webpack_require__(1148); +Polygon.GetAABB = __webpack_require__(411); +Polygon.GetNumberArray = __webpack_require__(1149); +Polygon.GetPoints = __webpack_require__(412); +Polygon.Perimeter = __webpack_require__(413); +Polygon.Reverse = __webpack_require__(1150); +Polygon.Smooth = __webpack_require__(414); module.exports = Polygon; /***/ }), -/* 1151 */ +/* 1147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157092,7 +156950,7 @@ module.exports = Polygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(197); +var Polygon = __webpack_require__(196); /** * Create a new polygon which is a copy of the specified polygon @@ -157113,7 +156971,7 @@ module.exports = Clone; /***/ }), -/* 1152 */ +/* 1148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157122,7 +156980,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(198); +var Contains = __webpack_require__(197); /** * Checks the given Point again the Polygon to see if the Point lays within its vertices. @@ -157144,7 +157002,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1153 */ +/* 1149 */ /***/ (function(module, exports) { /** @@ -157187,7 +157045,7 @@ module.exports = GetNumberArray; /***/ }), -/* 1154 */ +/* 1150 */ /***/ (function(module, exports) { /** @@ -157219,7 +157077,7 @@ module.exports = Reverse; /***/ }), -/* 1155 */ +/* 1151 */ /***/ (function(module, exports) { /** @@ -157247,7 +157105,7 @@ module.exports = Area; /***/ }), -/* 1156 */ +/* 1152 */ /***/ (function(module, exports) { /** @@ -157280,7 +157138,7 @@ module.exports = Ceil; /***/ }), -/* 1157 */ +/* 1153 */ /***/ (function(module, exports) { /** @@ -157315,7 +157173,7 @@ module.exports = CeilAll; /***/ }), -/* 1158 */ +/* 1154 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157324,7 +157182,7 @@ module.exports = CeilAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Creates a new Rectangle which is identical to the given one. @@ -157345,7 +157203,7 @@ module.exports = Clone; /***/ }), -/* 1159 */ +/* 1155 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157376,7 +157234,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1160 */ +/* 1156 */ /***/ (function(module, exports) { /** @@ -157407,7 +157265,7 @@ module.exports = CopyFrom; /***/ }), -/* 1161 */ +/* 1157 */ /***/ (function(module, exports) { /** @@ -157441,7 +157299,7 @@ module.exports = Equals; /***/ }), -/* 1162 */ +/* 1158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157450,7 +157308,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(208); +var GetAspectRatio = __webpack_require__(207); /** * Adjusts the target rectangle, changing its width, height and position, @@ -157494,7 +157352,7 @@ module.exports = FitInside; /***/ }), -/* 1163 */ +/* 1159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157503,7 +157361,7 @@ module.exports = FitInside; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(208); +var GetAspectRatio = __webpack_require__(207); /** * Adjusts the target rectangle, changing its width, height and position, @@ -157547,7 +157405,7 @@ module.exports = FitOutside; /***/ }), -/* 1164 */ +/* 1160 */ /***/ (function(module, exports) { /** @@ -157580,7 +157438,7 @@ module.exports = Floor; /***/ }), -/* 1165 */ +/* 1161 */ /***/ (function(module, exports) { /** @@ -157615,7 +157473,7 @@ module.exports = FloorAll; /***/ }), -/* 1166 */ +/* 1162 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157653,7 +157511,7 @@ module.exports = GetCenter; /***/ }), -/* 1167 */ +/* 1163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157693,7 +157551,7 @@ module.exports = GetSize; /***/ }), -/* 1168 */ +/* 1164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157702,7 +157560,7 @@ module.exports = GetSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(163); +var CenterOn = __webpack_require__(162); /** @@ -157735,7 +157593,7 @@ module.exports = Inflate; /***/ }), -/* 1169 */ +/* 1165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157744,8 +157602,8 @@ module.exports = Inflate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var Intersects = __webpack_require__(130); +var Rectangle = __webpack_require__(13); +var Intersects = __webpack_require__(129); /** * Takes two Rectangles and first checks to see if they intersect. @@ -157786,7 +157644,7 @@ module.exports = Intersection; /***/ }), -/* 1170 */ +/* 1166 */ /***/ (function(module, exports) { /** @@ -157835,7 +157693,7 @@ module.exports = MergePoints; /***/ }), -/* 1171 */ +/* 1167 */ /***/ (function(module, exports) { /** @@ -157882,7 +157740,7 @@ module.exports = MergeRect; /***/ }), -/* 1172 */ +/* 1168 */ /***/ (function(module, exports) { /** @@ -157926,7 +157784,7 @@ module.exports = MergeXY; /***/ }), -/* 1173 */ +/* 1169 */ /***/ (function(module, exports) { /** @@ -157961,7 +157819,7 @@ module.exports = Offset; /***/ }), -/* 1174 */ +/* 1170 */ /***/ (function(module, exports) { /** @@ -157995,7 +157853,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1175 */ +/* 1171 */ /***/ (function(module, exports) { /** @@ -158029,7 +157887,7 @@ module.exports = Overlaps; /***/ }), -/* 1176 */ +/* 1172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158086,7 +157944,7 @@ module.exports = PerimeterPoint; /***/ }), -/* 1177 */ +/* 1173 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158095,8 +157953,8 @@ module.exports = PerimeterPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(168); -var ContainsRect = __webpack_require__(440); +var Between = __webpack_require__(167); +var ContainsRect = __webpack_require__(438); var Point = __webpack_require__(4); /** @@ -158157,7 +158015,7 @@ module.exports = RandomOutside; /***/ }), -/* 1178 */ +/* 1174 */ /***/ (function(module, exports) { /** @@ -158186,7 +158044,7 @@ module.exports = SameDimensions; /***/ }), -/* 1179 */ +/* 1175 */ /***/ (function(module, exports) { /** @@ -158225,7 +158083,7 @@ module.exports = Scale; /***/ }), -/* 1180 */ +/* 1176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158236,36 +158094,36 @@ module.exports = Scale; var Triangle = __webpack_require__(69); -Triangle.Area = __webpack_require__(1181); -Triangle.BuildEquilateral = __webpack_require__(1182); -Triangle.BuildFromPolygon = __webpack_require__(1183); -Triangle.BuildRight = __webpack_require__(1184); -Triangle.CenterOn = __webpack_require__(1185); -Triangle.Centroid = __webpack_require__(441); -Triangle.CircumCenter = __webpack_require__(1186); -Triangle.CircumCircle = __webpack_require__(1187); -Triangle.Clone = __webpack_require__(1188); -Triangle.Contains = __webpack_require__(82); -Triangle.ContainsArray = __webpack_require__(206); -Triangle.ContainsPoint = __webpack_require__(1189); -Triangle.CopyFrom = __webpack_require__(1190); -Triangle.Decompose = __webpack_require__(434); -Triangle.Equals = __webpack_require__(1191); -Triangle.GetPoint = __webpack_require__(420); -Triangle.GetPoints = __webpack_require__(421); -Triangle.InCenter = __webpack_require__(443); -Triangle.Perimeter = __webpack_require__(1192); -Triangle.Offset = __webpack_require__(442); -Triangle.Random = __webpack_require__(153); -Triangle.Rotate = __webpack_require__(1193); -Triangle.RotateAroundPoint = __webpack_require__(1194); -Triangle.RotateAroundXY = __webpack_require__(209); +Triangle.Area = __webpack_require__(1177); +Triangle.BuildEquilateral = __webpack_require__(1178); +Triangle.BuildFromPolygon = __webpack_require__(1179); +Triangle.BuildRight = __webpack_require__(1180); +Triangle.CenterOn = __webpack_require__(1181); +Triangle.Centroid = __webpack_require__(439); +Triangle.CircumCenter = __webpack_require__(1182); +Triangle.CircumCircle = __webpack_require__(1183); +Triangle.Clone = __webpack_require__(1184); +Triangle.Contains = __webpack_require__(81); +Triangle.ContainsArray = __webpack_require__(205); +Triangle.ContainsPoint = __webpack_require__(1185); +Triangle.CopyFrom = __webpack_require__(1186); +Triangle.Decompose = __webpack_require__(432); +Triangle.Equals = __webpack_require__(1187); +Triangle.GetPoint = __webpack_require__(418); +Triangle.GetPoints = __webpack_require__(419); +Triangle.InCenter = __webpack_require__(441); +Triangle.Perimeter = __webpack_require__(1188); +Triangle.Offset = __webpack_require__(440); +Triangle.Random = __webpack_require__(152); +Triangle.Rotate = __webpack_require__(1189); +Triangle.RotateAroundPoint = __webpack_require__(1190); +Triangle.RotateAroundXY = __webpack_require__(208); module.exports = Triangle; /***/ }), -/* 1181 */ +/* 1177 */ /***/ (function(module, exports) { /** @@ -158304,7 +158162,7 @@ module.exports = Area; /***/ }), -/* 1182 */ +/* 1178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158348,7 +158206,7 @@ module.exports = BuildEquilateral; /***/ }), -/* 1183 */ +/* 1179 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158424,7 +158282,7 @@ module.exports = BuildFromPolygon; /***/ }), -/* 1184 */ +/* 1180 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158473,7 +158331,7 @@ module.exports = BuildRight; /***/ }), -/* 1185 */ +/* 1181 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158482,8 +158340,8 @@ module.exports = BuildRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Centroid = __webpack_require__(441); -var Offset = __webpack_require__(442); +var Centroid = __webpack_require__(439); +var Offset = __webpack_require__(440); /** * @callback CenterFunction @@ -158526,7 +158384,7 @@ module.exports = CenterOn; /***/ }), -/* 1186 */ +/* 1182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158602,7 +158460,7 @@ module.exports = CircumCenter; /***/ }), -/* 1187 */ +/* 1183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158685,7 +158543,7 @@ module.exports = CircumCircle; /***/ }), -/* 1188 */ +/* 1184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158715,7 +158573,7 @@ module.exports = Clone; /***/ }), -/* 1189 */ +/* 1185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158724,7 +158582,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(82); +var Contains = __webpack_require__(81); /** * Tests if a triangle contains a point. @@ -158746,7 +158604,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1190 */ +/* 1186 */ /***/ (function(module, exports) { /** @@ -158777,7 +158635,7 @@ module.exports = CopyFrom; /***/ }), -/* 1191 */ +/* 1187 */ /***/ (function(module, exports) { /** @@ -158813,7 +158671,7 @@ module.exports = Equals; /***/ }), -/* 1192 */ +/* 1188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158848,7 +158706,7 @@ module.exports = Perimeter; /***/ }), -/* 1193 */ +/* 1189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158857,8 +158715,8 @@ module.exports = Perimeter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(209); -var InCenter = __webpack_require__(443); +var RotateAroundXY = __webpack_require__(208); +var InCenter = __webpack_require__(441); /** * Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet. @@ -158884,7 +158742,7 @@ module.exports = Rotate; /***/ }), -/* 1194 */ +/* 1190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158893,7 +158751,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(209); +var RotateAroundXY = __webpack_require__(208); /** * Rotates a Triangle at a certain angle about a given Point or object with public `x` and `y` properties. @@ -158918,7 +158776,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1195 */ +/* 1191 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158927,8 +158785,8 @@ module.exports = RotateAroundPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(175); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(174); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Input @@ -158936,16 +158794,16 @@ var Extend = __webpack_require__(17); var Input = { - CreateInteractiveObject: __webpack_require__(444), + CreateInteractiveObject: __webpack_require__(442), Events: __webpack_require__(54), - Gamepad: __webpack_require__(1196), - InputManager: __webpack_require__(362), - InputPlugin: __webpack_require__(1208), - InputPluginCache: __webpack_require__(131), - Keyboard: __webpack_require__(1210), - Mouse: __webpack_require__(1227), - Pointer: __webpack_require__(365), - Touch: __webpack_require__(1228) + Gamepad: __webpack_require__(1192), + InputManager: __webpack_require__(360), + InputPlugin: __webpack_require__(1204), + InputPluginCache: __webpack_require__(130), + Keyboard: __webpack_require__(1206), + Mouse: __webpack_require__(1223), + Pointer: __webpack_require__(363), + Touch: __webpack_require__(1224) }; @@ -158956,7 +158814,7 @@ module.exports = Input; /***/ }), -/* 1196 */ +/* 1192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158971,18 +158829,18 @@ module.exports = Input; module.exports = { - Axis: __webpack_require__(445), - Button: __webpack_require__(446), - Events: __webpack_require__(210), - Gamepad: __webpack_require__(447), - GamepadPlugin: __webpack_require__(1203), + Axis: __webpack_require__(443), + Button: __webpack_require__(444), + Events: __webpack_require__(209), + Gamepad: __webpack_require__(445), + GamepadPlugin: __webpack_require__(1199), - Configs: __webpack_require__(1204) + Configs: __webpack_require__(1200) }; /***/ }), -/* 1197 */ +/* 1193 */ /***/ (function(module, exports) { /** @@ -159011,7 +158869,7 @@ module.exports = 'down'; /***/ }), -/* 1198 */ +/* 1194 */ /***/ (function(module, exports) { /** @@ -159040,7 +158898,7 @@ module.exports = 'up'; /***/ }), -/* 1199 */ +/* 1195 */ /***/ (function(module, exports) { /** @@ -159071,7 +158929,7 @@ module.exports = 'connected'; /***/ }), -/* 1200 */ +/* 1196 */ /***/ (function(module, exports) { /** @@ -159097,7 +158955,7 @@ module.exports = 'disconnected'; /***/ }), -/* 1201 */ +/* 1197 */ /***/ (function(module, exports) { /** @@ -159129,7 +158987,7 @@ module.exports = 'down'; /***/ }), -/* 1202 */ +/* 1198 */ /***/ (function(module, exports) { /** @@ -159161,7 +159019,7 @@ module.exports = 'up'; /***/ }), -/* 1203 */ +/* 1199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159171,11 +159029,11 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(210); -var Gamepad = __webpack_require__(447); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(209); +var Gamepad = __webpack_require__(445); var GetValue = __webpack_require__(6); -var InputPluginCache = __webpack_require__(131); +var InputPluginCache = __webpack_require__(130); var InputEvents = __webpack_require__(54); /** @@ -159799,7 +159657,7 @@ module.exports = GamepadPlugin; /***/ }), -/* 1204 */ +/* 1200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159814,15 +159672,15 @@ module.exports = GamepadPlugin; module.exports = { - DUALSHOCK_4: __webpack_require__(1205), - SNES_USB: __webpack_require__(1206), - XBOX_360: __webpack_require__(1207) + DUALSHOCK_4: __webpack_require__(1201), + SNES_USB: __webpack_require__(1202), + XBOX_360: __webpack_require__(1203) }; /***/ }), -/* 1205 */ +/* 1201 */ /***/ (function(module, exports) { /** @@ -159872,7 +159730,7 @@ module.exports = { /***/ }), -/* 1206 */ +/* 1202 */ /***/ (function(module, exports) { /** @@ -159911,7 +159769,7 @@ module.exports = { /***/ }), -/* 1207 */ +/* 1203 */ /***/ (function(module, exports) { /** @@ -159962,7 +159820,7 @@ module.exports = { /***/ }), -/* 1208 */ +/* 1204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159974,24 +159832,24 @@ module.exports = { var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var CONST = __webpack_require__(175); -var CreateInteractiveObject = __webpack_require__(444); -var CreatePixelPerfectHandler = __webpack_require__(1209); +var CONST = __webpack_require__(174); +var CreateInteractiveObject = __webpack_require__(442); +var CreatePixelPerfectHandler = __webpack_require__(1205); var DistanceBetween = __webpack_require__(53); -var Ellipse = __webpack_require__(94); -var EllipseContains = __webpack_require__(95); +var Ellipse = __webpack_require__(93); +var EllipseContains = __webpack_require__(94); var Events = __webpack_require__(54); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var GetFastValue = __webpack_require__(2); var GEOM_CONST = __webpack_require__(46); -var InputPluginCache = __webpack_require__(131); +var InputPluginCache = __webpack_require__(130); var IsPlainObject = __webpack_require__(7); -var PluginCache = __webpack_require__(23); -var Rectangle = __webpack_require__(12); +var PluginCache = __webpack_require__(24); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); -var SceneEvents = __webpack_require__(21); +var SceneEvents = __webpack_require__(22); var Triangle = __webpack_require__(69); -var TriangleContains = __webpack_require__(82); +var TriangleContains = __webpack_require__(81); /** * @classdesc @@ -163114,7 +162972,7 @@ module.exports = InputPlugin; /***/ }), -/* 1209 */ +/* 1205 */ /***/ (function(module, exports) { /** @@ -163150,7 +163008,7 @@ module.exports = CreatePixelPerfectHandler; /***/ }), -/* 1210 */ +/* 1206 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163165,26 +163023,26 @@ module.exports = CreatePixelPerfectHandler; module.exports = { - Events: __webpack_require__(132), + Events: __webpack_require__(131), - KeyboardManager: __webpack_require__(363), - KeyboardPlugin: __webpack_require__(1218), + KeyboardManager: __webpack_require__(361), + KeyboardPlugin: __webpack_require__(1214), - Key: __webpack_require__(448), - KeyCodes: __webpack_require__(119), + Key: __webpack_require__(446), + KeyCodes: __webpack_require__(118), - KeyCombo: __webpack_require__(449), + KeyCombo: __webpack_require__(447), - JustDown: __webpack_require__(1223), - JustUp: __webpack_require__(1224), - DownDuration: __webpack_require__(1225), - UpDuration: __webpack_require__(1226) + JustDown: __webpack_require__(1219), + JustUp: __webpack_require__(1220), + DownDuration: __webpack_require__(1221), + UpDuration: __webpack_require__(1222) }; /***/ }), -/* 1211 */ +/* 1207 */ /***/ (function(module, exports) { /** @@ -163220,7 +163078,7 @@ module.exports = 'keydown'; /***/ }), -/* 1212 */ +/* 1208 */ /***/ (function(module, exports) { /** @@ -163249,7 +163107,7 @@ module.exports = 'keyup'; /***/ }), -/* 1213 */ +/* 1209 */ /***/ (function(module, exports) { /** @@ -163283,7 +163141,7 @@ module.exports = 'keycombomatch'; /***/ }), -/* 1214 */ +/* 1210 */ /***/ (function(module, exports) { /** @@ -163317,7 +163175,7 @@ module.exports = 'down'; /***/ }), -/* 1215 */ +/* 1211 */ /***/ (function(module, exports) { /** @@ -163356,7 +163214,7 @@ module.exports = 'keydown-'; /***/ }), -/* 1216 */ +/* 1212 */ /***/ (function(module, exports) { /** @@ -163388,7 +163246,7 @@ module.exports = 'keyup-'; /***/ }), -/* 1217 */ +/* 1213 */ /***/ (function(module, exports) { /** @@ -163422,7 +163280,7 @@ module.exports = 'up'; /***/ }), -/* 1218 */ +/* 1214 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163432,17 +163290,17 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(132); -var GameEvents = __webpack_require__(18); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(131); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); var InputEvents = __webpack_require__(54); -var InputPluginCache = __webpack_require__(131); -var Key = __webpack_require__(448); -var KeyCodes = __webpack_require__(119); -var KeyCombo = __webpack_require__(449); -var KeyMap = __webpack_require__(1222); -var SnapFloor = __webpack_require__(92); +var InputPluginCache = __webpack_require__(130); +var Key = __webpack_require__(446); +var KeyCodes = __webpack_require__(118); +var KeyCombo = __webpack_require__(447); +var KeyMap = __webpack_require__(1218); +var SnapFloor = __webpack_require__(91); /** * @classdesc @@ -164308,7 +164166,7 @@ module.exports = KeyboardPlugin; /***/ }), -/* 1219 */ +/* 1215 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164317,7 +164175,7 @@ module.exports = KeyboardPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AdvanceKeyCombo = __webpack_require__(1220); +var AdvanceKeyCombo = __webpack_require__(1216); /** * Used internally by the KeyCombo class. @@ -164389,7 +164247,7 @@ module.exports = ProcessKeyCombo; /***/ }), -/* 1220 */ +/* 1216 */ /***/ (function(module, exports) { /** @@ -164431,7 +164289,7 @@ module.exports = AdvanceKeyCombo; /***/ }), -/* 1221 */ +/* 1217 */ /***/ (function(module, exports) { /** @@ -164466,7 +164324,7 @@ module.exports = ResetKeyCombo; /***/ }), -/* 1222 */ +/* 1218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164475,7 +164333,7 @@ module.exports = ResetKeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var KeyCodes = __webpack_require__(119); +var KeyCodes = __webpack_require__(118); var KeyMap = {}; @@ -164488,7 +164346,7 @@ module.exports = KeyMap; /***/ }), -/* 1223 */ +/* 1219 */ /***/ (function(module, exports) { /** @@ -164530,7 +164388,7 @@ module.exports = JustDown; /***/ }), -/* 1224 */ +/* 1220 */ /***/ (function(module, exports) { /** @@ -164572,7 +164430,7 @@ module.exports = JustUp; /***/ }), -/* 1225 */ +/* 1221 */ /***/ (function(module, exports) { /** @@ -164606,7 +164464,7 @@ module.exports = DownDuration; /***/ }), -/* 1226 */ +/* 1222 */ /***/ (function(module, exports) { /** @@ -164640,7 +164498,7 @@ module.exports = UpDuration; /***/ }), -/* 1227 */ +/* 1223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164656,14 +164514,14 @@ module.exports = UpDuration; /* eslint-disable */ module.exports = { - MouseManager: __webpack_require__(364) + MouseManager: __webpack_require__(362) }; /* eslint-enable */ /***/ }), -/* 1228 */ +/* 1224 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164679,14 +164537,14 @@ module.exports = { /* eslint-disable */ module.exports = { - TouchManager: __webpack_require__(366) + TouchManager: __webpack_require__(364) }; /* eslint-enable */ /***/ }), -/* 1229 */ +/* 1225 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164695,8 +164553,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(19); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(20); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Loader @@ -164704,18 +164562,18 @@ var Extend = __webpack_require__(17); var Loader = { - Events: __webpack_require__(81), + Events: __webpack_require__(80), - FileTypes: __webpack_require__(1230), + FileTypes: __webpack_require__(1226), - File: __webpack_require__(20), + File: __webpack_require__(21), FileTypesManager: __webpack_require__(8), - GetURL: __webpack_require__(133), - LoaderPlugin: __webpack_require__(1254), - MergeXHRSettings: __webpack_require__(211), + GetURL: __webpack_require__(132), + LoaderPlugin: __webpack_require__(1250), + MergeXHRSettings: __webpack_require__(210), MultiFile: __webpack_require__(61), - XHRLoader: __webpack_require__(450), - XHRSettings: __webpack_require__(134) + XHRLoader: __webpack_require__(448), + XHRSettings: __webpack_require__(133) }; @@ -164726,7 +164584,7 @@ module.exports = Loader; /***/ }), -/* 1230 */ +/* 1226 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164741,42 +164599,42 @@ module.exports = Loader; module.exports = { - AnimationJSONFile: __webpack_require__(1231), - AtlasJSONFile: __webpack_require__(1232), - AtlasXMLFile: __webpack_require__(1233), - AudioFile: __webpack_require__(451), - AudioSpriteFile: __webpack_require__(1234), - BinaryFile: __webpack_require__(1235), - BitmapFontFile: __webpack_require__(1236), - CSSFile: __webpack_require__(1237), - GLSLFile: __webpack_require__(1238), - HTML5AudioFile: __webpack_require__(452), - HTMLFile: __webpack_require__(1239), - HTMLTextureFile: __webpack_require__(1240), + AnimationJSONFile: __webpack_require__(1227), + AtlasJSONFile: __webpack_require__(1228), + AtlasXMLFile: __webpack_require__(1229), + AudioFile: __webpack_require__(449), + AudioSpriteFile: __webpack_require__(1230), + BinaryFile: __webpack_require__(1231), + BitmapFontFile: __webpack_require__(1232), + CSSFile: __webpack_require__(1233), + GLSLFile: __webpack_require__(1234), + HTML5AudioFile: __webpack_require__(450), + HTMLFile: __webpack_require__(1235), + HTMLTextureFile: __webpack_require__(1236), ImageFile: __webpack_require__(70), JSONFile: __webpack_require__(60), - MultiAtlasFile: __webpack_require__(1241), - MultiScriptFile: __webpack_require__(1242), - PackFile: __webpack_require__(1243), - PluginFile: __webpack_require__(1244), - SceneFile: __webpack_require__(1245), - ScenePluginFile: __webpack_require__(1246), - ScriptFile: __webpack_require__(453), - SpriteSheetFile: __webpack_require__(1247), - SVGFile: __webpack_require__(1248), - TextFile: __webpack_require__(454), - TilemapCSVFile: __webpack_require__(1249), - TilemapImpactFile: __webpack_require__(1250), - TilemapJSONFile: __webpack_require__(1251), - UnityAtlasFile: __webpack_require__(1252), - VideoFile: __webpack_require__(1253), - XMLFile: __webpack_require__(212) + MultiAtlasFile: __webpack_require__(1237), + MultiScriptFile: __webpack_require__(1238), + PackFile: __webpack_require__(1239), + PluginFile: __webpack_require__(1240), + SceneFile: __webpack_require__(1241), + ScenePluginFile: __webpack_require__(1242), + ScriptFile: __webpack_require__(451), + SpriteSheetFile: __webpack_require__(1243), + SVGFile: __webpack_require__(1244), + TextFile: __webpack_require__(452), + TilemapCSVFile: __webpack_require__(1245), + TilemapImpactFile: __webpack_require__(1246), + TilemapJSONFile: __webpack_require__(1247), + UnityAtlasFile: __webpack_require__(1248), + VideoFile: __webpack_require__(1249), + XMLFile: __webpack_require__(211) }; /***/ }), -/* 1231 */ +/* 1227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164788,7 +164646,7 @@ module.exports = { var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var LoaderEvents = __webpack_require__(81); +var LoaderEvents = __webpack_require__(80); /** * @classdesc @@ -164979,7 +164837,7 @@ module.exports = AnimationJSONFile; /***/ }), -/* 1232 */ +/* 1228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165228,7 +165086,7 @@ module.exports = AtlasJSONFile; /***/ }), -/* 1233 */ +/* 1229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165243,7 +165101,7 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var XMLFile = __webpack_require__(212); +var XMLFile = __webpack_require__(211); /** * @classdesc @@ -165471,7 +165329,7 @@ module.exports = AtlasXMLFile; /***/ }), -/* 1234 */ +/* 1230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165480,7 +165338,7 @@ module.exports = AtlasXMLFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AudioFile = __webpack_require__(451); +var AudioFile = __webpack_require__(449); var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); @@ -165761,7 +165619,7 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio /***/ }), -/* 1235 */ +/* 1231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165771,8 +165629,8 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -165943,7 +165801,7 @@ module.exports = BinaryFile; /***/ }), -/* 1236 */ +/* 1232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165958,8 +165816,8 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ParseXMLBitmapFont = __webpack_require__(183); -var XMLFile = __webpack_require__(212); +var ParseXMLBitmapFont = __webpack_require__(182); +var XMLFile = __webpack_require__(211); /** * @classdesc @@ -166186,7 +166044,7 @@ module.exports = BitmapFontFile; /***/ }), -/* 1237 */ +/* 1233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166196,8 +166054,8 @@ module.exports = BitmapFontFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -166354,7 +166212,7 @@ module.exports = CSSFile; /***/ }), -/* 1238 */ +/* 1234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166364,12 +166222,12 @@ module.exports = CSSFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var Shader = __webpack_require__(350); +var Shader = __webpack_require__(348); /** * @classdesc @@ -166765,7 +166623,7 @@ module.exports = GLSLFile; /***/ }), -/* 1239 */ +/* 1235 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166775,8 +166633,8 @@ module.exports = GLSLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -166940,7 +166798,7 @@ module.exports = HTMLFile; /***/ }), -/* 1240 */ +/* 1236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166950,8 +166808,8 @@ module.exports = HTMLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -167198,7 +167056,7 @@ module.exports = HTMLTextureFile; /***/ }), -/* 1241 */ +/* 1237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167531,7 +167389,7 @@ module.exports = MultiAtlasFile; /***/ }), -/* 1242 */ +/* 1238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167545,7 +167403,7 @@ var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ScriptFile = __webpack_require__(453); +var ScriptFile = __webpack_require__(451); /** * @classdesc @@ -167748,7 +167606,7 @@ module.exports = MultiScriptFile; /***/ }), -/* 1243 */ +/* 1239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167758,7 +167616,7 @@ module.exports = MultiScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); +var CONST = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); @@ -167966,7 +167824,7 @@ module.exports = PackFile; /***/ }), -/* 1244 */ +/* 1240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167976,8 +167834,8 @@ module.exports = PackFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168178,7 +168036,7 @@ module.exports = PluginFile; /***/ }), -/* 1245 */ +/* 1241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168188,8 +168046,8 @@ module.exports = PluginFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168399,7 +168257,7 @@ module.exports = SceneFile; /***/ }), -/* 1246 */ +/* 1242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168409,8 +168267,8 @@ module.exports = SceneFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168605,7 +168463,7 @@ module.exports = ScenePluginFile; /***/ }), -/* 1247 */ +/* 1243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168796,7 +168654,7 @@ module.exports = SpriteSheetFile; /***/ }), -/* 1248 */ +/* 1244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168806,8 +168664,8 @@ module.exports = SpriteSheetFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -169135,7 +168993,7 @@ module.exports = SVGFile; /***/ }), -/* 1249 */ +/* 1245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169145,8 +169003,8 @@ module.exports = SVGFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -169330,7 +169188,7 @@ module.exports = TilemapCSVFile; /***/ }), -/* 1250 */ +/* 1246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169486,7 +169344,7 @@ module.exports = TilemapImpactFile; /***/ }), -/* 1251 */ +/* 1247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169642,7 +169500,7 @@ module.exports = TilemapJSONFile; /***/ }), -/* 1252 */ +/* 1248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169657,7 +169515,7 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var TextFile = __webpack_require__(454); +var TextFile = __webpack_require__(452); /** * @classdesc @@ -169884,7 +169742,7 @@ module.exports = UnityAtlasFile; /***/ }), -/* 1253 */ +/* 1249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169894,10 +169752,10 @@ module.exports = UnityAtlasFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var File = __webpack_require__(20); +var CONST = __webpack_require__(10); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); -var GetURL = __webpack_require__(133); +var GetURL = __webpack_require__(132); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -170275,7 +170133,7 @@ module.exports = VideoFile; /***/ }), -/* 1254 */ +/* 1250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170285,15 +170143,15 @@ module.exports = VideoFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var CustomSet = __webpack_require__(128); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(81); +var CONST = __webpack_require__(20); +var CustomSet = __webpack_require__(127); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(80); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var XHRSettings = __webpack_require__(134); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var XHRSettings = __webpack_require__(133); /** * @classdesc @@ -171353,7 +171211,7 @@ module.exports = LoaderPlugin; /***/ }), -/* 1255 */ +/* 1251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171363,7 +171221,7 @@ module.exports = LoaderPlugin; */ var CONST = __webpack_require__(50); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * @callback ArcadePhysicsCallback @@ -171378,18 +171236,18 @@ var Extend = __webpack_require__(17); var Arcade = { - ArcadePhysics: __webpack_require__(1256), - Body: __webpack_require__(461), - Collider: __webpack_require__(462), - Components: __webpack_require__(213), - Events: __webpack_require__(214), - Factory: __webpack_require__(455), - Group: __webpack_require__(457), - Image: __webpack_require__(456), - Sprite: __webpack_require__(135), - StaticBody: __webpack_require__(467), - StaticGroup: __webpack_require__(458), - World: __webpack_require__(460) + ArcadePhysics: __webpack_require__(1252), + Body: __webpack_require__(459), + Collider: __webpack_require__(460), + Components: __webpack_require__(212), + Events: __webpack_require__(213), + Factory: __webpack_require__(453), + Group: __webpack_require__(455), + Image: __webpack_require__(454), + Sprite: __webpack_require__(134), + StaticBody: __webpack_require__(465), + StaticGroup: __webpack_require__(456), + World: __webpack_require__(458) }; @@ -171400,7 +171258,7 @@ module.exports = Arcade; /***/ }), -/* 1256 */ +/* 1252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171412,16 +171270,16 @@ module.exports = Arcade; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var DistanceBetween = __webpack_require__(53); -var DistanceSquared = __webpack_require__(317); -var Factory = __webpack_require__(455); +var DistanceSquared = __webpack_require__(315); +var Factory = __webpack_require__(453); var GetFastValue = __webpack_require__(2); -var Merge = __webpack_require__(121); -var OverlapCirc = __webpack_require__(1269); -var OverlapRect = __webpack_require__(459); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var Merge = __webpack_require__(120); +var OverlapCirc = __webpack_require__(1265); +var OverlapRect = __webpack_require__(457); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); var Vector2 = __webpack_require__(3); -var World = __webpack_require__(460); +var World = __webpack_require__(458); /** * @classdesc @@ -172089,7 +171947,7 @@ module.exports = ArcadePhysics; /***/ }), -/* 1257 */ +/* 1253 */ /***/ (function(module, exports) { /** @@ -172164,7 +172022,7 @@ module.exports = Acceleration; /***/ }), -/* 1258 */ +/* 1254 */ /***/ (function(module, exports) { /** @@ -172246,7 +172104,7 @@ module.exports = Angular; /***/ }), -/* 1259 */ +/* 1255 */ /***/ (function(module, exports) { /** @@ -172345,7 +172203,7 @@ module.exports = Bounce; /***/ }), -/* 1260 */ +/* 1256 */ /***/ (function(module, exports) { /** @@ -172472,7 +172330,7 @@ module.exports = Debug; /***/ }), -/* 1261 */ +/* 1257 */ /***/ (function(module, exports) { /** @@ -172605,7 +172463,7 @@ module.exports = Drag; /***/ }), -/* 1262 */ +/* 1258 */ /***/ (function(module, exports) { /** @@ -172729,7 +172587,7 @@ module.exports = Enable; /***/ }), -/* 1263 */ +/* 1259 */ /***/ (function(module, exports) { /** @@ -172807,7 +172665,7 @@ module.exports = Friction; /***/ }), -/* 1264 */ +/* 1260 */ /***/ (function(module, exports) { /** @@ -172885,7 +172743,7 @@ module.exports = Gravity; /***/ }), -/* 1265 */ +/* 1261 */ /***/ (function(module, exports) { /** @@ -172927,7 +172785,7 @@ module.exports = Immovable; /***/ }), -/* 1266 */ +/* 1262 */ /***/ (function(module, exports) { /** @@ -172967,7 +172825,7 @@ module.exports = Mass; /***/ }), -/* 1267 */ +/* 1263 */ /***/ (function(module, exports) { /** @@ -173049,7 +172907,7 @@ module.exports = Size; /***/ }), -/* 1268 */ +/* 1264 */ /***/ (function(module, exports) { /** @@ -173148,13 +173006,13 @@ module.exports = Velocity; /***/ }), -/* 1269 */ +/* 1265 */ /***/ (function(module, exports, __webpack_require__) { -var OverlapRect = __webpack_require__(459); +var OverlapRect = __webpack_require__(457); var Circle = __webpack_require__(63); -var CircleToCircle = __webpack_require__(201); -var CircleToRectangle = __webpack_require__(202); +var CircleToCircle = __webpack_require__(200); +var CircleToRectangle = __webpack_require__(201); /** * This method will search the given circular area and return an array of all physics bodies that @@ -173216,7 +173074,7 @@ module.exports = OverlapCirc; /***/ }), -/* 1270 */ +/* 1266 */ /***/ (function(module, exports) { /** @@ -173249,7 +173107,7 @@ module.exports = 'collide'; /***/ }), -/* 1271 */ +/* 1267 */ /***/ (function(module, exports) { /** @@ -173282,7 +173140,7 @@ module.exports = 'overlap'; /***/ }), -/* 1272 */ +/* 1268 */ /***/ (function(module, exports) { /** @@ -173305,7 +173163,7 @@ module.exports = 'pause'; /***/ }), -/* 1273 */ +/* 1269 */ /***/ (function(module, exports) { /** @@ -173328,7 +173186,7 @@ module.exports = 'resume'; /***/ }), -/* 1274 */ +/* 1270 */ /***/ (function(module, exports) { /** @@ -173360,7 +173218,7 @@ module.exports = 'tilecollide'; /***/ }), -/* 1275 */ +/* 1271 */ /***/ (function(module, exports) { /** @@ -173392,7 +173250,7 @@ module.exports = 'tileoverlap'; /***/ }), -/* 1276 */ +/* 1272 */ /***/ (function(module, exports) { /** @@ -173424,7 +173282,7 @@ module.exports = 'worldbounds'; /***/ }), -/* 1277 */ +/* 1273 */ /***/ (function(module, exports) { /** @@ -173450,7 +173308,7 @@ module.exports = 'worldstep'; /***/ }), -/* 1278 */ +/* 1274 */ /***/ (function(module, exports) { /** @@ -173491,7 +173349,7 @@ module.exports = ProcessTileCallbacks; /***/ }), -/* 1279 */ +/* 1275 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173500,9 +173358,9 @@ module.exports = ProcessTileCallbacks; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileCheckX = __webpack_require__(1280); -var TileCheckY = __webpack_require__(1282); -var TileIntersectsBody = __webpack_require__(466); +var TileCheckX = __webpack_require__(1276); +var TileCheckY = __webpack_require__(1278); +var TileIntersectsBody = __webpack_require__(464); /** * The core separation function to separate a physics body and a tile. @@ -173611,7 +173469,7 @@ module.exports = SeparateTile; /***/ }), -/* 1280 */ +/* 1276 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173620,7 +173478,7 @@ module.exports = SeparateTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationX = __webpack_require__(1281); +var ProcessTileSeparationX = __webpack_require__(1277); /** * Check the body against the given tile on the X axis. @@ -173701,7 +173559,7 @@ module.exports = TileCheckX; /***/ }), -/* 1281 */ +/* 1277 */ /***/ (function(module, exports) { /** @@ -173748,7 +173606,7 @@ module.exports = ProcessTileSeparationX; /***/ }), -/* 1282 */ +/* 1278 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173757,7 +173615,7 @@ module.exports = ProcessTileSeparationX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationY = __webpack_require__(1283); +var ProcessTileSeparationY = __webpack_require__(1279); /** * Check the body against the given tile on the Y axis. @@ -173838,7 +173696,7 @@ module.exports = TileCheckY; /***/ }), -/* 1283 */ +/* 1279 */ /***/ (function(module, exports) { /** @@ -173885,7 +173743,7 @@ module.exports = ProcessTileSeparationY; /***/ }), -/* 1284 */ +/* 1280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173894,7 +173752,7 @@ module.exports = ProcessTileSeparationY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapX = __webpack_require__(463); +var GetOverlapX = __webpack_require__(461); /** * Separates two overlapping bodies on the X-axis (horizontally). @@ -173976,7 +173834,7 @@ module.exports = SeparateX; /***/ }), -/* 1285 */ +/* 1281 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173985,7 +173843,7 @@ module.exports = SeparateX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapY = __webpack_require__(464); +var GetOverlapY = __webpack_require__(462); /** * Separates two overlapping bodies on the Y-axis (vertically). @@ -174067,6 +173925,10 @@ module.exports = SeparateY; /***/ }), +/* 1282 */, +/* 1283 */, +/* 1284 */, +/* 1285 */, /* 1286 */, /* 1287 */, /* 1288 */, @@ -174075,11 +173937,7 @@ module.exports = SeparateY; /* 1291 */, /* 1292 */, /* 1293 */, -/* 1294 */, -/* 1295 */, -/* 1296 */, -/* 1297 */, -/* 1298 */ +/* 1294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174094,17 +173952,17 @@ module.exports = SeparateY; module.exports = { - BasePlugin: __webpack_require__(469), - DefaultPlugins: __webpack_require__(171), - PluginCache: __webpack_require__(23), - PluginManager: __webpack_require__(367), - ScenePlugin: __webpack_require__(1299) + BasePlugin: __webpack_require__(467), + DefaultPlugins: __webpack_require__(170), + PluginCache: __webpack_require__(24), + PluginManager: __webpack_require__(365), + ScenePlugin: __webpack_require__(1295) }; /***/ }), -/* 1299 */ +/* 1295 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174113,9 +173971,9 @@ module.exports = { * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} */ -var BasePlugin = __webpack_require__(469); +var BasePlugin = __webpack_require__(467); var Class = __webpack_require__(0); -var SceneEvents = __webpack_require__(21); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -174232,7 +174090,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1300 */ +/* 1296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174241,8 +174099,8 @@ module.exports = ScenePlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var CONST = __webpack_require__(173); +var Extend = __webpack_require__(18); +var CONST = __webpack_require__(172); /** * @namespace Phaser.Scale @@ -174270,12 +174128,12 @@ var CONST = __webpack_require__(173); var Scale = { - Center: __webpack_require__(356), - Events: __webpack_require__(91), - Orientation: __webpack_require__(357), - ScaleManager: __webpack_require__(368), - ScaleModes: __webpack_require__(358), - Zoom: __webpack_require__(359) + Center: __webpack_require__(354), + Events: __webpack_require__(90), + Orientation: __webpack_require__(355), + ScaleManager: __webpack_require__(366), + ScaleModes: __webpack_require__(356), + Zoom: __webpack_require__(357) }; @@ -174288,7 +174146,7 @@ module.exports = Scale; /***/ }), -/* 1301 */ +/* 1297 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174297,8 +174155,8 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(120); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(119); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Scenes @@ -174306,11 +174164,11 @@ var Extend = __webpack_require__(17); var Scene = { - Events: __webpack_require__(21), - SceneManager: __webpack_require__(370), - ScenePlugin: __webpack_require__(1302), - Settings: __webpack_require__(372), - Systems: __webpack_require__(176) + Events: __webpack_require__(22), + SceneManager: __webpack_require__(368), + ScenePlugin: __webpack_require__(1298), + Settings: __webpack_require__(370), + Systems: __webpack_require__(175) }; @@ -174321,7 +174179,7 @@ module.exports = Scene; /***/ }), -/* 1302 */ +/* 1298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174330,11 +174188,11 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Events = __webpack_require__(21); +var Events = __webpack_require__(22); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); +var PluginCache = __webpack_require__(24); /** * @classdesc @@ -175331,7 +175189,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1303 */ +/* 1299 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175346,18 +175204,18 @@ module.exports = ScenePlugin; module.exports = { - List: __webpack_require__(124), - Map: __webpack_require__(157), - ProcessQueue: __webpack_require__(182), - RTree: __webpack_require__(465), - Set: __webpack_require__(128), - Size: __webpack_require__(369) + List: __webpack_require__(123), + Map: __webpack_require__(156), + ProcessQueue: __webpack_require__(181), + RTree: __webpack_require__(463), + Set: __webpack_require__(127), + Size: __webpack_require__(367) }; /***/ }), -/* 1304 */ +/* 1300 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175366,8 +175224,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var FilterMode = __webpack_require__(1305); +var Extend = __webpack_require__(18); +var FilterMode = __webpack_require__(1301); /** * @namespace Phaser.Textures @@ -175393,14 +175251,14 @@ var FilterMode = __webpack_require__(1305); var Textures = { - CanvasTexture: __webpack_require__(374), - Events: __webpack_require__(116), + CanvasTexture: __webpack_require__(372), + Events: __webpack_require__(115), FilterMode: FilterMode, - Frame: __webpack_require__(93), - Parsers: __webpack_require__(376), - Texture: __webpack_require__(178), - TextureManager: __webpack_require__(373), - TextureSource: __webpack_require__(375) + Frame: __webpack_require__(92), + Parsers: __webpack_require__(374), + Texture: __webpack_require__(177), + TextureManager: __webpack_require__(371), + TextureSource: __webpack_require__(373) }; @@ -175410,7 +175268,7 @@ module.exports = Textures; /***/ }), -/* 1305 */ +/* 1301 */ /***/ (function(module, exports) { /** @@ -175454,7 +175312,7 @@ module.exports = CONST; /***/ }), -/* 1306 */ +/* 1302 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175469,30 +175327,30 @@ module.exports = CONST; module.exports = { - Components: __webpack_require__(136), + Components: __webpack_require__(135), Parsers: __webpack_require__(1335), Formats: __webpack_require__(33), - ImageCollection: __webpack_require__(484), - ParseToTilemap: __webpack_require__(224), - Tile: __webpack_require__(73), - Tilemap: __webpack_require__(493), + ImageCollection: __webpack_require__(480), + ParseToTilemap: __webpack_require__(222), + Tile: __webpack_require__(72), + Tilemap: __webpack_require__(489), TilemapCreator: __webpack_require__(1344), TilemapFactory: __webpack_require__(1345), - Tileset: __webpack_require__(138), + Tileset: __webpack_require__(137), - LayerData: __webpack_require__(101), - MapData: __webpack_require__(102), - ObjectLayer: __webpack_require__(487), + LayerData: __webpack_require__(100), + MapData: __webpack_require__(101), + ObjectLayer: __webpack_require__(483), - DynamicTilemapLayer: __webpack_require__(494), - StaticTilemapLayer: __webpack_require__(495) + DynamicTilemapLayer: __webpack_require__(490), + StaticTilemapLayer: __webpack_require__(491) }; /***/ }), -/* 1307 */ +/* 1303 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175501,7 +175359,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); var CalculateFacesWithin = __webpack_require__(51); /** @@ -175557,7 +175415,7 @@ module.exports = Copy; /***/ }), -/* 1308 */ +/* 1304 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175566,9 +175424,9 @@ module.exports = Copy; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldXY = __webpack_require__(217); -var GetTilesWithin = __webpack_require__(24); -var ReplaceByIndex = __webpack_require__(472); + +var GetTilesWithin = __webpack_require__(25); +var ReplaceByIndex = __webpack_require__(468); /** * Creates a Sprite for every object matching the given tile indexes in the layer. You can @@ -175609,7 +175467,7 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came if (indexes.indexOf(tile.index) !== -1) { - var point = TileToWorldXY(tile.x,tile.y, undefined, camera, layer); + var point = tilemapLayer.tileToWorldXY(tile.x,tile.y, undefined, camera); spriteConfig.x = point.x; spriteConfig.y = point.y; var sprite = scene.make.sprite(spriteConfig); @@ -175641,7 +175499,7 @@ module.exports = CreateFromTiles; /***/ }), -/* 1309 */ +/* 1305 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175650,9 +175508,10 @@ module.exports = CreateFromTiles; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SnapFloor = __webpack_require__(92); -var SnapCeil = __webpack_require__(326); -var CheckIsoBounds = __webpack_require__(1310); +var CONST = __webpack_require__(10); +var SnapFloor = __webpack_require__(91); +var SnapCeil = __webpack_require__(324); +var CheckIsoBounds = __webpack_require__(1306); /** * Returns the tiles in the given layer that are within the camera's viewport. This is used internally. @@ -175694,7 +175553,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) { - if (layer.orientation === 'orthogonal' || layer.orientation === 'staggered' || layer.orientation === 'hexagonal') + if (layer.orientation === CONST.ORTHOGONAL || layer.orientation === CONST.STAGGERED || layer.orientation === CONST.HEXAGONAL) { // Camera world view bounds, snapped for scaled tile size // Cull Padding values are given in tiles, not pixels @@ -175704,17 +175563,17 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var boundsTop; var boundsBottom; - if (layer.orientation === 'orthogonal') + if (layer.orientation === CONST.ORTHOGONAL) { boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY; } - else if (layer.orientation === 'staggered') + else if (layer.orientation === CONST.STAGGERED) { boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH / 2, 0, true) - tilemapLayer.cullPaddingY; boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH / 2, 0, true) + tilemapLayer.cullPaddingY; } - else if (layer.orientation === 'hexagonal') + else if (layer.orientation === CONST.HEXAGONAL) { var sidel = layer.hexSideLength; var rowH = ((tileH - sidel) / 2 + sidel); @@ -175738,7 +175597,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var tile; - if (layer.orientation === 'orthogonal' || layer.orientation === 'staggered' || layer.orientation === 'hexagonal') + if (layer.orientation === CONST.ORTHOGONAL || layer.orientation === CONST.STAGGERED || layer.orientation === CONST.HEXAGONAL) { if (renderOrder === 0) @@ -175818,7 +175677,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) } } } - else if (layer.orientation === 'isometric') + else if (layer.orientation === CONST.ISOMETRIC) { if (renderOrder === 0) { @@ -175923,7 +175782,7 @@ module.exports = CullTiles; /***/ }), -/* 1310 */ +/* 1306 */ /***/ (function(module, exports) { /** @@ -175963,7 +175822,7 @@ module.exports = CheckIsoBounds; /***/ }), -/* 1311 */ +/* 1307 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175972,7 +175831,7 @@ module.exports = CheckIsoBounds; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); var CalculateFacesWithin = __webpack_require__(51); var SetTileCollision = __webpack_require__(71); @@ -176017,7 +175876,7 @@ module.exports = Fill; /***/ }), -/* 1312 */ +/* 1308 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176026,7 +175885,7 @@ module.exports = Fill; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given @@ -176065,7 +175924,7 @@ module.exports = FilterTiles; /***/ }), -/* 1313 */ +/* 1309 */ /***/ (function(module, exports) { /** @@ -176153,7 +176012,7 @@ module.exports = FindByIndex; /***/ }), -/* 1314 */ +/* 1310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176162,7 +176021,7 @@ module.exports = FindByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * @callback FindTileCallback @@ -176207,7 +176066,7 @@ module.exports = FindTile; /***/ }), -/* 1315 */ +/* 1311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176216,7 +176075,7 @@ module.exports = FindTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * @callback EachTileCallback @@ -176257,7 +176116,7 @@ module.exports = ForEachTile; /***/ }), -/* 1316 */ +/* 1312 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176266,8 +176125,7 @@ module.exports = ForEachTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); -var WorldToTileXY = __webpack_require__(72); +var GetTileAt = __webpack_require__(136); /** * Gets a tile at the given world coordinates from the given layer. @@ -176287,7 +176145,7 @@ var WorldToTileXY = __webpack_require__(72); */ var GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return GetTileAt(tileX, tileY, nonNull, layer); @@ -176297,7 +176155,7 @@ module.exports = GetTileAtWorldXY; /***/ }), -/* 1317 */ +/* 1313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176306,12 +176164,11 @@ module.exports = GetTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Geom = __webpack_require__(425); -var GetTilesWithin = __webpack_require__(24); -var Intersects = __webpack_require__(426); +var Geom = __webpack_require__(423); +var GetTilesWithin = __webpack_require__(25); +var Intersects = __webpack_require__(424); var NOOP = __webpack_require__(1); -var TileToWorldXY = __webpack_require__(217); -var WorldToTileXY = __webpack_require__(72); + var TriangleToRectangle = function (triangle, rect) { @@ -176351,12 +176208,12 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) else if (shape instanceof Geom.Line) { intersectTest = Intersects.LineToRectangle; } // Top left corner of the shapes's bounding box, rounded down to include partial tiles - var pointStart = WorldToTileXY(shape.left, shape.top, true, undefined, camera, layer); + var pointStart = layer.tilemapLayer.worldToTileXY(shape.left, shape.top, true, undefined, camera); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles - var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, undefined, camera, layer); + var pointEnd = layer.tilemapLayer.worldToTileXY(shape.right, shape.bottom, true, undefined, camera); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -176379,7 +176236,7 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) for (var i = 0; i < tiles.length; i++) { var tile = tiles[i]; - var point = TileToWorldXY(tile.x, tile.y, undefined, camera, layer); + var point = layer.tilemapLayer.tileToWorldXY(tile.x, tile.y, undefined, camera); tileRect.x = point.x; tileRect.y = point.y; if (intersectTest(shape, tileRect)) @@ -176395,7 +176252,7 @@ module.exports = GetTilesWithinShape; /***/ }), -/* 1318 */ +/* 1314 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176404,8 +176261,7 @@ module.exports = GetTilesWithinShape; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var WorldToTileXY = __webpack_require__(72); +var GetTilesWithin = __webpack_require__(25); /** * Gets the tiles in the given rectangular area (in world coordinates) of the layer. @@ -176431,12 +176287,12 @@ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOp { // Top left corner of the rect, rounded down to include partial tiles - var pointStart = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var pointStart = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the rect, rounded up to include partial tiles - var pointEnd = WorldToTileXY(worldX + width, worldY + height, false, undefined, camera, layer); + var pointEnd = layer.tilemapLayer.worldToTileXY(worldX + width, worldY + height, false, undefined, camera); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -176447,7 +176303,7 @@ module.exports = GetTilesWithinWorldXY; /***/ }), -/* 1319 */ +/* 1315 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176456,8 +176312,7 @@ module.exports = GetTilesWithinWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasTileAt = __webpack_require__(475); -var WorldToTileXY = __webpack_require__(72); +var HasTileAt = __webpack_require__(469); /** * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns @@ -176476,7 +176331,7 @@ var WorldToTileXY = __webpack_require__(72); */ var HasTileAtWorldXY = function (worldX, worldY, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return HasTileAt(tileX, tileY, layer); @@ -176486,7 +176341,7 @@ module.exports = HasTileAtWorldXY; /***/ }), -/* 1320 */ +/* 1316 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176495,8 +176350,7 @@ module.exports = HasTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PutTileAt = __webpack_require__(218); -var WorldToTileXY = __webpack_require__(72); +var PutTileAt = __webpack_require__(216); /** * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either @@ -176519,7 +176373,7 @@ var WorldToTileXY = __webpack_require__(72); */ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return PutTileAt(tile, tileX, tileY, recalculateFaces, layer); @@ -176529,7 +176383,7 @@ module.exports = PutTileAtWorldXY; /***/ }), -/* 1321 */ +/* 1317 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176539,7 +176393,7 @@ module.exports = PutTileAtWorldXY; */ var CalculateFacesWithin = __webpack_require__(51); -var PutTileAt = __webpack_require__(218); +var PutTileAt = __webpack_require__(216); /** * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified @@ -176594,7 +176448,7 @@ module.exports = PutTilesAt; /***/ }), -/* 1322 */ +/* 1318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176603,8 +176457,8 @@ module.exports = PutTilesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var GetRandom = __webpack_require__(181); +var GetTilesWithin = __webpack_require__(25); +var GetRandom = __webpack_require__(180); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -176652,7 +176506,7 @@ module.exports = Randomize; /***/ }), -/* 1323 */ +/* 1319 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176661,8 +176515,8 @@ module.exports = Randomize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RemoveTileAt = __webpack_require__(476); -var WorldToTileXY = __webpack_require__(72); +var RemoveTileAt = __webpack_require__(470); + /** * Removes the tile at the given world coordinates in the specified layer and updates the layer's @@ -176683,7 +176537,7 @@ var WorldToTileXY = __webpack_require__(72); */ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer); @@ -176693,7 +176547,7 @@ module.exports = RemoveTileAtWorldXY; /***/ }), -/* 1324 */ +/* 1320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176702,8 +176556,8 @@ module.exports = RemoveTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var Color = __webpack_require__(351); +var GetTilesWithin = __webpack_require__(25); +var Color = __webpack_require__(349); var defaultTileColor = new Color(105, 210, 231, 150); var defaultCollidingTileColor = new Color(243, 134, 48, 200); @@ -176782,7 +176636,7 @@ module.exports = RenderDebug; /***/ }), -/* 1325 */ +/* 1321 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176793,7 +176647,7 @@ module.exports = RenderDebug; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on the given tile or tiles within a layer by index. You can pass in either a @@ -176851,7 +176705,7 @@ module.exports = SetCollision; /***/ }), -/* 1326 */ +/* 1322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176862,7 +176716,7 @@ module.exports = SetCollision; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on a range of tiles in a layer whose index is between the specified `start` and @@ -176926,7 +176780,7 @@ module.exports = SetCollisionBetween; /***/ }), -/* 1327 */ +/* 1323 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176937,7 +176791,7 @@ module.exports = SetCollisionBetween; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on all tiles in the given layer, except for tiles that have an index specified in @@ -176983,7 +176837,7 @@ module.exports = SetCollisionByExclusion; /***/ }), -/* 1328 */ +/* 1324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176994,7 +176848,7 @@ module.exports = SetCollisionByExclusion; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var HasValue = __webpack_require__(105); +var HasValue = __webpack_require__(104); /** * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property @@ -177058,7 +176912,7 @@ module.exports = SetCollisionByProperty; /***/ }), -/* 1329 */ +/* 1325 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177118,7 +176972,7 @@ module.exports = SetCollisionFromCollisionGroup; /***/ }), -/* 1330 */ +/* 1326 */ /***/ (function(module, exports) { /** @@ -177165,7 +177019,7 @@ module.exports = SetTileIndexCallback; /***/ }), -/* 1331 */ +/* 1327 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177174,7 +177028,7 @@ module.exports = SetTileIndexCallback; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer. @@ -177208,7 +177062,7 @@ module.exports = SetTileLocationCallback; /***/ }), -/* 1332 */ +/* 1328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177217,8 +177071,8 @@ module.exports = SetTileLocationCallback; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var ShuffleArray = __webpack_require__(111); +var GetTilesWithin = __webpack_require__(25); +var ShuffleArray = __webpack_require__(110); /** * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given @@ -177253,7 +177107,7 @@ module.exports = Shuffle; /***/ }), -/* 1333 */ +/* 1329 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177262,7 +177116,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching @@ -177304,7 +177158,7 @@ module.exports = SwapByIndex; /***/ }), -/* 1334 */ +/* 1330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177313,7 +177167,428 @@ module.exports = SwapByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var CONST = __webpack_require__(10); + +/** + * Converts from orthogonal tile X coordinates (tile units) to world X coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldX + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var OrthoTileToWorldX = function (tileX, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + } + + return layerWorldX + tileX * tileWidth; + + +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the TileToWorldXY function.'); + return null; +}; + +var TileToWorldX = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoTileToWorldX; + default: + return nullFunc; + } + +}; + +module.exports = TileToWorldX; + + +/***/ }), +/* 1331 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); +var Vector2 = __webpack_require__(3); + +/** + * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.OrthoTileToWorldXY + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var OrthoTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileHeight = layer.baseTileHeight; + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + } + + point.x = layerWorldX + tileX * tileWidth; + point.y = layerWorldY + tileY * tileHeight; + + + + return point; +}; + +/** + * Converts from isometric tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.IsoTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var IsoTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); + point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); + + + return point; +}; + +/** + * Converts from staggered tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.StagTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var StagTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); + point.y = layerWorldY + tileY * (tileHeight / 2); + + return point; +}; + +/** + * Converts from hexagonal tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.HexTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var HexTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // similar to staggered, because Tiled uses the oddr representation. + point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); + point.y = layerWorldY + tileY * rowHeight; + + return point; +}; + +var TileToWorldXY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagTileToWorldXY; + case CONST.ISOMETRIC: + return IsoTileToWorldXY; + case CONST.HEXAGONAL: + return HexTileToWorldXY; + default: + return OrthoTileToWorldXY; + } + +}; + +module.exports = TileToWorldXY; + + +/***/ }), +/* 1332 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + + +var CONST = __webpack_require__(10); + +/** + * Converts from orthogonal tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var OrthoTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + return layerWorldY + tileY * tileHeight; + +}; + + + +/** + * Converts from staggered tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.StagTileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var StagTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + return layerWorldY + tileY * (tileHeight / 2); + +}; + + +/** + * Converts from hexagonal tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.HexTileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var HexTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + var sidel = layer.tilemapLayer.tilemap.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // same as staggered + return layerWorldY + tileY * rowHeight; +}; + + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the TileToWorldXY function.'); + return null; +}; + +var TileToWorldY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagTileToWorldY; + case CONST.ISOMETRIC: + return nullFunc; + case CONST.HEXAGONAL: + return HexTileToWorldY; + default: + return OrthoTileToWorldY; + + } + +}; + +module.exports = TileToWorldY; + + +/***/ }), +/* 1333 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var GetTilesWithin = __webpack_require__(25); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -177383,6 +177658,243 @@ var WeightedRandomize = function (tileX, tileY, width, height, weightedIndexes, module.exports = WeightedRandomize; +/***/ }), +/* 1334 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); +var WorldToTileX = __webpack_require__(471).func; +var WorldToTileY = __webpack_require__(472).func; +var Vector2 = __webpack_require__(3); + +/** + * Converts from world XY coordinates (pixels) to orthogonal tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.OrthoWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var OrthoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + point.x = WorldToTileX(worldX, snapToFloor, camera, layer); + point.y = WorldToTileY(worldY, snapToFloor, camera, layer); + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to isometric tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.IsoWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var IsoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + point.x = snapToFloor + ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) + : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) + : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); + + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to hexagonal tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.HexWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var HexWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // similar to staggered, because Tiled uses the oddr representation. + point.y = snapToFloor + ? Math.floor((worldY / rowHeight)) + : (worldY / rowHeight); + point.x = snapToFloor + ? Math.floor((worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth) + : (worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth; + + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to staggered tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.StagWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var StagWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2))) + : (worldY / (tileHeight / 2)); + point.x = snapToFloor + ? Math.floor((worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth) + : (worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth; + + + } + + return point; +}; + +var WorldToTileXY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagWorldToTileXY; + + case CONST.ISOMETRIC: + return IsoWorldToTileXY; + + case CONST.HEXAGONAL: + return HexWorldToTileXY; + + default: + return OrthoWorldToTileXY; + + } + +}; + +module.exports = WorldToTileXY; + + /***/ }), /* 1335 */ /***/ (function(module, exports, __webpack_require__) { @@ -177399,9 +177911,9 @@ module.exports = WeightedRandomize; module.exports = { - Parse: __webpack_require__(477), - Parse2DArray: __webpack_require__(220), - ParseCSV: __webpack_require__(478), + Parse: __webpack_require__(473), + Parse2DArray: __webpack_require__(218), + ParseCSV: __webpack_require__(474), Impact: __webpack_require__(1336), Tiled: __webpack_require__(1337) @@ -177425,9 +177937,9 @@ module.exports = { module.exports = { - ParseTileLayers: __webpack_require__(491), - ParseTilesets: __webpack_require__(492), - ParseWeltmeister: __webpack_require__(490) + ParseTileLayers: __webpack_require__(487), + ParseTilesets: __webpack_require__(488), + ParseWeltmeister: __webpack_require__(486) }; @@ -177448,16 +177960,16 @@ module.exports = { module.exports = { - AssignTileProperties: __webpack_require__(489), - Base64Decode: __webpack_require__(481), - BuildTilesetIndex: __webpack_require__(488), - ParseGID: __webpack_require__(221), - ParseImageLayers: __webpack_require__(482), - ParseJSONTiled: __webpack_require__(479), - ParseObject: __webpack_require__(223), - ParseObjectLayers: __webpack_require__(486), - ParseTileLayers: __webpack_require__(480), - ParseTilesets: __webpack_require__(483) + AssignTileProperties: __webpack_require__(485), + Base64Decode: __webpack_require__(477), + BuildTilesetIndex: __webpack_require__(484), + ParseGID: __webpack_require__(219), + ParseImageLayers: __webpack_require__(478), + ParseJSONTiled: __webpack_require__(475), + ParseObject: __webpack_require__(221), + ParseObjectLayers: __webpack_require__(482), + ParseTileLayers: __webpack_require__(476), + ParseTilesets: __webpack_require__(479) }; @@ -177503,7 +178015,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ + var Utils = __webpack_require__(9); +var CONST = __webpack_require__(10); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -177577,7 +178091,7 @@ var DynamicTilemapLayerWebGLRenderer = function (renderer, src, interpolationPer var frameWidth = 0; var frameHeight = 0; - if (src.layer.orientation === 'isometric' || src.layer.orientation === 'staggered' || src.layer.orientation === 'hexagonal') + if (src.layer.orientation === CONST.ISOMETRIC || src.layer.orientation === CONST.STAGGERED || src.layer.orientation === CONST.HEXAGONAL) { // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. frameWidth = tileset.tileWidth; @@ -177624,7 +178138,7 @@ module.exports = DynamicTilemapLayerWebGLRenderer; /***/ }), /* 1340 */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { /** * @author Richard Davey @@ -177632,6 +178146,8 @@ module.exports = DynamicTilemapLayerWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ +var CONST = __webpack_require__(10); + /** * Renders this Game Object with the Canvas Renderer to the given Camera. * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera. @@ -177720,7 +178236,7 @@ var DynamicTilemapLayerCanvasRenderer = function (renderer, src, interpolationPe var width = tile.width; var height = tile.width; - if (src.layer.orientation === 'isometric' || src.layer.orientation === 'staggered' || src.layer.orientation === 'hexagonal') + if (src.layer.orientation === CONST.ISOMETRIC || src.layer.orientation === CONST.STAGGERED || src.layer.orientation === CONST.HEXAGONAL) { // we use the tileset width and height because in isometric and hexagonal maps the tileset's height is often different from the tilemap's. width = tileset.tileWidth; @@ -178012,8 +178528,8 @@ module.exports = StaticTilemapLayerCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var ParseToTilemap = __webpack_require__(224); +var GameObjectCreator = __webpack_require__(17); +var ParseToTilemap = __webpack_require__(222); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -178057,7 +178573,7 @@ GameObjectCreator.register('tilemap', function (config) */ var GameObjectFactory = __webpack_require__(5); -var ParseToTilemap = __webpack_require__(224); +var ParseToTilemap = __webpack_require__(222); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -178129,7 +178645,7 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt module.exports = { Clock: __webpack_require__(1347), - TimerEvent: __webpack_require__(496) + TimerEvent: __webpack_require__(492) }; @@ -178145,9 +178661,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var TimerEvent = __webpack_require__(496); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var TimerEvent = __webpack_require__(492); /** * @classdesc @@ -178550,8 +179066,8 @@ module.exports = Clock; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(88); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(87); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Tweens @@ -178560,12 +179076,12 @@ var Extend = __webpack_require__(17); var Tweens = { Builders: __webpack_require__(1349), - Events: __webpack_require__(229), + Events: __webpack_require__(227), TweenManager: __webpack_require__(1364), - Tween: __webpack_require__(228), - TweenData: __webpack_require__(230), - Timeline: __webpack_require__(502) + Tween: __webpack_require__(226), + TweenData: __webpack_require__(228), + Timeline: __webpack_require__(498) }; @@ -178591,17 +179107,17 @@ module.exports = Tweens; module.exports = { - GetBoolean: __webpack_require__(87), + GetBoolean: __webpack_require__(86), GetEaseFunction: __webpack_require__(67), - GetNewValue: __webpack_require__(139), - GetProps: __webpack_require__(497), - GetTargets: __webpack_require__(225), - GetTweens: __webpack_require__(498), - GetValueOp: __webpack_require__(226), - NumberTweenBuilder: __webpack_require__(499), - StaggerBuilder: __webpack_require__(500), - TimelineBuilder: __webpack_require__(501), - TweenBuilder: __webpack_require__(140) + GetNewValue: __webpack_require__(138), + GetProps: __webpack_require__(493), + GetTargets: __webpack_require__(223), + GetTweens: __webpack_require__(494), + GetValueOp: __webpack_require__(224), + NumberTweenBuilder: __webpack_require__(495), + StaggerBuilder: __webpack_require__(496), + TimelineBuilder: __webpack_require__(497), + TweenBuilder: __webpack_require__(139) }; @@ -179210,15 +179726,15 @@ module.exports = 'yoyo'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(118); +var ArrayRemove = __webpack_require__(117); var Class = __webpack_require__(0); -var NumberTweenBuilder = __webpack_require__(499); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var StaggerBuilder = __webpack_require__(500); -var TimelineBuilder = __webpack_require__(501); -var TWEEN_CONST = __webpack_require__(88); -var TweenBuilder = __webpack_require__(140); +var NumberTweenBuilder = __webpack_require__(495); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var StaggerBuilder = __webpack_require__(496); +var TimelineBuilder = __webpack_require__(497); +var TWEEN_CONST = __webpack_require__(87); +var TweenBuilder = __webpack_require__(139); /** * @classdesc @@ -179988,7 +180504,7 @@ module.exports = TweenManager; module.exports = { - Array: __webpack_require__(179), + Array: __webpack_require__(178), Base64: __webpack_require__(1366), Objects: __webpack_require__(1368), String: __webpack_require__(1372) @@ -180013,7 +180529,7 @@ module.exports = { module.exports = { ArrayBufferToBase64: __webpack_require__(1367), - Base64ToArrayBuffer: __webpack_require__(383) + Base64ToArrayBuffer: __webpack_require__(381) }; @@ -180093,19 +180609,19 @@ module.exports = ArrayBufferToBase64; module.exports = { Clone: __webpack_require__(65), - Extend: __webpack_require__(17), - GetAdvancedValue: __webpack_require__(14), + Extend: __webpack_require__(18), + GetAdvancedValue: __webpack_require__(15), GetFastValue: __webpack_require__(2), GetMinMaxValue: __webpack_require__(1369), GetValue: __webpack_require__(6), HasAll: __webpack_require__(1370), - HasAny: __webpack_require__(402), - HasValue: __webpack_require__(105), + HasAny: __webpack_require__(400), + HasValue: __webpack_require__(104), IsPlainObject: __webpack_require__(7), - Merge: __webpack_require__(121), + Merge: __webpack_require__(120), MergeRight: __webpack_require__(1371), - Pick: __webpack_require__(485), - SetValue: __webpack_require__(422) + Pick: __webpack_require__(481), + SetValue: __webpack_require__(420) }; @@ -180121,7 +180637,7 @@ module.exports = { */ var GetValue = __webpack_require__(6); -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); /** * Retrieves and clamps a numerical value from an object. @@ -180246,10 +180762,10 @@ module.exports = MergeRight; module.exports = { Format: __webpack_require__(1373), - Pad: __webpack_require__(158), + Pad: __webpack_require__(157), Reverse: __webpack_require__(1374), - UppercaseFirst: __webpack_require__(177), - UUID: __webpack_require__(192) + UppercaseFirst: __webpack_require__(176), + UUID: __webpack_require__(191) }; @@ -180335,21 +180851,21 @@ module.exports = Reverse; module.exports = { - SoundManagerCreator: __webpack_require__(377), + SoundManagerCreator: __webpack_require__(375), Events: __webpack_require__(59), - BaseSound: __webpack_require__(123), - BaseSoundManager: __webpack_require__(122), + BaseSound: __webpack_require__(122), + BaseSoundManager: __webpack_require__(121), - WebAudioSound: __webpack_require__(384), - WebAudioSoundManager: __webpack_require__(382), + WebAudioSound: __webpack_require__(382), + WebAudioSoundManager: __webpack_require__(380), - HTML5AudioSound: __webpack_require__(379), - HTML5AudioSoundManager: __webpack_require__(378), + HTML5AudioSound: __webpack_require__(377), + HTML5AudioSoundManager: __webpack_require__(376), - NoAudioSound: __webpack_require__(381), - NoAudioSoundManager: __webpack_require__(380) + NoAudioSound: __webpack_require__(379), + NoAudioSoundManager: __webpack_require__(378) }; @@ -180416,10 +180932,10 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -__webpack_require__(517); +__webpack_require__(513); -var CONST = __webpack_require__(29); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(10); +var Extend = __webpack_require__(18); /** * @namespace Phaser @@ -180434,34 +180950,34 @@ var Extend = __webpack_require__(17); var Phaser = { - Actions: __webpack_require__(238), - Animations: __webpack_require__(637), - Cache: __webpack_require__(638), - Cameras: __webpack_require__(641), - Core: __webpack_require__(724), + Actions: __webpack_require__(236), + Animations: __webpack_require__(633), + Cache: __webpack_require__(634), + Cameras: __webpack_require__(637), + Core: __webpack_require__(720), Class: __webpack_require__(0), - Create: __webpack_require__(783), - Curves: __webpack_require__(789), - Data: __webpack_require__(792), - Display: __webpack_require__(794), - DOM: __webpack_require__(811), - Events: __webpack_require__(812), - Game: __webpack_require__(814), - GameObjects: __webpack_require__(907), - Geom: __webpack_require__(425), - Input: __webpack_require__(1195), - Loader: __webpack_require__(1229), - Math: __webpack_require__(166), + Create: __webpack_require__(779), + Curves: __webpack_require__(785), + Data: __webpack_require__(788), + Display: __webpack_require__(790), + DOM: __webpack_require__(807), + Events: __webpack_require__(808), + Game: __webpack_require__(810), + GameObjects: __webpack_require__(903), + Geom: __webpack_require__(423), + Input: __webpack_require__(1191), + Loader: __webpack_require__(1225), + Math: __webpack_require__(165), Physics: { - Arcade: __webpack_require__(1255) + Arcade: __webpack_require__(1251) }, - Plugins: __webpack_require__(1298), - Scale: __webpack_require__(1300), - Scene: __webpack_require__(371), - Scenes: __webpack_require__(1301), - Structs: __webpack_require__(1303), - Textures: __webpack_require__(1304), - Tilemaps: __webpack_require__(1306), + Plugins: __webpack_require__(1294), + Scale: __webpack_require__(1296), + Scene: __webpack_require__(369), + Scenes: __webpack_require__(1297), + Structs: __webpack_require__(1299), + Textures: __webpack_require__(1300), + Tilemaps: __webpack_require__(1302), Time: __webpack_require__(1346), Tweens: __webpack_require__(1348), Utils: __webpack_require__(1365) @@ -180489,7 +181005,7 @@ global.Phaser = Phaser; * -- Dick Brandon */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(516))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(512))) /***/ }) /******/ ]); diff --git a/dist/phaser-arcade-physics.min.js b/dist/phaser-arcade-physics.min.js index 9c8c1ea32..be499821f 100644 --- a/dist/phaser-arcade-physics.min.js +++ b/dist/phaser-arcade-physics.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Phaser",[],e):"object"==typeof exports?exports.Phaser=e():t.Phaser=e()}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1428)}([function(t,e){function i(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,e,s,r){for(var a in e)if(e.hasOwnProperty(a)){var h=i(e,a,s);if(!1!==h){if(n((r||t).prototype,a)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=e[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(278),r=i(110),o=i(10),a=i(89),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(166),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(705),CREATE:i(706),DESTROY:i(707),PAUSE:i(708),POST_UPDATE:i(709),PRE_UPDATE:i(710),READY:i(711),RENDER:i(712),RESUME:i(713),SHUTDOWN:i(714),SLEEP:i(715),START:i(716),TRANSITION_COMPLETE:i(717),TRANSITION_INIT:i(718),TRANSITION_OUT:i(719),TRANSITION_START:i(720),TRANSITION_WAKE:i(721),UPDATE:i(722),WAKE:i(723)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(162),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(160),r=i(292),o=i(161),a=i(293),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},,function(t,e){t.exports=function(t){return t.y+t.height-t.height*t.originY}},function(t,e){t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.x-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},function(t,e){t.exports=function(t){return t.x+t.width-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},function(t,e){t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY}},function(t,e){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,e){t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(646),FADE_IN_COMPLETE:i(647),FADE_IN_START:i(648),FADE_OUT_COMPLETE:i(649),FADE_OUT_START:i(650),FLASH_COMPLETE:i(651),FLASH_START:i(652),PAN_COMPLETE:i(653),PAN_START:i(654),POST_RENDER:i(655),PRE_RENDER:i(656),SHAKE_COMPLETE:i(657),SHAKE_START:i(658),ZOOM_COMPLETE:i(659),ZOOM_START:i(660)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(137),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(272),r=i(148),o=i(46),a=i(149),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(884),DECODED:i(885),DECODED_ALL:i(886),DESTROY:i(887),DETUNE:i(888),GLOBAL_DETUNE:i(889),GLOBAL_MUTE:i(890),GLOBAL_RATE:i(891),GLOBAL_VOLUME:i(892),LOOP:i(893),LOOPED:i(894),MUTE:i(895),PAUSE_ALL:i(896),PAUSE:i(897),PLAY:i(898),RATE:i(899),RESUME_ALL:i(900),RESUME:i(901),SEEK:i(902),STOP_ALL:i(903),STOP:i(904),UNLOCKED:i(905),VOLUME:i(906)}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===S(t,e,i,n)>0)for(r=e;r=e;r-=n)o=E(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(_(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(_(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),_(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),_(n),_(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new b(t.i,t.x,t.y),n=new b(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function E(t,e,i,n){var s=new b(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function b(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(164),s=i(177);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){if("orthogonal"===this.layer.orientation)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if("isometric"===this.layer.orientation)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if("staggered"===this.layer.orientation)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if("hexagonal"===this.layer.orientation){var t=this.layer.hexSideLength,e=(this.baseHeight-t)/2+t;this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*e}return this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(962),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(863),COMPLETE:i(864),FILE_COMPLETE:i(865),FILE_KEY_COMPLETE:i(866),FILE_LOAD_ERROR:i(867),FILE_LOAD:i(868),FILE_PROGRESS:i(869),POST_PROCESS:i(870),PROGRESS:i(871),START:i(872)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},,function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(581),VIDEO_COMPLETE:i(582),VIDEO_CREATED:i(583),VIDEO_ERROR:i(584),VIDEO_LOOP:i(585),VIDEO_PLAY:i(586),VIDEO_SEEKED:i(587),VIDEO_SEEKING:i(588),VIDEO_STOP:i(589),VIDEO_TIMEOUT:i(590),VIDEO_UNLOCKED:i(591)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(10),a=i(48),h=i(12),l=i(30),u=i(159),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wS&&Es&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(699),FULLSCREEN_FAILED:i(700),FULLSCREEN_UNSUPPORTED:i(701),LEAVE_FULLSCREEN:i(702),ORIENTATION_CHANGE:i(703),RESIZE:i(704)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var E=Math.max(x.x,e),_=Math.max(x.y,i),b=Math.min(x.r,T)-E,S=Math.min(x.b,w)-_;v=b,m=S,p=o?h+(u-(E-x.x)-b):h+(E-x.x),g=a?l+(c-(_-x.y)-S):l+(_-x.y),e=E,i=_,n=b,r=S}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var A=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/A),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/A),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(95),r=i(393),o=i(394),a=i(46),h=i(152),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(238),s=i(0),r=i(89),o=i(2),a=i(6),h=i(7),l=i(387),u=i(128),c=i(74),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i=0&&t=0&&e0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(725))},function(t,e,i){var n,s=i(113),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(775),ERROR:i(776),LOAD:i(777),READY:i(778),REMOVE:i(779)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(79);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(10),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(10),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(179),s=i(0),r=i(1),o=i(126),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(180),s=i(385);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1211),ANY_KEY_UP:i(1212),COMBO_MATCH:i(1213),DOWN:i(1214),KEY_DOWN:i(1215),KEY_UP:i(1216),UP:i(1217)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(213),r=i(74),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(216),CalculateFacesWithin:i(51),Copy:i(1307),CreateFromTiles:i(1308),CullTiles:i(1309),Fill:i(1311),FilterTiles:i(1312),FindByIndex:i(1313),FindTile:i(1314),ForEachTile:i(1315),GetTileAt:i(137),GetTileAtWorldXY:i(1316),GetTilesWithin:i(24),GetTilesWithinShape:i(1317),GetTilesWithinWorldXY:i(1318),HasTileAt:i(475),HasTileAtWorldXY:i(1319),IsInLayerBounds:i(100),PutTileAt:i(218),PutTileAtWorldXY:i(1320),PutTilesAt:i(1321),Randomize:i(1322),RemoveTileAt:i(476),RemoveTileAtWorldXY:i(1323),RenderDebug:i(1324),ReplaceByIndex:i(472),SetCollision:i(1325),SetCollisionBetween:i(1326),SetCollisionByExclusion:i(1327),SetCollisionByProperty:i(1328),SetCollisionFromCollisionGroup:i(1329),SetTileIndexCallback:i(1330),SetTileLocationCallback:i(1331),Shuffle:i(1332),SwapByIndex:i(1333),TileToWorldX:i(470),TileToWorldXY:i(217),TileToWorldY:i(471),WeightedRandomize:i(1334),WorldToTileX:i(473),WorldToTileXY:i(72),WorldToTileY:i(474)}},function(t,e,i){var n=i(100);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},,function(t,e,i){var n=i(4);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},function(t,e,i){var n=i(4);t.exports=function(t,e){void 0===e&&(e=new n);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),r=s>1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(10),o=i(108),a=i(267),h=i(268),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(291),s=i(294),r=i(296),o=i(297);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(160);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(179),s=i(52),r=i(0),o=i(11),a=i(89),h=i(13),l=i(12),u=i(949),c=i(389),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(127),s=i(0),r=i(954),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(90),s=i(0),r=i(188),o=i(266),a=i(269),h=i(270),l=i(274),u=i(151),c=i(279),d=i(280),f=i(277),p=i(30),g=i(94),v=i(13),m=i(2),y=i(6),x=i(15),T=i(960),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(397),a=i(124),h=i(399),l=i(970),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var E=this.input;return E&&!E.customHitArea&&(E.hitArea.width=this.width,E.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(325),l=i(162),u=i(989),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(89),a=i(18),h=i(13),l=i(59),u=i(192),c=i(992),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(198),r=i(414),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var E=(-x-Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o));var _=(-x+Math.sqrt(T))/(2*y);r=a+_*p,o=h+_*g,_>=0&&_<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(83),r=i(427);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1197),BUTTON_UP:i(1198),CONNECTED:i(1199),DISCONNECTED:i(1200),GAMEPAD_BUTTON_DOWN:i(1201),GAMEPAD_BUTTON_UP:i(1202)}},function(t,e,i){var n=i(17),s=i(134);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=i(361),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1351),TIMELINE_LOOP:i(1352),TIMELINE_PAUSE:i(1353),TIMELINE_RESUME:i(1354),TIMELINE_START:i(1355),TIMELINE_UPDATE:i(1356),TWEEN_ACTIVE:i(1357),TWEEN_COMPLETE:i(1358),TWEEN_LOOP:i(1359),TWEEN_REPEAT:i(1360),TWEEN_START:i(1361),TWEEN_UPDATE:i(1362),TWEEN_YOYO:i(1363)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(235),a=i(337),h=i(338),l=i(30),u=i(9),c=i(142),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var E=t._crop;E.flipX===t.flipX&&E.flipY===t.flipY||o.updateCropUVs(E,t.flipX,t.flipY),h=E.u0,l=E.v0,c=E.u1,d=E.v1,g=E.width,v=E.height,T=-y+(f=E.x),w=-x+(p=E.y)}var _=1,b=1;t.flipX&&(m||(T+=-o.realWidth+2*y),_=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),b=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*_,t.scaleY*b),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var S=T+g,A=w+v,C=r.getX(T,w),M=r.getY(T,w),O=r.getX(T,A),P=r.getY(T,A),R=r.getX(S,A),L=r.getY(S,A),D=r.getX(S,w),F=r.getY(S,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),Y=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,O,P,R,L,D,F,h,l,c,d,k,I,B,Y,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,E=this.vertexCount*this.vertexComponentCount-1;return T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=i,T[++E]=n,T[++E]=h,T[++E]=c,T[++E]=v,w[++E]=p,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=o,T[++E]=a,T[++E]=u,T[++E]=l,T[++E]=v,w[++E]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,E,_,b,S,A,C,M,O,P){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+A,k=y/n+C,I=(m+x)/i+A,B=(y+T)/n+C,Y=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;Y=U.width,N=U.height,o=U.width,a=U.height;var G=m=U.x,W=y=U.y;c&&(G=x-U.x-U.width),d&&!e.isRenderTexture&&(W=T-U.y-U.height),F=G/i+A,k=W/n+C,I=(G+U.width)/i+A,B=(W+U.height)/n+C,X=-g+m,z=-v+y}d^=!P&&e.isRenderTexture?1:0,c&&(Y*=-1,X+=o),d&&(N*=-1,z+=a);var V=X+Y,H=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),O?(R.multiplyWithOffset(O,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),K=D.getY(X,z),q=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),K=Math.round(K),q=Math.round(q),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,K,q,J,Z,Q,$,tt,F,k,I,B,w,E,_,b,S,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,O,P,H[0],H[1],H[2],H[3],U,G,W,V,B,Y,N,X,I):(j[0]=D,j[1]=F,j[2]=O,j[3]=P,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,G,W,V,B,Y,N,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},,,function(t,e,i){t.exports={AlignTo:i(526),Angle:i(527),Call:i(528),GetFirst:i(529),GetLast:i(530),GridAlign:i(531),IncAlpha:i(592),IncX:i(593),IncXY:i(594),IncY:i(595),PlaceOnCircle:i(596),PlaceOnEllipse:i(597),PlaceOnLine:i(598),PlaceOnRectangle:i(599),PlaceOnTriangle:i(600),PlayAnimation:i(601),PropertyValueInc:i(34),PropertyValueSet:i(25),RandomCircle:i(602),RandomEllipse:i(603),RandomLine:i(604),RandomRectangle:i(605),RandomTriangle:i(606),Rotate:i(607),RotateAround:i(608),RotateAroundDistance:i(609),ScaleX:i(610),ScaleXY:i(611),ScaleY:i(612),SetAlpha:i(613),SetBlendMode:i(614),SetDepth:i(615),SetHitArea:i(616),SetOrigin:i(617),SetRotation:i(618),SetScale:i(619),SetScaleX:i(620),SetScaleY:i(621),SetScrollFactor:i(622),SetScrollFactorX:i(623),SetScrollFactorY:i(624),SetTint:i(625),SetVisible:i(626),SetX:i(627),SetXY:i(628),SetY:i(629),ShiftPosition:i(630),Shuffle:i(631),SmootherStep:i(632),SmoothStep:i(633),Spread:i(634),ToggleVisible:i(635),WrapInRectangle:i(636)}},function(t,e,i){var n=i(103),s=[];s[n.BOTTOM_CENTER]=i(240),s[n.BOTTOM_LEFT]=i(241),s[n.BOTTOM_RIGHT]=i(242),s[n.LEFT_BOTTOM]=i(243),s[n.LEFT_CENTER]=i(244),s[n.LEFT_TOP]=i(245),s[n.RIGHT_BOTTOM]=i(246),s[n.RIGHT_CENTER]=i(247),s[n.RIGHT_TOP]=i(248),s[n.TOP_CENTER]=i(249),s[n.TOP_LEFT]=i(250),s[n.TOP_RIGHT]=i(251);t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(75),r=i(76),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)-i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(40),r=i(78),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(42),r=i(78),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(75),s=i(45),r=i(44),o=i(76);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)-i),r(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(103),s=[];s[n.BOTTOM_CENTER]=i(253),s[n.BOTTOM_LEFT]=i(254),s[n.BOTTOM_RIGHT]=i(255),s[n.CENTER]=i(256),s[n.LEFT_CENTER]=i(258),s[n.RIGHT_CENTER]=i(259),s[n.TOP_CENTER]=i(260),s[n.TOP_LEFT]=i(261),s[n.TOP_RIGHT]=i(262),s[n.LEFT_BOTTOM]=s[n.BOTTOM_LEFT],s[n.LEFT_TOP]=s[n.TOP_LEFT],s[n.RIGHT_BOTTOM]=s[n.BOTTOM_RIGHT],s[n.RIGHT_TOP]=s[n.TOP_RIGHT];t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(75),r=i(44),o=i(76);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(257),s=i(75),r=i(77);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),n(t,s(e)+i,r(e)+o),t}},function(t,e,i){var n=i(76),s=i(78);t.exports=function(t,e,i){return n(t,e),s(t,i)}},function(t,e,i){var n=i(77),s=i(40),r=i(78),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(42),r=i(78),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(75),s=i(45),r=i(76),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(144),s=i(86),r=i(15),o=i(4);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=s(e,0,r.PI2);return n(t,a,i)}},function(t,e,i){var n=i(265),s=i(144),r=i(86),o=i(15);t.exports=function(t,e,i,a){void 0===a&&(a=[]),e||(e=n(t)/i);for(var h=0;he.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(147),s=i(109);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(661),Flash:i(662),Pan:i(663),Shake:i(696),Zoom:i(697)}},function(t,e,i){t.exports={In:i(664),Out:i(665),InOut:i(666)}},function(t,e,i){t.exports={In:i(667),Out:i(668),InOut:i(669)}},function(t,e,i){t.exports={In:i(670),Out:i(671),InOut:i(672)}},function(t,e,i){t.exports={In:i(673),Out:i(674),InOut:i(675)}},function(t,e,i){t.exports={In:i(676),Out:i(677),InOut:i(678)}},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports=i(682)},function(t,e,i){t.exports={In:i(683),Out:i(684),InOut:i(685)}},function(t,e,i){t.exports={In:i(686),Out:i(687),InOut:i(688)}},function(t,e,i){t.exports={In:i(689),Out:i(690),InOut:i(691)}},function(t,e,i){t.exports={In:i(692),Out:i(693),InOut:i(694)}},function(t,e,i){t.exports=i(695)},function(t,e,i){var n=i(0),s=i(29),r=i(312),o=i(2),a=i(6),h=i(7),l=i(166),u=i(1),c=i(171),d=i(159),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(113),browser:i(114),features:i(165),input:i(726),audio:i(727),video:i(728),fullscreen:i(729),canvasFeatures:i(313)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,E=s*l-r*h,_=s*u-o*h,b=r*u-o*l,S=c*v-d*g,A=c*m-f*g,C=c*y-p*g,M=d*m-f*v,O=d*y-p*v,P=f*y-p*m,R=x*P-T*O+w*M+E*C-_*A+b*S;return R?(R=1/R,i[0]=(h*P-l*O+u*M)*R,i[1]=(l*C-a*P-u*A)*R,i[2]=(a*O-h*C+u*S)*R,i[3]=(r*O-s*P-o*M)*R,i[4]=(n*P-r*C+o*A)*R,i[5]=(s*C-n*O-o*S)*R,i[6]=(v*b-m*_+y*E)*R,i[7]=(m*w-g*b-y*T)*R,i[8]=(g*_-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,E=n*h-s*a,_=l*p-u*f,b=l*g-c*f,S=l*v-d*f,A=u*g-c*p,C=u*v-d*p,M=c*v-d*g,O=m*M-y*C+x*A+T*S-w*b+E*_;return O?(O=1/O,t[0]=(o*M-a*C+h*A)*O,t[1]=(n*C-i*M-s*A)*O,t[2]=(p*E-g*w+v*T)*O,t[3]=(c*w-u*E-d*T)*O,t[4]=(a*S-r*M-h*b)*O,t[5]=(e*M-n*S+s*b)*O,t[6]=(g*x-f*E-v*y)*O,t[7]=(l*E-c*x+d*y)*O,t[8]=(r*C-o*S+h*_)*O,t[9]=(i*S-e*C-s*_)*O,t[10]=(f*w-p*x+v*m)*O,t[11]=(u*x-l*w-d*m)*O,t[12]=(o*b-r*A-a*_)*O,t[13]=(e*A-i*b+n*_)*O,t[14]=(p*y-f*T-g*m)*O,t[15]=(l*T-u*y+c*m)*O,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],E=y[3];return e[0]=x*i+T*o+w*u+E*p,e[1]=x*n+T*a+w*c+E*g,e[2]=x*s+T*h+w*d+E*v,e[3]=x*r+T*l+w*f+E*m,x=y[4],T=y[5],w=y[6],E=y[7],e[4]=x*i+T*o+w*u+E*p,e[5]=x*n+T*a+w*c+E*g,e[6]=x*s+T*h+w*d+E*v,e[7]=x*r+T*l+w*f+E*m,x=y[8],T=y[9],w=y[10],E=y[11],e[8]=x*i+T*o+w*u+E*p,e[9]=x*n+T*a+w*c+E*g,e[10]=x*s+T*h+w*d+E*v,e[11]=x*r+T*l+w*f+E*m,x=y[12],T=y[13],w=y[14],E=y[15],e[12]=x*i+T*o+w*u+E*p,e[13]=x*n+T*a+w*c+E*g,e[14]=x*s+T*h+w*d+E*v,e[15]=x*r+T*l+w*f+E*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],E=n*n*l+h,_=s*n*l+r*a,b=r*n*l-s*a,S=n*s*l-r*a,A=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,O=s*r*l-n*a,P=r*r*l+h;return i[0]=u*E+p*_+y*b,i[1]=c*E+g*_+x*b,i[2]=d*E+v*_+T*b,i[3]=f*E+m*_+w*b,i[4]=u*S+p*A+y*C,i[5]=c*S+g*A+x*C,i[6]=d*S+v*A+T*C,i[7]=f*S+m*A+w*C,i[8]=u*M+p*O+y*P,i[9]=c*M+g*O+x*P,i[10]=d*M+v*O+T*P,i[11]=f*M+m*O+w*P,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,E=f*y-p*m;return(v=Math.sqrt(T*T+w*w+E*E))?(T*=v=1/v,w*=v,E*=v):(T=0,w=0,E=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=E,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+E*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(170),r=i(332),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(336),s=i(26),r=i(29),o=i(165);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(504),h=i(507),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(341),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(344),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(113);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(173);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(175),r=i(10),o=i(54),a=i(18),h=i(363),l=i(364),u=i(365),c=i(366),d=i(30),f=i(330),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(165),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(314),s=i(0),r=i(53),o=i(141),a=i(324),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(92),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(120),r=i(21),o=i(18),a=i(6),h=i(81),l=i(1),u=i(371),c=i(176),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(122),s=i(0),r=i(10),o=i(381),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(123),s=i(0),r=i(10),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(383),s=i(122),r=i(0),o=i(59),a=i(384),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(123),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(111),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(952),o=i(13),a=i(7),h=i(174),l=i(21),u=i(331),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(400),a=i(401),h=i(969),l=i(2),u=i(181),c=i(402),d=i(105),f=i(398),p=i(403),g=i(12),v=i(126),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(998),r=i(64),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1019),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1022),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1085),Ellipse:i(1095),Intersects:i(426),Line:i(1114),Point:i(1136),Polygon:i(1150),Rectangle:i(439),Triangle:i(1180)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(201),CircleToRectangle:i(202),GetCircleToCircle:i(1105),GetCircleToRectangle:i(1106),GetLineToCircle:i(203),GetLineToRectangle:i(205),GetRectangleIntersection:i(1107),GetRectangleToRectangle:i(1108),GetRectangleToTriangle:i(1109),GetTriangleToCircle:i(1110),GetTriangleToLine:i(431),GetTriangleToTriangle:i(1111),LineToCircle:i(204),LineToLine:i(83),LineToRectangle:i(427),PointToLine:i(435),PointToLineSegment:i(1112),RectangleToRectangle:i(130),RectangleToTriangle:i(428),RectangleToValues:i(1113),TriangleToCircle:i(430),TriangleToLine:i(432),TriangleToTriangle:i(433)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(83),s=i(47),r=i(206),o=i(429);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(204),s=i(82);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(84);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1155),n.Ceil=i(1156),n.CeilAll=i(1157),n.CenterOn=i(163),n.Clone=i(1158),n.Contains=i(47),n.ContainsPoint=i(1159),n.ContainsRect=i(440),n.CopyFrom=i(1160),n.Decompose=i(429),n.Equals=i(1161),n.FitInside=i(1162),n.FitOutside=i(1163),n.Floor=i(1164),n.FloorAll=i(1165),n.FromPoints=i(172),n.GetAspectRatio=i(208),n.GetCenter=i(1166),n.GetPoint=i(147),n.GetPoints=i(271),n.GetSize=i(1167),n.Inflate=i(1168),n.Intersection=i(1169),n.MarchingAnts=i(282),n.MergePoints=i(1170),n.MergeRect=i(1171),n.MergeXY=i(1172),n.Offset=i(1173),n.OffsetPoint=i(1174),n.Overlaps=i(1175),n.Perimeter=i(109),n.PerimeterPoint=i(1176),n.Random=i(150),n.RandomOutside=i(1177),n.SameDimensions=i(1178),n.Scale=i(1179),n.Union=i(389),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(445),s=i(446),r=i(0),o=i(10),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(386);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},,function(t,e,i){var n=new(i(0))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileWidth,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),"orthogonal"===n?o+t*s:"isometric"===n||"staggered"===n||"hexagonal"===n?(console.warn("With the current map type you have to use the TileToWorldXY function."),null):void 0}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileHeight,r=i.tilemapLayer,o=0;if(r&&(void 0===e&&(e=r.scene.cameras.main),o=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),"orthogonal"===n)return o+t*s;if("isometric"===n)return console.warn("With isometric map types you have to use the TileToWorldXY function."),null;if("staggered"===n)return o+t*(s/2);if("hexagonal"===n){var a=i.tilemapLayer.tilemap.hexSideLength;return o+t*((s-a)/2+a)}}},function(t,e,i){var n=i(24);t.exports=function(t,e,i,s,r,o,a){for(var h=n(i,s,r,o,null,a),l=0;l-1}return!1}},function(t,e,i){var n=i(73),s=i(100),r=i(216);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(33),s=i(220),r=i(478),o=i(479),a=i(490);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(220);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(33),s=i(102),r=i(480),o=i(482),a=i(483),h=i(486),l=i(488),u=i(489);t.exports=function(t,e,i){if("isometric"===e.orientation||"staggered"===e.orientation)console.warn("Isometric map types are WIP in this version of Phaser");else if("hexagonal"===e.orientation)console.warn("Hexagonal map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal, hexagonal and isometric map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});"hexagonal"===c.orientation&&(c.hexSideLength=e.hexsidelength),c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(481),s=i(2),r=i(101),o=i(221),a=i(73),h=i(222);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,P,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,y[R][P]=v):(m=e?null:new a(p,-1,P,R,t.tilewidth,t.tileheight),y[R][P]=m),++x===b.width&&(C++,x=0)}}else{"hexagonal"===(p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation})).orientation&&(p.hexSideLength=t.hexsidelength);for(var L=[],D=0,F=d.data.length;D0?((v=new a(p,g.gid,x,y.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(m=e?null:new a(p,-1,x,y.length,t.tilewidth,t.tileheight),L.push(m)),++x===d.width&&(y.push(L),x=0,L=[])}p.data=y,l.push(p)}else if("group"===d.type){var k=h(t,d,c);u.push(c),c=k}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(222);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(138),s=i(484),r=i(223);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(101),s=i(73);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(138);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=l},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1341),h=i(136),l=i(30),u=i(9),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var E=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),_=m.getX(y,x),b=m.getY(y,x),S=m.getX(y,w),A=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),O=m.getX(T,x),P=m.getY(T,x);r.roundPixels&&(_=Math.round(_),b=Math.round(b),S=Math.round(S),A=Math.round(A),C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=S,R[++t]=A,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=O,R[++t]=P,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=E,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1350);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(227),s=i(14),r=i(87),o=i(67),a=i(139),h=i(6),l=i(226),u=i(228),c=i(230);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),E=r(e,"yoyo",i.yoyo),_=[],b=l("value",f),S=c(p[0],0,"value",b.getEnd,b.getStart,b.getActive,y,g,v,E,x,T,w,!1,!1);S.start=d,S.current=d,S.to=f,_.push(S);var A=new u(t,_,p);A.offset=s(e,"offset",null),A.completeDelay=s(e,"completeDelay",0),A.loop=Math.round(s(e,"loop",0)),A.loopDelay=Math.round(s(e,"loopDelay",0)),A.paused=r(e,"paused",!1),A.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",A),M=[A,null],O=u.TYPES,P=0;Pb&&(b=C),_[S][A]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(505),s=i(48),r=i(0),o=i(29),a=i(506),h=i(91),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,E=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),E=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*E),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(313);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(90),s=i(48),r=i(0),o=i(29),a=i(18),h=i(115),l=i(1),u=i(91),c=i(79),d=i(116),f=i(30),p=i(9),g=i(508),v=i(509),m=i(510),y=i(234),x=i(511),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(235),o=i(337),a=i(338),h=i(30),l=i(142),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},,,,,function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){i(518),i(519),i(520),i(521),i(522),i(523),i(524),i(525)},function(t,e){Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(290),BaseCamera:i(90),CameraManager:i(698),Effects:i(298),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(114),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(315);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(155);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(325),IsSize:i(115),IsValue:i(753)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(326),Floor:i(92),To:i(755)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(170),s=i(333),r=i(334),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(343),Palettes:i(784)}},function(t,e,i){t.exports={ARNE16:i(344),C64:i(785),CGA:i(786),JMP:i(787),MSX:i(788)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(790),CubicBezier:i(345),Curve:i(80),Ellipse:i(346),Line:i(347),QuadraticBezier:i(348),Spline:i(349)}},function(t,e,i){var n=i(0),s=i(345),r=i(346),o=i(5),a=i(347),h=i(791),l=i(348),u=i(12),c=i(349),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(353);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(161);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(112),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(168),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(352);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(275),GeometryMask:i(276)}},function(t,e,i){var n={AddToDOM:i(117),DOMContentLoaded:i(354),GetScreenOrientation:i(355),GetTarget:i(360),ParseXML:i(361),RemoveFromDOM:i(174),RequestAnimationFrame:i(341)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(813)}},function(t,e,i){var n=i(0),s=i(10),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(117),s=i(286),r=i(289),o=i(26),a=i(0),h=i(311),l=i(815),u=i(335),c=i(110),d=i(339),f=i(312),p=i(354),g=i(10),v=i(18),m=i(362),y=i(23),x=i(367),T=i(368),w=i(370),E=i(116),_=i(373),b=i(340),S=i(342),A=i(377),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new _(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new b(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(E.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),S(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(117);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(177);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),E>o&&(x=E-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,E=s-w,_=s-(v-p-w),b=e.y,S=r-b,A=r-(m-g-b);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,O=0,P=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-Y>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),Y=0,B=null):B=X):X.cr&&(N.push(X.i+X.word.length),Y=0,B=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nE&&(c=E),d>_&&(d=_);var W=E+w.xAdvance,V=_+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===Y?X=(U.longest-U.lengths[0])/2:2===Y&&(X=U.longest-U.lengths[0]);for(var G=s.roundPixels,W=0;W0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===O?R=(D.longest-D.lengths[0])/2:2===O&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(950),s=i(951),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),E=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),_=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),b=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var S,A,C=0,M=0,O=0,P=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,Y=e.fontData,N=Y.chars,X=Y.lineHeight,z=e.fontSize/Y.size,U=0,G=e._align,W=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===G?V=(H.longest-H.lengths[0])/2:2===G&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,K=e.displayCallback,q=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var Y=0;Y0&&(N=N%E-E):N>E?N=E:N<0&&(N=E+N%E),null===A&&(A=new o(k+Math.cos(Y)*B,I+Math.sin(Y)*B,v),_.push(A),F+=.01);F<1+z;)w=N*F+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v)),F+=.01;w=N+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++O],p[++O],p[++O],p[++O],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],v,f,c);break;case n.LINE_TO:null!==A?A.points.push(new r(p[++O],p[++O],v)):(A=new o(p[++O],p[++O],v),_.push(A));break;case n.MOVE_TO:A=new o(p[++O],p[++O],v),_.push(A);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++O],I=p[++O],f.translate(k,I);break;case n.SCALE:k=p[++O],I=p[++O],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++O]);break;case n.SET_TEXTURE:var U=p[++O],G=p[++O];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=G,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(963),s=i(964),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(966),s=i(967),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(397),Particle:i(398),ParticleEmitter:i(399),ParticleEmitterManager:i(190),Zones:i(973)}},function(t,e,i){var n=i(0),s=i(327),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(971),s=i(972),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(985),s=i(986),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(988),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,A=1;A0)for(n(h,e),A=0;A0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),A=0;A0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),S=1;So.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,E=0;E0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(94);n.Area=i(1096),n.Circumference=i(395),n.CircumferencePoint=i(189),n.Clone=i(1097),n.Contains=i(95),n.ContainsPoint=i(1098),n.ContainsRect=i(1099),n.CopyFrom=i(1100),n.Equals=i(1101),n.GetBounds=i(1102),n.GetPoint=i(393),n.GetPoints=i(394),n.Offset=i(1103),n.OffsetPoint=i(1104),n.Random=i(152),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(94);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(203),s=i(202);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(205),s=i(130);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(428),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(203),s=i(430);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(433),s=i(431);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(435);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(163);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(132),KeyboardManager:i(363),KeyboardPlugin:i(1218),Key:i(448),KeyCodes:i(119),KeyCombo:i(449),JustDown:i(1223),JustUp:i(1224),DownDuration:i(1225),UpDuration:i(1226)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(10),r=i(132),o=i(18),a=i(6),h=i(54),l=i(131),u=i(448),c=i(119),d=i(449),f=i(1222),p=i(92),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(119),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(459),s=i(63),r=i(201),o=i(202);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1283);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(463);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(464);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},,,,,,,,,,,,,function(t,e,i){t.exports={BasePlugin:i(469),DefaultPlugins:i(171),PluginCache:i(23),PluginManager:i(367),ScenePlugin:i(1299)}},function(t,e,i){var n=i(469),s=i(0),r=i(21),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(173),r={Center:i(356),Events:i(91),Orientation:i(357),ScaleManager:i(368),ScaleModes:i(358),Zoom:i(359)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(120),s=i(17),r={Events:i(21),SceneManager:i(370),ScenePlugin:i(1302),Settings:i(372),Systems:i(176)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(21),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(124),Map:i(157),ProcessQueue:i(182),RTree:i(465),Set:i(128),Size:i(369)}},function(t,e,i){var n=i(17),s=i(1305),r={CanvasTexture:i(374),Events:i(116),FilterMode:s,Frame:i(93),Parsers:i(376),Texture:i(178),TextureManager:i(373),TextureSource:i(375)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(136),Parsers:i(1335),Formats:i(33),ImageCollection:i(484),ParseToTilemap:i(224),Tile:i(73),Tilemap:i(493),TilemapCreator:i(1344),TilemapFactory:i(1345),Tileset:i(138),LayerData:i(101),MapData:i(102),ObjectLayer:i(487),DynamicTilemapLayer:i(494),StaticTilemapLayer:i(495)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&g=m;a--)(l=d[h][a])&&-1!==l.index&&l.visible&&0!==l.alpha&&i.push(l);else if(2===o)for(h=T;h>=x;h--)for(a=m;d[h]&&a=x;h--)for(a=y;d[h]&&a>=m;a--)(l=d[h][a])&&-1!==l.index&&l.visible&&0!==l.alpha&&i.push(l)}else if("isometric"===t.orientation)if(0===o){for(h=x;h=m;a--)if(r(a,h,t,e)){if(!(l=d[h][a])||-1===l.index||!l.visible||0===l.alpha)continue;i.push(l)}}else if(2===o){for(h=T;h>=x;h--)for(a=m;d[h]&&a=x;h--)for(a=y;d[h]&&a>=m;a--)if(r(a,h,t,e)){if(!(l=d[h][a])||-1===l.index||!l.visible||0===l.alpha)continue;i.push(l)}return c.tilesDrawn=i.length,c.tilesTotal=f*p,i}},function(t,e){t.exports=function(t,e,i,n){var s=i.tilemapLayer,r=s.isoCullDistances,o=s.tileToWorldXY(t,e,void 0,n);return o.x>n.worldView.x+s.scaleX*i.tileWidth*(-r.x-.5)&&o.xn.worldView.y+s.scaleY*i.tileHeight*(-r.y-.5)&&o.y=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(219);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1369),GetValue:i(6),HasAll:i(1370),HasAny:i(402),HasValue:i(105),IsPlainObject:i(7),Merge:i(121),MergeRight:i(1371),Pick:i(485),SetValue:i(422)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(24),r=i(22),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(276),r=i(109),o=i(11),a=i(88),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(165),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(24),r=i(22),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(701),CREATE:i(702),DESTROY:i(703),PAUSE:i(704),POST_UPDATE:i(705),PRE_UPDATE:i(706),READY:i(707),RENDER:i(708),RESUME:i(709),SHUTDOWN:i(710),SLEEP:i(711),START:i(712),TRANSITION_COMPLETE:i(713),TRANSITION_INIT:i(714),TRANSITION_OUT:i(715),TRANSITION_START:i(716),TRANSITION_WAKE:i(717),UPDATE:i(718),WAKE:i(719)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(10),a=i(161),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(159),r=i(290),o=i(160),a=i(291),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(16);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},,function(t,e){t.exports=function(t){return t.y+t.height-t.height*t.originY}},function(t,e){t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.x-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},function(t,e){t.exports=function(t){return t.x+t.width-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},function(t,e){t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY}},function(t,e){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,e){t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(642),FADE_IN_COMPLETE:i(643),FADE_IN_START:i(644),FADE_OUT_COMPLETE:i(645),FADE_OUT_START:i(646),FLASH_COMPLETE:i(647),FLASH_START:i(648),PAN_COMPLETE:i(649),PAN_START:i(650),POST_RENDER:i(651),PRE_RENDER:i(652),SHAKE_COMPLETE:i(653),SHAKE_START:i(654),ZOOM_COMPLETE:i(655),ZOOM_START:i(656)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(136),s=i(25);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(270),r=i(147),o=i(46),a=i(148),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(880),DECODED:i(881),DECODED_ALL:i(882),DESTROY:i(883),DETUNE:i(884),GLOBAL_DETUNE:i(885),GLOBAL_MUTE:i(886),GLOBAL_RATE:i(887),GLOBAL_VOLUME:i(888),LOOP:i(889),LOOPED:i(890),MUTE:i(891),PAUSE_ALL:i(892),PAUSE:i(893),PLAY:i(894),RATE:i(895),RESUME_ALL:i(896),RESUME:i(897),SEEK:i(898),STOP_ALL:i(899),STOP:i(900),UNLOCKED:i(901),VOLUME:i(902)}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===b(t,e,i,n)>0)for(r=e;r=e;r-=n)o=E(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(_(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(_(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),_(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),_(n),_(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new A(t.i,t.x,t.y),n=new A(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function E(t,e,i,n){var s=new A(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function b(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(163),s=i(176);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new o),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){if(this.layer.orientation===n.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(this.layer.orientation===n.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(this.layer.orientation===n.HEXAGONAL){var t=this.layer.hexSideLength,e=(this.baseHeight-t)/2+t;this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*e}else this.layer.orientation===n.ORTHOGONAL&&(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight);return this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=a},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(958),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(859),COMPLETE:i(860),FILE_COMPLETE:i(861),FILE_KEY_COMPLETE:i(862),FILE_LOAD_ERROR:i(863),FILE_LOAD:i(864),FILE_PROGRESS:i(865),POST_PROCESS:i(866),PROGRESS:i(867),START:i(868)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},,function(t,e,i){var n=i(23);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(577),VIDEO_COMPLETE:i(578),VIDEO_CREATED:i(579),VIDEO_ERROR:i(580),VIDEO_LOOP:i(581),VIDEO_PLAY:i(582),VIDEO_SEEKED:i(583),VIDEO_SEEKING:i(584),VIDEO_STOP:i(585),VIDEO_TIMEOUT:i(586),VIDEO_UNLOCKED:i(587)}},function(t,e,i){var n=i(0),s=i(12),r=i(35),o=i(11),a=i(48),h=i(13),l=i(30),u=i(158),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wb&&Es&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(695),FULLSCREEN_FAILED:i(696),FULLSCREEN_UNSUPPORTED:i(697),LEAVE_FULLSCREEN:i(698),ORIENTATION_CHANGE:i(699),RESIZE:i(700)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(23),r=i(18),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var E=Math.max(x.x,e),_=Math.max(x.y,i),A=Math.min(x.r,T)-E,b=Math.min(x.b,w)-_;v=A,m=b,p=o?h+(u-(E-x.x)-A):h+(E-x.x),g=a?l+(c-(_-x.y)-b):l+(_-x.y),e=E,i=_,n=A,r=b}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var S=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/S),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/S),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(94),r=i(391),o=i(392),a=i(46),h=i(151),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(236),s=i(0),r=i(88),o=i(2),a=i(6),h=i(7),l=i(385),u=i(127),c=i(73),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i=0&&t=0&&e0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(721))},function(t,e,i){var n,s=i(112),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(771),ERROR:i(772),LOAD:i(773),READY:i(774),REMOVE:i(775)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(78);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(11),o=i(59),a=i(19),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(11),r=i(59),o=i(18),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(178),s=i(0),r=i(1),o=i(125),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(179),s=i(383);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1207),ANY_KEY_UP:i(1208),COMBO_MATCH:i(1209),DOWN:i(1210),KEY_DOWN:i(1211),KEY_UP:i(1212),UP:i(1213)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(212),r=i(73),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(215),CalculateFacesWithin:i(51),Copy:i(1303),CreateFromTiles:i(1304),CullTiles:i(1305),Fill:i(1307),FilterTiles:i(1308),FindByIndex:i(1309),FindTile:i(1310),ForEachTile:i(1311),GetTileAt:i(136),GetTileAtWorldXY:i(1312),GetTilesWithin:i(25),GetTilesWithinShape:i(1313),GetTilesWithinWorldXY:i(1314),HasTileAt:i(469),HasTileAtWorldXY:i(1315),IsInLayerBounds:i(99),PutTileAt:i(216),PutTileAtWorldXY:i(1316),PutTilesAt:i(1317),Randomize:i(1318),RemoveTileAt:i(470),RemoveTileAtWorldXY:i(1319),RenderDebug:i(1320),ReplaceByIndex:i(468),SetCollision:i(1321),SetCollisionBetween:i(1322),SetCollisionByExclusion:i(1323),SetCollisionByProperty:i(1324),SetCollisionFromCollisionGroup:i(1325),SetTileIndexCallback:i(1326),SetTileLocationCallback:i(1327),Shuffle:i(1328),SwapByIndex:i(1329),TileToWorldX:i(1330),TileToWorldXY:i(1331),TileToWorldY:i(1332),WeightedRandomize:i(1333),WorldToTileX:i(471),WorldToTileXY:i(1334),WorldToTileY:i(472)}},function(t,e,i){var n=i(99);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},,function(t,e,i){var n=i(4);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},function(t,e,i){var n=i(4);t.exports=function(t,e){void 0===e&&(e=new n);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),r=s>1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(23),s=i(0),r=i(11),o=i(107),a=i(265),h=i(266),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(289),s=i(292),r=i(294),o=i(295);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(159);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(13),s=i(16);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(178),s=i(52),r=i(0),o=i(12),a=i(88),h=i(14),l=i(13),u=i(945),c=i(387),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(126),s=i(0),r=i(950),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(89),s=i(0),r=i(187),o=i(264),a=i(267),h=i(268),l=i(272),u=i(150),c=i(277),d=i(278),f=i(275),p=i(30),g=i(93),v=i(14),m=i(2),y=i(6),x=i(16),T=i(956),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(395),a=i(123),h=i(397),l=i(966),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var E=this.input;return E&&!E.customHitArea&&(E.hitArea.width=this.width,E.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(27),s=i(0),r=i(12),o=i(19),a=i(14),h=i(323),l=i(161),u=i(985),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(23),r=i(12),o=i(88),a=i(19),h=i(14),l=i(59),u=i(191),c=i(988),d=i(16),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(197),r=i(412),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(203);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var E=(-x-Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o));var _=(-x+Math.sqrt(T))/(2*y);r=a+_*p,o=h+_*g,_>=0&&_<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(82),r=i(425);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1193),BUTTON_UP:i(1194),CONNECTED:i(1195),DISCONNECTED:i(1196),GAMEPAD_BUTTON_DOWN:i(1197),GAMEPAD_BUTTON_UP:i(1198)}},function(t,e,i){var n=i(18),s=i(133);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=i(359),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1351),TIMELINE_LOOP:i(1352),TIMELINE_PAUSE:i(1353),TIMELINE_RESUME:i(1354),TIMELINE_START:i(1355),TIMELINE_UPDATE:i(1356),TWEEN_ACTIVE:i(1357),TWEEN_COMPLETE:i(1358),TWEEN_LOOP:i(1359),TWEEN_REPEAT:i(1360),TWEEN_START:i(1361),TWEEN_UPDATE:i(1362),TWEEN_YOYO:i(1363)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(233),a=i(335),h=i(336),l=i(30),u=i(9),c=i(141),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var E=t._crop;E.flipX===t.flipX&&E.flipY===t.flipY||o.updateCropUVs(E,t.flipX,t.flipY),h=E.u0,l=E.v0,c=E.u1,d=E.v1,g=E.width,v=E.height,T=-y+(f=E.x),w=-x+(p=E.y)}var _=1,A=1;t.flipX&&(m||(T+=-o.realWidth+2*y),_=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),A=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*_,t.scaleY*A),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var b=T+g,S=w+v,C=r.getX(T,w),M=r.getY(T,w),O=r.getX(T,S),P=r.getY(T,S),R=r.getX(b,S),L=r.getY(b,S),D=r.getX(b,w),F=r.getY(b,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),Y=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),B=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,O,P,R,L,D,F,h,l,c,d,k,I,Y,B,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,E=this.vertexCount*this.vertexComponentCount-1;return T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=i,T[++E]=n,T[++E]=h,T[++E]=c,T[++E]=v,w[++E]=p,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=o,T[++E]=a,T[++E]=u,T[++E]=l,T[++E]=v,w[++E]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,E,_,A,b,S,C,M,O,P){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+S,k=y/n+C,I=(m+x)/i+S,Y=(y+T)/n+C,B=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;B=U.width,N=U.height,o=U.width,a=U.height;var G=m=U.x,W=y=U.y;c&&(G=x-U.x-U.width),d&&!e.isRenderTexture&&(W=T-U.y-U.height),F=G/i+S,k=W/n+C,I=(G+U.width)/i+S,Y=(W+U.height)/n+C,X=-g+m,z=-v+y}d^=!P&&e.isRenderTexture?1:0,c&&(B*=-1,X+=o),d&&(N*=-1,z+=a);var H=X+B,V=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),O?(R.multiplyWithOffset(O,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),K=D.getY(X,z),q=D.getX(X,V),J=D.getY(X,V),Z=D.getX(H,V),Q=D.getY(H,V),$=D.getX(H,z),tt=D.getY(H,z);M.roundPixels&&(j=Math.round(j),K=Math.round(K),q=Math.round(q),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,K,q,J,Z,Q,$,tt,F,k,I,Y,w,E,_,A,b,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&V[4]?this.batchQuad(D,F,O,P,V[0],V[1],V[2],V[3],U,G,W,H,Y,B,N,X,I):(j[0]=D,j[1]=F,j[2]=O,j[3]=P,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,G,W,H,Y,B,N,X,I):(V[0]=C,V[1]=M,V[2]=R,V[3]=L,V[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},,,function(t,e,i){t.exports={AlignTo:i(522),Angle:i(523),Call:i(524),GetFirst:i(525),GetLast:i(526),GridAlign:i(527),IncAlpha:i(588),IncX:i(589),IncXY:i(590),IncY:i(591),PlaceOnCircle:i(592),PlaceOnEllipse:i(593),PlaceOnLine:i(594),PlaceOnRectangle:i(595),PlaceOnTriangle:i(596),PlayAnimation:i(597),PropertyValueInc:i(34),PropertyValueSet:i(26),RandomCircle:i(598),RandomEllipse:i(599),RandomLine:i(600),RandomRectangle:i(601),RandomTriangle:i(602),Rotate:i(603),RotateAround:i(604),RotateAroundDistance:i(605),ScaleX:i(606),ScaleXY:i(607),ScaleY:i(608),SetAlpha:i(609),SetBlendMode:i(610),SetDepth:i(611),SetHitArea:i(612),SetOrigin:i(613),SetRotation:i(614),SetScale:i(615),SetScaleX:i(616),SetScaleY:i(617),SetScrollFactor:i(618),SetScrollFactorX:i(619),SetScrollFactorY:i(620),SetTint:i(621),SetVisible:i(622),SetX:i(623),SetXY:i(624),SetY:i(625),ShiftPosition:i(626),Shuffle:i(627),SmootherStep:i(628),SmoothStep:i(629),Spread:i(630),ToggleVisible:i(631),WrapInRectangle:i(632)}},function(t,e,i){var n=i(102),s=[];s[n.BOTTOM_CENTER]=i(238),s[n.BOTTOM_LEFT]=i(239),s[n.BOTTOM_RIGHT]=i(240),s[n.LEFT_BOTTOM]=i(241),s[n.LEFT_CENTER]=i(242),s[n.LEFT_TOP]=i(243),s[n.RIGHT_BOTTOM]=i(244),s[n.RIGHT_CENTER]=i(245),s[n.RIGHT_TOP]=i(246),s[n.TOP_CENTER]=i(247),s[n.TOP_LEFT]=i(248),s[n.TOP_RIGHT]=i(249);t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(74),r=i(75),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)-i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(76),s=i(40),r=i(77),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(76),s=i(42),r=i(77),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(74),s=i(45),r=i(44),o=i(75);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)-i),r(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(102),s=[];s[n.BOTTOM_CENTER]=i(251),s[n.BOTTOM_LEFT]=i(252),s[n.BOTTOM_RIGHT]=i(253),s[n.CENTER]=i(254),s[n.LEFT_CENTER]=i(256),s[n.RIGHT_CENTER]=i(257),s[n.TOP_CENTER]=i(258),s[n.TOP_LEFT]=i(259),s[n.TOP_RIGHT]=i(260),s[n.LEFT_BOTTOM]=s[n.BOTTOM_LEFT],s[n.LEFT_TOP]=s[n.TOP_LEFT],s[n.RIGHT_BOTTOM]=s[n.BOTTOM_RIGHT],s[n.RIGHT_TOP]=s[n.TOP_RIGHT];t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(74),r=i(44),o=i(75);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(255),s=i(74),r=i(76);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),n(t,s(e)+i,r(e)+o),t}},function(t,e,i){var n=i(75),s=i(77);t.exports=function(t,e,i){return n(t,e),s(t,i)}},function(t,e,i){var n=i(76),s=i(40),r=i(77),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(76),s=i(42),r=i(77),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(74),s=i(45),r=i(75),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(143),s=i(85),r=i(16),o=i(4);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=s(e,0,r.PI2);return n(t,a,i)}},function(t,e,i){var n=i(263),s=i(143),r=i(85),o=i(16);t.exports=function(t,e,i,a){void 0===a&&(a=[]),e||(e=n(t)/i);for(var h=0;he.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(146),s=i(108);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(657),Flash:i(658),Pan:i(659),Shake:i(692),Zoom:i(693)}},function(t,e,i){t.exports={In:i(660),Out:i(661),InOut:i(662)}},function(t,e,i){t.exports={In:i(663),Out:i(664),InOut:i(665)}},function(t,e,i){t.exports={In:i(666),Out:i(667),InOut:i(668)}},function(t,e,i){t.exports={In:i(669),Out:i(670),InOut:i(671)}},function(t,e,i){t.exports={In:i(672),Out:i(673),InOut:i(674)}},function(t,e,i){t.exports={In:i(675),Out:i(676),InOut:i(677)}},function(t,e,i){t.exports=i(678)},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports={In:i(682),Out:i(683),InOut:i(684)}},function(t,e,i){t.exports={In:i(685),Out:i(686),InOut:i(687)}},function(t,e,i){t.exports={In:i(688),Out:i(689),InOut:i(690)}},function(t,e,i){t.exports=i(691)},function(t,e,i){var n=i(0),s=i(10),r=i(310),o=i(2),a=i(6),h=i(7),l=i(165),u=i(1),c=i(170),d=i(158),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(112),browser:i(113),features:i(164),input:i(722),audio:i(723),video:i(724),fullscreen:i(725),canvasFeatures:i(311)}},function(t,e,i){var n,s,r,o=i(27),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,E=s*l-r*h,_=s*u-o*h,A=r*u-o*l,b=c*v-d*g,S=c*m-f*g,C=c*y-p*g,M=d*m-f*v,O=d*y-p*v,P=f*y-p*m,R=x*P-T*O+w*M+E*C-_*S+A*b;return R?(R=1/R,i[0]=(h*P-l*O+u*M)*R,i[1]=(l*C-a*P-u*S)*R,i[2]=(a*O-h*C+u*b)*R,i[3]=(r*O-s*P-o*M)*R,i[4]=(n*P-r*C+o*S)*R,i[5]=(s*C-n*O-o*b)*R,i[6]=(v*A-m*_+y*E)*R,i[7]=(m*w-g*A-y*T)*R,i[8]=(g*_-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,E=n*h-s*a,_=l*p-u*f,A=l*g-c*f,b=l*v-d*f,S=u*g-c*p,C=u*v-d*p,M=c*v-d*g,O=m*M-y*C+x*S+T*b-w*A+E*_;return O?(O=1/O,t[0]=(o*M-a*C+h*S)*O,t[1]=(n*C-i*M-s*S)*O,t[2]=(p*E-g*w+v*T)*O,t[3]=(c*w-u*E-d*T)*O,t[4]=(a*b-r*M-h*A)*O,t[5]=(e*M-n*b+s*A)*O,t[6]=(g*x-f*E-v*y)*O,t[7]=(l*E-c*x+d*y)*O,t[8]=(r*C-o*b+h*_)*O,t[9]=(i*b-e*C-s*_)*O,t[10]=(f*w-p*x+v*m)*O,t[11]=(u*x-l*w-d*m)*O,t[12]=(o*A-r*S-a*_)*O,t[13]=(e*S-i*A+n*_)*O,t[14]=(p*y-f*T-g*m)*O,t[15]=(l*T-u*y+c*m)*O,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],E=y[3];return e[0]=x*i+T*o+w*u+E*p,e[1]=x*n+T*a+w*c+E*g,e[2]=x*s+T*h+w*d+E*v,e[3]=x*r+T*l+w*f+E*m,x=y[4],T=y[5],w=y[6],E=y[7],e[4]=x*i+T*o+w*u+E*p,e[5]=x*n+T*a+w*c+E*g,e[6]=x*s+T*h+w*d+E*v,e[7]=x*r+T*l+w*f+E*m,x=y[8],T=y[9],w=y[10],E=y[11],e[8]=x*i+T*o+w*u+E*p,e[9]=x*n+T*a+w*c+E*g,e[10]=x*s+T*h+w*d+E*v,e[11]=x*r+T*l+w*f+E*m,x=y[12],T=y[13],w=y[14],E=y[15],e[12]=x*i+T*o+w*u+E*p,e[13]=x*n+T*a+w*c+E*g,e[14]=x*s+T*h+w*d+E*v,e[15]=x*r+T*l+w*f+E*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],E=n*n*l+h,_=s*n*l+r*a,A=r*n*l-s*a,b=n*s*l-r*a,S=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,O=s*r*l-n*a,P=r*r*l+h;return i[0]=u*E+p*_+y*A,i[1]=c*E+g*_+x*A,i[2]=d*E+v*_+T*A,i[3]=f*E+m*_+w*A,i[4]=u*b+p*S+y*C,i[5]=c*b+g*S+x*C,i[6]=d*b+v*S+T*C,i[7]=f*b+m*S+w*C,i[8]=u*M+p*O+y*P,i[9]=c*M+g*O+x*P,i[10]=d*M+v*O+T*P,i[11]=f*M+m*O+w*P,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,E=f*y-p*m;return(v=Math.sqrt(T*T+w*w+E*E))?(T*=v=1/v,w*=v,E*=v):(T=0,w=0,E=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=E,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+E*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(169),r=i(330),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(334),s=i(27),r=i(10),o=i(164);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(500),h=i(503),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(10);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(339),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(19);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(342),s=i(27),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(112);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(172);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(174),r=i(11),o=i(54),a=i(19),h=i(361),l=i(362),u=i(363),c=i(364),d=i(30),f=i(328),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(164),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(312),s=i(0),r=i(53),o=i(140),a=i(322),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(23),s=i(0),r=i(91),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(119),r=i(22),o=i(19),a=i(6),h=i(80),l=i(1),u=i(369),c=i(175),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(121),s=i(0),r=i(11),o=i(379),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(122),s=i(0),r=i(11),o=i(18),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(381),s=i(121),r=i(0),o=i(59),a=i(382),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(122),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(110),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(13);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(12),r=i(948),o=i(14),a=i(7),h=i(173),l=i(22),u=i(329),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(12),o=i(398),a=i(399),h=i(965),l=i(2),u=i(180),c=i(400),d=i(104),f=i(396),p=i(401),g=i(13),v=i(125),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(994),r=i(64),o=i(13),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(13),r=i(31),o=i(1015),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1018),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(18),r={Circle:i(1081),Ellipse:i(1091),Intersects:i(424),Line:i(1110),Point:i(1132),Polygon:i(1146),Rectangle:i(437),Triangle:i(1176)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(200),CircleToRectangle:i(201),GetCircleToCircle:i(1101),GetCircleToRectangle:i(1102),GetLineToCircle:i(202),GetLineToRectangle:i(204),GetRectangleIntersection:i(1103),GetRectangleToRectangle:i(1104),GetRectangleToTriangle:i(1105),GetTriangleToCircle:i(1106),GetTriangleToLine:i(429),GetTriangleToTriangle:i(1107),LineToCircle:i(203),LineToLine:i(82),LineToRectangle:i(425),PointToLine:i(433),PointToLineSegment:i(1108),RectangleToRectangle:i(129),RectangleToTriangle:i(426),RectangleToValues:i(1109),TriangleToCircle:i(428),TriangleToLine:i(430),TriangleToTriangle:i(431)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(82),s=i(47),r=i(205),o=i(427);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(203),s=i(81);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(16),s=i(58),r=i(83);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(13);n.Area=i(1151),n.Ceil=i(1152),n.CeilAll=i(1153),n.CenterOn=i(162),n.Clone=i(1154),n.Contains=i(47),n.ContainsPoint=i(1155),n.ContainsRect=i(438),n.CopyFrom=i(1156),n.Decompose=i(427),n.Equals=i(1157),n.FitInside=i(1158),n.FitOutside=i(1159),n.Floor=i(1160),n.FloorAll=i(1161),n.FromPoints=i(171),n.GetAspectRatio=i(207),n.GetCenter=i(1162),n.GetPoint=i(146),n.GetPoints=i(269),n.GetSize=i(1163),n.Inflate=i(1164),n.Intersection=i(1165),n.MarchingAnts=i(280),n.MergePoints=i(1166),n.MergeRect=i(1167),n.MergeXY=i(1168),n.Offset=i(1169),n.OffsetPoint=i(1170),n.Overlaps=i(1171),n.Perimeter=i(108),n.PerimeterPoint=i(1172),n.Random=i(149),n.RandomOutside=i(1173),n.SameDimensions=i(1174),n.Scale=i(1175),n.Union=i(387),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(443),s=i(444),r=i(0),o=i(11),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(384);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},,function(t,e,i){var n=new(i(0))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,e,i){var n=i(25);t.exports=function(t,e,i,s,r,o,a){for(var h=n(i,s,r,o,null,a),l=0;l-1}return!1}},function(t,e,i){var n=i(72),s=i(99),r=i(215);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(10),s=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileWidth,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.x+i.scrollX*(1-r.scrollFactorX),s*=r.scaleX),e?Math.floor(t/s):t/s},r=function(){return console.warn("With the current map type you have to use the WorldToTileXY function."),null};t.exports=function(t){switch(t){case n.ORTHOGONAL:return s;default:return r}}},function(t,e,i){var n=i(10),s=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY),e?Math.floor(t/s):t/s},r=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY),e?Math.floor(t/(s/2)):t/(s/2)},o=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY);var o=n.hexSideLength,a=(s-o)/2+o;return e?Math.floor(t/a):t/a},a=function(){return console.warn("With the current map type you have to use the WorldToTileXY function."),null};t.exports=function(t){switch(t){case n.ORTHOGONAL:return s;case n.HEXAGONAL:return o;case n.STAGGERED:return r;default:return a}}},function(t,e,i){var n=i(33),s=i(218),r=i(474),o=i(475),a=i(486);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(218);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(10),s=i(33),r=i(101),o=i(476),a=i(478),h=i(479),l=i(482),u=i(484),c=i(485);t.exports=function(t,e,i){if("isometric"===e.orientation||"staggered"===e.orientation)console.warn("Isometric map types are WIP in this version of Phaser");else if("hexagonal"===e.orientation)console.warn("Hexagonal map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal, hexagonal and isometric map types are supported in this version of Phaser"),null;var d=new r({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:n.fromOrientationString(e.orientation),format:s.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});d.orientation===n.HEXAGONAL&&(d.hexSideLength=e.hexsidelength),d.layers=o(e,i),d.images=a(e);var f=h(e);return d.tilesets=f.tilesets,d.imageCollections=f.imageCollections,d.objects=l(e),d.tiles=u(d),c(d),d}},function(t,e,i){var n=i(10),s=i(477),r=i(2),o=i(100),a=i(219),h=i(72),l=i(220);t.exports=function(t,e){for(var i=r(t,"infinite",!1),u=[],c=[],d=l(t);d.i0;)if(d.i>=d.layers.length){if(c.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}d=c.pop()}else{var f=d.layers[d.i];if(d.i++,"tilelayer"===f.type)if(f.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+f.name+"'");else{if(f.encoding&&"base64"===f.encoding){if(f.chunks)for(var p=0;p0?((m=new h(g,v.gid,R,L,t.tilewidth,t.tileheight)).rotation=v.rotation,m.flipX=v.flipped,x[L][R]=m):(y=e?null:new h(g,-1,R,L,t.tilewidth,t.tileheight),x[L][R]=y),++T===b.width&&(M++,T=0)}}else{(g=new o({name:d.name+f.name,x:d.x+r(f,"offsetx",0)+f.x,y:d.y+r(f,"offsety",0)+f.y,width:f.width,height:f.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:d.opacity*f.opacity,visible:d.visible&&f.visible,properties:r(f,"properties",{}),orientation:n.fromOrientationString(t.orientation)})).orientation===n.HEXAGONAL&&(g.hexSideLength=t.hexsidelength);for(var D=[],F=0,k=f.data.length;F0?((m=new h(g,v.gid,T,x.length,t.tilewidth,t.tileheight)).rotation=v.rotation,m.flipX=v.flipped,D.push(m)):(y=e?null:new h(g,-1,T,x.length,t.tilewidth,t.tileheight),D.push(y)),++T===f.width&&(x.push(D),T=0,D=[])}g.data=x,u.push(g)}else if("group"===f.type){var I=l(t,f,d);c.push(d),d=I}}return u}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(220);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(137),s=i(480),r=i(221);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(100),s=i(72);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(137);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return this.tilemap.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return this.tilemap.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return this.tilemap.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return this.tilemap.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return this.tilemap.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return this.tilemap.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=l},function(t,e,i){var n=i(0),s=i(12),r=i(19),o=i(14),a=i(1341),h=i(135),l=i(30),u=i(9),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.isoCullDistances=new c(1,1),this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var E=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),_=m.getX(y,x),A=m.getY(y,x),b=m.getX(y,w),S=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),O=m.getX(T,x),P=m.getY(T,x);r.roundPixels&&(_=Math.round(_),A=Math.round(A),b=Math.round(b),S=Math.round(S),C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=_,R[++t]=A,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=b,R[++t]=S,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=_,R[++t]=A,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=O,R[++t]=P,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=E,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1350);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(225),s=i(15),r=i(86),o=i(67),a=i(138),h=i(6),l=i(224),u=i(226),c=i(228);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),E=r(e,"yoyo",i.yoyo),_=[],A=l("value",f),b=c(p[0],0,"value",A.getEnd,A.getStart,A.getActive,y,g,v,E,x,T,w,!1,!1);b.start=d,b.current=d,b.to=f,_.push(b);var S=new u(t,_,p);S.offset=s(e,"offset",null),S.completeDelay=s(e,"completeDelay",0),S.loop=Math.round(s(e,"loop",0)),S.loopDelay=Math.round(s(e,"loopDelay",0)),S.paused=r(e,"paused",!1),S.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",S),M=[S,null],O=u.TYPES,P=0;PA&&(A=C),_[b][S]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(501),s=i(48),r=i(0),o=i(10),a=i(502),h=i(90),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,E=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),E=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*E),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(27),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(311);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(89),s=i(48),r=i(0),o=i(10),a=i(19),h=i(114),l=i(1),u=i(90),c=i(78),d=i(115),f=i(30),p=i(9),g=i(504),v=i(505),m=i(506),y=i(232),x=i(507),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(233),o=i(335),a=i(336),h=i(30),l=i(141),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},,,,,function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){i(514),i(515),i(516),i(517),i(518),i(519),i(520),i(521)},function(t,e){Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(288),BaseCamera:i(89),CameraManager:i(694),Effects:i(296),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(23),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(23),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(113),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(313);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(16);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(154);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(323),IsSize:i(114),IsValue:i(749)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(324),Floor:i(91),To:i(751)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(169),s=i(331),r=i(332),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(341),Palettes:i(780)}},function(t,e,i){t.exports={ARNE16:i(342),C64:i(781),CGA:i(782),JMP:i(783),MSX:i(784)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(786),CubicBezier:i(343),Curve:i(79),Ellipse:i(344),Line:i(345),QuadraticBezier:i(346),Spline:i(347)}},function(t,e,i){var n=i(0),s=i(343),r=i(344),o=i(5),a=i(345),h=i(787),l=i(346),u=i(13),c=i(347),d=i(3),f=i(16),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(351);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(160);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(111),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(167),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(350);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(273),GeometryMask:i(274)}},function(t,e,i){var n={AddToDOM:i(116),DOMContentLoaded:i(352),GetScreenOrientation:i(353),GetTarget:i(358),ParseXML:i(359),RemoveFromDOM:i(173),RequestAnimationFrame:i(339)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(809)}},function(t,e,i){var n=i(0),s=i(11),r=i(24),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(116),s=i(284),r=i(287),o=i(27),a=i(0),h=i(309),l=i(811),u=i(333),c=i(109),d=i(337),f=i(310),p=i(352),g=i(11),v=i(19),m=i(360),y=i(24),x=i(365),T=i(366),w=i(368),E=i(115),_=i(371),A=i(338),b=i(340),S=i(375),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new _(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=S.create(this),this.loop=new A(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(E.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),b(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(116);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(176);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),E>o&&(x=E-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,E=s-w,_=s-(v-p-w),A=e.y,b=r-A,S=r-(m-g-A);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,O=0,P=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-B>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),B=0,Y=null):Y=X):X.cr&&(N.push(X.i+X.word.length),B=0,Y=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nE&&(c=E),d>_&&(d=_);var W=E+w.xAdvance,H=_+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===B?X=(U.longest-U.lengths[0])/2:2===B&&(X=U.longest-U.lengths[0]);for(var G=s.roundPixels,W=0;W0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===O?R=(D.longest-D.lengths[0])/2:2===O&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(946),s=i(947),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),E=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),_=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),A=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var b,S,C=0,M=0,O=0,P=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,Y=e.scrollY,B=e.fontData,N=B.chars,X=B.lineHeight,z=e.fontSize/B.size,U=0,G=e._align,W=0,H=0;e.getTextBounds(!1);var V=e._bounds.lines;1===G?H=(V.longest-V.lengths[0])/2:2===G&&(H=V.longest-V.lengths[0]);for(var j=s.roundPixels,K=e.displayCallback,q=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var B=0;B0&&(N=N%E-E):N>E?N=E:N<0&&(N=E+N%E),null===S&&(S=new o(k+Math.cos(B)*Y,I+Math.sin(B)*Y,v),_.push(S),F+=.01);F<1+z;)w=N*F+B,x=k+Math.cos(w)*Y,T=I+Math.sin(w)*Y,S.points.push(new r(x,T,v)),F+=.01;w=N+B,x=k+Math.cos(w)*Y,T=I+Math.sin(w)*Y,S.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++O],p[++O],p[++O],p[++O],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],v,f,c);break;case n.LINE_TO:null!==S?S.points.push(new r(p[++O],p[++O],v)):(S=new o(p[++O],p[++O],v),_.push(S));break;case n.MOVE_TO:S=new o(p[++O],p[++O],v),_.push(S);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++O],I=p[++O],f.translate(k,I);break;case n.SCALE:k=p[++O],I=p[++O],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++O]);break;case n.SET_TEXTURE:var U=p[++O],G=p[++O];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=G,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(959),s=i(960),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(962),s=i(963),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(395),Particle:i(396),ParticleEmitter:i(397),ParticleEmitterManager:i(189),Zones:i(969)}},function(t,e,i){var n=i(0),s=i(325),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(967),s=i(968),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(981),s=i(982),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(15),r=i(6),o=i(984),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(27);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,S=1;S0)for(n(h,e),S=0;S0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),S=0;S0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),b=1;bo.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,E=0;E0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(13);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(93);n.Area=i(1092),n.Circumference=i(393),n.CircumferencePoint=i(188),n.Clone=i(1093),n.Contains=i(94),n.ContainsPoint=i(1094),n.ContainsRect=i(1095),n.CopyFrom=i(1096),n.Equals=i(1097),n.GetBounds=i(1098),n.GetPoint=i(391),n.GetPoints=i(392),n.Offset=i(1099),n.OffsetPoint=i(1100),n.Random=i(151),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(93);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(94);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(94);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(13);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(200);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(202),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(13),s=i(129);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(204),s=i(129);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(426),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(202),s=i(428);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(431),s=i(429);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(433);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(162);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(13),s=i(129);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(131),KeyboardManager:i(361),KeyboardPlugin:i(1214),Key:i(446),KeyCodes:i(118),KeyCombo:i(447),JustDown:i(1219),JustUp:i(1220),DownDuration:i(1221),UpDuration:i(1222)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(11),r=i(131),o=i(19),a=i(6),h=i(54),l=i(130),u=i(446),c=i(118),d=i(447),f=i(1218),p=i(91),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(118),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(457),s=i(63),r=i(200),o=i(201);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1279);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(461);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(462);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},,,,,,,,,,,,,function(t,e,i){t.exports={BasePlugin:i(467),DefaultPlugins:i(170),PluginCache:i(24),PluginManager:i(365),ScenePlugin:i(1295)}},function(t,e,i){var n=i(467),s=i(0),r=i(22),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(18),s=i(172),r={Center:i(354),Events:i(90),Orientation:i(355),ScaleManager:i(366),ScaleModes:i(356),Zoom:i(357)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(119),s=i(18),r={Events:i(22),SceneManager:i(368),ScenePlugin:i(1298),Settings:i(370),Systems:i(175)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(23),s=i(0),r=i(22),o=i(2),a=i(24),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(123),Map:i(156),ProcessQueue:i(181),RTree:i(463),Set:i(127),Size:i(367)}},function(t,e,i){var n=i(18),s=i(1301),r={CanvasTexture:i(372),Events:i(115),FilterMode:s,Frame:i(92),Parsers:i(374),Texture:i(177),TextureManager:i(371),TextureSource:i(373)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(135),Parsers:i(1335),Formats:i(33),ImageCollection:i(480),ParseToTilemap:i(222),Tile:i(72),Tilemap:i(489),TilemapCreator:i(1344),TilemapFactory:i(1345),Tileset:i(137),LayerData:i(100),MapData:i(101),ObjectLayer:i(483),DynamicTilemapLayer:i(490),StaticTilemapLayer:i(491)}},function(t,e,i){var n=i(25),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&g=y;h--)(u=f[l][h])&&-1!==u.index&&u.visible&&0!==u.alpha&&i.push(u);else if(2===a)for(l=w;l>=T;l--)for(h=y;f[l]&&h=T;l--)for(h=x;f[l]&&h>=y;h--)(u=f[l][h])&&-1!==u.index&&u.visible&&0!==u.alpha&&i.push(u)}else if(t.orientation===n.ISOMETRIC)if(0===a){for(l=T;l=y;h--)if(o(h,l,t,e)){if(!(u=f[l][h])||-1===u.index||!u.visible||0===u.alpha)continue;i.push(u)}}else if(2===a){for(l=w;l>=T;l--)for(h=y;f[l]&&h=T;l--)for(h=x;f[l]&&h>=y;h--)if(o(h,l,t,e)){if(!(u=f[l][h])||-1===u.index||!u.visible||0===u.alpha)continue;i.push(u)}return d.tilesDrawn=i.length,d.tilesTotal=p*g,i}},function(t,e){t.exports=function(t,e,i,n){var s=i.tilemapLayer,r=s.isoCullDistances,o=s.tileToWorldXY(t,e,void 0,n);return o.x>n.worldView.x+s.scaleX*i.tileWidth*(-r.x-.5)&&o.xn.worldView.y+s.scaleY*i.tileHeight*(-r.y-.5)&&o.y=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(217);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(c.imageSmoothingEnabled=!1);for(var p=0;p0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(18),GetAdvancedValue:i(15),GetFastValue:i(2),GetMinMaxValue:i(1369),GetValue:i(6),HasAll:i(1370),HasAny:i(400),HasValue:i(104),IsPlainObject:i(7),Merge:i(120),MergeRight:i(1371),Pick:i(481),SetValue:i(420)}},function(t,e,i){var n=i(6),s=i(23);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Global constants. + * + * @ignore + */ + +var CONST = { + + /** + * Phaser Release Version + * + * @name Phaser.VERSION + * @const + * @type {string} + * @since 3.0.0 + */ + VERSION: '3.23.0-beta1', + + BlendModes: __webpack_require__(52), + + ScaleModes: __webpack_require__(229), + + /** + * AUTO Detect Renderer. + * + * @name Phaser.AUTO + * @const + * @type {integer} + * @since 3.0.0 + */ + AUTO: 0, + + /** + * Canvas Renderer. + * + * @name Phaser.CANVAS + * @const + * @type {integer} + * @since 3.0.0 + */ + CANVAS: 1, + + /** + * WebGL Renderer. + * + * @name Phaser.WEBGL + * @const + * @type {integer} + * @since 3.0.0 + */ + WEBGL: 2, + + /** + * Headless Renderer. + * + * @name Phaser.HEADLESS + * @const + * @type {integer} + * @since 3.0.0 + */ + HEADLESS: 3, + + /** + * In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead + * to help you remember what the value is doing in your code. + * + * @name Phaser.FOREVER + * @const + * @type {integer} + * @since 3.0.0 + */ + FOREVER: -1, + + /** + * Direction constant. + * + * @name Phaser.NONE + * @const + * @type {integer} + * @since 3.0.0 + */ + NONE: 4, + + /** + * Direction constant. + * + * @name Phaser.UP + * @const + * @type {integer} + * @since 3.0.0 + */ + UP: 5, + + /** + * Direction constant. + * + * @name Phaser.DOWN + * @const + * @type {integer} + * @since 3.0.0 + */ + DOWN: 6, + + /** + * Direction constant. + * + * @name Phaser.LEFT + * @const + * @type {integer} + * @since 3.0.0 + */ + LEFT: 7, + + /** + * Direction constant. + * + * @name Phaser.RIGHT + * @const + * @type {integer} + * @since 3.0.0 + */ + RIGHT: 8, + + + /** + * Orientation constant. + * + * @name Phaser.ORTHOGONAL + * @const + * @type {integer} + * @since 3.2.2 + */ + ORTHOGONAL: 0, + + + /** + * Orientation constant. + * + * @name Phaser.ISOMETRIC + * @const + * @type {integer} + * @since 3.2.2 + */ + ISOMETRIC: 1, + + + /** + * Orientation constant. + * + * @name Phaser.STAGGERED + * @const + * @type {integer} + * @since 3.2.2 + */ + STAGGERED: 2, + + /** + * Orientation constant. + * + * @name Phaser.HEXAGONAL + * @const + * @type {integer} + * @since 3.2.2 + */ + HEXAGONAL: 3, + + fromOrientationString: function (orientation) + { + var constor = CONST.ORTHOGONAL; + + if (orientation === 'isometric') + { + constor = CONST.ISOMETRIC; + } + else if (orientation === 'staggered') + { + constor = CONST.STAGGERED; + } + else if (orientation === 'hexagonal') + { + constor = CONST.HEXAGONAL; + } + return constor; + } +}; + +module.exports = CONST; + + +/***/ }), +/* 11 */ +/***/ (function(module, exports, __webpack_require__) { + "use strict"; @@ -2043,7 +2242,7 @@ if (true) { /***/ }), -/* 11 */ +/* 12 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2058,34 +2257,34 @@ if (true) { module.exports = { - Alpha: __webpack_require__(532), - AlphaSingle: __webpack_require__(266), - Animation: __webpack_require__(503), - BlendMode: __webpack_require__(269), - ComputedSize: __webpack_require__(551), - Crop: __webpack_require__(552), - Depth: __webpack_require__(270), - Flip: __webpack_require__(553), - GetBounds: __webpack_require__(554), - Mask: __webpack_require__(274), - Origin: __webpack_require__(571), - PathFollower: __webpack_require__(572), - Pipeline: __webpack_require__(151), - ScrollFactor: __webpack_require__(277), - Size: __webpack_require__(573), - Texture: __webpack_require__(574), - TextureCrop: __webpack_require__(575), - Tint: __webpack_require__(576), - ToJSON: __webpack_require__(278), - Transform: __webpack_require__(279), + Alpha: __webpack_require__(528), + AlphaSingle: __webpack_require__(264), + Animation: __webpack_require__(499), + BlendMode: __webpack_require__(267), + ComputedSize: __webpack_require__(547), + Crop: __webpack_require__(548), + Depth: __webpack_require__(268), + Flip: __webpack_require__(549), + GetBounds: __webpack_require__(550), + Mask: __webpack_require__(272), + Origin: __webpack_require__(567), + PathFollower: __webpack_require__(568), + Pipeline: __webpack_require__(150), + ScrollFactor: __webpack_require__(275), + Size: __webpack_require__(569), + Texture: __webpack_require__(570), + TextureCrop: __webpack_require__(571), + Tint: __webpack_require__(572), + ToJSON: __webpack_require__(276), + Transform: __webpack_require__(277), TransformMatrix: __webpack_require__(30), - Visible: __webpack_require__(280) + Visible: __webpack_require__(278) }; /***/ }), -/* 12 */ +/* 13 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2096,11 +2295,11 @@ module.exports = { var Class = __webpack_require__(0); var Contains = __webpack_require__(47); -var GetPoint = __webpack_require__(147); -var GetPoints = __webpack_require__(271); +var GetPoint = __webpack_require__(146); +var GetPoints = __webpack_require__(269); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(150); +var Random = __webpack_require__(149); /** * @classdesc @@ -2596,7 +2795,7 @@ module.exports = Rectangle; /***/ }), -/* 13 */ +/* 14 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -2606,10 +2805,10 @@ module.exports = Rectangle; */ var Class = __webpack_require__(0); -var ComponentsToJSON = __webpack_require__(278); -var DataManager = __webpack_require__(110); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(89); +var ComponentsToJSON = __webpack_require__(276); +var DataManager = __webpack_require__(109); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(88); /** * @classdesc @@ -3237,7 +3436,7 @@ module.exports = GameObject; /***/ }), -/* 14 */ +/* 15 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3246,7 +3445,7 @@ module.exports = GameObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH = __webpack_require__(166); +var MATH = __webpack_require__(165); var GetValue = __webpack_require__(6); /** @@ -3324,7 +3523,7 @@ module.exports = GetAdvancedValue; /***/ }), -/* 15 */ +/* 16 */ /***/ (function(module, exports) { /** @@ -3416,7 +3615,7 @@ module.exports = MATH_CONST; /***/ }), -/* 16 */ +/* 17 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3426,8 +3625,8 @@ module.exports = MATH_CONST; */ var Class = __webpack_require__(0); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -3584,7 +3783,7 @@ module.exports = GameObjectCreator; /***/ }), -/* 17 */ +/* 18 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3683,7 +3882,7 @@ module.exports = Extend; /***/ }), -/* 18 */ +/* 19 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3698,28 +3897,28 @@ module.exports = Extend; module.exports = { - BLUR: __webpack_require__(555), - BOOT: __webpack_require__(556), - CONTEXT_LOST: __webpack_require__(557), - CONTEXT_RESTORED: __webpack_require__(558), - DESTROY: __webpack_require__(559), - FOCUS: __webpack_require__(560), - HIDDEN: __webpack_require__(561), - PAUSE: __webpack_require__(562), - POST_RENDER: __webpack_require__(563), - POST_STEP: __webpack_require__(564), - PRE_RENDER: __webpack_require__(565), - PRE_STEP: __webpack_require__(566), - READY: __webpack_require__(567), - RESUME: __webpack_require__(568), - STEP: __webpack_require__(569), - VISIBLE: __webpack_require__(570) + BLUR: __webpack_require__(551), + BOOT: __webpack_require__(552), + CONTEXT_LOST: __webpack_require__(553), + CONTEXT_RESTORED: __webpack_require__(554), + DESTROY: __webpack_require__(555), + FOCUS: __webpack_require__(556), + HIDDEN: __webpack_require__(557), + PAUSE: __webpack_require__(558), + POST_RENDER: __webpack_require__(559), + POST_STEP: __webpack_require__(560), + PRE_RENDER: __webpack_require__(561), + PRE_STEP: __webpack_require__(562), + READY: __webpack_require__(563), + RESUME: __webpack_require__(564), + STEP: __webpack_require__(565), + VISIBLE: __webpack_require__(566) }; /***/ }), -/* 19 */ +/* 20 */ /***/ (function(module, exports) { /** @@ -3871,7 +4070,7 @@ module.exports = FILE_CONST; /***/ }), -/* 20 */ +/* 21 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3881,13 +4080,13 @@ module.exports = FILE_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var Events = __webpack_require__(81); +var CONST = __webpack_require__(20); +var Events = __webpack_require__(80); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(133); -var MergeXHRSettings = __webpack_require__(211); -var XHRLoader = __webpack_require__(450); -var XHRSettings = __webpack_require__(134); +var GetURL = __webpack_require__(132); +var MergeXHRSettings = __webpack_require__(210); +var XHRLoader = __webpack_require__(448); +var XHRSettings = __webpack_require__(133); /** * @classdesc @@ -4412,7 +4611,7 @@ module.exports = File; /***/ }), -/* 21 */ +/* 22 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4427,31 +4626,31 @@ module.exports = File; module.exports = { - BOOT: __webpack_require__(705), - CREATE: __webpack_require__(706), - DESTROY: __webpack_require__(707), - PAUSE: __webpack_require__(708), - POST_UPDATE: __webpack_require__(709), - PRE_UPDATE: __webpack_require__(710), - READY: __webpack_require__(711), - RENDER: __webpack_require__(712), - RESUME: __webpack_require__(713), - SHUTDOWN: __webpack_require__(714), - SLEEP: __webpack_require__(715), - START: __webpack_require__(716), - TRANSITION_COMPLETE: __webpack_require__(717), - TRANSITION_INIT: __webpack_require__(718), - TRANSITION_OUT: __webpack_require__(719), - TRANSITION_START: __webpack_require__(720), - TRANSITION_WAKE: __webpack_require__(721), - UPDATE: __webpack_require__(722), - WAKE: __webpack_require__(723) + BOOT: __webpack_require__(701), + CREATE: __webpack_require__(702), + DESTROY: __webpack_require__(703), + PAUSE: __webpack_require__(704), + POST_UPDATE: __webpack_require__(705), + PRE_UPDATE: __webpack_require__(706), + READY: __webpack_require__(707), + RENDER: __webpack_require__(708), + RESUME: __webpack_require__(709), + SHUTDOWN: __webpack_require__(710), + SLEEP: __webpack_require__(711), + START: __webpack_require__(712), + TRANSITION_COMPLETE: __webpack_require__(713), + TRANSITION_INIT: __webpack_require__(714), + TRANSITION_OUT: __webpack_require__(715), + TRANSITION_START: __webpack_require__(716), + TRANSITION_WAKE: __webpack_require__(717), + UPDATE: __webpack_require__(718), + WAKE: __webpack_require__(719) }; /***/ }), -/* 22 */ +/* 23 */ /***/ (function(module, exports) { /** @@ -4481,7 +4680,7 @@ module.exports = Clamp; /***/ }), -/* 23 */ +/* 24 */ /***/ (function(module, exports) { /** @@ -4690,7 +4889,7 @@ module.exports = PluginCache; /***/ }), -/* 24 */ +/* 25 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4774,7 +4973,7 @@ module.exports = GetTilesWithin; /***/ }), -/* 25 */ +/* 26 */ /***/ (function(module, exports) { /** @@ -4841,7 +5040,7 @@ module.exports = PropertyValueSet; /***/ }), -/* 26 */ +/* 27 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -4850,8 +5049,8 @@ module.exports = PropertyValueSet; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(29); -var Smoothing = __webpack_require__(162); +var CONST = __webpack_require__(10); +var Smoothing = __webpack_require__(161); // The pool into which the canvas elements are placed. var pool = []; @@ -5102,7 +5301,7 @@ module.exports = CanvasPool(); /***/ }), -/* 27 */ +/* 28 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -5112,7 +5311,7 @@ module.exports = CanvasPool(); */ var BlendModes = __webpack_require__(52); -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); /** * Builds a Game Object using the provided configuration object. @@ -5230,7 +5429,7 @@ module.exports = BuildGameObject; /***/ }), -/* 28 */ +/* 29 */ /***/ (function(module, exports) { /** @@ -5317,144 +5516,6 @@ var SetTransform = function (renderer, ctx, src, camera, parentMatrix) module.exports = SetTransform; -/***/ }), -/* 29 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Global constants. - * - * @ignore - */ - -var CONST = { - - /** - * Phaser Release Version - * - * @name Phaser.VERSION - * @const - * @type {string} - * @since 3.0.0 - */ - VERSION: '3.23.0-beta1', - - BlendModes: __webpack_require__(52), - - ScaleModes: __webpack_require__(231), - - /** - * AUTO Detect Renderer. - * - * @name Phaser.AUTO - * @const - * @type {integer} - * @since 3.0.0 - */ - AUTO: 0, - - /** - * Canvas Renderer. - * - * @name Phaser.CANVAS - * @const - * @type {integer} - * @since 3.0.0 - */ - CANVAS: 1, - - /** - * WebGL Renderer. - * - * @name Phaser.WEBGL - * @const - * @type {integer} - * @since 3.0.0 - */ - WEBGL: 2, - - /** - * Headless Renderer. - * - * @name Phaser.HEADLESS - * @const - * @type {integer} - * @since 3.0.0 - */ - HEADLESS: 3, - - /** - * In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead - * to help you remember what the value is doing in your code. - * - * @name Phaser.FOREVER - * @const - * @type {integer} - * @since 3.0.0 - */ - FOREVER: -1, - - /** - * Direction constant. - * - * @name Phaser.NONE - * @const - * @type {integer} - * @since 3.0.0 - */ - NONE: 4, - - /** - * Direction constant. - * - * @name Phaser.UP - * @const - * @type {integer} - * @since 3.0.0 - */ - UP: 5, - - /** - * Direction constant. - * - * @name Phaser.DOWN - * @const - * @type {integer} - * @since 3.0.0 - */ - DOWN: 6, - - /** - * Direction constant. - * - * @name Phaser.LEFT - * @const - * @type {integer} - * @since 3.0.0 - */ - LEFT: 7, - - /** - * Direction constant. - * - * @name Phaser.RIGHT - * @const - * @type {integer} - * @since 3.0.0 - */ - RIGHT: 8 - -}; - -module.exports = CONST; - - /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { @@ -5466,7 +5527,7 @@ module.exports = CONST; */ var Class = __webpack_require__(0); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Vector2 = __webpack_require__(3); /** @@ -6434,8 +6495,8 @@ module.exports = TransformMatrix; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); var Line = __webpack_require__(56); /** @@ -6734,10 +6795,10 @@ module.exports = Shape; */ var Class = __webpack_require__(0); -var GetColor = __webpack_require__(160); -var GetColor32 = __webpack_require__(292); -var HSVToRGB = __webpack_require__(161); -var RGBToHSV = __webpack_require__(293); +var GetColor = __webpack_require__(159); +var GetColor32 = __webpack_require__(290); +var HSVToRGB = __webpack_require__(160); +var RGBToHSV = __webpack_require__(291); /** * @namespace Phaser.Display.Color @@ -7718,7 +7779,7 @@ module.exports = PropertyValueInc; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Convert the given angle from degrees, to the equivalent angle in radians. @@ -8694,21 +8755,21 @@ module.exports = Contains; module.exports = { - DESTROY: __webpack_require__(646), - FADE_IN_COMPLETE: __webpack_require__(647), - FADE_IN_START: __webpack_require__(648), - FADE_OUT_COMPLETE: __webpack_require__(649), - FADE_OUT_START: __webpack_require__(650), - FLASH_COMPLETE: __webpack_require__(651), - FLASH_START: __webpack_require__(652), - PAN_COMPLETE: __webpack_require__(653), - PAN_START: __webpack_require__(654), - POST_RENDER: __webpack_require__(655), - PRE_RENDER: __webpack_require__(656), - SHAKE_COMPLETE: __webpack_require__(657), - SHAKE_START: __webpack_require__(658), - ZOOM_COMPLETE: __webpack_require__(659), - ZOOM_START: __webpack_require__(660) + DESTROY: __webpack_require__(642), + FADE_IN_COMPLETE: __webpack_require__(643), + FADE_IN_START: __webpack_require__(644), + FADE_OUT_COMPLETE: __webpack_require__(645), + FADE_OUT_START: __webpack_require__(646), + FLASH_COMPLETE: __webpack_require__(647), + FLASH_START: __webpack_require__(648), + PAN_COMPLETE: __webpack_require__(649), + PAN_START: __webpack_require__(650), + POST_RENDER: __webpack_require__(651), + PRE_RENDER: __webpack_require__(652), + SHAKE_COMPLETE: __webpack_require__(653), + SHAKE_START: __webpack_require__(654), + ZOOM_COMPLETE: __webpack_require__(655), + ZOOM_START: __webpack_require__(656) }; @@ -8890,8 +8951,8 @@ module.exports = CONST; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); -var GetTilesWithin = __webpack_require__(24); +var GetTileAt = __webpack_require__(136); +var GetTilesWithin = __webpack_require__(25); /** * Calculates interesting faces within the rectangular area specified (in tile coordinates) of the @@ -9335,52 +9396,52 @@ module.exports = DistanceBetween; module.exports = { - BOOT: __webpack_require__(816), - DESTROY: __webpack_require__(817), - DRAG_END: __webpack_require__(818), - DRAG_ENTER: __webpack_require__(819), - DRAG: __webpack_require__(820), - DRAG_LEAVE: __webpack_require__(821), - DRAG_OVER: __webpack_require__(822), - DRAG_START: __webpack_require__(823), - DROP: __webpack_require__(824), - GAME_OUT: __webpack_require__(825), - GAME_OVER: __webpack_require__(826), - GAMEOBJECT_DOWN: __webpack_require__(827), - GAMEOBJECT_DRAG_END: __webpack_require__(828), - GAMEOBJECT_DRAG_ENTER: __webpack_require__(829), - GAMEOBJECT_DRAG: __webpack_require__(830), - GAMEOBJECT_DRAG_LEAVE: __webpack_require__(831), - GAMEOBJECT_DRAG_OVER: __webpack_require__(832), - GAMEOBJECT_DRAG_START: __webpack_require__(833), - GAMEOBJECT_DROP: __webpack_require__(834), - GAMEOBJECT_MOVE: __webpack_require__(835), - GAMEOBJECT_OUT: __webpack_require__(836), - GAMEOBJECT_OVER: __webpack_require__(837), - GAMEOBJECT_POINTER_DOWN: __webpack_require__(838), - GAMEOBJECT_POINTER_MOVE: __webpack_require__(839), - GAMEOBJECT_POINTER_OUT: __webpack_require__(840), - GAMEOBJECT_POINTER_OVER: __webpack_require__(841), - GAMEOBJECT_POINTER_UP: __webpack_require__(842), - GAMEOBJECT_POINTER_WHEEL: __webpack_require__(843), - GAMEOBJECT_UP: __webpack_require__(844), - GAMEOBJECT_WHEEL: __webpack_require__(845), - MANAGER_BOOT: __webpack_require__(846), - MANAGER_PROCESS: __webpack_require__(847), - MANAGER_UPDATE: __webpack_require__(848), - POINTER_DOWN: __webpack_require__(849), - POINTER_DOWN_OUTSIDE: __webpack_require__(850), - POINTER_MOVE: __webpack_require__(851), - POINTER_OUT: __webpack_require__(852), - POINTER_OVER: __webpack_require__(853), - POINTER_UP: __webpack_require__(854), - POINTER_UP_OUTSIDE: __webpack_require__(855), - POINTER_WHEEL: __webpack_require__(856), - POINTERLOCK_CHANGE: __webpack_require__(857), - PRE_UPDATE: __webpack_require__(858), - SHUTDOWN: __webpack_require__(859), - START: __webpack_require__(860), - UPDATE: __webpack_require__(861) + BOOT: __webpack_require__(812), + DESTROY: __webpack_require__(813), + DRAG_END: __webpack_require__(814), + DRAG_ENTER: __webpack_require__(815), + DRAG: __webpack_require__(816), + DRAG_LEAVE: __webpack_require__(817), + DRAG_OVER: __webpack_require__(818), + DRAG_START: __webpack_require__(819), + DROP: __webpack_require__(820), + GAME_OUT: __webpack_require__(821), + GAME_OVER: __webpack_require__(822), + GAMEOBJECT_DOWN: __webpack_require__(823), + GAMEOBJECT_DRAG_END: __webpack_require__(824), + GAMEOBJECT_DRAG_ENTER: __webpack_require__(825), + GAMEOBJECT_DRAG: __webpack_require__(826), + GAMEOBJECT_DRAG_LEAVE: __webpack_require__(827), + GAMEOBJECT_DRAG_OVER: __webpack_require__(828), + GAMEOBJECT_DRAG_START: __webpack_require__(829), + GAMEOBJECT_DROP: __webpack_require__(830), + GAMEOBJECT_MOVE: __webpack_require__(831), + GAMEOBJECT_OUT: __webpack_require__(832), + GAMEOBJECT_OVER: __webpack_require__(833), + GAMEOBJECT_POINTER_DOWN: __webpack_require__(834), + GAMEOBJECT_POINTER_MOVE: __webpack_require__(835), + GAMEOBJECT_POINTER_OUT: __webpack_require__(836), + GAMEOBJECT_POINTER_OVER: __webpack_require__(837), + GAMEOBJECT_POINTER_UP: __webpack_require__(838), + GAMEOBJECT_POINTER_WHEEL: __webpack_require__(839), + GAMEOBJECT_UP: __webpack_require__(840), + GAMEOBJECT_WHEEL: __webpack_require__(841), + MANAGER_BOOT: __webpack_require__(842), + MANAGER_PROCESS: __webpack_require__(843), + MANAGER_UPDATE: __webpack_require__(844), + POINTER_DOWN: __webpack_require__(845), + POINTER_DOWN_OUTSIDE: __webpack_require__(846), + POINTER_MOVE: __webpack_require__(847), + POINTER_OUT: __webpack_require__(848), + POINTER_OVER: __webpack_require__(849), + POINTER_UP: __webpack_require__(850), + POINTER_UP_OUTSIDE: __webpack_require__(851), + POINTER_WHEEL: __webpack_require__(852), + POINTERLOCK_CHANGE: __webpack_require__(853), + PRE_UPDATE: __webpack_require__(854), + SHUTDOWN: __webpack_require__(855), + START: __webpack_require__(856), + UPDATE: __webpack_require__(857) }; @@ -9437,10 +9498,10 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var GetPoint = __webpack_require__(272); -var GetPoints = __webpack_require__(148); +var GetPoint = __webpack_require__(270); +var GetPoints = __webpack_require__(147); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(149); +var Random = __webpack_require__(148); var Vector2 = __webpack_require__(3); /** @@ -9839,29 +9900,29 @@ module.exports = Wrap; module.exports = { - COMPLETE: __webpack_require__(884), - DECODED: __webpack_require__(885), - DECODED_ALL: __webpack_require__(886), - DESTROY: __webpack_require__(887), - DETUNE: __webpack_require__(888), - GLOBAL_DETUNE: __webpack_require__(889), - GLOBAL_MUTE: __webpack_require__(890), - GLOBAL_RATE: __webpack_require__(891), - GLOBAL_VOLUME: __webpack_require__(892), - LOOP: __webpack_require__(893), - LOOPED: __webpack_require__(894), - MUTE: __webpack_require__(895), - PAUSE_ALL: __webpack_require__(896), - PAUSE: __webpack_require__(897), - PLAY: __webpack_require__(898), - RATE: __webpack_require__(899), - RESUME_ALL: __webpack_require__(900), - RESUME: __webpack_require__(901), - SEEK: __webpack_require__(902), - STOP_ALL: __webpack_require__(903), - STOP: __webpack_require__(904), - UNLOCKED: __webpack_require__(905), - VOLUME: __webpack_require__(906) + COMPLETE: __webpack_require__(880), + DECODED: __webpack_require__(881), + DECODED_ALL: __webpack_require__(882), + DESTROY: __webpack_require__(883), + DETUNE: __webpack_require__(884), + GLOBAL_DETUNE: __webpack_require__(885), + GLOBAL_MUTE: __webpack_require__(886), + GLOBAL_RATE: __webpack_require__(887), + GLOBAL_VOLUME: __webpack_require__(888), + LOOP: __webpack_require__(889), + LOOPED: __webpack_require__(890), + MUTE: __webpack_require__(891), + PAUSE_ALL: __webpack_require__(892), + PAUSE: __webpack_require__(893), + PLAY: __webpack_require__(894), + RATE: __webpack_require__(895), + RESUME_ALL: __webpack_require__(896), + RESUME: __webpack_require__(897), + SEEK: __webpack_require__(898), + STOP_ALL: __webpack_require__(899), + STOP: __webpack_require__(900), + UNLOCKED: __webpack_require__(901), + VOLUME: __webpack_require__(902) }; @@ -9877,8 +9938,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); @@ -10347,12 +10408,12 @@ var Body = {}; module.exports = Body; -var Vertices = __webpack_require__(85); -var Vector = __webpack_require__(98); -var Sleeping = __webpack_require__(236); +var Vertices = __webpack_require__(84); +var Vector = __webpack_require__(97); +var Sleeping = __webpack_require__(234); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(99); -var Axes = __webpack_require__(512); +var Bounds = __webpack_require__(98); +var Axes = __webpack_require__(508); (function() { @@ -11724,10 +11785,10 @@ var Axes = __webpack_require__(512); var Class = __webpack_require__(0); var Contains = __webpack_require__(55); -var GetPoint = __webpack_require__(263); -var GetPoints = __webpack_require__(264); +var GetPoint = __webpack_require__(261); +var GetPoints = __webpack_require__(262); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(145); +var Random = __webpack_require__(144); /** * @classdesc @@ -12870,8 +12931,8 @@ module.exports = SafeRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var EaseMap = __webpack_require__(164); -var UppercaseFirst = __webpack_require__(177); +var EaseMap = __webpack_require__(163); +var UppercaseFirst = __webpack_require__(176); /** * This internal function is used to return the correct ease function for a Tween. @@ -13055,12 +13116,12 @@ module.exports = StrokePathWebGL; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(82); -var GetPoint = __webpack_require__(420); -var GetPoints = __webpack_require__(421); +var Contains = __webpack_require__(81); +var GetPoint = __webpack_require__(418); +var GetPoints = __webpack_require__(419); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(153); +var Random = __webpack_require__(152); /** * @classdesc @@ -13502,8 +13563,8 @@ module.exports = Triangle; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -13811,127 +13872,10 @@ module.exports = SetTileCollision; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var WorldToTileX = __webpack_require__(473); -var WorldToTileY = __webpack_require__(474); -var Vector2 = __webpack_require__(3); - -/** - * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.WorldToTileXY - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in tile units. - */ -var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) -{ - var orientation = layer.orientation; - if (point === undefined) { point = new Vector2(0, 0); } - - if (orientation === 'orthogonal') - { - point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); - point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - // console.log(1,worldY) - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - // console.log(worldY) - tileHeight *= tilemapLayer.scaleY; - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'isometric') - { - point.x = snapToFloor - ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) - : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); - - point.y = snapToFloor - ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) - : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); - } - if (orientation === 'orthogonal') - { - point.x = snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - point.y = snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } - else if (orientation === 'staggered') - { - point.y = snapToFloor - ? Math.floor((worldY / (tileHeight / 2))) - : (worldY / (tileHeight / 2)); - point.x = snapToFloor - ? Math.floor((worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth) - : (worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth; - - } - else if (orientation === 'hexagonal') - { - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // similar to staggered, because Tiled uses the oddr representation. - point.y = snapToFloor - ? Math.floor((worldY / rowHeight)) - : (worldY / rowHeight); - point.x = snapToFloor - ? Math.floor((worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth) - : (worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth; - } - } - - return point; -}; - -module.exports = WorldToTileXY; - - -/***/ }), -/* 73 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - +var CONST = __webpack_require__(10); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Rectangle = __webpack_require__(439); +var Components = __webpack_require__(12); +var Rectangle = __webpack_require__(437); /** * @classdesc @@ -14631,34 +14575,34 @@ var Tile = new Class({ */ updatePixelXY: function () { - if (this.layer.orientation === 'orthogonal') - { - // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the - // bottom left, while the Phaser renderer assumes the origin is the top left. The y - // coordinate needs to be adjusted by the difference. - this.pixelX = this.x * this.baseWidth; - this.pixelY = this.y * this.baseHeight; - - } - else if (this.layer.orientation === 'isometric') + if (this.layer.orientation === CONST.ISOMETRIC) { // reminder : for the tilemap to be centered we have to move the image to the right with the camera ! // this is crucial for wordtotile, tiletoworld to work. this.pixelX = (this.x - this.y) * this.baseWidth * 0.5; this.pixelY = (this.x + this.y) * this.baseHeight * 0.5; } - else if (this.layer.orientation === 'staggered') + else if (this.layer.orientation === CONST.STAGGERED) { this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2); this.pixelY = this.y * (this.baseHeight / 2); } - else if (this.layer.orientation === 'hexagonal') + else if (this.layer.orientation === CONST.HEXAGONAL) { var sidel = this.layer.hexSideLength; var rowHeight = ((this.baseHeight - sidel) / 2 + sidel); this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2); this.pixelY = this.y * rowHeight; } + else if (this.layer.orientation === CONST.ORTHOGONAL) + { + // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the + // bottom left, while the Phaser renderer assumes the origin is the top left. The y + // coordinate needs to be adjusted by the difference. + this.pixelX = this.x * this.baseWidth; + this.pixelY = this.y * this.baseHeight; + + } return this; }, @@ -14778,7 +14722,7 @@ module.exports = Tile; /***/ }), -/* 74 */ +/* 73 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14788,9 +14732,9 @@ module.exports = Tile; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var SpriteRender = __webpack_require__(962); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var SpriteRender = __webpack_require__(958); /** * @classdesc @@ -14956,7 +14900,7 @@ module.exports = Sprite; /***/ }), -/* 75 */ +/* 74 */ /***/ (function(module, exports) { /** @@ -14984,7 +14928,7 @@ module.exports = GetCenterX; /***/ }), -/* 76 */ +/* 75 */ /***/ (function(module, exports) { /** @@ -15019,7 +14963,7 @@ module.exports = SetCenterX; /***/ }), -/* 77 */ +/* 76 */ /***/ (function(module, exports) { /** @@ -15047,7 +14991,7 @@ module.exports = GetCenterY; /***/ }), -/* 78 */ +/* 77 */ /***/ (function(module, exports) { /** @@ -15082,7 +15026,7 @@ module.exports = SetCenterY; /***/ }), -/* 79 */ +/* 78 */ /***/ (function(module, exports) { /** @@ -15128,7 +15072,7 @@ module.exports = SpliceOne; /***/ }), -/* 80 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15138,8 +15082,8 @@ module.exports = SpliceOne; */ var Class = __webpack_require__(0); -var FromPoints = __webpack_require__(172); -var Rectangle = __webpack_require__(12); +var FromPoints = __webpack_require__(171); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); /** @@ -15748,7 +15692,7 @@ module.exports = Curve; /***/ }), -/* 81 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15763,22 +15707,22 @@ module.exports = Curve; module.exports = { - ADD: __webpack_require__(863), - COMPLETE: __webpack_require__(864), - FILE_COMPLETE: __webpack_require__(865), - FILE_KEY_COMPLETE: __webpack_require__(866), - FILE_LOAD_ERROR: __webpack_require__(867), - FILE_LOAD: __webpack_require__(868), - FILE_PROGRESS: __webpack_require__(869), - POST_PROCESS: __webpack_require__(870), - PROGRESS: __webpack_require__(871), - START: __webpack_require__(872) + ADD: __webpack_require__(859), + COMPLETE: __webpack_require__(860), + FILE_COMPLETE: __webpack_require__(861), + FILE_KEY_COMPLETE: __webpack_require__(862), + FILE_LOAD_ERROR: __webpack_require__(863), + FILE_LOAD: __webpack_require__(864), + FILE_PROGRESS: __webpack_require__(865), + POST_PROCESS: __webpack_require__(866), + PROGRESS: __webpack_require__(867), + START: __webpack_require__(868) }; /***/ }), -/* 82 */ +/* 81 */ /***/ (function(module, exports) { /** @@ -15831,7 +15775,7 @@ module.exports = Contains; /***/ }), -/* 83 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15907,7 +15851,7 @@ module.exports = LineToLine; /***/ }), -/* 84 */ +/* 83 */ /***/ (function(module, exports) { /** @@ -15935,7 +15879,7 @@ module.exports = Angle; /***/ }), -/* 85 */ +/* 84 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15952,7 +15896,7 @@ var Vertices = {}; module.exports = Vertices; -var Vector = __webpack_require__(98); +var Vector = __webpack_require__(97); var Common = __webpack_require__(37); (function() { @@ -16396,7 +16340,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 86 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16405,7 +16349,7 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); /** * Return a value based on the range between `min` and `max` and the percentage given. @@ -16430,7 +16374,7 @@ module.exports = FromPercent; /***/ }), -/* 87 */ +/* 86 */ /***/ (function(module, exports) { /** @@ -16471,7 +16415,7 @@ module.exports = GetBoolean; /***/ }), -/* 88 */ +/* 87 */ /***/ (function(module, exports) { /** @@ -16643,7 +16587,7 @@ module.exports = TWEEN_CONST; /***/ }), -/* 89 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16658,23 +16602,23 @@ module.exports = TWEEN_CONST; module.exports = { - DESTROY: __webpack_require__(581), - VIDEO_COMPLETE: __webpack_require__(582), - VIDEO_CREATED: __webpack_require__(583), - VIDEO_ERROR: __webpack_require__(584), - VIDEO_LOOP: __webpack_require__(585), - VIDEO_PLAY: __webpack_require__(586), - VIDEO_SEEKED: __webpack_require__(587), - VIDEO_SEEKING: __webpack_require__(588), - VIDEO_STOP: __webpack_require__(589), - VIDEO_TIMEOUT: __webpack_require__(590), - VIDEO_UNLOCKED: __webpack_require__(591) + DESTROY: __webpack_require__(577), + VIDEO_COMPLETE: __webpack_require__(578), + VIDEO_CREATED: __webpack_require__(579), + VIDEO_ERROR: __webpack_require__(580), + VIDEO_LOOP: __webpack_require__(581), + VIDEO_PLAY: __webpack_require__(582), + VIDEO_SEEKED: __webpack_require__(583), + VIDEO_SEEKING: __webpack_require__(584), + VIDEO_STOP: __webpack_require__(585), + VIDEO_TIMEOUT: __webpack_require__(586), + VIDEO_UNLOCKED: __webpack_require__(587) }; /***/ }), -/* 90 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16684,13 +16628,13 @@ module.exports = { */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); +var Components = __webpack_require__(12); var DegToRad = __webpack_require__(35); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(48); -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); var TransformMatrix = __webpack_require__(30); -var ValueToColor = __webpack_require__(159); +var ValueToColor = __webpack_require__(158); var Vector2 = __webpack_require__(3); /** @@ -18595,7 +18539,7 @@ module.exports = BaseCamera; /***/ }), -/* 91 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -18610,18 +18554,18 @@ module.exports = BaseCamera; module.exports = { - ENTER_FULLSCREEN: __webpack_require__(699), - FULLSCREEN_FAILED: __webpack_require__(700), - FULLSCREEN_UNSUPPORTED: __webpack_require__(701), - LEAVE_FULLSCREEN: __webpack_require__(702), - ORIENTATION_CHANGE: __webpack_require__(703), - RESIZE: __webpack_require__(704) + ENTER_FULLSCREEN: __webpack_require__(695), + FULLSCREEN_FAILED: __webpack_require__(696), + FULLSCREEN_UNSUPPORTED: __webpack_require__(697), + LEAVE_FULLSCREEN: __webpack_require__(698), + ORIENTATION_CHANGE: __webpack_require__(699), + RESIZE: __webpack_require__(700) }; /***/ }), -/* 92 */ +/* 91 */ /***/ (function(module, exports) { /** @@ -18665,7 +18609,7 @@ module.exports = SnapFloor; /***/ }), -/* 93 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -18675,8 +18619,8 @@ module.exports = SnapFloor; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); -var Extend = __webpack_require__(17); +var Clamp = __webpack_require__(23); +var Extend = __webpack_require__(18); /** * @classdesc @@ -19484,7 +19428,7 @@ module.exports = Frame; /***/ }), -/* 94 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19494,11 +19438,11 @@ module.exports = Frame; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(95); -var GetPoint = __webpack_require__(393); -var GetPoints = __webpack_require__(394); +var Contains = __webpack_require__(94); +var GetPoint = __webpack_require__(391); +var GetPoints = __webpack_require__(392); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(152); +var Random = __webpack_require__(151); /** * @classdesc @@ -19866,7 +19810,7 @@ module.exports = Ellipse; /***/ }), -/* 95 */ +/* 94 */ /***/ (function(module, exports) { /** @@ -19908,7 +19852,7 @@ module.exports = Contains; /***/ }), -/* 96 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19917,15 +19861,15 @@ module.exports = Contains; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Actions = __webpack_require__(238); +var Actions = __webpack_require__(236); var Class = __webpack_require__(0); -var Events = __webpack_require__(89); +var Events = __webpack_require__(88); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var Range = __webpack_require__(387); -var Set = __webpack_require__(128); -var Sprite = __webpack_require__(74); +var Range = __webpack_require__(385); +var Set = __webpack_require__(127); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -21546,7 +21490,7 @@ module.exports = Group; /***/ }), -/* 97 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21610,7 +21554,7 @@ module.exports = FillPathWebGL; /***/ }), -/* 98 */ +/* 97 */ /***/ (function(module, exports) { /** @@ -21854,7 +21798,7 @@ module.exports = Vector; })(); /***/ }), -/* 99 */ +/* 98 */ /***/ (function(module, exports) { /** @@ -21980,7 +21924,7 @@ module.exports = Bounds; /***/ }), -/* 100 */ +/* 99 */ /***/ (function(module, exports) { /** @@ -22011,7 +21955,7 @@ module.exports = IsInLayerBounds; /***/ }), -/* 101 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22022,6 +21966,7 @@ module.exports = IsInLayerBounds; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); +var CONST = __webpack_require__(10); /** * @classdesc @@ -22132,7 +22077,7 @@ var LayerData = new Class({ * @type {string} * @since 3.23beta.PR_svipal */ - this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); + this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL); /** * The width in pixels of the entire layer. @@ -22250,7 +22195,7 @@ module.exports = LayerData; /***/ }), -/* 102 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22261,6 +22206,7 @@ module.exports = LayerData; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); +var CONST = __webpack_require__(10); /** * @classdesc @@ -22371,7 +22317,7 @@ var MapData = new Class({ * @type {string} * @since 3.0.0 */ - this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); + this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL); /** * Determines the draw order of tilemap. Default is right-down @@ -22484,7 +22430,7 @@ module.exports = MapData; /***/ }), -/* 103 */ +/* 102 */ /***/ (function(module, exports) { /** @@ -22618,7 +22564,7 @@ module.exports = ALIGN_CONST; /***/ }), -/* 104 */ +/* 103 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22628,9 +22574,9 @@ module.exports = ALIGN_CONST; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ImageRender = __webpack_require__(965); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var ImageRender = __webpack_require__(961); /** * @classdesc @@ -22719,7 +22665,7 @@ module.exports = Image; /***/ }), -/* 105 */ +/* 104 */ /***/ (function(module, exports) { /** @@ -22748,7 +22694,7 @@ module.exports = HasValue; /***/ }), -/* 106 */ +/* 105 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22766,11 +22712,11 @@ var Bodies = {}; module.exports = Bodies; -var Vertices = __webpack_require__(85); +var Vertices = __webpack_require__(84); var Common = __webpack_require__(37); var Body = __webpack_require__(62); -var Bounds = __webpack_require__(99); -var Vector = __webpack_require__(98); +var Bounds = __webpack_require__(98); +var Vector = __webpack_require__(97); var decomp = __webpack_require__(1378); (function() { @@ -23106,7 +23052,7 @@ var decomp = __webpack_require__(1378); /***/ }), -/* 107 */ +/* 106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23119,9 +23065,9 @@ var BlendModes = __webpack_require__(52); var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var Rectangle = __webpack_require__(12); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); /** @@ -23419,7 +23365,7 @@ module.exports = Zone; /***/ }), -/* 108 */ +/* 107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23434,30 +23380,30 @@ module.exports = Zone; module.exports = { - ADD_ANIMATION: __webpack_require__(533), - ANIMATION_COMPLETE: __webpack_require__(534), - ANIMATION_REPEAT: __webpack_require__(535), - ANIMATION_RESTART: __webpack_require__(536), - ANIMATION_START: __webpack_require__(537), - PAUSE_ALL: __webpack_require__(538), - REMOVE_ANIMATION: __webpack_require__(539), - RESUME_ALL: __webpack_require__(540), - SPRITE_ANIMATION_COMPLETE: __webpack_require__(541), - SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(542), - SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(543), - SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(544), - SPRITE_ANIMATION_KEY_START: __webpack_require__(545), - SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(546), - SPRITE_ANIMATION_REPEAT: __webpack_require__(547), - SPRITE_ANIMATION_RESTART: __webpack_require__(548), - SPRITE_ANIMATION_START: __webpack_require__(549), - SPRITE_ANIMATION_UPDATE: __webpack_require__(550) + ADD_ANIMATION: __webpack_require__(529), + ANIMATION_COMPLETE: __webpack_require__(530), + ANIMATION_REPEAT: __webpack_require__(531), + ANIMATION_RESTART: __webpack_require__(532), + ANIMATION_START: __webpack_require__(533), + PAUSE_ALL: __webpack_require__(534), + REMOVE_ANIMATION: __webpack_require__(535), + RESUME_ALL: __webpack_require__(536), + SPRITE_ANIMATION_COMPLETE: __webpack_require__(537), + SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(538), + SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(539), + SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(540), + SPRITE_ANIMATION_KEY_START: __webpack_require__(541), + SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(542), + SPRITE_ANIMATION_REPEAT: __webpack_require__(543), + SPRITE_ANIMATION_RESTART: __webpack_require__(544), + SPRITE_ANIMATION_START: __webpack_require__(545), + SPRITE_ANIMATION_UPDATE: __webpack_require__(546) }; /***/ }), -/* 109 */ +/* 108 */ /***/ (function(module, exports) { /** @@ -23485,7 +23431,7 @@ module.exports = Perimeter; /***/ }), -/* 110 */ +/* 109 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23495,7 +23441,7 @@ module.exports = Perimeter; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(281); +var Events = __webpack_require__(279); /** * @callback DataEachCallback @@ -24126,7 +24072,7 @@ module.exports = DataManager; /***/ }), -/* 111 */ +/* 110 */ /***/ (function(module, exports) { /** @@ -24167,7 +24113,7 @@ module.exports = Shuffle; /***/ }), -/* 112 */ +/* 111 */ /***/ (function(module, exports) { /** @@ -24197,7 +24143,7 @@ module.exports = Linear; /***/ }), -/* 113 */ +/* 112 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -24366,10 +24312,10 @@ function init () module.exports = init(); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(725))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(721))) /***/ }), -/* 114 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24378,7 +24324,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); +var OS = __webpack_require__(112); /** * Determines the browser type and version running this Phaser Game instance. @@ -24479,7 +24425,7 @@ module.exports = init(); /***/ }), -/* 115 */ +/* 114 */ /***/ (function(module, exports) { /** @@ -24509,7 +24455,7 @@ module.exports = IsSizePowerOfTwo; /***/ }), -/* 116 */ +/* 115 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24524,17 +24470,17 @@ module.exports = IsSizePowerOfTwo; module.exports = { - ADD: __webpack_require__(775), - ERROR: __webpack_require__(776), - LOAD: __webpack_require__(777), - READY: __webpack_require__(778), - REMOVE: __webpack_require__(779) + ADD: __webpack_require__(771), + ERROR: __webpack_require__(772), + LOAD: __webpack_require__(773), + READY: __webpack_require__(774), + REMOVE: __webpack_require__(775) }; /***/ }), -/* 117 */ +/* 116 */ /***/ (function(module, exports) { /** @@ -24592,7 +24538,7 @@ module.exports = AddToDOM; /***/ }), -/* 118 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24601,7 +24547,7 @@ module.exports = AddToDOM; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes the given item, or array of items, from the array. @@ -24683,7 +24629,7 @@ module.exports = Remove; /***/ }), -/* 119 */ +/* 118 */ /***/ (function(module, exports) { /** @@ -25589,7 +25535,7 @@ module.exports = KeyCodes; /***/ }), -/* 120 */ +/* 119 */ /***/ (function(module, exports) { /** @@ -25712,7 +25658,7 @@ module.exports = CONST; /***/ }), -/* 121 */ +/* 120 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25757,7 +25703,7 @@ module.exports = Merge; /***/ }), -/* 122 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25769,9 +25715,9 @@ module.exports = Merge; var Class = __webpack_require__(0); var Clone = __webpack_require__(65); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(59); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); var NOOP = __webpack_require__(1); /** @@ -26382,7 +26328,7 @@ module.exports = BaseSoundManager; /***/ }), -/* 123 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26393,9 +26339,9 @@ module.exports = BaseSoundManager; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(59); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); var NOOP = __webpack_require__(1); /** @@ -26882,7 +26828,7 @@ module.exports = BaseSound; /***/ }), -/* 124 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26891,10 +26837,10 @@ module.exports = BaseSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(179); +var ArrayUtils = __webpack_require__(178); var Class = __webpack_require__(0); var NOOP = __webpack_require__(1); -var StableSort = __webpack_require__(126); +var StableSort = __webpack_require__(125); /** * @callback EachListCallback @@ -27698,7 +27644,7 @@ module.exports = List; /***/ }), -/* 125 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27707,8 +27653,8 @@ module.exports = List; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CheckMatrix = __webpack_require__(180); -var TransposeMatrix = __webpack_require__(385); +var CheckMatrix = __webpack_require__(179); +var TransposeMatrix = __webpack_require__(383); /** * Rotates the array matrix based on the given rotation value. @@ -27770,7 +27716,7 @@ module.exports = RotateMatrix; /***/ }), -/* 126 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27915,7 +27861,7 @@ else {} })(); /***/ }), -/* 127 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27925,12 +27871,12 @@ else {} */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var GetBitmapTextSize = __webpack_require__(940); -var ParseFromAtlas = __webpack_require__(941); -var ParseXMLBitmapFont = __webpack_require__(183); -var Render = __webpack_require__(942); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var GetBitmapTextSize = __webpack_require__(936); +var ParseFromAtlas = __webpack_require__(937); +var ParseXMLBitmapFont = __webpack_require__(182); +var Render = __webpack_require__(938); /** * @classdesc @@ -28644,7 +28590,7 @@ module.exports = BitmapText; /***/ }), -/* 128 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29093,7 +29039,7 @@ module.exports = Set; /***/ }), -/* 129 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29103,9 +29049,9 @@ module.exports = Set; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var MeshRender = __webpack_require__(1072); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var MeshRender = __webpack_require__(1068); var NOOP = __webpack_require__(1); /** @@ -29264,7 +29210,7 @@ module.exports = Mesh; /***/ }), -/* 130 */ +/* 129 */ /***/ (function(module, exports) { /** @@ -29302,7 +29248,7 @@ module.exports = RectangleToRectangle; /***/ }), -/* 131 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29410,7 +29356,7 @@ module.exports = InputPluginCache; /***/ }), -/* 132 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29425,19 +29371,19 @@ module.exports = InputPluginCache; module.exports = { - ANY_KEY_DOWN: __webpack_require__(1211), - ANY_KEY_UP: __webpack_require__(1212), - COMBO_MATCH: __webpack_require__(1213), - DOWN: __webpack_require__(1214), - KEY_DOWN: __webpack_require__(1215), - KEY_UP: __webpack_require__(1216), - UP: __webpack_require__(1217) + ANY_KEY_DOWN: __webpack_require__(1207), + ANY_KEY_UP: __webpack_require__(1208), + COMBO_MATCH: __webpack_require__(1209), + DOWN: __webpack_require__(1210), + KEY_DOWN: __webpack_require__(1211), + KEY_UP: __webpack_require__(1212), + UP: __webpack_require__(1213) }; /***/ }), -/* 133 */ +/* 132 */ /***/ (function(module, exports) { /** @@ -29478,7 +29424,7 @@ module.exports = GetURL; /***/ }), -/* 134 */ +/* 133 */ /***/ (function(module, exports) { /** @@ -29547,7 +29493,7 @@ module.exports = XHRSettings; /***/ }), -/* 135 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29557,8 +29503,8 @@ module.exports = XHRSettings; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(213); -var Sprite = __webpack_require__(74); +var Components = __webpack_require__(212); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -29648,7 +29594,7 @@ module.exports = ArcadeSprite; /***/ }), -/* 136 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29663,54 +29609,54 @@ module.exports = ArcadeSprite; module.exports = { - CalculateFacesAt: __webpack_require__(216), + CalculateFacesAt: __webpack_require__(215), CalculateFacesWithin: __webpack_require__(51), - Copy: __webpack_require__(1307), - CreateFromTiles: __webpack_require__(1308), - CullTiles: __webpack_require__(1309), - Fill: __webpack_require__(1311), - FilterTiles: __webpack_require__(1312), - FindByIndex: __webpack_require__(1313), - FindTile: __webpack_require__(1314), - ForEachTile: __webpack_require__(1315), - GetTileAt: __webpack_require__(137), - GetTileAtWorldXY: __webpack_require__(1316), - GetTilesWithin: __webpack_require__(24), - GetTilesWithinShape: __webpack_require__(1317), - GetTilesWithinWorldXY: __webpack_require__(1318), - HasTileAt: __webpack_require__(475), - HasTileAtWorldXY: __webpack_require__(1319), - IsInLayerBounds: __webpack_require__(100), - PutTileAt: __webpack_require__(218), - PutTileAtWorldXY: __webpack_require__(1320), - PutTilesAt: __webpack_require__(1321), - Randomize: __webpack_require__(1322), - RemoveTileAt: __webpack_require__(476), - RemoveTileAtWorldXY: __webpack_require__(1323), - RenderDebug: __webpack_require__(1324), - ReplaceByIndex: __webpack_require__(472), - SetCollision: __webpack_require__(1325), - SetCollisionBetween: __webpack_require__(1326), - SetCollisionByExclusion: __webpack_require__(1327), - SetCollisionByProperty: __webpack_require__(1328), - SetCollisionFromCollisionGroup: __webpack_require__(1329), - SetTileIndexCallback: __webpack_require__(1330), - SetTileLocationCallback: __webpack_require__(1331), - Shuffle: __webpack_require__(1332), - SwapByIndex: __webpack_require__(1333), - TileToWorldX: __webpack_require__(470), - TileToWorldXY: __webpack_require__(217), - TileToWorldY: __webpack_require__(471), - WeightedRandomize: __webpack_require__(1334), - WorldToTileX: __webpack_require__(473), - WorldToTileXY: __webpack_require__(72), - WorldToTileY: __webpack_require__(474) + Copy: __webpack_require__(1303), + CreateFromTiles: __webpack_require__(1304), + CullTiles: __webpack_require__(1305), + Fill: __webpack_require__(1307), + FilterTiles: __webpack_require__(1308), + FindByIndex: __webpack_require__(1309), + FindTile: __webpack_require__(1310), + ForEachTile: __webpack_require__(1311), + GetTileAt: __webpack_require__(136), + GetTileAtWorldXY: __webpack_require__(1312), + GetTilesWithin: __webpack_require__(25), + GetTilesWithinShape: __webpack_require__(1313), + GetTilesWithinWorldXY: __webpack_require__(1314), + HasTileAt: __webpack_require__(469), + HasTileAtWorldXY: __webpack_require__(1315), + IsInLayerBounds: __webpack_require__(99), + PutTileAt: __webpack_require__(216), + PutTileAtWorldXY: __webpack_require__(1316), + PutTilesAt: __webpack_require__(1317), + Randomize: __webpack_require__(1318), + RemoveTileAt: __webpack_require__(470), + RemoveTileAtWorldXY: __webpack_require__(1319), + RenderDebug: __webpack_require__(1320), + ReplaceByIndex: __webpack_require__(468), + SetCollision: __webpack_require__(1321), + SetCollisionBetween: __webpack_require__(1322), + SetCollisionByExclusion: __webpack_require__(1323), + SetCollisionByProperty: __webpack_require__(1324), + SetCollisionFromCollisionGroup: __webpack_require__(1325), + SetTileIndexCallback: __webpack_require__(1326), + SetTileLocationCallback: __webpack_require__(1327), + Shuffle: __webpack_require__(1328), + SwapByIndex: __webpack_require__(1329), + TileToWorldX: __webpack_require__(1330), + TileToWorldXY: __webpack_require__(1331), + TileToWorldY: __webpack_require__(1332), + WeightedRandomize: __webpack_require__(1333), + WorldToTileX: __webpack_require__(471), + WorldToTileXY: __webpack_require__(1334), + WorldToTileY: __webpack_require__(472) }; /***/ }), -/* 137 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29719,7 +29665,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(100); +var IsInLayerBounds = __webpack_require__(99); /** * Gets a tile at the given tile coordinates from the given layer. @@ -29766,7 +29712,7 @@ module.exports = GetTileAt; /***/ }), -/* 138 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30170,7 +30116,7 @@ module.exports = Tileset; /***/ }), -/* 139 */ +/* 138 */ /***/ (function(module, exports) { /** @@ -30234,7 +30180,7 @@ module.exports = GetNewValue; /***/ }), -/* 140 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30243,17 +30189,17 @@ module.exports = GetNewValue; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); -var GetProps = __webpack_require__(497); -var GetTargets = __webpack_require__(225); +var GetNewValue = __webpack_require__(138); +var GetProps = __webpack_require__(493); +var GetTargets = __webpack_require__(223); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(226); -var Tween = __webpack_require__(228); -var TweenData = __webpack_require__(230); +var GetValueOp = __webpack_require__(224); +var Tween = __webpack_require__(226); +var TweenData = __webpack_require__(228); /** * Creates a new Tween. @@ -30367,7 +30313,7 @@ module.exports = TweenBuilder; /***/ }), -/* 141 */ +/* 140 */ /***/ (function(module, exports) { /** @@ -30401,7 +30347,7 @@ module.exports = Equal; /***/ }), -/* 142 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31170,7 +31116,7 @@ module.exports = WebGLPipeline; /***/ }), -/* 143 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31188,9 +31134,9 @@ var Composite = {}; module.exports = Composite; -var Events = __webpack_require__(237); +var Events = __webpack_require__(235); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(99); +var Bounds = __webpack_require__(98); var Body = __webpack_require__(62); (function() { @@ -31864,7 +31810,7 @@ var Body = __webpack_require__(62); /***/ }), -/* 144 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31903,7 +31849,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 145 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31947,7 +31893,7 @@ module.exports = Random; /***/ }), -/* 146 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31956,12 +31902,12 @@ module.exports = Random; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(108); -var FindClosestInSorted = __webpack_require__(267); -var Frame = __webpack_require__(268); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(107); +var FindClosestInSorted = __webpack_require__(265); +var Frame = __webpack_require__(266); var GetValue = __webpack_require__(6); /** @@ -32907,7 +32853,7 @@ module.exports = Animation; /***/ }), -/* 147 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32916,7 +32862,7 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(109); +var Perimeter = __webpack_require__(108); var Point = __webpack_require__(4); /** @@ -32988,7 +32934,7 @@ module.exports = GetPoint; /***/ }), -/* 148 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33053,7 +32999,7 @@ module.exports = GetPoints; /***/ }), -/* 149 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33093,7 +33039,7 @@ module.exports = Random; /***/ }), -/* 150 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33131,7 +33077,7 @@ module.exports = Random; /***/ }), -/* 151 */ +/* 150 */ /***/ (function(module, exports) { /** @@ -33260,7 +33206,7 @@ module.exports = Pipeline; /***/ }), -/* 152 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33301,7 +33247,7 @@ module.exports = Random; /***/ }), -/* 153 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33357,7 +33303,7 @@ module.exports = Random; /***/ }), -/* 154 */ +/* 153 */ /***/ (function(module, exports) { /** @@ -33394,7 +33340,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 155 */ +/* 154 */ /***/ (function(module, exports) { /** @@ -33433,7 +33379,7 @@ module.exports = SmootherStep; /***/ }), -/* 156 */ +/* 155 */ /***/ (function(module, exports) { /** @@ -33480,7 +33426,7 @@ module.exports = SmoothStep; /***/ }), -/* 157 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33853,7 +33799,7 @@ module.exports = Map; /***/ }), -/* 158 */ +/* 157 */ /***/ (function(module, exports) { /** @@ -33929,7 +33875,7 @@ module.exports = Pad; /***/ }), -/* 159 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33938,10 +33884,10 @@ module.exports = Pad; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HexStringToColor = __webpack_require__(291); -var IntegerToColor = __webpack_require__(294); -var ObjectToColor = __webpack_require__(296); -var RGBStringToColor = __webpack_require__(297); +var HexStringToColor = __webpack_require__(289); +var IntegerToColor = __webpack_require__(292); +var ObjectToColor = __webpack_require__(294); +var RGBStringToColor = __webpack_require__(295); /** * Converts the given source color value into an instance of a Color class. @@ -33985,7 +33931,7 @@ module.exports = ValueToColor; /***/ }), -/* 160 */ +/* 159 */ /***/ (function(module, exports) { /** @@ -34015,7 +33961,7 @@ module.exports = GetColor; /***/ }), -/* 161 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34024,7 +33970,7 @@ module.exports = GetColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetColor = __webpack_require__(160); +var GetColor = __webpack_require__(159); /** * Converts an HSV (hue, saturation and value) color value to RGB. @@ -34116,7 +34062,7 @@ module.exports = HSVToRGB; /***/ }), -/* 162 */ +/* 161 */ /***/ (function(module, exports) { /** @@ -34248,7 +34194,7 @@ module.exports = Smoothing(); /***/ }), -/* 163 */ +/* 162 */ /***/ (function(module, exports) { /** @@ -34285,7 +34231,7 @@ module.exports = CenterOn; /***/ }), -/* 164 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34294,18 +34240,18 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Back = __webpack_require__(299); -var Bounce = __webpack_require__(300); -var Circular = __webpack_require__(301); -var Cubic = __webpack_require__(302); -var Elastic = __webpack_require__(303); -var Expo = __webpack_require__(304); -var Linear = __webpack_require__(305); -var Quadratic = __webpack_require__(306); -var Quartic = __webpack_require__(307); -var Quintic = __webpack_require__(308); -var Sine = __webpack_require__(309); -var Stepped = __webpack_require__(310); +var Back = __webpack_require__(297); +var Bounce = __webpack_require__(298); +var Circular = __webpack_require__(299); +var Cubic = __webpack_require__(300); +var Elastic = __webpack_require__(301); +var Expo = __webpack_require__(302); +var Linear = __webpack_require__(303); +var Quadratic = __webpack_require__(304); +var Quartic = __webpack_require__(305); +var Quintic = __webpack_require__(306); +var Sine = __webpack_require__(307); +var Stepped = __webpack_require__(308); // EaseMap module.exports = { @@ -34366,7 +34312,7 @@ module.exports = { /***/ }), -/* 165 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34375,9 +34321,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); -var Browser = __webpack_require__(114); -var CanvasPool = __webpack_require__(26); +var OS = __webpack_require__(112); +var Browser = __webpack_require__(113); +var CanvasPool = __webpack_require__(27); /** * Determines the features of the browser running this Phaser Game instance. @@ -34558,7 +34504,7 @@ module.exports = init(); /***/ }), -/* 166 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34567,8 +34513,8 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(16); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Math @@ -34577,62 +34523,62 @@ var Extend = __webpack_require__(17); var PhaserMath = { // Collections of functions - Angle: __webpack_require__(730), - Distance: __webpack_require__(738), - Easing: __webpack_require__(743), - Fuzzy: __webpack_require__(744), - Interpolation: __webpack_require__(747), - Pow2: __webpack_require__(752), - Snap: __webpack_require__(754), + Angle: __webpack_require__(726), + Distance: __webpack_require__(734), + Easing: __webpack_require__(739), + Fuzzy: __webpack_require__(740), + Interpolation: __webpack_require__(743), + Pow2: __webpack_require__(748), + Snap: __webpack_require__(750), // Expose the RNG Class - RandomDataGenerator: __webpack_require__(756), + RandomDataGenerator: __webpack_require__(752), // Single functions - Average: __webpack_require__(757), - Bernstein: __webpack_require__(320), - Between: __webpack_require__(168), - CatmullRom: __webpack_require__(167), - CeilTo: __webpack_require__(758), - Clamp: __webpack_require__(22), + Average: __webpack_require__(753), + Bernstein: __webpack_require__(318), + Between: __webpack_require__(167), + CatmullRom: __webpack_require__(166), + CeilTo: __webpack_require__(754), + Clamp: __webpack_require__(23), DegToRad: __webpack_require__(35), - Difference: __webpack_require__(759), - Factorial: __webpack_require__(321), - FloatBetween: __webpack_require__(327), - FloorTo: __webpack_require__(760), - FromPercent: __webpack_require__(86), - GetSpeed: __webpack_require__(761), - IsEven: __webpack_require__(762), - IsEvenStrict: __webpack_require__(763), - Linear: __webpack_require__(112), - MaxAdd: __webpack_require__(764), - MinSub: __webpack_require__(765), - Percent: __webpack_require__(766), - RadToDeg: __webpack_require__(169), - RandomXY: __webpack_require__(767), - RandomXYZ: __webpack_require__(768), - RandomXYZW: __webpack_require__(769), - Rotate: __webpack_require__(328), - RotateAround: __webpack_require__(273), - RotateAroundDistance: __webpack_require__(154), - RoundAwayFromZero: __webpack_require__(329), - RoundTo: __webpack_require__(770), - SinCosTableGenerator: __webpack_require__(771), - SmootherStep: __webpack_require__(155), - SmoothStep: __webpack_require__(156), - ToXY: __webpack_require__(772), - TransformXY: __webpack_require__(330), - Within: __webpack_require__(773), + Difference: __webpack_require__(755), + Factorial: __webpack_require__(319), + FloatBetween: __webpack_require__(325), + FloorTo: __webpack_require__(756), + FromPercent: __webpack_require__(85), + GetSpeed: __webpack_require__(757), + IsEven: __webpack_require__(758), + IsEvenStrict: __webpack_require__(759), + Linear: __webpack_require__(111), + MaxAdd: __webpack_require__(760), + MinSub: __webpack_require__(761), + Percent: __webpack_require__(762), + RadToDeg: __webpack_require__(168), + RandomXY: __webpack_require__(763), + RandomXYZ: __webpack_require__(764), + RandomXYZW: __webpack_require__(765), + Rotate: __webpack_require__(326), + RotateAround: __webpack_require__(271), + RotateAroundDistance: __webpack_require__(153), + RoundAwayFromZero: __webpack_require__(327), + RoundTo: __webpack_require__(766), + SinCosTableGenerator: __webpack_require__(767), + SmootherStep: __webpack_require__(154), + SmoothStep: __webpack_require__(155), + ToXY: __webpack_require__(768), + TransformXY: __webpack_require__(328), + Within: __webpack_require__(769), Wrap: __webpack_require__(58), // Vector classes Vector2: __webpack_require__(3), - Vector3: __webpack_require__(170), - Vector4: __webpack_require__(331), - Matrix3: __webpack_require__(332), - Matrix4: __webpack_require__(333), - Quaternion: __webpack_require__(334), - RotateVec3: __webpack_require__(774) + Vector3: __webpack_require__(169), + Vector4: __webpack_require__(329), + Matrix3: __webpack_require__(330), + Matrix4: __webpack_require__(331), + Quaternion: __webpack_require__(332), + RotateVec3: __webpack_require__(770) }; @@ -34646,7 +34592,7 @@ module.exports = PhaserMath; /***/ }), -/* 167 */ +/* 166 */ /***/ (function(module, exports) { /** @@ -34683,7 +34629,7 @@ module.exports = CatmullRom; /***/ }), -/* 168 */ +/* 167 */ /***/ (function(module, exports) { /** @@ -34712,7 +34658,7 @@ module.exports = Between; /***/ }), -/* 169 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34721,7 +34667,7 @@ module.exports = Between; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Convert the given angle in radians, to the equivalent angle in degrees. @@ -34742,7 +34688,7 @@ module.exports = RadToDeg; /***/ }), -/* 170 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35552,7 +35498,7 @@ module.exports = Vector3; /***/ }), -/* 171 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35653,7 +35599,7 @@ module.exports = DefaultPlugins; /***/ }), -/* 172 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35662,8 +35608,8 @@ module.exports = DefaultPlugins; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var MATH_CONST = __webpack_require__(15); +var Rectangle = __webpack_require__(13); +var MATH_CONST = __webpack_require__(16); // points is an array of Point-like objects, // either 2 dimensional arrays, or objects with public x/y properties: @@ -35739,7 +35685,7 @@ module.exports = FromPoints; /***/ }), -/* 173 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35750,10 +35696,10 @@ module.exports = FromPoints; var CONST = { - CENTER: __webpack_require__(356), - ORIENTATION: __webpack_require__(357), - SCALE_MODE: __webpack_require__(358), - ZOOM: __webpack_require__(359) + CENTER: __webpack_require__(354), + ORIENTATION: __webpack_require__(355), + SCALE_MODE: __webpack_require__(356), + ZOOM: __webpack_require__(357) }; @@ -35761,7 +35707,7 @@ module.exports = CONST; /***/ }), -/* 174 */ +/* 173 */ /***/ (function(module, exports) { /** @@ -35790,7 +35736,7 @@ module.exports = RemoveFromDOM; /***/ }), -/* 175 */ +/* 174 */ /***/ (function(module, exports) { /** @@ -35888,7 +35834,7 @@ module.exports = INPUT_CONST; /***/ }), -/* 176 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35898,13 +35844,13 @@ module.exports = INPUT_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(120); -var DefaultPlugins = __webpack_require__(171); -var Events = __webpack_require__(21); -var GetPhysicsPlugins = __webpack_require__(873); -var GetScenePlugins = __webpack_require__(874); +var CONST = __webpack_require__(119); +var DefaultPlugins = __webpack_require__(170); +var Events = __webpack_require__(22); +var GetPhysicsPlugins = __webpack_require__(869); +var GetScenePlugins = __webpack_require__(870); var NOOP = __webpack_require__(1); -var Settings = __webpack_require__(372); +var Settings = __webpack_require__(370); /** * @classdesc @@ -36662,7 +36608,7 @@ module.exports = Systems; /***/ }), -/* 177 */ +/* 176 */ /***/ (function(module, exports) { /** @@ -36699,7 +36645,7 @@ module.exports = UppercaseFirst; /***/ }), -/* 178 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -36709,8 +36655,8 @@ module.exports = UppercaseFirst; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(93); -var TextureSource = __webpack_require__(375); +var Frame = __webpack_require__(92); +var TextureSource = __webpack_require__(373); var TEXTURE_MISSING_ERROR = 'Texture.frame missing: '; @@ -37219,7 +37165,7 @@ module.exports = Texture; /***/ }), -/* 179 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37234,45 +37180,45 @@ module.exports = Texture; module.exports = { - Matrix: __webpack_require__(909), + Matrix: __webpack_require__(905), - Add: __webpack_require__(916), - AddAt: __webpack_require__(917), - BringToTop: __webpack_require__(918), - CountAllMatching: __webpack_require__(919), - Each: __webpack_require__(920), - EachInRange: __webpack_require__(921), - FindClosestInSorted: __webpack_require__(267), - GetAll: __webpack_require__(922), - GetFirst: __webpack_require__(923), - GetRandom: __webpack_require__(181), - MoveDown: __webpack_require__(924), - MoveTo: __webpack_require__(925), - MoveUp: __webpack_require__(926), - NumberArray: __webpack_require__(927), - NumberArrayStep: __webpack_require__(928), - QuickSelect: __webpack_require__(386), - Range: __webpack_require__(387), - Remove: __webpack_require__(118), - RemoveAt: __webpack_require__(929), - RemoveBetween: __webpack_require__(930), - RemoveRandomElement: __webpack_require__(931), - Replace: __webpack_require__(932), - RotateLeft: __webpack_require__(283), - RotateRight: __webpack_require__(284), + Add: __webpack_require__(912), + AddAt: __webpack_require__(913), + BringToTop: __webpack_require__(914), + CountAllMatching: __webpack_require__(915), + Each: __webpack_require__(916), + EachInRange: __webpack_require__(917), + FindClosestInSorted: __webpack_require__(265), + GetAll: __webpack_require__(918), + GetFirst: __webpack_require__(919), + GetRandom: __webpack_require__(180), + MoveDown: __webpack_require__(920), + MoveTo: __webpack_require__(921), + MoveUp: __webpack_require__(922), + NumberArray: __webpack_require__(923), + NumberArrayStep: __webpack_require__(924), + QuickSelect: __webpack_require__(384), + Range: __webpack_require__(385), + Remove: __webpack_require__(117), + RemoveAt: __webpack_require__(925), + RemoveBetween: __webpack_require__(926), + RemoveRandomElement: __webpack_require__(927), + Replace: __webpack_require__(928), + RotateLeft: __webpack_require__(281), + RotateRight: __webpack_require__(282), SafeRange: __webpack_require__(66), - SendToBack: __webpack_require__(933), - SetAll: __webpack_require__(934), - Shuffle: __webpack_require__(111), - SpliceOne: __webpack_require__(79), - StableSort: __webpack_require__(126), - Swap: __webpack_require__(935) + SendToBack: __webpack_require__(929), + SetAll: __webpack_require__(930), + Shuffle: __webpack_require__(110), + SpliceOne: __webpack_require__(78), + StableSort: __webpack_require__(125), + Swap: __webpack_require__(931) }; /***/ }), -/* 180 */ +/* 179 */ /***/ (function(module, exports) { /** @@ -37333,7 +37279,7 @@ module.exports = CheckMatrix; /***/ }), -/* 181 */ +/* 180 */ /***/ (function(module, exports) { /** @@ -37368,7 +37314,7 @@ module.exports = GetRandom; /***/ }), -/* 182 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37378,8 +37324,8 @@ module.exports = GetRandom; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(937); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(933); /** * @classdesc @@ -37659,7 +37605,7 @@ module.exports = ProcessQueue; /***/ }), -/* 183 */ +/* 182 */ /***/ (function(module, exports) { /** @@ -37798,7 +37744,7 @@ module.exports = ParseXMLBitmapFont; /***/ }), -/* 184 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37807,13 +37753,13 @@ module.exports = ParseXMLBitmapFont; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BlitterRender = __webpack_require__(945); -var Bob = __webpack_require__(948); +var BlitterRender = __webpack_require__(941); +var Bob = __webpack_require__(944); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Frame = __webpack_require__(93); -var GameObject = __webpack_require__(13); -var List = __webpack_require__(124); +var Components = __webpack_require__(12); +var Frame = __webpack_require__(92); +var GameObject = __webpack_require__(14); +var List = __webpack_require__(123); /** * @callback CreateCallback @@ -38097,7 +38043,7 @@ module.exports = Blitter; /***/ }), -/* 185 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -38107,15 +38053,15 @@ module.exports = Blitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(179); +var ArrayUtils = __webpack_require__(178); var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Events = __webpack_require__(89); -var GameObject = __webpack_require__(13); -var Rectangle = __webpack_require__(12); -var Render = __webpack_require__(949); -var Union = __webpack_require__(389); +var Components = __webpack_require__(12); +var Events = __webpack_require__(88); +var GameObject = __webpack_require__(14); +var Rectangle = __webpack_require__(13); +var Render = __webpack_require__(945); +var Union = __webpack_require__(387); var Vector2 = __webpack_require__(3); /** @@ -39422,7 +39368,7 @@ module.exports = Container; /***/ }), -/* 186 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39431,9 +39377,9 @@ module.exports = Container; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); +var BitmapText = __webpack_require__(126); var Class = __webpack_require__(0); -var Render = __webpack_require__(954); +var Render = __webpack_require__(950); /** * @classdesc @@ -39655,7 +39601,7 @@ module.exports = DynamicBitmapText; /***/ }), -/* 187 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39664,26 +39610,26 @@ module.exports = DynamicBitmapText; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); +var BaseCamera = __webpack_require__(89); var Class = __webpack_require__(0); -var Commands = __webpack_require__(188); -var ComponentsAlpha = __webpack_require__(266); -var ComponentsBlendMode = __webpack_require__(269); -var ComponentsDepth = __webpack_require__(270); -var ComponentsMask = __webpack_require__(274); -var ComponentsPipeline = __webpack_require__(151); -var ComponentsTransform = __webpack_require__(279); -var ComponentsVisible = __webpack_require__(280); -var ComponentsScrollFactor = __webpack_require__(277); +var Commands = __webpack_require__(187); +var ComponentsAlpha = __webpack_require__(264); +var ComponentsBlendMode = __webpack_require__(267); +var ComponentsDepth = __webpack_require__(268); +var ComponentsMask = __webpack_require__(272); +var ComponentsPipeline = __webpack_require__(150); +var ComponentsTransform = __webpack_require__(277); +var ComponentsVisible = __webpack_require__(278); +var ComponentsScrollFactor = __webpack_require__(275); var TransformMatrix = __webpack_require__(30); -var Ellipse = __webpack_require__(94); -var GameObject = __webpack_require__(13); +var Ellipse = __webpack_require__(93); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); -var MATH_CONST = __webpack_require__(15); -var Render = __webpack_require__(960); +var MATH_CONST = __webpack_require__(16); +var Render = __webpack_require__(956); /** * @classdesc @@ -41205,7 +41151,7 @@ module.exports = Graphics; /***/ }), -/* 188 */ +/* 187 */ /***/ (function(module, exports) { /** @@ -41242,7 +41188,7 @@ module.exports = { /***/ }), -/* 189 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41284,7 +41230,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 190 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41294,12 +41240,12 @@ module.exports = CircumferencePoint; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var GravityWell = __webpack_require__(397); -var List = __webpack_require__(124); -var ParticleEmitter = __webpack_require__(399); -var Render = __webpack_require__(970); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var GravityWell = __webpack_require__(395); +var List = __webpack_require__(123); +var ParticleEmitter = __webpack_require__(397); +var Render = __webpack_require__(966); /** * @classdesc @@ -41773,7 +41719,7 @@ module.exports = ParticleEmitterManager; /***/ }), -/* 191 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41783,16 +41729,16 @@ module.exports = ParticleEmitterManager; */ var BlendModes = __webpack_require__(52); -var Camera = __webpack_require__(90); -var CanvasPool = __webpack_require__(26); +var Camera = __webpack_require__(89); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var CONST = __webpack_require__(29); -var Frame = __webpack_require__(93); -var GameObject = __webpack_require__(13); -var Render = __webpack_require__(974); +var Components = __webpack_require__(12); +var CONST = __webpack_require__(10); +var Frame = __webpack_require__(92); +var GameObject = __webpack_require__(14); +var Render = __webpack_require__(970); var Utils = __webpack_require__(9); -var UUID = __webpack_require__(192); +var UUID = __webpack_require__(191); /** * @classdesc @@ -43012,7 +42958,7 @@ module.exports = RenderTexture; /***/ }), -/* 192 */ +/* 191 */ /***/ (function(module, exports) { /** @@ -43047,7 +42993,7 @@ module.exports = UUID; /***/ }), -/* 193 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -43057,9 +43003,9 @@ module.exports = UUID; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var RopeRender = __webpack_require__(980); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var RopeRender = __webpack_require__(976); var Vector2 = __webpack_require__(3); /** @@ -44153,7 +44099,7 @@ module.exports = Rope; /***/ }), -/* 194 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44162,17 +44108,17 @@ module.exports = Rope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); -var CanvasPool = __webpack_require__(26); +var AddToDOM = __webpack_require__(116); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); -var GetTextSize = __webpack_require__(983); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); +var GetTextSize = __webpack_require__(979); var GetValue = __webpack_require__(6); -var RemoveFromDOM = __webpack_require__(174); -var TextRender = __webpack_require__(984); -var TextStyle = __webpack_require__(987); +var RemoveFromDOM = __webpack_require__(173); +var TextRender = __webpack_require__(980); +var TextStyle = __webpack_require__(983); /** * @classdesc @@ -45562,7 +45508,7 @@ module.exports = Text; /***/ }), -/* 195 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -45571,14 +45517,14 @@ module.exports = Text; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); -var GetPowerOfTwo = __webpack_require__(325); -var Smoothing = __webpack_require__(162); -var TileSpriteRender = __webpack_require__(989); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); +var GetPowerOfTwo = __webpack_require__(323); +var Smoothing = __webpack_require__(161); +var TileSpriteRender = __webpack_require__(985); var Vector2 = __webpack_require__(3); // bitmask flag for GameObject.renderMask @@ -46214,7 +46160,7 @@ module.exports = TileSprite; /***/ }), -/* 196 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46224,15 +46170,15 @@ module.exports = TileSprite; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); -var Components = __webpack_require__(11); -var Events = __webpack_require__(89); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); +var Clamp = __webpack_require__(23); +var Components = __webpack_require__(12); +var Events = __webpack_require__(88); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); var SoundEvents = __webpack_require__(59); -var UUID = __webpack_require__(192); -var VideoRender = __webpack_require__(992); -var MATH_CONST = __webpack_require__(15); +var UUID = __webpack_require__(191); +var VideoRender = __webpack_require__(988); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -47983,7 +47929,7 @@ module.exports = Video; /***/ }), -/* 197 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47993,8 +47939,8 @@ module.exports = Video; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(198); -var GetPoints = __webpack_require__(414); +var Contains = __webpack_require__(197); +var GetPoints = __webpack_require__(412); var GEOM_CONST = __webpack_require__(46); /** @@ -48217,7 +48163,7 @@ module.exports = Polygon; /***/ }), -/* 198 */ +/* 197 */ /***/ (function(module, exports) { /** @@ -48266,7 +48212,7 @@ module.exports = Contains; /***/ }), -/* 199 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48276,7 +48222,7 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); /** * @classdesc @@ -48927,7 +48873,7 @@ module.exports = Quad; /***/ }), -/* 200 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48937,12 +48883,12 @@ module.exports = Quad; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var Extend = __webpack_require__(17); -var SetValue = __webpack_require__(422); -var ShaderRender = __webpack_require__(1075); +var Extend = __webpack_require__(18); +var SetValue = __webpack_require__(420); +var ShaderRender = __webpack_require__(1071); var TransformMatrix = __webpack_require__(30); /** @@ -50150,7 +50096,7 @@ module.exports = Shader; /***/ }), -/* 201 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50181,7 +50127,7 @@ module.exports = CircleToCircle; /***/ }), -/* 202 */ +/* 201 */ /***/ (function(module, exports) { /** @@ -50235,7 +50181,7 @@ module.exports = CircleToRectangle; /***/ }), -/* 203 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50246,7 +50192,7 @@ module.exports = CircleToRectangle; */ var Point = __webpack_require__(4); -var LineToCircle = __webpack_require__(204); +var LineToCircle = __webpack_require__(203); /** * Checks for intersection between the line segment and circle, @@ -50327,7 +50273,7 @@ module.exports = GetLineToCircle; /***/ }), -/* 204 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50411,7 +50357,7 @@ module.exports = LineToCircle; /***/ }), -/* 205 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50422,8 +50368,8 @@ module.exports = LineToCircle; */ var Point = __webpack_require__(4); -var LineToLine = __webpack_require__(83); -var LineToRectangle = __webpack_require__(427); +var LineToLine = __webpack_require__(82); +var LineToRectangle = __webpack_require__(425); /** * Checks for intersection between the Line and a Rectangle shape, @@ -50471,7 +50417,7 @@ module.exports = GetLineToRectangle; /***/ }), -/* 206 */ +/* 205 */ /***/ (function(module, exports) { /** @@ -50558,7 +50504,7 @@ module.exports = ContainsArray; /***/ }), -/* 207 */ +/* 206 */ /***/ (function(module, exports) { /** @@ -50606,7 +50552,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 208 */ +/* 207 */ /***/ (function(module, exports) { /** @@ -50634,7 +50580,7 @@ module.exports = GetAspectRatio; /***/ }), -/* 209 */ +/* 208 */ /***/ (function(module, exports) { /** @@ -50688,7 +50634,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 210 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50703,18 +50649,18 @@ module.exports = RotateAroundXY; module.exports = { - BUTTON_DOWN: __webpack_require__(1197), - BUTTON_UP: __webpack_require__(1198), - CONNECTED: __webpack_require__(1199), - DISCONNECTED: __webpack_require__(1200), - GAMEPAD_BUTTON_DOWN: __webpack_require__(1201), - GAMEPAD_BUTTON_UP: __webpack_require__(1202) + BUTTON_DOWN: __webpack_require__(1193), + BUTTON_UP: __webpack_require__(1194), + CONNECTED: __webpack_require__(1195), + DISCONNECTED: __webpack_require__(1196), + GAMEPAD_BUTTON_DOWN: __webpack_require__(1197), + GAMEPAD_BUTTON_UP: __webpack_require__(1198) }; /***/ }), -/* 211 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50723,8 +50669,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var XHRSettings = __webpack_require__(134); +var Extend = __webpack_require__(18); +var XHRSettings = __webpack_require__(133); /** * Takes two XHRSettings Objects and creates a new XHRSettings object from them. @@ -50762,7 +50708,7 @@ module.exports = MergeXHRSettings; /***/ }), -/* 212 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50772,12 +50718,12 @@ module.exports = MergeXHRSettings; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var ParseXML = __webpack_require__(361); +var ParseXML = __webpack_require__(359); /** * @classdesc @@ -50947,7 +50893,7 @@ module.exports = XMLFile; /***/ }), -/* 213 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50962,24 +50908,24 @@ module.exports = XMLFile; module.exports = { - Acceleration: __webpack_require__(1257), - Angular: __webpack_require__(1258), - Bounce: __webpack_require__(1259), - Debug: __webpack_require__(1260), - Drag: __webpack_require__(1261), - Enable: __webpack_require__(1262), - Friction: __webpack_require__(1263), - Gravity: __webpack_require__(1264), - Immovable: __webpack_require__(1265), - Mass: __webpack_require__(1266), - Size: __webpack_require__(1267), - Velocity: __webpack_require__(1268) + Acceleration: __webpack_require__(1253), + Angular: __webpack_require__(1254), + Bounce: __webpack_require__(1255), + Debug: __webpack_require__(1256), + Drag: __webpack_require__(1257), + Enable: __webpack_require__(1258), + Friction: __webpack_require__(1259), + Gravity: __webpack_require__(1260), + Immovable: __webpack_require__(1261), + Mass: __webpack_require__(1262), + Size: __webpack_require__(1263), + Velocity: __webpack_require__(1264) }; /***/ }), -/* 214 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50994,20 +50940,20 @@ module.exports = { module.exports = { - COLLIDE: __webpack_require__(1270), - OVERLAP: __webpack_require__(1271), - PAUSE: __webpack_require__(1272), - RESUME: __webpack_require__(1273), - TILE_COLLIDE: __webpack_require__(1274), - TILE_OVERLAP: __webpack_require__(1275), - WORLD_BOUNDS: __webpack_require__(1276), - WORLD_STEP: __webpack_require__(1277) + COLLIDE: __webpack_require__(1266), + OVERLAP: __webpack_require__(1267), + PAUSE: __webpack_require__(1268), + RESUME: __webpack_require__(1269), + TILE_COLLIDE: __webpack_require__(1270), + TILE_OVERLAP: __webpack_require__(1271), + WORLD_BOUNDS: __webpack_require__(1272), + WORLD_STEP: __webpack_require__(1273) }; /***/ }), -/* 215 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51024,11 +50970,11 @@ var Constraint = {}; module.exports = Constraint; -var Vertices = __webpack_require__(85); -var Vector = __webpack_require__(98); -var Sleeping = __webpack_require__(236); -var Bounds = __webpack_require__(99); -var Axes = __webpack_require__(512); +var Vertices = __webpack_require__(84); +var Vector = __webpack_require__(97); +var Sleeping = __webpack_require__(234); +var Bounds = __webpack_require__(98); +var Axes = __webpack_require__(508); var Common = __webpack_require__(37); (function() { @@ -51496,7 +51442,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 216 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51505,7 +51451,7 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); +var GetTileAt = __webpack_require__(136); /** * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting @@ -51572,7 +51518,7 @@ module.exports = CalculateFacesAt; /***/ }), -/* 217 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51581,103 +51527,9 @@ module.exports = CalculateFacesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldX = __webpack_require__(470); -var TileToWorldY = __webpack_require__(471); -var Vector2 = __webpack_require__(3); - -/** - * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.TileToWorldXY - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {integer} tileY - The y coordinate, in tiles, not pixels. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in world coordinates. - */ -var TileToWorldXY = function (tileX, tileY, point, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (point === undefined) { point = new Vector2(0, 0); } - - - - - - if (orientation === 'orthogonal') - { - point.x = TileToWorldX(tileX, camera, layer, orientation); - point.y = TileToWorldY(tileY, camera, layer, orientation); - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - - var layerWorldX = 0; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - tileWidth *= tilemapLayer.scaleX; - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - - if (orientation === 'isometric') - { - point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); - point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); - } - else if (orientation === 'staggered') - { - point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); - point.y = layerWorldY + tileY * (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // similar to staggered, because Tiled uses the oddr representation. - point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); - point.y = layerWorldY + tileY * rowHeight; - } - - - } - - return point; -}; - -module.exports = TileToWorldXY; - - -/***/ }), -/* 218 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Tile = __webpack_require__(73); -var IsInLayerBounds = __webpack_require__(100); -var CalculateFacesAt = __webpack_require__(216); +var Tile = __webpack_require__(72); +var IsInLayerBounds = __webpack_require__(99); +var CalculateFacesAt = __webpack_require__(215); var SetTileCollision = __webpack_require__(71); /** @@ -51746,7 +51598,7 @@ module.exports = PutTileAt; /***/ }), -/* 219 */ +/* 217 */ /***/ (function(module, exports) { /** @@ -51785,7 +51637,7 @@ module.exports = SetLayerCollisionIndex; /***/ }), -/* 220 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51795,9 +51647,9 @@ module.exports = SetLayerCollisionIndex; */ var Formats = __webpack_require__(33); -var LayerData = __webpack_require__(101); -var MapData = __webpack_require__(102); -var Tile = __webpack_require__(73); +var LayerData = __webpack_require__(100); +var MapData = __webpack_require__(101); +var Tile = __webpack_require__(72); /** * Parses a 2D array of tile indexes into a new MapData object with a single layer. @@ -51876,7 +51728,7 @@ module.exports = Parse2DArray; /***/ }), -/* 221 */ +/* 219 */ /***/ (function(module, exports) { /** @@ -51966,7 +51818,7 @@ module.exports = ParseGID; /***/ }), -/* 222 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52027,7 +51879,7 @@ module.exports = CreateGroupLayer; /***/ }), -/* 223 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52036,8 +51888,8 @@ module.exports = CreateGroupLayer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pick = __webpack_require__(485); -var ParseGID = __webpack_require__(221); +var Pick = __webpack_require__(481); +var ParseGID = __webpack_require__(219); var copyPoints = function (p) { return { x: p.x, y: p.y }; }; @@ -52109,7 +51961,7 @@ module.exports = ParseObject; /***/ }), -/* 224 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52119,9 +51971,9 @@ module.exports = ParseObject; */ var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var Parse = __webpack_require__(477); -var Tilemap = __webpack_require__(493); +var MapData = __webpack_require__(101); +var Parse = __webpack_require__(473); +var Tilemap = __webpack_require__(489); /** * Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When @@ -52195,7 +52047,7 @@ module.exports = ParseToTilemap; /***/ }), -/* 225 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52244,7 +52096,7 @@ module.exports = GetTargets; /***/ }), -/* 226 */ +/* 224 */ /***/ (function(module, exports) { /** @@ -52512,7 +52364,7 @@ module.exports = GetValueOp; /***/ }), -/* 227 */ +/* 225 */ /***/ (function(module, exports) { /** @@ -52556,7 +52408,7 @@ module.exports = TWEEN_DEFAULTS; /***/ }), -/* 228 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52566,12 +52418,12 @@ module.exports = TWEEN_DEFAULTS; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(229); -var GameObjectCreator = __webpack_require__(16); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(227); +var GameObjectCreator = __webpack_require__(17); var GameObjectFactory = __webpack_require__(5); -var TWEEN_CONST = __webpack_require__(88); -var MATH_CONST = __webpack_require__(15); +var TWEEN_CONST = __webpack_require__(87); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -54200,7 +54052,7 @@ module.exports = Tween; /***/ }), -/* 229 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54233,7 +54085,7 @@ module.exports = { /***/ }), -/* 230 */ +/* 228 */ /***/ (function(module, exports) { /** @@ -54360,7 +54212,7 @@ module.exports = TweenData; /***/ }), -/* 231 */ +/* 229 */ /***/ (function(module, exports) { /** @@ -54414,7 +54266,7 @@ module.exports = ScaleModes; /***/ }), -/* 232 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54446,7 +54298,7 @@ module.exports = Wrap; /***/ }), -/* 233 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54478,7 +54330,7 @@ module.exports = WrapDegrees; /***/ }), -/* 234 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54491,12 +54343,12 @@ module.exports = WrapDegrees; var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(235); -var ShaderSourceFS = __webpack_require__(337); -var ShaderSourceVS = __webpack_require__(338); +var ModelViewProjection = __webpack_require__(233); +var ShaderSourceFS = __webpack_require__(335); +var ShaderSourceVS = __webpack_require__(336); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); -var WebGLPipeline = __webpack_require__(142); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -55986,7 +55838,7 @@ module.exports = TextureTintPipeline; /***/ }), -/* 235 */ +/* 233 */ /***/ (function(module, exports) { /** @@ -56736,7 +56588,7 @@ module.exports = ModelViewProjection; /***/ }), -/* 236 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56749,7 +56601,7 @@ var Sleeping = {}; module.exports = Sleeping; -var Events = __webpack_require__(237); +var Events = __webpack_require__(235); (function() { @@ -56871,7 +56723,7 @@ var Events = __webpack_require__(237); /***/ }), -/* 237 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56989,7 +56841,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 238 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57004,65 +56856,65 @@ var Common = __webpack_require__(37); module.exports = { - AlignTo: __webpack_require__(526), - Angle: __webpack_require__(527), - Call: __webpack_require__(528), - GetFirst: __webpack_require__(529), - GetLast: __webpack_require__(530), - GridAlign: __webpack_require__(531), - IncAlpha: __webpack_require__(592), - IncX: __webpack_require__(593), - IncXY: __webpack_require__(594), - IncY: __webpack_require__(595), - PlaceOnCircle: __webpack_require__(596), - PlaceOnEllipse: __webpack_require__(597), - PlaceOnLine: __webpack_require__(598), - PlaceOnRectangle: __webpack_require__(599), - PlaceOnTriangle: __webpack_require__(600), - PlayAnimation: __webpack_require__(601), + AlignTo: __webpack_require__(522), + Angle: __webpack_require__(523), + Call: __webpack_require__(524), + GetFirst: __webpack_require__(525), + GetLast: __webpack_require__(526), + GridAlign: __webpack_require__(527), + IncAlpha: __webpack_require__(588), + IncX: __webpack_require__(589), + IncXY: __webpack_require__(590), + IncY: __webpack_require__(591), + PlaceOnCircle: __webpack_require__(592), + PlaceOnEllipse: __webpack_require__(593), + PlaceOnLine: __webpack_require__(594), + PlaceOnRectangle: __webpack_require__(595), + PlaceOnTriangle: __webpack_require__(596), + PlayAnimation: __webpack_require__(597), PropertyValueInc: __webpack_require__(34), - PropertyValueSet: __webpack_require__(25), - RandomCircle: __webpack_require__(602), - RandomEllipse: __webpack_require__(603), - RandomLine: __webpack_require__(604), - RandomRectangle: __webpack_require__(605), - RandomTriangle: __webpack_require__(606), - Rotate: __webpack_require__(607), - RotateAround: __webpack_require__(608), - RotateAroundDistance: __webpack_require__(609), - ScaleX: __webpack_require__(610), - ScaleXY: __webpack_require__(611), - ScaleY: __webpack_require__(612), - SetAlpha: __webpack_require__(613), - SetBlendMode: __webpack_require__(614), - SetDepth: __webpack_require__(615), - SetHitArea: __webpack_require__(616), - SetOrigin: __webpack_require__(617), - SetRotation: __webpack_require__(618), - SetScale: __webpack_require__(619), - SetScaleX: __webpack_require__(620), - SetScaleY: __webpack_require__(621), - SetScrollFactor: __webpack_require__(622), - SetScrollFactorX: __webpack_require__(623), - SetScrollFactorY: __webpack_require__(624), - SetTint: __webpack_require__(625), - SetVisible: __webpack_require__(626), - SetX: __webpack_require__(627), - SetXY: __webpack_require__(628), - SetY: __webpack_require__(629), - ShiftPosition: __webpack_require__(630), - Shuffle: __webpack_require__(631), - SmootherStep: __webpack_require__(632), - SmoothStep: __webpack_require__(633), - Spread: __webpack_require__(634), - ToggleVisible: __webpack_require__(635), - WrapInRectangle: __webpack_require__(636) + PropertyValueSet: __webpack_require__(26), + RandomCircle: __webpack_require__(598), + RandomEllipse: __webpack_require__(599), + RandomLine: __webpack_require__(600), + RandomRectangle: __webpack_require__(601), + RandomTriangle: __webpack_require__(602), + Rotate: __webpack_require__(603), + RotateAround: __webpack_require__(604), + RotateAroundDistance: __webpack_require__(605), + ScaleX: __webpack_require__(606), + ScaleXY: __webpack_require__(607), + ScaleY: __webpack_require__(608), + SetAlpha: __webpack_require__(609), + SetBlendMode: __webpack_require__(610), + SetDepth: __webpack_require__(611), + SetHitArea: __webpack_require__(612), + SetOrigin: __webpack_require__(613), + SetRotation: __webpack_require__(614), + SetScale: __webpack_require__(615), + SetScaleX: __webpack_require__(616), + SetScaleY: __webpack_require__(617), + SetScrollFactor: __webpack_require__(618), + SetScrollFactorX: __webpack_require__(619), + SetScrollFactorY: __webpack_require__(620), + SetTint: __webpack_require__(621), + SetVisible: __webpack_require__(622), + SetX: __webpack_require__(623), + SetXY: __webpack_require__(624), + SetY: __webpack_require__(625), + ShiftPosition: __webpack_require__(626), + Shuffle: __webpack_require__(627), + SmootherStep: __webpack_require__(628), + SmoothStep: __webpack_require__(629), + Spread: __webpack_require__(630), + ToggleVisible: __webpack_require__(631), + WrapInRectangle: __webpack_require__(632) }; /***/ }), -/* 239 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57071,22 +56923,22 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(103); +var ALIGN_CONST = __webpack_require__(102); var AlignToMap = []; -AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(240); -AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(241); -AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(242); -AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(243); -AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(244); -AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(245); -AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(246); -AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(247); -AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(248); -AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(249); -AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(250); -AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(251); +AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(238); +AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(239); +AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(240); +AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(241); +AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(242); +AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(243); +AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(244); +AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(245); +AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(246); +AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(247); +AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(248); +AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(249); /** * Takes a Game Object and aligns it next to another, at the given position. @@ -57114,7 +56966,7 @@ module.exports = QuickSet; /***/ }), -/* 240 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57124,8 +56976,8 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(75); -var SetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(74); +var SetCenterX = __webpack_require__(75); var SetTop = __webpack_require__(39); /** @@ -57158,7 +57010,7 @@ module.exports = BottomCenter; /***/ }), -/* 241 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57202,7 +57054,7 @@ module.exports = BottomLeft; /***/ }), -/* 242 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57246,7 +57098,7 @@ module.exports = BottomRight; /***/ }), -/* 243 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57290,7 +57142,7 @@ module.exports = LeftBottom; /***/ }), -/* 244 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57299,9 +57151,9 @@ module.exports = LeftBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetRight = __webpack_require__(43); /** @@ -57334,7 +57186,7 @@ module.exports = LeftCenter; /***/ }), -/* 245 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57378,7 +57230,7 @@ module.exports = LeftTop; /***/ }), -/* 246 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57422,7 +57274,7 @@ module.exports = RightBottom; /***/ }), -/* 247 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57431,9 +57283,9 @@ module.exports = RightBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetLeft = __webpack_require__(41); /** @@ -57466,7 +57318,7 @@ module.exports = RightCenter; /***/ }), -/* 248 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57510,7 +57362,7 @@ module.exports = RightTop; /***/ }), -/* 249 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57519,10 +57371,10 @@ module.exports = RightTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var GetTop = __webpack_require__(45); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); /** * Takes given Game Object and aligns it so that it is positioned next to the top center position of the other. @@ -57554,7 +57406,7 @@ module.exports = TopCenter; /***/ }), -/* 250 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57598,7 +57450,7 @@ module.exports = TopLeft; /***/ }), -/* 251 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57642,7 +57494,7 @@ module.exports = TopRight; /***/ }), -/* 252 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57651,19 +57503,19 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(103); +var ALIGN_CONST = __webpack_require__(102); var AlignInMap = []; -AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(253); -AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(254); -AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(255); -AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(256); -AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(258); -AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(259); -AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(260); -AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(261); -AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(262); +AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(251); +AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(252); +AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(253); +AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(254); +AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(256); +AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(257); +AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(258); +AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(259); +AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(260); AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT]; AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT]; AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT]; @@ -57695,7 +57547,7 @@ module.exports = QuickSet; /***/ }), -/* 253 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57705,9 +57557,9 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); /** * Takes given Game Object and aligns it so that it is positioned in the bottom center of the other. @@ -57739,7 +57591,7 @@ module.exports = BottomCenter; /***/ }), -/* 254 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57783,7 +57635,7 @@ module.exports = BottomLeft; /***/ }), -/* 255 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57827,7 +57679,7 @@ module.exports = BottomRight; /***/ }), -/* 256 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57836,9 +57688,9 @@ module.exports = BottomRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(257); -var GetCenterX = __webpack_require__(75); -var GetCenterY = __webpack_require__(77); +var CenterOn = __webpack_require__(255); +var GetCenterX = __webpack_require__(74); +var GetCenterY = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned in the center of the other. @@ -57869,7 +57721,7 @@ module.exports = Center; /***/ }), -/* 257 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57878,8 +57730,8 @@ module.exports = Center; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetCenterX = __webpack_require__(76); -var SetCenterY = __webpack_require__(78); +var SetCenterX = __webpack_require__(75); +var SetCenterY = __webpack_require__(77); /** * Positions the Game Object so that it is centered on the given coordinates. @@ -57906,7 +57758,7 @@ module.exports = CenterOn; /***/ }), -/* 258 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57915,9 +57767,9 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetLeft = __webpack_require__(41); /** @@ -57950,7 +57802,7 @@ module.exports = LeftCenter; /***/ }), -/* 259 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57959,9 +57811,9 @@ module.exports = LeftCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(77); +var GetCenterY = __webpack_require__(76); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(78); +var SetCenterY = __webpack_require__(77); var SetRight = __webpack_require__(43); /** @@ -57994,7 +57846,7 @@ module.exports = RightCenter; /***/ }), -/* 260 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58003,9 +57855,9 @@ module.exports = RightCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(75); +var GetCenterX = __webpack_require__(74); var GetTop = __webpack_require__(45); -var SetCenterX = __webpack_require__(76); +var SetCenterX = __webpack_require__(75); var SetTop = __webpack_require__(39); /** @@ -58038,7 +57890,7 @@ module.exports = TopCenter; /***/ }), -/* 261 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58082,7 +57934,7 @@ module.exports = TopLeft; /***/ }), -/* 262 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58126,7 +57978,7 @@ module.exports = TopRight; /***/ }), -/* 263 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58135,9 +57987,9 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(144); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var CircumferencePoint = __webpack_require__(143); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); var Point = __webpack_require__(4); /** @@ -58169,7 +58021,7 @@ module.exports = GetPoint; /***/ }), -/* 264 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58178,10 +58030,10 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(265); -var CircumferencePoint = __webpack_require__(144); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var Circumference = __webpack_require__(263); +var CircumferencePoint = __webpack_require__(143); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); /** * Returns an array of Point objects containing the coordinates of the points around the circumference of the Circle, @@ -58221,7 +58073,7 @@ module.exports = GetPoints; /***/ }), -/* 265 */ +/* 263 */ /***/ (function(module, exports) { /** @@ -58249,7 +58101,7 @@ module.exports = Circumference; /***/ }), -/* 266 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58258,7 +58110,7 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); // bitmask flag for GameObject.renderMask var _FLAG = 2; // 0010 @@ -58359,7 +58211,7 @@ module.exports = AlphaSingle; /***/ }), -/* 267 */ +/* 265 */ /***/ (function(module, exports) { /** @@ -58443,7 +58295,7 @@ module.exports = FindClosestInSorted; /***/ }), -/* 268 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58617,7 +58469,7 @@ module.exports = AnimationFrame; /***/ }), -/* 269 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58739,7 +58591,7 @@ module.exports = BlendMode; /***/ }), -/* 270 */ +/* 268 */ /***/ (function(module, exports) { /** @@ -58832,7 +58684,7 @@ module.exports = Depth; /***/ }), -/* 271 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58841,8 +58693,8 @@ module.exports = Depth; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoint = __webpack_require__(147); -var Perimeter = __webpack_require__(109); +var GetPoint = __webpack_require__(146); +var Perimeter = __webpack_require__(108); // Return an array of points from the perimeter of the rectangle // each spaced out based on the quantity or step required @@ -58886,7 +58738,7 @@ module.exports = GetPoints; /***/ }), -/* 272 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58925,7 +58777,7 @@ module.exports = GetPoint; /***/ }), -/* 273 */ +/* 271 */ /***/ (function(module, exports) { /** @@ -58965,7 +58817,7 @@ module.exports = RotateAround; /***/ }), -/* 274 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58974,8 +58826,8 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapMask = __webpack_require__(275); -var GeometryMask = __webpack_require__(276); +var BitmapMask = __webpack_require__(273); +var GeometryMask = __webpack_require__(274); /** * Provides methods used for getting and setting the mask of a Game Object. @@ -59112,7 +58964,7 @@ module.exports = Mask; /***/ }), -/* 275 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59122,7 +58974,7 @@ module.exports = Mask; */ var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); /** * @classdesc @@ -59405,7 +59257,7 @@ module.exports = BitmapMask; /***/ }), -/* 276 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59720,7 +59572,7 @@ module.exports = GeometryMask; /***/ }), -/* 277 */ +/* 275 */ /***/ (function(module, exports) { /** @@ -59827,7 +59679,7 @@ module.exports = ScrollFactor; /***/ }), -/* 278 */ +/* 276 */ /***/ (function(module, exports) { /** @@ -59888,7 +59740,7 @@ module.exports = ToJSON; /***/ }), -/* 279 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59897,10 +59749,10 @@ module.exports = ToJSON; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var TransformMatrix = __webpack_require__(30); -var WrapAngle = __webpack_require__(232); -var WrapAngleDegrees = __webpack_require__(233); +var WrapAngle = __webpack_require__(230); +var WrapAngleDegrees = __webpack_require__(231); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -60427,7 +60279,7 @@ module.exports = Transform; /***/ }), -/* 280 */ +/* 278 */ /***/ (function(module, exports) { /** @@ -60516,7 +60368,7 @@ module.exports = Visible; /***/ }), -/* 281 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60531,16 +60383,16 @@ module.exports = Visible; module.exports = { - CHANGE_DATA: __webpack_require__(577), - CHANGE_DATA_KEY: __webpack_require__(578), - REMOVE_DATA: __webpack_require__(579), - SET_DATA: __webpack_require__(580) + CHANGE_DATA: __webpack_require__(573), + CHANGE_DATA_KEY: __webpack_require__(574), + REMOVE_DATA: __webpack_require__(575), + SET_DATA: __webpack_require__(576) }; /***/ }), -/* 282 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60549,7 +60401,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(109); +var Perimeter = __webpack_require__(108); var Point = __webpack_require__(4); @@ -60659,7 +60511,7 @@ module.exports = MarchingAnts; /***/ }), -/* 283 */ +/* 281 */ /***/ (function(module, exports) { /** @@ -60699,7 +60551,7 @@ module.exports = RotateLeft; /***/ }), -/* 284 */ +/* 282 */ /***/ (function(module, exports) { /** @@ -60739,7 +60591,7 @@ module.exports = RotateRight; /***/ }), -/* 285 */ +/* 283 */ /***/ (function(module, exports) { /** @@ -60813,7 +60665,7 @@ module.exports = BresenhamPoints; /***/ }), -/* 286 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60822,14 +60674,14 @@ module.exports = BresenhamPoints; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Animation = __webpack_require__(146); +var Animation = __webpack_require__(145); var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(157); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(108); -var GameEvents = __webpack_require__(18); +var CustomMap = __webpack_require__(156); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(107); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); -var Pad = __webpack_require__(158); +var Pad = __webpack_require__(157); /** * @classdesc @@ -61495,7 +61347,7 @@ module.exports = AnimationManager; /***/ }), -/* 287 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61505,9 +61357,9 @@ module.exports = AnimationManager; */ var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(157); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(288); +var CustomMap = __webpack_require__(156); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(286); /** * @classdesc @@ -61681,7 +61533,7 @@ module.exports = BaseCache; /***/ }), -/* 288 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61696,14 +61548,14 @@ module.exports = BaseCache; module.exports = { - ADD: __webpack_require__(639), - REMOVE: __webpack_require__(640) + ADD: __webpack_require__(635), + REMOVE: __webpack_require__(636) }; /***/ }), -/* 289 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61712,9 +61564,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCache = __webpack_require__(287); +var BaseCache = __webpack_require__(285); var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); /** * @classdesc @@ -61937,7 +61789,7 @@ module.exports = CacheManager; /***/ }), -/* 290 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61946,15 +61798,15 @@ module.exports = CacheManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); -var CanvasPool = __webpack_require__(26); -var CenterOn = __webpack_require__(163); -var Clamp = __webpack_require__(22); +var BaseCamera = __webpack_require__(89); +var CanvasPool = __webpack_require__(27); +var CenterOn = __webpack_require__(162); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Effects = __webpack_require__(298); -var Linear = __webpack_require__(112); -var Rectangle = __webpack_require__(12); +var Components = __webpack_require__(12); +var Effects = __webpack_require__(296); +var Linear = __webpack_require__(111); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); /** @@ -62955,7 +62807,7 @@ module.exports = Camera; /***/ }), -/* 291 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63008,7 +62860,7 @@ module.exports = HexStringToColor; /***/ }), -/* 292 */ +/* 290 */ /***/ (function(module, exports) { /** @@ -63039,7 +62891,7 @@ module.exports = GetColor32; /***/ }), -/* 293 */ +/* 291 */ /***/ (function(module, exports) { /** @@ -63119,7 +62971,7 @@ module.exports = RGBToHSV; /***/ }), -/* 294 */ +/* 292 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63129,7 +62981,7 @@ module.exports = RGBToHSV; */ var Color = __webpack_require__(32); -var IntegerToRGB = __webpack_require__(295); +var IntegerToRGB = __webpack_require__(293); /** * Converts the given color value into an instance of a Color object. @@ -63152,7 +63004,7 @@ module.exports = IntegerToColor; /***/ }), -/* 295 */ +/* 293 */ /***/ (function(module, exports) { /** @@ -63200,7 +63052,7 @@ module.exports = IntegerToRGB; /***/ }), -/* 296 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63230,7 +63082,7 @@ module.exports = ObjectToColor; /***/ }), -/* 297 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63276,7 +63128,7 @@ module.exports = RGBStringToColor; /***/ }), -/* 298 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63291,11 +63143,57 @@ module.exports = RGBStringToColor; module.exports = { - Fade: __webpack_require__(661), - Flash: __webpack_require__(662), - Pan: __webpack_require__(663), - Shake: __webpack_require__(696), - Zoom: __webpack_require__(697) + Fade: __webpack_require__(657), + Flash: __webpack_require__(658), + Pan: __webpack_require__(659), + Shake: __webpack_require__(692), + Zoom: __webpack_require__(693) + +}; + + +/***/ }), +/* 297 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Back + */ + +module.exports = { + + In: __webpack_require__(660), + Out: __webpack_require__(661), + InOut: __webpack_require__(662) + +}; + + +/***/ }), +/* 298 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Bounce + */ + +module.exports = { + + In: __webpack_require__(663), + Out: __webpack_require__(664), + InOut: __webpack_require__(665) }; @@ -63311,14 +63209,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Back + * @namespace Phaser.Math.Easing.Circular */ module.exports = { - In: __webpack_require__(664), - Out: __webpack_require__(665), - InOut: __webpack_require__(666) + In: __webpack_require__(666), + Out: __webpack_require__(667), + InOut: __webpack_require__(668) }; @@ -63334,14 +63232,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Bounce + * @namespace Phaser.Math.Easing.Cubic */ module.exports = { - In: __webpack_require__(667), - Out: __webpack_require__(668), - InOut: __webpack_require__(669) + In: __webpack_require__(669), + Out: __webpack_require__(670), + InOut: __webpack_require__(671) }; @@ -63357,14 +63255,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Circular + * @namespace Phaser.Math.Easing.Elastic */ module.exports = { - In: __webpack_require__(670), - Out: __webpack_require__(671), - InOut: __webpack_require__(672) + In: __webpack_require__(672), + Out: __webpack_require__(673), + InOut: __webpack_require__(674) }; @@ -63380,14 +63278,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Cubic + * @namespace Phaser.Math.Easing.Expo */ module.exports = { - In: __webpack_require__(673), - Out: __webpack_require__(674), - InOut: __webpack_require__(675) + In: __webpack_require__(675), + Out: __webpack_require__(676), + InOut: __webpack_require__(677) }; @@ -63403,16 +63301,10 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Elastic + * @namespace Phaser.Math.Easing.Linear */ -module.exports = { - - In: __webpack_require__(676), - Out: __webpack_require__(677), - InOut: __webpack_require__(678) - -}; +module.exports = __webpack_require__(678); /***/ }), @@ -63426,7 +63318,7 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Expo + * @namespace Phaser.Math.Easing.Quadratic */ module.exports = { @@ -63449,10 +63341,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Linear + * @namespace Phaser.Math.Easing.Quartic */ -module.exports = __webpack_require__(682); +module.exports = { + + In: __webpack_require__(682), + Out: __webpack_require__(683), + InOut: __webpack_require__(684) + +}; /***/ }), @@ -63466,14 +63364,14 @@ module.exports = __webpack_require__(682); */ /** - * @namespace Phaser.Math.Easing.Quadratic + * @namespace Phaser.Math.Easing.Quintic */ module.exports = { - In: __webpack_require__(683), - Out: __webpack_require__(684), - InOut: __webpack_require__(685) + In: __webpack_require__(685), + Out: __webpack_require__(686), + InOut: __webpack_require__(687) }; @@ -63489,14 +63387,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quartic + * @namespace Phaser.Math.Easing.Sine */ module.exports = { - In: __webpack_require__(686), - Out: __webpack_require__(687), - InOut: __webpack_require__(688) + In: __webpack_require__(688), + Out: __webpack_require__(689), + InOut: __webpack_require__(690) }; @@ -63512,62 +63410,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quintic + * @namespace Phaser.Math.Easing.Stepped */ -module.exports = { - - In: __webpack_require__(689), - Out: __webpack_require__(690), - InOut: __webpack_require__(691) - -}; +module.exports = __webpack_require__(691); /***/ }), /* 309 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Sine - */ - -module.exports = { - - In: __webpack_require__(692), - Out: __webpack_require__(693), - InOut: __webpack_require__(694) - -}; - - -/***/ }), -/* 310 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Stepped - */ - -module.exports = __webpack_require__(695); - - -/***/ }), -/* 311 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -63575,15 +63427,15 @@ module.exports = __webpack_require__(695); */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var Device = __webpack_require__(312); +var CONST = __webpack_require__(10); +var Device = __webpack_require__(310); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var PhaserMath = __webpack_require__(166); +var PhaserMath = __webpack_require__(165); var NOOP = __webpack_require__(1); -var DefaultPlugins = __webpack_require__(171); -var ValueToColor = __webpack_require__(159); +var DefaultPlugins = __webpack_require__(170); +var ValueToColor = __webpack_require__(158); /** * @classdesc @@ -64146,7 +63998,7 @@ module.exports = Config; /***/ }), -/* 312 */ +/* 310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64180,20 +64032,20 @@ module.exports = Config; module.exports = { - os: __webpack_require__(113), - browser: __webpack_require__(114), - features: __webpack_require__(165), - input: __webpack_require__(726), - audio: __webpack_require__(727), - video: __webpack_require__(728), - fullscreen: __webpack_require__(729), - canvasFeatures: __webpack_require__(313) + os: __webpack_require__(112), + browser: __webpack_require__(113), + features: __webpack_require__(164), + input: __webpack_require__(722), + audio: __webpack_require__(723), + video: __webpack_require__(724), + fullscreen: __webpack_require__(725), + canvasFeatures: __webpack_require__(311) }; /***/ }), -/* 313 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64202,7 +64054,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); /** * Determines the canvas features of the browser running this Phaser Game instance. @@ -64307,7 +64159,7 @@ module.exports = init(); /***/ }), -/* 314 */ +/* 312 */ /***/ (function(module, exports) { /** @@ -64338,7 +64190,7 @@ module.exports = Between; /***/ }), -/* 315 */ +/* 313 */ /***/ (function(module, exports) { /** @@ -64375,7 +64227,7 @@ module.exports = Normalize; /***/ }), -/* 316 */ +/* 314 */ /***/ (function(module, exports) { /** @@ -64407,7 +64259,7 @@ module.exports = DistanceBetweenPoints; /***/ }), -/* 317 */ +/* 315 */ /***/ (function(module, exports) { /** @@ -64441,7 +64293,7 @@ module.exports = DistanceSquared; /***/ }), -/* 318 */ +/* 316 */ /***/ (function(module, exports) { /** @@ -64475,7 +64327,7 @@ module.exports = GreaterThan; /***/ }), -/* 319 */ +/* 317 */ /***/ (function(module, exports) { /** @@ -64509,7 +64361,7 @@ module.exports = LessThan; /***/ }), -/* 320 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64518,7 +64370,7 @@ module.exports = LessThan; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Factorial = __webpack_require__(321); +var Factorial = __webpack_require__(319); /** * Calculates the Bernstein basis from the three factorial coefficients. @@ -64540,7 +64392,7 @@ module.exports = Bernstein; /***/ }), -/* 321 */ +/* 319 */ /***/ (function(module, exports) { /** @@ -64580,7 +64432,7 @@ module.exports = Factorial; /***/ }), -/* 322 */ +/* 320 */ /***/ (function(module, exports) { /** @@ -64650,7 +64502,7 @@ module.exports = CubicBezierInterpolation; /***/ }), -/* 323 */ +/* 321 */ /***/ (function(module, exports) { /** @@ -64709,7 +64561,7 @@ module.exports = QuadraticBezierInterpolation; /***/ }), -/* 324 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64718,7 +64570,7 @@ module.exports = QuadraticBezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmoothStep = __webpack_require__(156); +var SmoothStep = __webpack_require__(155); /** * A Smooth Step interpolation method. @@ -64742,7 +64594,7 @@ module.exports = SmoothStepInterpolation; /***/ }), -/* 325 */ +/* 323 */ /***/ (function(module, exports) { /** @@ -64772,7 +64624,7 @@ module.exports = GetPowerOfTwo; /***/ }), -/* 326 */ +/* 324 */ /***/ (function(module, exports) { /** @@ -64816,7 +64668,7 @@ module.exports = SnapCeil; /***/ }), -/* 327 */ +/* 325 */ /***/ (function(module, exports) { /** @@ -64845,7 +64697,7 @@ module.exports = FloatBetween; /***/ }), -/* 328 */ +/* 326 */ /***/ (function(module, exports) { /** @@ -64880,7 +64732,7 @@ module.exports = Rotate; /***/ }), -/* 329 */ +/* 327 */ /***/ (function(module, exports) { /** @@ -64909,7 +64761,7 @@ module.exports = RoundAwayFromZero; /***/ }), -/* 330 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64964,7 +64816,7 @@ module.exports = TransformXY; /***/ }), -/* 331 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65509,7 +65361,7 @@ module.exports = Vector4; /***/ }), -/* 332 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66102,7 +65954,7 @@ module.exports = Matrix3; /***/ }), -/* 333 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67564,7 +67416,7 @@ module.exports = Matrix4; /***/ }), -/* 334 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67577,8 +67429,8 @@ module.exports = Matrix4; // and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl var Class = __webpack_require__(0); -var Vector3 = __webpack_require__(170); -var Matrix3 = __webpack_require__(332); +var Vector3 = __webpack_require__(169); +var Matrix3 = __webpack_require__(330); var EPSILON = 0.000001; @@ -68336,7 +68188,7 @@ module.exports = Quaternion; /***/ }), -/* 335 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68345,10 +68197,10 @@ module.exports = Quaternion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasInterpolation = __webpack_require__(336); -var CanvasPool = __webpack_require__(26); -var CONST = __webpack_require__(29); -var Features = __webpack_require__(165); +var CanvasInterpolation = __webpack_require__(334); +var CanvasPool = __webpack_require__(27); +var CONST = __webpack_require__(10); +var Features = __webpack_require__(164); /** * Called automatically by Phaser.Game and responsible for creating the renderer it will use. @@ -68438,8 +68290,8 @@ var CreateRenderer = function (game) if (true) { - CanvasRenderer = __webpack_require__(504); - WebGLRenderer = __webpack_require__(507); + CanvasRenderer = __webpack_require__(500); + WebGLRenderer = __webpack_require__(503); // Let the config pick the renderer type, as both are included if (config.renderType === CONST.WEBGL) @@ -68464,7 +68316,7 @@ module.exports = CreateRenderer; /***/ }), -/* 336 */ +/* 334 */ /***/ (function(module, exports) { /** @@ -68527,7 +68379,7 @@ module.exports = CanvasInterpolation; /***/ }), -/* 337 */ +/* 335 */ /***/ (function(module, exports) { module.exports = [ @@ -68571,7 +68423,7 @@ module.exports = [ /***/ }), -/* 338 */ +/* 336 */ /***/ (function(module, exports) { module.exports = [ @@ -68606,7 +68458,7 @@ module.exports = [ /***/ }), -/* 339 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68615,7 +68467,7 @@ module.exports = [ * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(29); +var CONST = __webpack_require__(10); /** * Called automatically by Phaser.Game and responsible for creating the console.log debug header. @@ -68736,7 +68588,7 @@ module.exports = DebugHeader; /***/ }), -/* 340 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68748,7 +68600,7 @@ module.exports = DebugHeader; var Class = __webpack_require__(0); var GetValue = __webpack_require__(6); var NOOP = __webpack_require__(1); -var RequestAnimationFrame = __webpack_require__(341); +var RequestAnimationFrame = __webpack_require__(339); // http://www.testufo.com/#test=animation-time-graph @@ -69466,7 +69318,7 @@ module.exports = TimeStep; /***/ }), -/* 341 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69680,7 +69532,7 @@ module.exports = RequestAnimationFrame; /***/ }), -/* 342 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69689,7 +69541,7 @@ module.exports = RequestAnimationFrame; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Events = __webpack_require__(18); +var Events = __webpack_require__(19); /** * The Visibility Handler is responsible for listening out for document level visibility change events. @@ -69771,7 +69623,7 @@ module.exports = VisibilityHandler; /***/ }), -/* 343 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69780,8 +69632,8 @@ module.exports = VisibilityHandler; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arne16 = __webpack_require__(344); -var CanvasPool = __webpack_require__(26); +var Arne16 = __webpack_require__(342); +var CanvasPool = __webpack_require__(27); var GetValue = __webpack_require__(6); /** @@ -69893,7 +69745,7 @@ module.exports = GenerateTexture; /***/ }), -/* 344 */ +/* 342 */ /***/ (function(module, exports) { /** @@ -69931,7 +69783,7 @@ module.exports = { /***/ }), -/* 345 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69943,8 +69795,8 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezier = __webpack_require__(322); -var Curve = __webpack_require__(80); +var CubicBezier = __webpack_require__(320); +var Curve = __webpack_require__(79); var Vector2 = __webpack_require__(3); /** @@ -70158,7 +70010,7 @@ module.exports = CubicBezierCurve; /***/ }), -/* 346 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -70170,10 +70022,10 @@ module.exports = CubicBezierCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); +var Curve = __webpack_require__(79); var DegToRad = __webpack_require__(35); var GetValue = __webpack_require__(6); -var RadToDeg = __webpack_require__(169); +var RadToDeg = __webpack_require__(168); var Vector2 = __webpack_require__(3); /** @@ -70782,7 +70634,7 @@ module.exports = EllipseCurve; /***/ }), -/* 347 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -70794,9 +70646,9 @@ module.exports = EllipseCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); -var FromPoints = __webpack_require__(172); -var Rectangle = __webpack_require__(12); +var Curve = __webpack_require__(79); +var FromPoints = __webpack_require__(171); +var Rectangle = __webpack_require__(13); var Vector2 = __webpack_require__(3); var tmpVec2 = new Vector2(); @@ -71087,7 +70939,7 @@ module.exports = LineCurve; /***/ }), -/* 348 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71097,8 +70949,8 @@ module.exports = LineCurve; */ var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); -var QuadraticBezierInterpolation = __webpack_require__(323); +var Curve = __webpack_require__(79); +var QuadraticBezierInterpolation = __webpack_require__(321); var Vector2 = __webpack_require__(3); /** @@ -71301,7 +71153,7 @@ module.exports = QuadraticBezier; /***/ }), -/* 349 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71312,9 +71164,9 @@ module.exports = QuadraticBezier; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) -var CatmullRom = __webpack_require__(167); +var CatmullRom = __webpack_require__(166); var Class = __webpack_require__(0); -var Curve = __webpack_require__(80); +var Curve = __webpack_require__(79); var Vector2 = __webpack_require__(3); /** @@ -71526,7 +71378,7 @@ module.exports = SplineCurve; /***/ }), -/* 350 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71650,7 +71502,7 @@ module.exports = BaseShader; /***/ }), -/* 351 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71661,30 +71513,30 @@ module.exports = BaseShader; var Color = __webpack_require__(32); -Color.ColorToRGBA = __webpack_require__(804); -Color.ComponentToHex = __webpack_require__(352); -Color.GetColor = __webpack_require__(160); -Color.GetColor32 = __webpack_require__(292); -Color.HexStringToColor = __webpack_require__(291); -Color.HSLToColor = __webpack_require__(805); -Color.HSVColorWheel = __webpack_require__(806); -Color.HSVToRGB = __webpack_require__(161); -Color.HueToComponent = __webpack_require__(353); -Color.IntegerToColor = __webpack_require__(294); -Color.IntegerToRGB = __webpack_require__(295); -Color.Interpolate = __webpack_require__(807); -Color.ObjectToColor = __webpack_require__(296); -Color.RandomRGB = __webpack_require__(808); -Color.RGBStringToColor = __webpack_require__(297); -Color.RGBToHSV = __webpack_require__(293); -Color.RGBToString = __webpack_require__(809); -Color.ValueToColor = __webpack_require__(159); +Color.ColorToRGBA = __webpack_require__(800); +Color.ComponentToHex = __webpack_require__(350); +Color.GetColor = __webpack_require__(159); +Color.GetColor32 = __webpack_require__(290); +Color.HexStringToColor = __webpack_require__(289); +Color.HSLToColor = __webpack_require__(801); +Color.HSVColorWheel = __webpack_require__(802); +Color.HSVToRGB = __webpack_require__(160); +Color.HueToComponent = __webpack_require__(351); +Color.IntegerToColor = __webpack_require__(292); +Color.IntegerToRGB = __webpack_require__(293); +Color.Interpolate = __webpack_require__(803); +Color.ObjectToColor = __webpack_require__(294); +Color.RandomRGB = __webpack_require__(804); +Color.RGBStringToColor = __webpack_require__(295); +Color.RGBToHSV = __webpack_require__(291); +Color.RGBToString = __webpack_require__(805); +Color.ValueToColor = __webpack_require__(158); module.exports = Color; /***/ }), -/* 352 */ +/* 350 */ /***/ (function(module, exports) { /** @@ -71714,7 +71566,7 @@ module.exports = ComponentToHex; /***/ }), -/* 353 */ +/* 351 */ /***/ (function(module, exports) { /** @@ -71770,7 +71622,7 @@ module.exports = HueToComponent; /***/ }), -/* 354 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71779,7 +71631,7 @@ module.exports = HueToComponent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(113); +var OS = __webpack_require__(112); /** * @callback ContentLoadedCallback @@ -71833,7 +71685,7 @@ module.exports = DOMContentLoaded; /***/ }), -/* 355 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71842,7 +71694,7 @@ module.exports = DOMContentLoaded; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(173); +var CONST = __webpack_require__(172); /** * Attempts to determine the screen orientation using the Orientation API. @@ -71899,7 +71751,7 @@ module.exports = GetScreenOrientation; /***/ }), -/* 356 */ +/* 354 */ /***/ (function(module, exports) { /** @@ -71985,7 +71837,7 @@ module.exports = { /***/ }), -/* 357 */ +/* 355 */ /***/ (function(module, exports) { /** @@ -72038,7 +71890,7 @@ module.exports = { /***/ }), -/* 358 */ +/* 356 */ /***/ (function(module, exports) { /** @@ -72136,7 +71988,7 @@ module.exports = { /***/ }), -/* 359 */ +/* 357 */ /***/ (function(module, exports) { /** @@ -72210,7 +72062,7 @@ module.exports = { /***/ }), -/* 360 */ +/* 358 */ /***/ (function(module, exports) { /** @@ -72261,7 +72113,7 @@ module.exports = GetTarget; /***/ }), -/* 361 */ +/* 359 */ /***/ (function(module, exports) { /** @@ -72318,7 +72170,7 @@ module.exports = ParseXML; /***/ }), -/* 362 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -72328,16 +72180,16 @@ module.exports = ParseXML; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(175); -var EventEmitter = __webpack_require__(10); +var CONST = __webpack_require__(174); +var EventEmitter = __webpack_require__(11); var Events = __webpack_require__(54); -var GameEvents = __webpack_require__(18); -var Keyboard = __webpack_require__(363); -var Mouse = __webpack_require__(364); -var Pointer = __webpack_require__(365); -var Touch = __webpack_require__(366); +var GameEvents = __webpack_require__(19); +var Keyboard = __webpack_require__(361); +var Mouse = __webpack_require__(362); +var Pointer = __webpack_require__(363); +var Touch = __webpack_require__(364); var TransformMatrix = __webpack_require__(30); -var TransformXY = __webpack_require__(330); +var TransformXY = __webpack_require__(328); /** * @classdesc @@ -73400,7 +73252,7 @@ module.exports = InputManager; /***/ }), -/* 363 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -73409,11 +73261,11 @@ module.exports = InputManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(118); +var ArrayRemove = __webpack_require__(117); var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); +var GameEvents = __webpack_require__(19); var InputEvents = __webpack_require__(54); -var KeyCodes = __webpack_require__(119); +var KeyCodes = __webpack_require__(118); var NOOP = __webpack_require__(0); /** @@ -73850,7 +73702,7 @@ module.exports = KeyboardManager; /***/ }), -/* 364 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -73860,7 +73712,7 @@ module.exports = KeyboardManager; */ var Class = __webpack_require__(0); -var Features = __webpack_require__(165); +var Features = __webpack_require__(164); var InputEvents = __webpack_require__(54); var NOOP = __webpack_require__(0); @@ -74336,7 +74188,7 @@ module.exports = MouseManager; /***/ }), -/* 365 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74345,11 +74197,11 @@ module.exports = MouseManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(314); +var Angle = __webpack_require__(312); var Class = __webpack_require__(0); var Distance = __webpack_require__(53); -var FuzzyEqual = __webpack_require__(141); -var SmoothStepInterpolation = __webpack_require__(324); +var FuzzyEqual = __webpack_require__(140); +var SmoothStepInterpolation = __webpack_require__(322); var Vector2 = __webpack_require__(3); /** @@ -75614,7 +75466,7 @@ module.exports = Pointer; /***/ }), -/* 366 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76027,7 +75879,7 @@ module.exports = TouchManager; /***/ }), -/* 367 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76037,14 +75889,14 @@ module.exports = TouchManager; */ var Class = __webpack_require__(0); -var GameEvents = __webpack_require__(18); -var EventEmitter = __webpack_require__(10); +var GameEvents = __webpack_require__(19); +var EventEmitter = __webpack_require__(11); var FileTypesManager = __webpack_require__(8); -var GameObjectCreator = __webpack_require__(16); +var GameObjectCreator = __webpack_require__(17); var GameObjectFactory = __webpack_require__(5); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); -var Remove = __webpack_require__(118); +var PluginCache = __webpack_require__(24); +var Remove = __webpack_require__(117); /** * @classdesc @@ -76929,7 +76781,7 @@ module.exports = PluginManager; /***/ }), -/* 368 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76938,18 +76790,18 @@ module.exports = PluginManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(173); +var CONST = __webpack_require__(172); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(91); -var GameEvents = __webpack_require__(18); -var GetInnerHeight = __webpack_require__(862); -var GetTarget = __webpack_require__(360); -var GetScreenOrientation = __webpack_require__(355); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(90); +var GameEvents = __webpack_require__(19); +var GetInnerHeight = __webpack_require__(858); +var GetTarget = __webpack_require__(358); +var GetScreenOrientation = __webpack_require__(353); var NOOP = __webpack_require__(1); -var Rectangle = __webpack_require__(12); -var Size = __webpack_require__(369); -var SnapFloor = __webpack_require__(92); +var Rectangle = __webpack_require__(13); +var Size = __webpack_require__(367); +var SnapFloor = __webpack_require__(91); var Vector2 = __webpack_require__(3); /** @@ -78646,7 +78498,7 @@ module.exports = ScaleManager; /***/ }), -/* 369 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78655,9 +78507,9 @@ module.exports = ScaleManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var SnapFloor = __webpack_require__(92); +var SnapFloor = __webpack_require__(91); var Vector2 = __webpack_require__(3); /** @@ -79424,7 +79276,7 @@ module.exports = Size; /***/ }), -/* 370 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79434,14 +79286,14 @@ module.exports = Size; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(120); -var Events = __webpack_require__(21); -var GameEvents = __webpack_require__(18); +var CONST = __webpack_require__(119); +var Events = __webpack_require__(22); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); -var LoaderEvents = __webpack_require__(81); +var LoaderEvents = __webpack_require__(80); var NOOP = __webpack_require__(1); -var Scene = __webpack_require__(371); -var Systems = __webpack_require__(176); +var Scene = __webpack_require__(369); +var Systems = __webpack_require__(175); /** * @classdesc @@ -81064,7 +80916,7 @@ module.exports = SceneManager; /***/ }), -/* 371 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81074,7 +80926,7 @@ module.exports = SceneManager; */ var Class = __webpack_require__(0); -var Systems = __webpack_require__(176); +var Systems = __webpack_require__(175); /** * @classdesc @@ -81350,7 +81202,7 @@ module.exports = Scene; /***/ }), -/* 372 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81359,10 +81211,10 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(120); +var CONST = __webpack_require__(119); var GetValue = __webpack_require__(6); -var Merge = __webpack_require__(121); -var InjectionMap = __webpack_require__(875); +var Merge = __webpack_require__(120); +var InjectionMap = __webpack_require__(871); /** * @namespace Phaser.Scenes.Settings @@ -81446,7 +81298,7 @@ module.exports = Settings; /***/ }), -/* 373 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81455,18 +81307,18 @@ module.exports = Settings; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); -var CanvasTexture = __webpack_require__(374); +var CanvasPool = __webpack_require__(27); +var CanvasTexture = __webpack_require__(372); var Class = __webpack_require__(0); var Color = __webpack_require__(32); -var CONST = __webpack_require__(29); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(116); -var GameEvents = __webpack_require__(18); -var GenerateTexture = __webpack_require__(343); +var CONST = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(115); +var GameEvents = __webpack_require__(19); +var GenerateTexture = __webpack_require__(341); var GetValue = __webpack_require__(6); -var Parser = __webpack_require__(376); -var Texture = __webpack_require__(178); +var Parser = __webpack_require__(374); +var Texture = __webpack_require__(177); /** * @callback EachTextureCallback @@ -82648,7 +82500,7 @@ module.exports = TextureManager; /***/ }), -/* 374 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82658,11 +82510,11 @@ module.exports = TextureManager; */ var Class = __webpack_require__(0); -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Color = __webpack_require__(32); -var CONST = __webpack_require__(29); -var IsSizePowerOfTwo = __webpack_require__(115); -var Texture = __webpack_require__(178); +var CONST = __webpack_require__(10); +var IsSizePowerOfTwo = __webpack_require__(114); +var Texture = __webpack_require__(177); /** * @classdesc @@ -83279,7 +83131,7 @@ module.exports = CanvasTexture; /***/ }), -/* 375 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83288,10 +83140,10 @@ module.exports = CanvasTexture; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var IsSizePowerOfTwo = __webpack_require__(115); -var ScaleModes = __webpack_require__(231); +var IsSizePowerOfTwo = __webpack_require__(114); +var ScaleModes = __webpack_require__(229); /** * @classdesc @@ -83620,7 +83472,7 @@ module.exports = TextureSource; /***/ }), -/* 376 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83635,20 +83487,20 @@ module.exports = TextureSource; module.exports = { - AtlasXML: __webpack_require__(876), - Canvas: __webpack_require__(877), - Image: __webpack_require__(878), - JSONArray: __webpack_require__(879), - JSONHash: __webpack_require__(880), - SpriteSheet: __webpack_require__(881), - SpriteSheetFromAtlas: __webpack_require__(882), - UnityYAML: __webpack_require__(883) + AtlasXML: __webpack_require__(872), + Canvas: __webpack_require__(873), + Image: __webpack_require__(874), + JSONArray: __webpack_require__(875), + JSONHash: __webpack_require__(876), + SpriteSheet: __webpack_require__(877), + SpriteSheetFromAtlas: __webpack_require__(878), + UnityYAML: __webpack_require__(879) }; /***/ }), -/* 377 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83658,9 +83510,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HTML5AudioSoundManager = __webpack_require__(378); -var NoAudioSoundManager = __webpack_require__(380); -var WebAudioSoundManager = __webpack_require__(382); +var HTML5AudioSoundManager = __webpack_require__(376); +var NoAudioSoundManager = __webpack_require__(378); +var WebAudioSoundManager = __webpack_require__(380); /** * Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings. @@ -83700,7 +83552,7 @@ module.exports = SoundManagerCreator; /***/ }), -/* 378 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83710,10 +83562,10 @@ module.exports = SoundManagerCreator; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(122); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var HTML5AudioSound = __webpack_require__(379); +var HTML5AudioSound = __webpack_require__(377); /** * HTML5 Audio implementation of the Sound Manager. @@ -84165,7 +84017,7 @@ module.exports = HTML5AudioSoundManager; /***/ }), -/* 379 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84175,7 +84027,7 @@ module.exports = HTML5AudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -85090,7 +84942,7 @@ module.exports = HTML5AudioSound; /***/ }), -/* 380 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85100,10 +84952,10 @@ module.exports = HTML5AudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(122); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var NoAudioSound = __webpack_require__(381); +var EventEmitter = __webpack_require__(11); +var NoAudioSound = __webpack_require__(379); var NOOP = __webpack_require__(1); /** @@ -85208,7 +85060,7 @@ module.exports = NoAudioSoundManager; /***/ }), -/* 381 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85218,10 +85070,10 @@ module.exports = NoAudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Extend = __webpack_require__(17); +var EventEmitter = __webpack_require__(11); +var Extend = __webpack_require__(18); /** * @classdesc @@ -85335,7 +85187,7 @@ module.exports = NoAudioSound; /***/ }), -/* 382 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85345,11 +85197,11 @@ module.exports = NoAudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64ToArrayBuffer = __webpack_require__(383); -var BaseSoundManager = __webpack_require__(122); +var Base64ToArrayBuffer = __webpack_require__(381); +var BaseSoundManager = __webpack_require__(121); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var WebAudioSound = __webpack_require__(384); +var WebAudioSound = __webpack_require__(382); /** * @classdesc @@ -85794,7 +85646,7 @@ module.exports = WebAudioSoundManager; /***/ }), -/* 383 */ +/* 381 */ /***/ (function(module, exports) { /** @@ -85869,7 +85721,7 @@ module.exports = Base64ToArrayBuffer; /***/ }), -/* 384 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85879,7 +85731,7 @@ module.exports = Base64ToArrayBuffer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(123); +var BaseSound = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -86775,7 +86627,7 @@ module.exports = WebAudioSound; /***/ }), -/* 385 */ +/* 383 */ /***/ (function(module, exports) { /** @@ -86823,7 +86675,7 @@ module.exports = TransposeMatrix; /***/ }), -/* 386 */ +/* 384 */ /***/ (function(module, exports) { /** @@ -86945,7 +86797,7 @@ module.exports = QuickSelect; /***/ }), -/* 387 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -86955,7 +86807,7 @@ module.exports = QuickSelect; */ var GetValue = __webpack_require__(6); -var Shuffle = __webpack_require__(111); +var Shuffle = __webpack_require__(110); var BuildChunk = function (a, b, qty) { @@ -87083,7 +86935,7 @@ module.exports = Range; /***/ }), -/* 388 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87092,7 +86944,7 @@ module.exports = Range; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); /** * Adds an Animation component to a Sprite and populates it based on the given config. @@ -87172,7 +87024,7 @@ module.exports = BuildGameObjectAnimation; /***/ }), -/* 389 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87181,7 +87033,7 @@ module.exports = BuildGameObjectAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Creates a new Rectangle or repositions and/or resizes an existing Rectangle so that it encompasses the two given Rectangles, i.e. calculates their union. @@ -87214,7 +87066,7 @@ module.exports = Union; /***/ }), -/* 390 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87224,13 +87076,13 @@ module.exports = Union; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var DOMElementRender = __webpack_require__(952); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var DOMElementRender = __webpack_require__(948); +var GameObject = __webpack_require__(14); var IsPlainObject = __webpack_require__(7); -var RemoveFromDOM = __webpack_require__(174); -var SCENE_EVENTS = __webpack_require__(21); -var Vector4 = __webpack_require__(331); +var RemoveFromDOM = __webpack_require__(173); +var SCENE_EVENTS = __webpack_require__(22); +var Vector4 = __webpack_require__(329); /** * @classdesc @@ -88188,7 +88040,7 @@ module.exports = DOMElement; /***/ }), -/* 391 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88197,8 +88049,8 @@ module.exports = DOMElement; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CSSBlendModes = __webpack_require__(953); -var GameObject = __webpack_require__(13); +var CSSBlendModes = __webpack_require__(949); +var GameObject = __webpack_require__(14); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -88310,7 +88162,7 @@ module.exports = DOMElementCSSRenderer; /***/ }), -/* 392 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88320,9 +88172,9 @@ module.exports = DOMElementCSSRenderer; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ExternRender = __webpack_require__(957); +var Components = __webpack_require__(12); +var GameObject = __webpack_require__(14); +var ExternRender = __webpack_require__(953); /** * @classdesc @@ -88406,7 +88258,7 @@ module.exports = Extern; /***/ }), -/* 393 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88415,9 +88267,9 @@ module.exports = Extern; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(189); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var CircumferencePoint = __webpack_require__(188); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); var Point = __webpack_require__(4); /** @@ -88449,7 +88301,7 @@ module.exports = GetPoint; /***/ }), -/* 394 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88458,10 +88310,10 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(395); -var CircumferencePoint = __webpack_require__(189); -var FromPercent = __webpack_require__(86); -var MATH_CONST = __webpack_require__(15); +var Circumference = __webpack_require__(393); +var CircumferencePoint = __webpack_require__(188); +var FromPercent = __webpack_require__(85); +var MATH_CONST = __webpack_require__(16); /** * Returns an array of Point objects containing the coordinates of the points around the circumference of the Ellipse, @@ -88503,7 +88355,7 @@ module.exports = GetPoints; /***/ }), -/* 395 */ +/* 393 */ /***/ (function(module, exports) { /** @@ -88535,7 +88387,7 @@ module.exports = Circumference; /***/ }), -/* 396 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88544,8 +88396,8 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(188); -var SetTransform = __webpack_require__(28); +var Commands = __webpack_require__(187); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -88785,7 +88637,7 @@ module.exports = GraphicsCanvasRenderer; /***/ }), -/* 397 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89004,7 +88856,7 @@ module.exports = GravityWell; /***/ }), -/* 398 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89573,7 +89425,7 @@ module.exports = Particle; /***/ }), -/* 399 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89584,18 +89436,18 @@ module.exports = Particle; var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var DeathZone = __webpack_require__(400); -var EdgeZone = __webpack_require__(401); -var EmitterOp = __webpack_require__(969); +var Components = __webpack_require__(12); +var DeathZone = __webpack_require__(398); +var EdgeZone = __webpack_require__(399); +var EmitterOp = __webpack_require__(965); var GetFastValue = __webpack_require__(2); -var GetRandom = __webpack_require__(181); -var HasAny = __webpack_require__(402); -var HasValue = __webpack_require__(105); -var Particle = __webpack_require__(398); -var RandomZone = __webpack_require__(403); -var Rectangle = __webpack_require__(12); -var StableSort = __webpack_require__(126); +var GetRandom = __webpack_require__(180); +var HasAny = __webpack_require__(400); +var HasValue = __webpack_require__(104); +var Particle = __webpack_require__(396); +var RandomZone = __webpack_require__(401); +var Rectangle = __webpack_require__(13); +var StableSort = __webpack_require__(125); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -91644,7 +91496,7 @@ module.exports = ParticleEmitter; /***/ }), -/* 400 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91722,7 +91574,7 @@ module.exports = DeathZone; /***/ }), -/* 401 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91966,7 +91818,7 @@ module.exports = EdgeZone; /***/ }), -/* 402 */ +/* 400 */ /***/ (function(module, exports) { /** @@ -92003,7 +91855,7 @@ module.exports = HasAny; /***/ }), -/* 403 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92076,7 +91928,7 @@ module.exports = RandomZone; /***/ }), -/* 404 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92086,8 +91938,8 @@ module.exports = RandomZone; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var Sprite = __webpack_require__(74); +var Components = __webpack_require__(12); +var Sprite = __webpack_require__(73); /** * @classdesc @@ -92158,7 +92010,7 @@ module.exports = PathFollower; /***/ }), -/* 405 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92167,12 +92019,12 @@ module.exports = PathFollower; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcRender = __webpack_require__(995); +var ArcRender = __webpack_require__(991); var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var Earcut = __webpack_require__(64); var GeomCircle = __webpack_require__(63); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Shape = __webpack_require__(31); /** @@ -92567,7 +92419,7 @@ module.exports = Arc; /***/ }), -/* 406 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92577,9 +92429,9 @@ module.exports = Arc; */ var Class = __webpack_require__(0); -var CurveRender = __webpack_require__(998); +var CurveRender = __webpack_require__(994); var Earcut = __webpack_require__(64); -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); var Shape = __webpack_require__(31); /** @@ -92749,7 +92601,7 @@ module.exports = Curve; /***/ }), -/* 407 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92760,8 +92612,8 @@ module.exports = Curve; var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); -var EllipseRender = __webpack_require__(1001); -var GeomEllipse = __webpack_require__(94); +var EllipseRender = __webpack_require__(997); +var GeomEllipse = __webpack_require__(93); var Shape = __webpack_require__(31); /** @@ -92936,7 +92788,7 @@ module.exports = Ellipse; /***/ }), -/* 408 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92947,7 +92799,7 @@ module.exports = Ellipse; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GridRender = __webpack_require__(1004); +var GridRender = __webpack_require__(1000); /** * @classdesc @@ -93218,7 +93070,7 @@ module.exports = Grid; /***/ }), -/* 409 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93227,7 +93079,7 @@ module.exports = Grid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsoBoxRender = __webpack_require__(1007); +var IsoBoxRender = __webpack_require__(1003); var Class = __webpack_require__(0); var Shape = __webpack_require__(31); @@ -93433,7 +93285,7 @@ module.exports = IsoBox; /***/ }), -/* 410 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93443,7 +93295,7 @@ module.exports = IsoBox; */ var Class = __webpack_require__(0); -var IsoTriangleRender = __webpack_require__(1010); +var IsoTriangleRender = __webpack_require__(1006); var Shape = __webpack_require__(31); /** @@ -93679,7 +93531,7 @@ module.exports = IsoTriangle; /***/ }), -/* 411 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93691,7 +93543,7 @@ module.exports = IsoTriangle; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomLine = __webpack_require__(56); -var LineRender = __webpack_require__(1013); +var LineRender = __webpack_require__(1009); /** * @classdesc @@ -93846,7 +93698,7 @@ module.exports = Line; /***/ }), -/* 412 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93855,13 +93707,13 @@ module.exports = Line; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PolygonRender = __webpack_require__(1016); +var PolygonRender = __webpack_require__(1012); var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); -var GetAABB = __webpack_require__(413); -var GeomPolygon = __webpack_require__(197); +var GetAABB = __webpack_require__(411); +var GeomPolygon = __webpack_require__(196); var Shape = __webpack_require__(31); -var Smooth = __webpack_require__(416); +var Smooth = __webpack_require__(414); /** * @classdesc @@ -93985,7 +93837,7 @@ module.exports = Polygon; /***/ }), -/* 413 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93994,7 +93846,7 @@ module.exports = Polygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Calculates the bounding AABB rectangle of a polygon. @@ -94041,7 +93893,7 @@ module.exports = GetAABB; /***/ }), -/* 414 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94052,7 +93904,7 @@ module.exports = GetAABB; var Length = __webpack_require__(57); var Line = __webpack_require__(56); -var Perimeter = __webpack_require__(415); +var Perimeter = __webpack_require__(413); /** * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon, @@ -94118,7 +93970,7 @@ module.exports = GetPoints; /***/ }), -/* 415 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94166,7 +94018,7 @@ module.exports = Perimeter; /***/ }), -/* 416 */ +/* 414 */ /***/ (function(module, exports) { /** @@ -94242,7 +94094,7 @@ module.exports = Smooth; /***/ }), -/* 417 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94252,9 +94104,9 @@ module.exports = Smooth; */ var Class = __webpack_require__(0); -var GeomRectangle = __webpack_require__(12); +var GeomRectangle = __webpack_require__(13); var Shape = __webpack_require__(31); -var RectangleRender = __webpack_require__(1019); +var RectangleRender = __webpack_require__(1015); /** * @classdesc @@ -94354,7 +94206,7 @@ module.exports = Rectangle; /***/ }), -/* 418 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94363,7 +94215,7 @@ module.exports = Rectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StarRender = __webpack_require__(1022); +var StarRender = __webpack_require__(1018); var Class = __webpack_require__(0); var Earcut = __webpack_require__(64); var Shape = __webpack_require__(31); @@ -94642,7 +94494,7 @@ module.exports = Star; /***/ }), -/* 419 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94654,7 +94506,7 @@ module.exports = Star; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomTriangle = __webpack_require__(69); -var TriangleRender = __webpack_require__(1025); +var TriangleRender = __webpack_require__(1021); /** * @classdesc @@ -94785,7 +94637,7 @@ module.exports = Triangle; /***/ }), -/* 420 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94872,7 +94724,7 @@ module.exports = GetPoint; /***/ }), -/* 421 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94965,7 +94817,7 @@ module.exports = GetPoints; /***/ }), -/* 422 */ +/* 420 */ /***/ (function(module, exports) { /** @@ -95048,7 +94900,7 @@ module.exports = SetValue; /***/ }), -/* 423 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95311,7 +95163,7 @@ module.exports = Light; /***/ }), -/* 424 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95321,7 +95173,7 @@ module.exports = Light; */ var Class = __webpack_require__(0); -var Light = __webpack_require__(423); +var Light = __webpack_require__(421); var Utils = __webpack_require__(9); /** @@ -95674,7 +95526,7 @@ module.exports = LightsManager; /***/ }), -/* 425 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95684,7 +95536,7 @@ module.exports = LightsManager; */ var CONST = __webpack_require__(46); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Geom @@ -95692,14 +95544,14 @@ var Extend = __webpack_require__(17); var Geom = { - Circle: __webpack_require__(1085), - Ellipse: __webpack_require__(1095), - Intersects: __webpack_require__(426), - Line: __webpack_require__(1114), - Point: __webpack_require__(1136), - Polygon: __webpack_require__(1150), - Rectangle: __webpack_require__(439), - Triangle: __webpack_require__(1180) + Circle: __webpack_require__(1081), + Ellipse: __webpack_require__(1091), + Intersects: __webpack_require__(424), + Line: __webpack_require__(1110), + Point: __webpack_require__(1132), + Polygon: __webpack_require__(1146), + Rectangle: __webpack_require__(437), + Triangle: __webpack_require__(1176) }; @@ -95710,7 +95562,7 @@ module.exports = Geom; /***/ }), -/* 426 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95725,35 +95577,35 @@ module.exports = Geom; module.exports = { - CircleToCircle: __webpack_require__(201), - CircleToRectangle: __webpack_require__(202), - GetCircleToCircle: __webpack_require__(1105), - GetCircleToRectangle: __webpack_require__(1106), - GetLineToCircle: __webpack_require__(203), - GetLineToRectangle: __webpack_require__(205), - GetRectangleIntersection: __webpack_require__(1107), - GetRectangleToRectangle: __webpack_require__(1108), - GetRectangleToTriangle: __webpack_require__(1109), - GetTriangleToCircle: __webpack_require__(1110), - GetTriangleToLine: __webpack_require__(431), - GetTriangleToTriangle: __webpack_require__(1111), - LineToCircle: __webpack_require__(204), - LineToLine: __webpack_require__(83), - LineToRectangle: __webpack_require__(427), - PointToLine: __webpack_require__(435), - PointToLineSegment: __webpack_require__(1112), - RectangleToRectangle: __webpack_require__(130), - RectangleToTriangle: __webpack_require__(428), - RectangleToValues: __webpack_require__(1113), - TriangleToCircle: __webpack_require__(430), - TriangleToLine: __webpack_require__(432), - TriangleToTriangle: __webpack_require__(433) + CircleToCircle: __webpack_require__(200), + CircleToRectangle: __webpack_require__(201), + GetCircleToCircle: __webpack_require__(1101), + GetCircleToRectangle: __webpack_require__(1102), + GetLineToCircle: __webpack_require__(202), + GetLineToRectangle: __webpack_require__(204), + GetRectangleIntersection: __webpack_require__(1103), + GetRectangleToRectangle: __webpack_require__(1104), + GetRectangleToTriangle: __webpack_require__(1105), + GetTriangleToCircle: __webpack_require__(1106), + GetTriangleToLine: __webpack_require__(429), + GetTriangleToTriangle: __webpack_require__(1107), + LineToCircle: __webpack_require__(203), + LineToLine: __webpack_require__(82), + LineToRectangle: __webpack_require__(425), + PointToLine: __webpack_require__(433), + PointToLineSegment: __webpack_require__(1108), + RectangleToRectangle: __webpack_require__(129), + RectangleToTriangle: __webpack_require__(426), + RectangleToValues: __webpack_require__(1109), + TriangleToCircle: __webpack_require__(428), + TriangleToLine: __webpack_require__(430), + TriangleToTriangle: __webpack_require__(431) }; /***/ }), -/* 427 */ +/* 425 */ /***/ (function(module, exports) { /** @@ -95854,7 +95706,7 @@ module.exports = LineToRectangle; /***/ }), -/* 428 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95863,10 +95715,10 @@ module.exports = LineToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToLine = __webpack_require__(83); +var LineToLine = __webpack_require__(82); var Contains = __webpack_require__(47); -var ContainsArray = __webpack_require__(206); -var Decompose = __webpack_require__(429); +var ContainsArray = __webpack_require__(205); +var Decompose = __webpack_require__(427); /** * Checks for intersection between Rectangle shape and Triangle shape. @@ -95947,7 +95799,7 @@ module.exports = RectangleToTriangle; /***/ }), -/* 429 */ +/* 427 */ /***/ (function(module, exports) { /** @@ -95984,7 +95836,7 @@ module.exports = Decompose; /***/ }), -/* 430 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95993,8 +95845,8 @@ module.exports = Decompose; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToCircle = __webpack_require__(204); -var Contains = __webpack_require__(82); +var LineToCircle = __webpack_require__(203); +var Contains = __webpack_require__(81); /** * Checks if a Triangle and a Circle intersect. @@ -96049,7 +95901,7 @@ module.exports = TriangleToCircle; /***/ }), -/* 431 */ +/* 429 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96060,8 +95912,8 @@ module.exports = TriangleToCircle; */ var Point = __webpack_require__(4); -var TriangleToLine = __webpack_require__(432); -var LineToLine = __webpack_require__(83); +var TriangleToLine = __webpack_require__(430); +var LineToLine = __webpack_require__(82); /** * Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array. @@ -96108,7 +95960,7 @@ module.exports = GetTriangleToLine; /***/ }), -/* 432 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96117,8 +95969,8 @@ module.exports = GetTriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(82); -var LineToLine = __webpack_require__(83); +var Contains = __webpack_require__(81); +var LineToLine = __webpack_require__(82); /** * Checks if a Triangle and a Line intersect. @@ -96164,7 +96016,7 @@ module.exports = TriangleToLine; /***/ }), -/* 433 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96173,9 +96025,9 @@ module.exports = TriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ContainsArray = __webpack_require__(206); -var Decompose = __webpack_require__(434); -var LineToLine = __webpack_require__(83); +var ContainsArray = __webpack_require__(205); +var Decompose = __webpack_require__(432); +var LineToLine = __webpack_require__(82); /** * Checks if two Triangles intersect. @@ -96254,7 +96106,7 @@ module.exports = TriangleToTriangle; /***/ }), -/* 434 */ +/* 432 */ /***/ (function(module, exports) { /** @@ -96289,7 +96141,7 @@ module.exports = Decompose; /***/ }), -/* 435 */ +/* 433 */ /***/ (function(module, exports) { /** @@ -96359,7 +96211,7 @@ module.exports = PointToLine; /***/ }), -/* 436 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96368,9 +96220,9 @@ module.exports = PointToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); var Wrap = __webpack_require__(58); -var Angle = __webpack_require__(84); +var Angle = __webpack_require__(83); /** * Get the angle of the normal of the given line in radians. @@ -96393,7 +96245,7 @@ module.exports = NormalAngle; /***/ }), -/* 437 */ +/* 435 */ /***/ (function(module, exports) { /** @@ -96421,7 +96273,7 @@ module.exports = GetMagnitude; /***/ }), -/* 438 */ +/* 436 */ /***/ (function(module, exports) { /** @@ -96449,7 +96301,7 @@ module.exports = GetMagnitudeSq; /***/ }), -/* 439 */ +/* 437 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96458,51 +96310,51 @@ module.exports = GetMagnitudeSq; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); -Rectangle.Area = __webpack_require__(1155); -Rectangle.Ceil = __webpack_require__(1156); -Rectangle.CeilAll = __webpack_require__(1157); -Rectangle.CenterOn = __webpack_require__(163); -Rectangle.Clone = __webpack_require__(1158); +Rectangle.Area = __webpack_require__(1151); +Rectangle.Ceil = __webpack_require__(1152); +Rectangle.CeilAll = __webpack_require__(1153); +Rectangle.CenterOn = __webpack_require__(162); +Rectangle.Clone = __webpack_require__(1154); Rectangle.Contains = __webpack_require__(47); -Rectangle.ContainsPoint = __webpack_require__(1159); -Rectangle.ContainsRect = __webpack_require__(440); -Rectangle.CopyFrom = __webpack_require__(1160); -Rectangle.Decompose = __webpack_require__(429); -Rectangle.Equals = __webpack_require__(1161); -Rectangle.FitInside = __webpack_require__(1162); -Rectangle.FitOutside = __webpack_require__(1163); -Rectangle.Floor = __webpack_require__(1164); -Rectangle.FloorAll = __webpack_require__(1165); -Rectangle.FromPoints = __webpack_require__(172); -Rectangle.GetAspectRatio = __webpack_require__(208); -Rectangle.GetCenter = __webpack_require__(1166); -Rectangle.GetPoint = __webpack_require__(147); -Rectangle.GetPoints = __webpack_require__(271); -Rectangle.GetSize = __webpack_require__(1167); -Rectangle.Inflate = __webpack_require__(1168); -Rectangle.Intersection = __webpack_require__(1169); -Rectangle.MarchingAnts = __webpack_require__(282); -Rectangle.MergePoints = __webpack_require__(1170); -Rectangle.MergeRect = __webpack_require__(1171); -Rectangle.MergeXY = __webpack_require__(1172); -Rectangle.Offset = __webpack_require__(1173); -Rectangle.OffsetPoint = __webpack_require__(1174); -Rectangle.Overlaps = __webpack_require__(1175); -Rectangle.Perimeter = __webpack_require__(109); -Rectangle.PerimeterPoint = __webpack_require__(1176); -Rectangle.Random = __webpack_require__(150); -Rectangle.RandomOutside = __webpack_require__(1177); -Rectangle.SameDimensions = __webpack_require__(1178); -Rectangle.Scale = __webpack_require__(1179); -Rectangle.Union = __webpack_require__(389); +Rectangle.ContainsPoint = __webpack_require__(1155); +Rectangle.ContainsRect = __webpack_require__(438); +Rectangle.CopyFrom = __webpack_require__(1156); +Rectangle.Decompose = __webpack_require__(427); +Rectangle.Equals = __webpack_require__(1157); +Rectangle.FitInside = __webpack_require__(1158); +Rectangle.FitOutside = __webpack_require__(1159); +Rectangle.Floor = __webpack_require__(1160); +Rectangle.FloorAll = __webpack_require__(1161); +Rectangle.FromPoints = __webpack_require__(171); +Rectangle.GetAspectRatio = __webpack_require__(207); +Rectangle.GetCenter = __webpack_require__(1162); +Rectangle.GetPoint = __webpack_require__(146); +Rectangle.GetPoints = __webpack_require__(269); +Rectangle.GetSize = __webpack_require__(1163); +Rectangle.Inflate = __webpack_require__(1164); +Rectangle.Intersection = __webpack_require__(1165); +Rectangle.MarchingAnts = __webpack_require__(280); +Rectangle.MergePoints = __webpack_require__(1166); +Rectangle.MergeRect = __webpack_require__(1167); +Rectangle.MergeXY = __webpack_require__(1168); +Rectangle.Offset = __webpack_require__(1169); +Rectangle.OffsetPoint = __webpack_require__(1170); +Rectangle.Overlaps = __webpack_require__(1171); +Rectangle.Perimeter = __webpack_require__(108); +Rectangle.PerimeterPoint = __webpack_require__(1172); +Rectangle.Random = __webpack_require__(149); +Rectangle.RandomOutside = __webpack_require__(1173); +Rectangle.SameDimensions = __webpack_require__(1174); +Rectangle.Scale = __webpack_require__(1175); +Rectangle.Union = __webpack_require__(387); module.exports = Rectangle; /***/ }), -/* 440 */ +/* 438 */ /***/ (function(module, exports) { /** @@ -96542,7 +96394,7 @@ module.exports = ContainsRect; /***/ }), -/* 441 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96586,7 +96438,7 @@ module.exports = Centroid; /***/ }), -/* 442 */ +/* 440 */ /***/ (function(module, exports) { /** @@ -96627,7 +96479,7 @@ module.exports = Offset; /***/ }), -/* 443 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96692,7 +96544,7 @@ module.exports = InCenter; /***/ }), -/* 444 */ +/* 442 */ /***/ (function(module, exports) { /** @@ -96763,7 +96615,7 @@ module.exports = CreateInteractiveObject; /***/ }), -/* 445 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96888,7 +96740,7 @@ module.exports = Axis; /***/ }), -/* 446 */ +/* 444 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96898,7 +96750,7 @@ module.exports = Axis; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(210); +var Events = __webpack_require__(209); /** * @classdesc @@ -97034,7 +96886,7 @@ module.exports = Button; /***/ }), -/* 447 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -97043,10 +96895,10 @@ module.exports = Button; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Axis = __webpack_require__(445); -var Button = __webpack_require__(446); +var Axis = __webpack_require__(443); +var Button = __webpack_require__(444); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var Vector2 = __webpack_require__(3); /** @@ -97792,7 +97644,7 @@ module.exports = Gamepad; /***/ }), -/* 448 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -97802,8 +97654,8 @@ module.exports = Gamepad; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(132); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(131); /** * @classdesc @@ -98194,7 +98046,7 @@ module.exports = Key; /***/ }), -/* 449 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98204,10 +98056,10 @@ module.exports = Key; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(132); +var Events = __webpack_require__(131); var GetFastValue = __webpack_require__(2); -var ProcessKeyCombo = __webpack_require__(1219); -var ResetKeyCombo = __webpack_require__(1221); +var ProcessKeyCombo = __webpack_require__(1215); +var ResetKeyCombo = __webpack_require__(1217); /** * @classdesc @@ -98487,7 +98339,7 @@ module.exports = KeyCombo; /***/ }), -/* 450 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98496,7 +98348,7 @@ module.exports = KeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MergeXHRSettings = __webpack_require__(211); +var MergeXHRSettings = __webpack_require__(210); /** * Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings @@ -98560,7 +98412,7 @@ module.exports = XHRLoader; /***/ }), -/* 451 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98570,11 +98422,11 @@ module.exports = XHRLoader; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var File = __webpack_require__(20); +var CONST = __webpack_require__(10); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var HTML5AudioFile = __webpack_require__(452); +var HTML5AudioFile = __webpack_require__(450); var IsPlainObject = __webpack_require__(7); /** @@ -98831,7 +98683,7 @@ module.exports = AudioFile; /***/ }), -/* 452 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98841,10 +98693,10 @@ module.exports = AudioFile; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(81); -var File = __webpack_require__(20); +var Events = __webpack_require__(80); +var File = __webpack_require__(21); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(133); +var GetURL = __webpack_require__(132); var IsPlainObject = __webpack_require__(7); /** @@ -99029,7 +98881,7 @@ module.exports = HTML5AudioFile; /***/ }), -/* 453 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99039,8 +98891,8 @@ module.exports = HTML5AudioFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -99200,7 +99052,7 @@ module.exports = ScriptFile; /***/ }), -/* 454 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99210,8 +99062,8 @@ module.exports = ScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -99375,7 +99227,7 @@ module.exports = TextFile; /***/ }), -/* 455 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99384,12 +99236,12 @@ module.exports = TextFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeImage = __webpack_require__(456); -var ArcadeSprite = __webpack_require__(135); +var ArcadeImage = __webpack_require__(454); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var PhysicsGroup = __webpack_require__(457); -var StaticPhysicsGroup = __webpack_require__(458); +var PhysicsGroup = __webpack_require__(455); +var StaticPhysicsGroup = __webpack_require__(456); /** * @classdesc @@ -99646,7 +99498,7 @@ module.exports = Factory; /***/ }), -/* 456 */ +/* 454 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99656,8 +99508,8 @@ module.exports = Factory; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(213); -var Image = __webpack_require__(104); +var Components = __webpack_require__(212); +var Image = __webpack_require__(103); /** * @classdesc @@ -99746,7 +99598,7 @@ module.exports = ArcadeImage; /***/ }), -/* 457 */ +/* 455 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99755,11 +99607,11 @@ module.exports = ArcadeImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(135); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var IsPlainObject = __webpack_require__(7); /** @@ -100031,7 +99883,7 @@ module.exports = PhysicsGroup; /***/ }), -/* 458 */ +/* 456 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100040,11 +99892,11 @@ module.exports = PhysicsGroup; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(135); +var ArcadeSprite = __webpack_require__(134); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var IsPlainObject = __webpack_require__(7); /** @@ -100222,7 +100074,7 @@ module.exports = StaticPhysicsGroup; /***/ }), -/* 459 */ +/* 457 */ /***/ (function(module, exports) { /** @@ -100307,7 +100159,7 @@ module.exports = OverlapRect; /***/ }), -/* 460 */ +/* 458 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100316,30 +100168,30 @@ module.exports = OverlapRect; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Body = __webpack_require__(461); -var Clamp = __webpack_require__(22); +var Body = __webpack_require__(459); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Collider = __webpack_require__(462); +var Collider = __webpack_require__(460); var CONST = __webpack_require__(50); var DistanceBetween = __webpack_require__(53); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(214); -var FuzzyEqual = __webpack_require__(141); -var FuzzyGreaterThan = __webpack_require__(318); -var FuzzyLessThan = __webpack_require__(319); -var GetOverlapX = __webpack_require__(463); -var GetOverlapY = __webpack_require__(464); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(213); +var FuzzyEqual = __webpack_require__(140); +var FuzzyGreaterThan = __webpack_require__(316); +var FuzzyLessThan = __webpack_require__(317); +var GetOverlapX = __webpack_require__(461); +var GetOverlapY = __webpack_require__(462); var GetValue = __webpack_require__(6); -var ProcessQueue = __webpack_require__(182); -var ProcessTileCallbacks = __webpack_require__(1278); -var Rectangle = __webpack_require__(12); -var RTree = __webpack_require__(465); -var SeparateTile = __webpack_require__(1279); -var SeparateX = __webpack_require__(1284); -var SeparateY = __webpack_require__(1285); -var Set = __webpack_require__(128); -var StaticBody = __webpack_require__(467); -var TileIntersectsBody = __webpack_require__(466); +var ProcessQueue = __webpack_require__(181); +var ProcessTileCallbacks = __webpack_require__(1274); +var Rectangle = __webpack_require__(13); +var RTree = __webpack_require__(463); +var SeparateTile = __webpack_require__(1275); +var SeparateX = __webpack_require__(1280); +var SeparateY = __webpack_require__(1281); +var Set = __webpack_require__(127); +var StaticBody = __webpack_require__(465); +var TileIntersectsBody = __webpack_require__(464); var TransformMatrix = __webpack_require__(30); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -102696,7 +102548,7 @@ module.exports = World; /***/ }), -/* 461 */ +/* 459 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102708,9 +102560,9 @@ module.exports = World; var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var Events = __webpack_require__(214); -var RadToDeg = __webpack_require__(169); -var Rectangle = __webpack_require__(12); +var Events = __webpack_require__(213); +var RadToDeg = __webpack_require__(168); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); var Vector2 = __webpack_require__(3); @@ -105031,7 +104883,7 @@ module.exports = Body; /***/ }), -/* 462 */ +/* 460 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105214,7 +105066,7 @@ module.exports = Collider; /***/ }), -/* 463 */ +/* 461 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105322,7 +105174,7 @@ module.exports = GetOverlapX; /***/ }), -/* 464 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105430,7 +105282,7 @@ module.exports = GetOverlapY; /***/ }), -/* 465 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105440,7 +105292,7 @@ module.exports = GetOverlapY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var quickselect = __webpack_require__(386); +var quickselect = __webpack_require__(384); /** * @classdesc @@ -106041,7 +105893,7 @@ function multiSelect (arr, left, right, n, compare) module.exports = rbush; /***/ }), -/* 466 */ +/* 464 */ /***/ (function(module, exports) { /** @@ -106077,7 +105929,7 @@ module.exports = TileIntersectsBody; /***/ }), -/* 467 */ +/* 465 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107066,7 +106918,7 @@ module.exports = StaticBody; /***/ }), -/* 468 */ +/* 466 */ /***/ (function(module, exports) { /** @@ -107192,7 +107044,7 @@ module.exports = Pair; /***/ }), -/* 469 */ +/* 467 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107322,130 +107174,7 @@ module.exports = BasePlugin; /***/ }), -/* 470 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldX - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldX = function (tileX, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - var layerWorldX = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'orthogonal') - { - return layerWorldX + tileX * tileWidth; - } - else if (orientation === 'isometric' || orientation === 'staggered' || orientation === 'hexagonal') - { - // Not Best Solution ? - console.warn('With the current map type you have to use the TileToWorldXY function.'); - return null; - } - - - -}; - -module.exports = TileToWorldX; - - -/***/ }), -/* 471 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldY - * @private - * @since 3.0.0 - * - * @param {integer} tileY - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldY = function (tileY, camera, layer) -{ - var orientation = layer.orientation; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - if (orientation === 'orthogonal') - { - return layerWorldY + tileY * tileHeight; - } - else if (orientation === 'isometric') - { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } - else if (orientation === 'staggered') - { - return layerWorldY + tileY * (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - var sidel = layer.tilemapLayer.tilemap.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - - // same as staggered - return layerWorldY + tileY * rowHeight; - } -}; - -module.exports = TileToWorldY; - - -/***/ }), -/* 472 */ +/* 468 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107454,7 +107183,7 @@ module.exports = TileToWorldY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching @@ -107490,145 +107219,7 @@ module.exports = ReplaceByIndex; /***/ }), -/* 473 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileX - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The X location in tile units. - */ -var WorldToTileX = function (worldX, snapToFloor, camera, layer) -{ - - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === 'orthogonal') - { - return snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - } - else if (orientation === 'isometric') - { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null; - } - -}; - -module.exports = WorldToTileX; - - -/***/ }), -/* 474 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileY - * @private - * @since 3.0.0 - * - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The Y location in tile units. - */ -var WorldToTileY = function (worldY, snapToFloor, camera, layer) -{ - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - tileHeight *= tilemapLayer.scaleY; - - } - - if (orientation === 'orthogonal') - { - return snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } - else if (orientation === 'isometric') - { - console.warn('With standard isometric map types you have to use the WorldToTileXY function.'); - return null; - - } - else if (orientation === 'staggered') - { - return snapToFloor - ? Math.floor(worldY / (tileHeight / 2)) - : worldY / (tileHeight / 2); - } - else if (orientation === 'hexagonal') - { - - var sidel = layer.hexSideLength; - var rowHeight = ((tileHeight - sidel) / 2 + sidel); - return snapToFloor - ? Math.floor(worldY / rowHeight) - : worldY / rowHeight; - } -}; - -module.exports = WorldToTileY; - - -/***/ }), -/* 475 */ +/* 469 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107637,7 +107228,7 @@ module.exports = WorldToTileY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(100); +var IsInLayerBounds = __webpack_require__(99); /** * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns @@ -107671,7 +107262,7 @@ module.exports = HasTileAt; /***/ }), -/* 476 */ +/* 470 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107680,9 +107271,9 @@ module.exports = HasTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(73); -var IsInLayerBounds = __webpack_require__(100); -var CalculateFacesAt = __webpack_require__(216); +var Tile = __webpack_require__(72); +var IsInLayerBounds = __webpack_require__(99); +var CalculateFacesAt = __webpack_require__(215); /** * Removes the tile at the given tile coordinates in the specified layer and updates the layer's @@ -107734,7 +107325,244 @@ module.exports = RemoveTileAt; /***/ }), -/* 477 */ +/* 471 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); + +/** + * Converts from world X coordinates (pixels) to orthogonal tile X coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileX + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The X location in tile units. + */ +var OrthoWorldToTileX = function (worldX, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + return snapToFloor + ? Math.floor(worldX / tileWidth) + : worldX / tileWidth; + +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the WorldToTileXY function.'); + return null; +}; + +var WorldToTileX = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoWorldToTileX; + + default: + return nullFunc; + + } + +}; + +module.exports = WorldToTileX; + + +/***/ }), +/* 472 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); + +/** + * Converts from world Y coordinates (pixels) to orthogonal tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.OrthoWorldToTileY + * @private + * @since 3.0.0 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var OrthoWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + return snapToFloor + ? Math.floor(worldY / tileHeight) + : worldY / tileHeight; + +}; + +/** + * Converts from world Y coordinates (pixels) to staggered tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.StagWorldToTileY + * @private + * @since 3.2.2 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var StagWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + return snapToFloor + ? Math.floor(worldY / (tileHeight / 2)) + : worldY / (tileHeight / 2); +}; + +/** + * Converts from world Y coordinates (pixels) to hexagonal tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.HexWorldToTileY + * @private + * @since 3.2.2 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var HexWorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + return snapToFloor + ? Math.floor(worldY / rowHeight) + : worldY / rowHeight; +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the WorldToTileXY function.'); + return null; +}; + +var WorldToTileY = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoWorldToTileY; + + case CONST.HEXAGONAL: + return HexWorldToTileY; + + case CONST.STAGGERED: + return StagWorldToTileY; + + default: + return nullFunc; + + } + +}; + +module.exports = WorldToTileY; + + +/***/ }), +/* 473 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107744,10 +107572,10 @@ module.exports = RemoveTileAt; */ var Formats = __webpack_require__(33); -var Parse2DArray = __webpack_require__(220); -var ParseCSV = __webpack_require__(478); -var ParseJSONTiled = __webpack_require__(479); -var ParseWeltmeister = __webpack_require__(490); +var Parse2DArray = __webpack_require__(218); +var ParseCSV = __webpack_require__(474); +var ParseJSONTiled = __webpack_require__(475); +var ParseWeltmeister = __webpack_require__(486); /** * Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format @@ -107804,7 +107632,7 @@ module.exports = Parse; /***/ }), -/* 478 */ +/* 474 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107814,7 +107642,7 @@ module.exports = Parse; */ var Formats = __webpack_require__(33); -var Parse2DArray = __webpack_require__(220); +var Parse2DArray = __webpack_require__(218); /** * Parses a CSV string of tile indexes into a new MapData object with a single layer. @@ -107852,7 +107680,7 @@ module.exports = ParseCSV; /***/ }), -/* 479 */ +/* 475 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107861,14 +107689,15 @@ module.exports = ParseCSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ +var CONST = __webpack_require__(10); var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var ParseTileLayers = __webpack_require__(480); -var ParseImageLayers = __webpack_require__(482); -var ParseTilesets = __webpack_require__(483); -var ParseObjectLayers = __webpack_require__(486); -var BuildTilesetIndex = __webpack_require__(488); -var AssignTileProperties = __webpack_require__(489); +var MapData = __webpack_require__(101); +var ParseTileLayers = __webpack_require__(476); +var ParseImageLayers = __webpack_require__(478); +var ParseTilesets = __webpack_require__(479); +var ParseObjectLayers = __webpack_require__(482); +var BuildTilesetIndex = __webpack_require__(484); +var AssignTileProperties = __webpack_require__(485); /** * Parses a Tiled JSON object into a new MapData object. @@ -107903,6 +107732,7 @@ var ParseJSONTiled = function (name, json, insertNull) return null; } + // Map data will consist of: layers, objects, images, tilesets, sizes var mapData = new MapData({ width: json.width, @@ -107910,7 +107740,7 @@ var ParseJSONTiled = function (name, json, insertNull) name: name, tileWidth: json.tilewidth, tileHeight: json.tileheight, - orientation: json.orientation, + orientation: CONST.fromOrientationString(json.orientation), format: Formats.TILED_JSON, version: json.version, properties: json.properties, @@ -107918,7 +107748,10 @@ var ParseJSONTiled = function (name, json, insertNull) infinite: json.infinite }); - if (mapData.orientation === 'hexagonal') + + + + if (mapData.orientation === CONST.HEXAGONAL) { mapData.hexSideLength = json.hexsidelength; } @@ -107943,7 +107776,7 @@ module.exports = ParseJSONTiled; /***/ }), -/* 480 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107952,12 +107785,13 @@ module.exports = ParseJSONTiled; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64Decode = __webpack_require__(481); +var CONST = __webpack_require__(10); +var Base64Decode = __webpack_require__(477); var GetFastValue = __webpack_require__(2); -var LayerData = __webpack_require__(101); -var ParseGID = __webpack_require__(221); -var Tile = __webpack_require__(73); -var CreateGroupLayer = __webpack_require__(222); +var LayerData = __webpack_require__(100); +var ParseGID = __webpack_require__(219); +var Tile = __webpack_require__(72); +var CreateGroupLayer = __webpack_require__(220); /** * Parses all tilemap layers in a Tiled JSON object into new LayerData objects. @@ -108076,10 +107910,10 @@ var ParseTileLayers = function (json, insertNull) alpha: (curGroupState.opacity * curl.opacity), visible: (curGroupState.visible && curl.visible), properties: GetFastValue(curl, 'properties', {}), - orientation: json.orientation + orientation: CONST.fromOrientationString(json.orientation) }); - if (layerData.orientation === 'hexagonal') + if (layerData.orientation === CONST.HEXAGONAL) { layerData.hexSideLength = json.hexsidelength; } @@ -108155,10 +107989,10 @@ var ParseTileLayers = function (json, insertNull) alpha: (curGroupState.opacity * curl.opacity), visible: (curGroupState.visible && curl.visible), properties: GetFastValue(curl, 'properties', {}), - orientation: json.orientation + orientation: CONST.fromOrientationString(json.orientation) }); - if (layerData.orientation === 'hexagonal') + if (layerData.orientation === CONST.HEXAGONAL) { layerData.hexSideLength = json.hexsidelength; } @@ -108212,7 +108046,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 481 */ +/* 477 */ /***/ (function(module, exports) { /** @@ -108255,7 +108089,7 @@ module.exports = Base64Decode; /***/ }), -/* 482 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108265,7 +108099,7 @@ module.exports = Base64Decode; */ var GetFastValue = __webpack_require__(2); -var CreateGroupLayer = __webpack_require__(222); +var CreateGroupLayer = __webpack_require__(220); /** * Parses a Tiled JSON object into an array of objects with details about the image layers. @@ -108343,7 +108177,7 @@ module.exports = ParseImageLayers; /***/ }), -/* 483 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108352,9 +108186,9 @@ module.exports = ParseImageLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(138); -var ImageCollection = __webpack_require__(484); -var ParseObject = __webpack_require__(223); +var Tileset = __webpack_require__(137); +var ImageCollection = __webpack_require__(480); +var ParseObject = __webpack_require__(221); /** * Tilesets and Image Collections @@ -108512,7 +108346,7 @@ module.exports = ParseTilesets; /***/ }), -/* 484 */ +/* 480 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108684,7 +108518,7 @@ module.exports = ImageCollection; /***/ }), -/* 485 */ +/* 481 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108693,7 +108527,7 @@ module.exports = ImageCollection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasValue = __webpack_require__(105); +var HasValue = __webpack_require__(104); /** * Returns a new object that only contains the `keys` that were found on the object provided. @@ -108728,7 +108562,7 @@ module.exports = Pick; /***/ }), -/* 486 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108738,9 +108572,9 @@ module.exports = Pick; */ var GetFastValue = __webpack_require__(2); -var ParseObject = __webpack_require__(223); -var ObjectLayer = __webpack_require__(487); -var CreateGroupLayer = __webpack_require__(222); +var ParseObject = __webpack_require__(221); +var ObjectLayer = __webpack_require__(483); +var CreateGroupLayer = __webpack_require__(220); /** * Parses a Tiled JSON object into an array of ObjectLayer objects. @@ -108827,7 +108661,7 @@ module.exports = ParseObjectLayers; /***/ }), -/* 487 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108949,7 +108783,7 @@ module.exports = ObjectLayer; /***/ }), -/* 488 */ +/* 484 */ /***/ (function(module, exports) { /** @@ -109022,7 +108856,7 @@ module.exports = BuildTilesetIndex; /***/ }), -/* 489 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109031,7 +108865,7 @@ module.exports = BuildTilesetIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * Copy properties from tileset to tiles. @@ -109095,7 +108929,7 @@ module.exports = AssignTileProperties; /***/ }), -/* 490 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109105,9 +108939,9 @@ module.exports = AssignTileProperties; */ var Formats = __webpack_require__(33); -var MapData = __webpack_require__(102); -var ParseTileLayers = __webpack_require__(491); -var ParseTilesets = __webpack_require__(492); +var MapData = __webpack_require__(101); +var ParseTileLayers = __webpack_require__(487); +var ParseTilesets = __webpack_require__(488); /** * Parses a Weltmeister JSON object into a new MapData object. @@ -109162,7 +108996,7 @@ module.exports = ParseWeltmeister; /***/ }), -/* 491 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109171,8 +109005,8 @@ module.exports = ParseWeltmeister; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LayerData = __webpack_require__(101); -var Tile = __webpack_require__(73); +var LayerData = __webpack_require__(100); +var Tile = __webpack_require__(72); /** * [description] @@ -109246,7 +109080,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 492 */ +/* 488 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109255,7 +109089,7 @@ module.exports = ParseTileLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(138); +var Tileset = __webpack_require__(137); /** * [description] @@ -109297,7 +109131,7 @@ module.exports = ParseTilesets; /***/ }), -/* 493 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109308,16 +109142,16 @@ module.exports = ParseTilesets; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var DynamicTilemapLayer = __webpack_require__(494); -var Extend = __webpack_require__(17); +var DynamicTilemapLayer = __webpack_require__(490); +var Extend = __webpack_require__(18); var Formats = __webpack_require__(33); -var LayerData = __webpack_require__(101); -var Rotate = __webpack_require__(328); -var SpliceOne = __webpack_require__(79); -var StaticTilemapLayer = __webpack_require__(495); -var Tile = __webpack_require__(73); -var TilemapComponents = __webpack_require__(136); -var Tileset = __webpack_require__(138); +var LayerData = __webpack_require__(100); +var Rotate = __webpack_require__(326); +var SpliceOne = __webpack_require__(78); +var StaticTilemapLayer = __webpack_require__(491); +var Tile = __webpack_require__(72); +var TilemapComponents = __webpack_require__(135); +var Tileset = __webpack_require__(137); /** * @callback TilemapFilterCallback @@ -109562,6 +109396,19 @@ var Tilemap = new Class({ * @since 3.0.0 */ this.hexSideLength = mapData.hexSideLength; + + /** + * Components used for conversions between real world coordinates and tile coordinates, + * initialized here to prevent switching between them at runtime depending on map orientation. + * refer to the components themselves for documentation. + * @since 3.2.2 + */ + this.WorldToTileXY = TilemapComponents.WorldToTileXY(this.orientation); + this.WorldToTileX = TilemapComponents.WorldToTileX(this.orientation); + this.WorldToTileY = TilemapComponents.WorldToTileY(this.orientation); + this.TileToWorldXY = TilemapComponents.TileToWorldXY(this.orientation); + this.TileToWorldX = TilemapComponents.TileToWorldX(this.orientation); + this.TileToWorldY = TilemapComponents.TileToWorldY(this.orientation); }, /** @@ -111657,7 +111504,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldX(tileX, camera, layer); + return this.TileToWorldX(tileX, camera, layer); }, /** @@ -111682,7 +111529,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldY(tileX, camera, layer); + return this.TileToWorldY(tileX, camera, layer); }, /** @@ -111703,13 +111550,14 @@ var Tilemap = new Class({ * * @return {?Phaser.Math.Vector2} Returns a point, or null if the layer given was invalid. */ + tileToWorldXY: function (tileX, tileY, point, camera, layer) { layer = this.getLayer(layer); if (layer === null) { return null; } - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer); + return this.TileToWorldXY(tileX, tileY, point, camera, layer); }, /** @@ -111780,7 +111628,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer); + return this.WorldToTileX(worldX, snapToFloor, camera, layer); }, /** @@ -111805,7 +111653,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer); + return this.WorldToTileY(worldY, snapToFloor, camera, layer); }, /** @@ -111833,7 +111681,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); + return this.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); }, /** @@ -111864,7 +111712,7 @@ module.exports = Tilemap; /***/ }), -/* 494 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -111874,10 +111722,10 @@ module.exports = Tilemap; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); +var Components = __webpack_require__(12); var DynamicTilemapLayerRender = __webpack_require__(1338); -var GameObject = __webpack_require__(13); -var TilemapComponents = __webpack_require__(136); +var GameObject = __webpack_require__(14); +var TilemapComponents = __webpack_require__(135); var Vector2 = __webpack_require__(3); /** @@ -111981,7 +111829,6 @@ var DynamicTilemapLayer = new Class({ // Link the LayerData with this static tilemap layer this.layer.tilemapLayer = this; - console.log('fug',this.layer); /** * The Tileset/s associated with this layer. @@ -112131,9 +111978,6 @@ var DynamicTilemapLayer = new Class({ this.setSize(tilemap.tileWidth * this.layer.width, tilemap.tileHeight * this.layer.height); this.initPipeline('TextureTintPipeline'); - - console.log('layer sizes'); - console.log(this.layer.tileWidth,this.layer.tileHeight); }, /** @@ -113064,7 +112908,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldX: function (tileX, camera) { - return TilemapComponents.TileToWorldX(tileX, camera, this.layer); + return this.tilemap.TileToWorldX(tileX, camera, this.layer); }, /** @@ -113081,7 +112925,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldY: function (tileY, camera) { - return TilemapComponents.TileToWorldY(tileY, camera, this.layer); + return this.tilemap.TileToWorldY(tileY, camera, this.layer); }, /** @@ -113101,7 +112945,7 @@ var DynamicTilemapLayer = new Class({ */ tileToWorldXY: function (tileX, tileY, point, camera) { - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, this.layer); + return this.tilemap.TileToWorldXY(tileX, tileY, point, camera, this.layer); }, /** @@ -113154,7 +112998,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileX: function (worldX, snapToFloor, camera) { - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileX(worldX, snapToFloor, camera, this.layer); }, /** @@ -113172,7 +113016,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileY: function (worldY, snapToFloor, camera) { - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileY(worldY, snapToFloor, camera, this.layer); }, /** @@ -113193,7 +113037,7 @@ var DynamicTilemapLayer = new Class({ */ worldToTileXY: function (worldX, worldY, snapToFloor, point, camera) { - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); + return this.tilemap.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); } }); @@ -113202,7 +113046,7 @@ module.exports = DynamicTilemapLayer; /***/ }), -/* 495 */ +/* 491 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113212,13 +113056,14 @@ module.exports = DynamicTilemapLayer; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameEvents = __webpack_require__(18); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(12); +var GameEvents = __webpack_require__(19); +var GameObject = __webpack_require__(14); var StaticTilemapLayerRender = __webpack_require__(1341); -var TilemapComponents = __webpack_require__(136); +var TilemapComponents = __webpack_require__(135); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); +var Vector2 = __webpack_require__(3); /** * @classdesc @@ -113357,6 +113202,18 @@ var StaticTilemapLayer = new Class({ */ this.skipCull = false; + /** + * In isometric mode, you can control the amount of distance (in tiles, from the cameras' borders) that the Cameras before culling. + * By default the camera will allow 1 full tile in all directions. + * + * However, there are some instances when you may wish to adjust this, and changing this variable allows you to do so. + * + * @name Phaser.Tilemaps.StaticTilemapLayer#isoCullDistances + * @type {Phaser.Math.Vector2} + * @since 3.23.0 + */ + this.isoCullDistances = new Vector2(1, 1); + /** * Canvas only. * @@ -113570,6 +113427,7 @@ var StaticTilemapLayer = new Class({ { this.updateVBOData(); }, this); + }, /** @@ -114540,7 +114398,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldX: function (tileX, camera) { - return TilemapComponents.TileToWorldX(tileX, camera, this.layer); + return this.tilemap.TileToWorldX(tileX, camera, this.layer); }, /** @@ -114557,7 +114415,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldY: function (tileY, camera) { - return TilemapComponents.TileToWorldY(tileY, camera, this.layer); + return this.tilemap.TileToWorldY(tileY, camera, this.layer); }, /** @@ -114577,7 +114435,7 @@ var StaticTilemapLayer = new Class({ */ tileToWorldXY: function (tileX, tileY, point, camera) { - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, this.layer); + return this.tilemap.TileToWorldXY(tileX, tileY, point, camera, this.layer); }, /** @@ -114596,7 +114454,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileX: function (worldX, snapToFloor, camera) { - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileX(worldX, snapToFloor, camera, this.layer); }, /** @@ -114615,7 +114473,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileY: function (worldY, snapToFloor, camera) { - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, this.layer); + return this.tilemap.WorldToTileY(worldY, snapToFloor, camera, this.layer); }, /** @@ -114637,7 +114495,7 @@ var StaticTilemapLayer = new Class({ */ worldToTileXY: function (worldX, worldY, snapToFloor, point, camera) { - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); + return this.tilemap.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, this.layer); }, /** @@ -114696,7 +114554,7 @@ module.exports = StaticTilemapLayer; /***/ }), -/* 496 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115009,7 +114867,7 @@ module.exports = TimerEvent; /***/ }), -/* 497 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115070,7 +114928,7 @@ module.exports = GetProps; /***/ }), -/* 498 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115118,7 +114976,7 @@ module.exports = GetTweens; /***/ }), -/* 499 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115127,15 +114985,15 @@ module.exports = GetTweens; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); +var GetNewValue = __webpack_require__(138); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(226); -var Tween = __webpack_require__(228); -var TweenData = __webpack_require__(230); +var GetValueOp = __webpack_require__(224); +var Tween = __webpack_require__(226); +var TweenData = __webpack_require__(228); /** * Creates a new Number Tween. @@ -115248,7 +115106,7 @@ module.exports = NumberTweenBuilder; /***/ }), -/* 500 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115259,7 +115117,7 @@ module.exports = NumberTweenBuilder; var GetEaseFunction = __webpack_require__(67); var GetValue = __webpack_require__(6); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * Creates a Stagger function to be used by a Tween property. @@ -115494,7 +115352,7 @@ module.exports = StaggerBuilder; /***/ }), -/* 501 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115504,16 +115362,16 @@ module.exports = StaggerBuilder; */ var Clone = __webpack_require__(65); -var Defaults = __webpack_require__(227); -var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(87); +var Defaults = __webpack_require__(225); +var GetAdvancedValue = __webpack_require__(15); +var GetBoolean = __webpack_require__(86); var GetEaseFunction = __webpack_require__(67); -var GetNewValue = __webpack_require__(139); -var GetTargets = __webpack_require__(225); -var GetTweens = __webpack_require__(498); +var GetNewValue = __webpack_require__(138); +var GetTargets = __webpack_require__(223); +var GetTweens = __webpack_require__(494); var GetValue = __webpack_require__(6); -var Timeline = __webpack_require__(502); -var TweenBuilder = __webpack_require__(140); +var Timeline = __webpack_require__(498); +var TweenBuilder = __webpack_require__(139); /** * Builds a Timeline of Tweens based on a configuration object. @@ -115646,7 +115504,7 @@ module.exports = TimelineBuilder; /***/ }), -/* 502 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115656,10 +115514,10 @@ module.exports = TimelineBuilder; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(229); -var TweenBuilder = __webpack_require__(140); -var TWEEN_CONST = __webpack_require__(88); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(227); +var TweenBuilder = __webpack_require__(139); +var TWEEN_CONST = __webpack_require__(87); /** * @classdesc @@ -116551,7 +116409,7 @@ module.exports = Timeline; /***/ }), -/* 503 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -116560,9 +116418,9 @@ module.exports = Timeline; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseAnimation = __webpack_require__(146); +var BaseAnimation = __webpack_require__(145); var Class = __webpack_require__(0); -var Events = __webpack_require__(108); +var Events = __webpack_require__(107); /** * @classdesc @@ -117729,7 +117587,7 @@ module.exports = Animation; /***/ }), -/* 504 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117739,12 +117597,12 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasSnapshot = __webpack_require__(505); +var CanvasSnapshot = __webpack_require__(501); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var GetBlendModes = __webpack_require__(506); -var ScaleEvents = __webpack_require__(91); +var CONST = __webpack_require__(10); +var GetBlendModes = __webpack_require__(502); +var ScaleEvents = __webpack_require__(90); var TransformMatrix = __webpack_require__(30); /** @@ -118526,7 +118384,7 @@ module.exports = CanvasRenderer; /***/ }), -/* 505 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118535,7 +118393,7 @@ module.exports = CanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); @@ -118619,7 +118477,7 @@ module.exports = CanvasSnapshot; /***/ }), -/* 506 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118629,7 +118487,7 @@ module.exports = CanvasSnapshot; */ var modes = __webpack_require__(52); -var CanvasFeatures = __webpack_require__(313); +var CanvasFeatures = __webpack_require__(311); /** * Returns an array which maps the default blend modes to supported Canvas blend modes. @@ -118683,7 +118541,7 @@ module.exports = GetBlendModes; /***/ }), -/* 507 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118693,25 +118551,25 @@ module.exports = GetBlendModes; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(90); +var BaseCamera = __webpack_require__(89); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var GameEvents = __webpack_require__(18); -var IsSizePowerOfTwo = __webpack_require__(115); +var CONST = __webpack_require__(10); +var GameEvents = __webpack_require__(19); +var IsSizePowerOfTwo = __webpack_require__(114); var NOOP = __webpack_require__(1); -var ScaleEvents = __webpack_require__(91); -var SpliceOne = __webpack_require__(79); -var TextureEvents = __webpack_require__(116); +var ScaleEvents = __webpack_require__(90); +var SpliceOne = __webpack_require__(78); +var TextureEvents = __webpack_require__(115); var TransformMatrix = __webpack_require__(30); var Utils = __webpack_require__(9); -var WebGLSnapshot = __webpack_require__(508); +var WebGLSnapshot = __webpack_require__(504); // Default Pipelines -var BitmapMaskPipeline = __webpack_require__(509); -var ForwardDiffuseLightPipeline = __webpack_require__(510); -var TextureTintPipeline = __webpack_require__(234); -var TextureTintStripPipeline = __webpack_require__(511); +var BitmapMaskPipeline = __webpack_require__(505); +var ForwardDiffuseLightPipeline = __webpack_require__(506); +var TextureTintPipeline = __webpack_require__(232); +var TextureTintStripPipeline = __webpack_require__(507); /** * @callback WebGLContextCallback @@ -121672,7 +121530,7 @@ module.exports = WebGLRenderer; /***/ }), -/* 508 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121681,7 +121539,7 @@ module.exports = WebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); @@ -121782,7 +121640,7 @@ module.exports = WebGLSnapshot; /***/ }), -/* 509 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121793,9 +121651,9 @@ module.exports = WebGLSnapshot; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(780); -var ShaderSourceVS = __webpack_require__(781); -var WebGLPipeline = __webpack_require__(142); +var ShaderSourceFS = __webpack_require__(776); +var ShaderSourceVS = __webpack_require__(777); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -122047,7 +121905,7 @@ module.exports = BitmapMaskPipeline; /***/ }), -/* 510 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122058,8 +121916,8 @@ module.exports = BitmapMaskPipeline; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(782); -var TextureTintPipeline = __webpack_require__(234); +var ShaderSourceFS = __webpack_require__(778); +var TextureTintPipeline = __webpack_require__(232); var LIGHT_COUNT = 10; @@ -122568,7 +122426,7 @@ module.exports = ForwardDiffuseLightPipeline; /***/ }), -/* 511 */ +/* 507 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122580,11 +122438,11 @@ module.exports = ForwardDiffuseLightPipeline; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(235); -var ShaderSourceFS = __webpack_require__(337); -var ShaderSourceVS = __webpack_require__(338); +var ModelViewProjection = __webpack_require__(233); +var ShaderSourceFS = __webpack_require__(335); +var ShaderSourceVS = __webpack_require__(336); var TransformMatrix = __webpack_require__(30); -var WebGLPipeline = __webpack_require__(142); +var WebGLPipeline = __webpack_require__(141); /** * @classdesc @@ -122978,7 +122836,7 @@ module.exports = TextureTintStripPipeline; /***/ }), -/* 512 */ +/* 508 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122991,7 +122849,7 @@ var Axes = {}; module.exports = Axes; -var Vector = __webpack_require__(98); +var Vector = __webpack_require__(97); var Common = __webpack_require__(37); (function() { @@ -123048,7 +122906,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 513 */ +/* 509 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123080,7 +122938,7 @@ module.exports = { /***/ }), -/* 514 */ +/* 510 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123095,9 +122953,9 @@ var Detector = {}; module.exports = Detector; -var SAT = __webpack_require__(515); -var Pair = __webpack_require__(468); -var Bounds = __webpack_require__(99); +var SAT = __webpack_require__(511); +var Pair = __webpack_require__(466); +var Bounds = __webpack_require__(98); (function() { @@ -123193,7 +123051,7 @@ var Bounds = __webpack_require__(99); /***/ }), -/* 515 */ +/* 511 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123208,8 +123066,8 @@ var SAT = {}; module.exports = SAT; -var Vertices = __webpack_require__(85); -var Vector = __webpack_require__(98); +var Vertices = __webpack_require__(84); +var Vector = __webpack_require__(97); (function() { @@ -123469,7 +123327,7 @@ var Vector = __webpack_require__(98); /***/ }), -/* 516 */ +/* 512 */ /***/ (function(module, exports) { var g; @@ -123495,21 +123353,21 @@ module.exports = g; /***/ }), -/* 517 */ +/* 513 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(514); +__webpack_require__(515); +__webpack_require__(516); +__webpack_require__(517); __webpack_require__(518); __webpack_require__(519); __webpack_require__(520); __webpack_require__(521); -__webpack_require__(522); -__webpack_require__(523); -__webpack_require__(524); -__webpack_require__(525); /***/ }), -/* 518 */ +/* 514 */ /***/ (function(module, exports) { /** @@ -123549,7 +123407,7 @@ if (!Array.prototype.forEach) /***/ }), -/* 519 */ +/* 515 */ /***/ (function(module, exports) { /** @@ -123565,7 +123423,7 @@ if (!Array.isArray) /***/ }), -/* 520 */ +/* 516 */ /***/ (function(module, exports) { /* Copyright 2013 Chris Wilson @@ -123752,7 +123610,7 @@ BiquadFilterNode.type and OscillatorNode.type. /***/ }), -/* 521 */ +/* 517 */ /***/ (function(module, exports) { /** @@ -123767,7 +123625,7 @@ if (!window.console) /***/ }), -/* 522 */ +/* 518 */ /***/ (function(module, exports) { // ES6 Math.trunc - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc @@ -123779,7 +123637,7 @@ if (!Math.trunc) { /***/ }), -/* 523 */ +/* 519 */ /***/ (function(module, exports) { /** @@ -123816,7 +123674,7 @@ if (!Math.trunc) { /***/ }), -/* 524 */ +/* 520 */ /***/ (function(module, exports) { // References: @@ -123873,7 +123731,7 @@ if (!window.cancelAnimationFrame) /***/ }), -/* 525 */ +/* 521 */ /***/ (function(module, exports) { /** @@ -123926,7 +123784,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o /***/ }), -/* 526 */ +/* 522 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123935,7 +123793,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var QuickSet = __webpack_require__(239); +var QuickSet = __webpack_require__(237); /** * Takes an array of Game Objects, or any objects that have public `x` and `y` properties, and aligns them next to each other. @@ -123974,7 +123832,7 @@ module.exports = AlignTo; /***/ }), -/* 527 */ +/* 523 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124015,7 +123873,7 @@ module.exports = Angle; /***/ }), -/* 528 */ +/* 524 */ /***/ (function(module, exports) { /** @@ -124054,7 +123912,7 @@ module.exports = Call; /***/ }), -/* 529 */ +/* 525 */ /***/ (function(module, exports) { /** @@ -124112,7 +123970,7 @@ module.exports = GetFirst; /***/ }), -/* 530 */ +/* 526 */ /***/ (function(module, exports) { /** @@ -124170,7 +124028,7 @@ module.exports = GetLast; /***/ }), -/* 531 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124179,11 +124037,11 @@ module.exports = GetLast; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AlignIn = __webpack_require__(252); -var CONST = __webpack_require__(103); +var AlignIn = __webpack_require__(250); +var CONST = __webpack_require__(102); var GetFastValue = __webpack_require__(2); var NOOP = __webpack_require__(1); -var Zone = __webpack_require__(107); +var Zone = __webpack_require__(106); var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1); @@ -124269,7 +124127,7 @@ module.exports = GridAlign; /***/ }), -/* 532 */ +/* 528 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124278,7 +124136,7 @@ module.exports = GridAlign; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); // bitmask flag for GameObject.renderMask var _FLAG = 2; // 0010 @@ -124564,7 +124422,7 @@ module.exports = Alpha; /***/ }), -/* 533 */ +/* 529 */ /***/ (function(module, exports) { /** @@ -124591,7 +124449,7 @@ module.exports = 'add'; /***/ }), -/* 534 */ +/* 530 */ /***/ (function(module, exports) { /** @@ -124619,7 +124477,7 @@ module.exports = 'complete'; /***/ }), -/* 535 */ +/* 531 */ /***/ (function(module, exports) { /** @@ -124646,7 +124504,7 @@ module.exports = 'repeat'; /***/ }), -/* 536 */ +/* 532 */ /***/ (function(module, exports) { /** @@ -124674,7 +124532,7 @@ module.exports = 'restart'; /***/ }), -/* 537 */ +/* 533 */ /***/ (function(module, exports) { /** @@ -124702,7 +124560,7 @@ module.exports = 'start'; /***/ }), -/* 538 */ +/* 534 */ /***/ (function(module, exports) { /** @@ -124726,7 +124584,7 @@ module.exports = 'pauseall'; /***/ }), -/* 539 */ +/* 535 */ /***/ (function(module, exports) { /** @@ -124750,7 +124608,7 @@ module.exports = 'remove'; /***/ }), -/* 540 */ +/* 536 */ /***/ (function(module, exports) { /** @@ -124773,7 +124631,7 @@ module.exports = 'resumeall'; /***/ }), -/* 541 */ +/* 537 */ /***/ (function(module, exports) { /** @@ -124802,7 +124660,7 @@ module.exports = 'animationcomplete'; /***/ }), -/* 542 */ +/* 538 */ /***/ (function(module, exports) { /** @@ -124830,7 +124688,7 @@ module.exports = 'animationcomplete-'; /***/ }), -/* 543 */ +/* 539 */ /***/ (function(module, exports) { /** @@ -124859,7 +124717,7 @@ module.exports = 'animationrepeat-'; /***/ }), -/* 544 */ +/* 540 */ /***/ (function(module, exports) { /** @@ -124887,7 +124745,7 @@ module.exports = 'animationrestart-'; /***/ }), -/* 545 */ +/* 541 */ /***/ (function(module, exports) { /** @@ -124915,7 +124773,7 @@ module.exports = 'animationstart-'; /***/ }), -/* 546 */ +/* 542 */ /***/ (function(module, exports) { /** @@ -124944,7 +124802,7 @@ module.exports = 'animationupdate-'; /***/ }), -/* 547 */ +/* 543 */ /***/ (function(module, exports) { /** @@ -124974,7 +124832,7 @@ module.exports = 'animationrepeat'; /***/ }), -/* 548 */ +/* 544 */ /***/ (function(module, exports) { /** @@ -125003,7 +124861,7 @@ module.exports = 'animationrestart'; /***/ }), -/* 549 */ +/* 545 */ /***/ (function(module, exports) { /** @@ -125032,7 +124890,7 @@ module.exports = 'animationstart'; /***/ }), -/* 550 */ +/* 546 */ /***/ (function(module, exports) { /** @@ -125062,7 +124920,7 @@ module.exports = 'animationupdate'; /***/ }), -/* 551 */ +/* 547 */ /***/ (function(module, exports) { /** @@ -125211,7 +125069,7 @@ module.exports = ComputedSize; /***/ }), -/* 552 */ +/* 548 */ /***/ (function(module, exports) { /** @@ -125336,7 +125194,7 @@ module.exports = Crop; /***/ }), -/* 553 */ +/* 549 */ /***/ (function(module, exports) { /** @@ -125500,7 +125358,7 @@ module.exports = Flip; /***/ }), -/* 554 */ +/* 550 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125509,8 +125367,8 @@ module.exports = Flip; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var RotateAround = __webpack_require__(273); +var Rectangle = __webpack_require__(13); +var RotateAround = __webpack_require__(271); var Vector2 = __webpack_require__(3); /** @@ -125859,7 +125717,7 @@ module.exports = GetBounds; /***/ }), -/* 555 */ +/* 551 */ /***/ (function(module, exports) { /** @@ -125882,7 +125740,7 @@ module.exports = 'blur'; /***/ }), -/* 556 */ +/* 552 */ /***/ (function(module, exports) { /** @@ -125904,7 +125762,7 @@ module.exports = 'boot'; /***/ }), -/* 557 */ +/* 553 */ /***/ (function(module, exports) { /** @@ -125927,7 +125785,7 @@ module.exports = 'contextlost'; /***/ }), -/* 558 */ +/* 554 */ /***/ (function(module, exports) { /** @@ -125950,7 +125808,7 @@ module.exports = 'contextrestored'; /***/ }), -/* 559 */ +/* 555 */ /***/ (function(module, exports) { /** @@ -125973,7 +125831,7 @@ module.exports = 'destroy'; /***/ }), -/* 560 */ +/* 556 */ /***/ (function(module, exports) { /** @@ -125995,7 +125853,7 @@ module.exports = 'focus'; /***/ }), -/* 561 */ +/* 557 */ /***/ (function(module, exports) { /** @@ -126021,7 +125879,7 @@ module.exports = 'hidden'; /***/ }), -/* 562 */ +/* 558 */ /***/ (function(module, exports) { /** @@ -126042,7 +125900,7 @@ module.exports = 'pause'; /***/ }), -/* 563 */ +/* 559 */ /***/ (function(module, exports) { /** @@ -126068,7 +125926,7 @@ module.exports = 'postrender'; /***/ }), -/* 564 */ +/* 560 */ /***/ (function(module, exports) { /** @@ -126093,7 +125951,7 @@ module.exports = 'poststep'; /***/ }), -/* 565 */ +/* 561 */ /***/ (function(module, exports) { /** @@ -126118,7 +125976,7 @@ module.exports = 'prerender'; /***/ }), -/* 566 */ +/* 562 */ /***/ (function(module, exports) { /** @@ -126143,7 +126001,7 @@ module.exports = 'prestep'; /***/ }), -/* 567 */ +/* 563 */ /***/ (function(module, exports) { /** @@ -126165,7 +126023,7 @@ module.exports = 'ready'; /***/ }), -/* 568 */ +/* 564 */ /***/ (function(module, exports) { /** @@ -126186,7 +126044,7 @@ module.exports = 'resume'; /***/ }), -/* 569 */ +/* 565 */ /***/ (function(module, exports) { /** @@ -126211,7 +126069,7 @@ module.exports = 'step'; /***/ }), -/* 570 */ +/* 566 */ /***/ (function(module, exports) { /** @@ -126235,7 +126093,7 @@ module.exports = 'visible'; /***/ }), -/* 571 */ +/* 567 */ /***/ (function(module, exports) { /** @@ -126438,7 +126296,7 @@ module.exports = Origin; /***/ }), -/* 572 */ +/* 568 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126448,9 +126306,9 @@ module.exports = Origin; */ var DegToRad = __webpack_require__(35); -var GetBoolean = __webpack_require__(87); +var GetBoolean = __webpack_require__(86); var GetValue = __webpack_require__(6); -var TWEEN_CONST = __webpack_require__(88); +var TWEEN_CONST = __webpack_require__(87); var Vector2 = __webpack_require__(3); /** @@ -126844,7 +126702,7 @@ module.exports = PathFollower; /***/ }), -/* 573 */ +/* 569 */ /***/ (function(module, exports) { /** @@ -127031,7 +126889,7 @@ module.exports = Size; /***/ }), -/* 574 */ +/* 570 */ /***/ (function(module, exports) { /** @@ -127161,7 +127019,7 @@ module.exports = Texture; /***/ }), -/* 575 */ +/* 571 */ /***/ (function(module, exports) { /** @@ -127369,7 +127227,7 @@ module.exports = TextureCrop; /***/ }), -/* 576 */ +/* 572 */ /***/ (function(module, exports) { /** @@ -127709,7 +127567,7 @@ module.exports = Tint; /***/ }), -/* 577 */ +/* 573 */ /***/ (function(module, exports) { /** @@ -127741,7 +127599,7 @@ module.exports = 'changedata'; /***/ }), -/* 578 */ +/* 574 */ /***/ (function(module, exports) { /** @@ -127771,7 +127629,7 @@ module.exports = 'changedata-'; /***/ }), -/* 579 */ +/* 575 */ /***/ (function(module, exports) { /** @@ -127799,7 +127657,7 @@ module.exports = 'removedata'; /***/ }), -/* 580 */ +/* 576 */ /***/ (function(module, exports) { /** @@ -127827,7 +127685,7 @@ module.exports = 'setdata'; /***/ }), -/* 581 */ +/* 577 */ /***/ (function(module, exports) { /** @@ -127852,7 +127710,7 @@ module.exports = 'destroy'; /***/ }), -/* 582 */ +/* 578 */ /***/ (function(module, exports) { /** @@ -127884,7 +127742,7 @@ module.exports = 'complete'; /***/ }), -/* 583 */ +/* 579 */ /***/ (function(module, exports) { /** @@ -127913,7 +127771,7 @@ module.exports = 'created'; /***/ }), -/* 584 */ +/* 580 */ /***/ (function(module, exports) { /** @@ -127939,7 +127797,7 @@ module.exports = 'error'; /***/ }), -/* 585 */ +/* 581 */ /***/ (function(module, exports) { /** @@ -127971,7 +127829,7 @@ module.exports = 'loop'; /***/ }), -/* 586 */ +/* 582 */ /***/ (function(module, exports) { /** @@ -127999,7 +127857,7 @@ module.exports = 'play'; /***/ }), -/* 587 */ +/* 583 */ /***/ (function(module, exports) { /** @@ -128024,7 +127882,7 @@ module.exports = 'seeked'; /***/ }), -/* 588 */ +/* 584 */ /***/ (function(module, exports) { /** @@ -128050,7 +127908,7 @@ module.exports = 'seeking'; /***/ }), -/* 589 */ +/* 585 */ /***/ (function(module, exports) { /** @@ -128076,7 +127934,7 @@ module.exports = 'stop'; /***/ }), -/* 590 */ +/* 586 */ /***/ (function(module, exports) { /** @@ -128102,7 +127960,7 @@ module.exports = 'timeout'; /***/ }), -/* 591 */ +/* 587 */ /***/ (function(module, exports) { /** @@ -128128,7 +127986,7 @@ module.exports = 'unlocked'; /***/ }), -/* 592 */ +/* 588 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128169,7 +128027,7 @@ module.exports = IncAlpha; /***/ }), -/* 593 */ +/* 589 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128210,7 +128068,7 @@ module.exports = IncX; /***/ }), -/* 594 */ +/* 590 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128257,7 +128115,7 @@ module.exports = IncXY; /***/ }), -/* 595 */ +/* 591 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128298,7 +128156,7 @@ module.exports = IncY; /***/ }), -/* 596 */ +/* 592 */ /***/ (function(module, exports) { /** @@ -128347,7 +128205,7 @@ module.exports = PlaceOnCircle; /***/ }), -/* 597 */ +/* 593 */ /***/ (function(module, exports) { /** @@ -128399,7 +128257,7 @@ module.exports = PlaceOnEllipse; /***/ }), -/* 598 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128408,7 +128266,7 @@ module.exports = PlaceOnEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoints = __webpack_require__(148); +var GetPoints = __webpack_require__(147); /** * Positions an array of Game Objects on evenly spaced points of a Line. @@ -128443,7 +128301,7 @@ module.exports = PlaceOnLine; /***/ }), -/* 599 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128452,9 +128310,9 @@ module.exports = PlaceOnLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MarchingAnts = __webpack_require__(282); -var RotateLeft = __webpack_require__(283); -var RotateRight = __webpack_require__(284); +var MarchingAnts = __webpack_require__(280); +var RotateLeft = __webpack_require__(281); +var RotateRight = __webpack_require__(282); /** * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle. @@ -128501,7 +128359,7 @@ module.exports = PlaceOnRectangle; /***/ }), -/* 600 */ +/* 596 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128510,7 +128368,7 @@ module.exports = PlaceOnRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BresenhamPoints = __webpack_require__(285); +var BresenhamPoints = __webpack_require__(283); /** * Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle. @@ -128562,7 +128420,7 @@ module.exports = PlaceOnTriangle; /***/ }), -/* 601 */ +/* 597 */ /***/ (function(module, exports) { /** @@ -128599,7 +128457,7 @@ module.exports = PlayAnimation; /***/ }), -/* 602 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128608,7 +128466,7 @@ module.exports = PlayAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(145); +var Random = __webpack_require__(144); /** * Takes an array of Game Objects and positions them at random locations within the Circle. @@ -128639,7 +128497,7 @@ module.exports = RandomCircle; /***/ }), -/* 603 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128648,7 +128506,7 @@ module.exports = RandomCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(152); +var Random = __webpack_require__(151); /** * Takes an array of Game Objects and positions them at random locations within the Ellipse. @@ -128679,7 +128537,7 @@ module.exports = RandomEllipse; /***/ }), -/* 604 */ +/* 600 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128688,7 +128546,7 @@ module.exports = RandomEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(149); +var Random = __webpack_require__(148); /** * Takes an array of Game Objects and positions them at random locations on the Line. @@ -128719,7 +128577,7 @@ module.exports = RandomLine; /***/ }), -/* 605 */ +/* 601 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128728,7 +128586,7 @@ module.exports = RandomLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(150); +var Random = __webpack_require__(149); /** * Takes an array of Game Objects and positions them at random locations within the Rectangle. @@ -128757,7 +128615,7 @@ module.exports = RandomRectangle; /***/ }), -/* 606 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128766,7 +128624,7 @@ module.exports = RandomRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(153); +var Random = __webpack_require__(152); /** * Takes an array of Game Objects and positions them at random locations within the Triangle. @@ -128797,7 +128655,7 @@ module.exports = RandomTriangle; /***/ }), -/* 607 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128838,7 +128696,7 @@ module.exports = Rotate; /***/ }), -/* 608 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128847,7 +128705,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundDistance = __webpack_require__(154); +var RotateAroundDistance = __webpack_require__(153); var DistanceBetween = __webpack_require__(53); /** @@ -128884,7 +128742,7 @@ module.exports = RotateAround; /***/ }), -/* 609 */ +/* 605 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128893,7 +128751,7 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathRotateAroundDistance = __webpack_require__(154); +var MathRotateAroundDistance = __webpack_require__(153); /** * Rotates an array of Game Objects around a point by the given angle and distance. @@ -128933,7 +128791,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 610 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128974,7 +128832,7 @@ module.exports = ScaleX; /***/ }), -/* 611 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129021,7 +128879,7 @@ module.exports = ScaleXY; /***/ }), -/* 612 */ +/* 608 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129062,7 +128920,7 @@ module.exports = ScaleY; /***/ }), -/* 613 */ +/* 609 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129071,7 +128929,7 @@ module.exports = ScaleY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `alpha` @@ -129103,7 +128961,7 @@ module.exports = SetAlpha; /***/ }), -/* 614 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129112,7 +128970,7 @@ module.exports = SetAlpha; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `blendMode` @@ -129143,7 +129001,7 @@ module.exports = SetBlendMode; /***/ }), -/* 615 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129152,7 +129010,7 @@ module.exports = SetBlendMode; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `depth` @@ -129184,7 +129042,7 @@ module.exports = SetDepth; /***/ }), -/* 616 */ +/* 612 */ /***/ (function(module, exports) { /** @@ -129223,7 +129081,7 @@ module.exports = SetHitArea; /***/ }), -/* 617 */ +/* 613 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129232,7 +129090,7 @@ module.exports = SetHitArea; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `originX` and `originY` @@ -129270,7 +129128,7 @@ module.exports = SetOrigin; /***/ }), -/* 618 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129279,7 +129137,7 @@ module.exports = SetOrigin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `rotation` @@ -129311,7 +129169,7 @@ module.exports = SetRotation; /***/ }), -/* 619 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129320,7 +129178,7 @@ module.exports = SetRotation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `scaleX` and `scaleY` @@ -129358,7 +129216,7 @@ module.exports = SetScale; /***/ }), -/* 620 */ +/* 616 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129367,7 +129225,7 @@ module.exports = SetScale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scaleX` @@ -129399,7 +129257,7 @@ module.exports = SetScaleX; /***/ }), -/* 621 */ +/* 617 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129408,7 +129266,7 @@ module.exports = SetScaleX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scaleY` @@ -129440,7 +129298,7 @@ module.exports = SetScaleY; /***/ }), -/* 622 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129449,7 +129307,7 @@ module.exports = SetScaleY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `scrollFactorX` and `scrollFactorY` @@ -129487,7 +129345,7 @@ module.exports = SetScrollFactor; /***/ }), -/* 623 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129496,7 +129354,7 @@ module.exports = SetScrollFactor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scrollFactorX` @@ -129528,7 +129386,7 @@ module.exports = SetScrollFactorX; /***/ }), -/* 624 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129537,7 +129395,7 @@ module.exports = SetScrollFactorX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `scrollFactorY` @@ -129569,7 +129427,7 @@ module.exports = SetScrollFactorY; /***/ }), -/* 625 */ +/* 621 */ /***/ (function(module, exports) { /** @@ -129608,7 +129466,7 @@ module.exports = SetTint; /***/ }), -/* 626 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129617,7 +129475,7 @@ module.exports = SetTint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `visible` @@ -129646,7 +129504,7 @@ module.exports = SetVisible; /***/ }), -/* 627 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129655,7 +129513,7 @@ module.exports = SetVisible; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `x` @@ -129687,7 +129545,7 @@ module.exports = SetX; /***/ }), -/* 628 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129696,7 +129554,7 @@ module.exports = SetX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public properties `x` and `y` @@ -129734,7 +129592,7 @@ module.exports = SetXY; /***/ }), -/* 629 */ +/* 625 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129743,7 +129601,7 @@ module.exports = SetXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PropertyValueSet = __webpack_require__(25); +var PropertyValueSet = __webpack_require__(26); /** * Takes an array of Game Objects, or any objects that have the public property `y` @@ -129775,7 +129633,7 @@ module.exports = SetY; /***/ }), -/* 630 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129905,7 +129763,7 @@ module.exports = ShiftPosition; /***/ }), -/* 631 */ +/* 627 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129914,7 +129772,7 @@ module.exports = ShiftPosition; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayShuffle = __webpack_require__(111); +var ArrayShuffle = __webpack_require__(110); /** * Shuffles the array in place. The shuffled array is both modified and returned. @@ -129938,7 +129796,7 @@ module.exports = Shuffle; /***/ }), -/* 632 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129947,7 +129805,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmootherStep = __webpack_require__(155); +var MathSmootherStep = __webpack_require__(154); /** * Smootherstep is a sigmoid-like interpolation and clamping function. @@ -129996,7 +129854,7 @@ module.exports = SmootherStep; /***/ }), -/* 633 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130005,7 +129863,7 @@ module.exports = SmootherStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmoothStep = __webpack_require__(156); +var MathSmoothStep = __webpack_require__(155); /** * Smoothstep is a sigmoid-like interpolation and clamping function. @@ -130054,7 +129912,7 @@ module.exports = SmoothStep; /***/ }), -/* 634 */ +/* 630 */ /***/ (function(module, exports) { /** @@ -130117,7 +129975,7 @@ module.exports = Spread; /***/ }), -/* 635 */ +/* 631 */ /***/ (function(module, exports) { /** @@ -130153,7 +130011,7 @@ module.exports = ToggleVisible; /***/ }), -/* 636 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130202,7 +130060,7 @@ module.exports = WrapInRectangle; /***/ }), -/* 637 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130217,16 +130075,16 @@ module.exports = WrapInRectangle; module.exports = { - Animation: __webpack_require__(146), - AnimationFrame: __webpack_require__(268), - AnimationManager: __webpack_require__(286), - Events: __webpack_require__(108) + Animation: __webpack_require__(145), + AnimationFrame: __webpack_require__(266), + AnimationManager: __webpack_require__(284), + Events: __webpack_require__(107) }; /***/ }), -/* 638 */ +/* 634 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130241,15 +130099,15 @@ module.exports = { module.exports = { - BaseCache: __webpack_require__(287), - CacheManager: __webpack_require__(289), - Events: __webpack_require__(288) + BaseCache: __webpack_require__(285), + CacheManager: __webpack_require__(287), + Events: __webpack_require__(286) }; /***/ }), -/* 639 */ +/* 635 */ /***/ (function(module, exports) { /** @@ -130274,7 +130132,7 @@ module.exports = 'add'; /***/ }), -/* 640 */ +/* 636 */ /***/ (function(module, exports) { /** @@ -130299,7 +130157,7 @@ module.exports = 'remove'; /***/ }), -/* 641 */ +/* 637 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130318,14 +130176,14 @@ module.exports = 'remove'; module.exports = { - Controls: __webpack_require__(642), - Scene2D: __webpack_require__(645) + Controls: __webpack_require__(638), + Scene2D: __webpack_require__(641) }; /***/ }), -/* 642 */ +/* 638 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130340,14 +130198,14 @@ module.exports = { module.exports = { - FixedKeyControl: __webpack_require__(643), - SmoothedKeyControl: __webpack_require__(644) + FixedKeyControl: __webpack_require__(639), + SmoothedKeyControl: __webpack_require__(640) }; /***/ }), -/* 643 */ +/* 639 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130653,7 +130511,7 @@ module.exports = FixedKeyControl; /***/ }), -/* 644 */ +/* 640 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131136,7 +130994,7 @@ module.exports = SmoothedKeyControl; /***/ }), -/* 645 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131151,17 +131009,17 @@ module.exports = SmoothedKeyControl; module.exports = { - Camera: __webpack_require__(290), - BaseCamera: __webpack_require__(90), - CameraManager: __webpack_require__(698), - Effects: __webpack_require__(298), + Camera: __webpack_require__(288), + BaseCamera: __webpack_require__(89), + CameraManager: __webpack_require__(694), + Effects: __webpack_require__(296), Events: __webpack_require__(48) }; /***/ }), -/* 646 */ +/* 642 */ /***/ (function(module, exports) { /** @@ -131184,7 +131042,7 @@ module.exports = 'cameradestroy'; /***/ }), -/* 647 */ +/* 643 */ /***/ (function(module, exports) { /** @@ -131210,7 +131068,7 @@ module.exports = 'camerafadeincomplete'; /***/ }), -/* 648 */ +/* 644 */ /***/ (function(module, exports) { /** @@ -131240,7 +131098,7 @@ module.exports = 'camerafadeinstart'; /***/ }), -/* 649 */ +/* 645 */ /***/ (function(module, exports) { /** @@ -131266,7 +131124,7 @@ module.exports = 'camerafadeoutcomplete'; /***/ }), -/* 650 */ +/* 646 */ /***/ (function(module, exports) { /** @@ -131296,7 +131154,7 @@ module.exports = 'camerafadeoutstart'; /***/ }), -/* 651 */ +/* 647 */ /***/ (function(module, exports) { /** @@ -131320,7 +131178,7 @@ module.exports = 'cameraflashcomplete'; /***/ }), -/* 652 */ +/* 648 */ /***/ (function(module, exports) { /** @@ -131348,7 +131206,7 @@ module.exports = 'cameraflashstart'; /***/ }), -/* 653 */ +/* 649 */ /***/ (function(module, exports) { /** @@ -131372,7 +131230,7 @@ module.exports = 'camerapancomplete'; /***/ }), -/* 654 */ +/* 650 */ /***/ (function(module, exports) { /** @@ -131399,7 +131257,7 @@ module.exports = 'camerapanstart'; /***/ }), -/* 655 */ +/* 651 */ /***/ (function(module, exports) { /** @@ -131425,7 +131283,7 @@ module.exports = 'postrender'; /***/ }), -/* 656 */ +/* 652 */ /***/ (function(module, exports) { /** @@ -131451,7 +131309,7 @@ module.exports = 'prerender'; /***/ }), -/* 657 */ +/* 653 */ /***/ (function(module, exports) { /** @@ -131475,7 +131333,7 @@ module.exports = 'camerashakecomplete'; /***/ }), -/* 658 */ +/* 654 */ /***/ (function(module, exports) { /** @@ -131501,7 +131359,7 @@ module.exports = 'camerashakestart'; /***/ }), -/* 659 */ +/* 655 */ /***/ (function(module, exports) { /** @@ -131525,7 +131383,7 @@ module.exports = 'camerazoomcomplete'; /***/ }), -/* 660 */ +/* 656 */ /***/ (function(module, exports) { /** @@ -131551,7 +131409,7 @@ module.exports = 'camerazoomstart'; /***/ }), -/* 661 */ +/* 657 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131560,7 +131418,7 @@ module.exports = 'camerazoomstart'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); @@ -131939,7 +131797,7 @@ module.exports = Fade; /***/ }), -/* 662 */ +/* 658 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131948,7 +131806,7 @@ module.exports = Fade; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); @@ -132290,7 +132148,7 @@ module.exports = Flash; /***/ }), -/* 663 */ +/* 659 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132299,9 +132157,9 @@ module.exports = Flash; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(164); +var EaseMap = __webpack_require__(163); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -132615,7 +132473,7 @@ module.exports = Pan; /***/ }), -/* 664 */ +/* 660 */ /***/ (function(module, exports) { /** @@ -132646,7 +132504,7 @@ module.exports = In; /***/ }), -/* 665 */ +/* 661 */ /***/ (function(module, exports) { /** @@ -132677,7 +132535,7 @@ module.exports = Out; /***/ }), -/* 666 */ +/* 662 */ /***/ (function(module, exports) { /** @@ -132717,7 +132575,7 @@ module.exports = InOut; /***/ }), -/* 667 */ +/* 663 */ /***/ (function(module, exports) { /** @@ -132762,7 +132620,7 @@ module.exports = In; /***/ }), -/* 668 */ +/* 664 */ /***/ (function(module, exports) { /** @@ -132805,7 +132663,7 @@ module.exports = Out; /***/ }), -/* 669 */ +/* 665 */ /***/ (function(module, exports) { /** @@ -132869,7 +132727,7 @@ module.exports = InOut; /***/ }), -/* 670 */ +/* 666 */ /***/ (function(module, exports) { /** @@ -132897,7 +132755,7 @@ module.exports = In; /***/ }), -/* 671 */ +/* 667 */ /***/ (function(module, exports) { /** @@ -132925,7 +132783,7 @@ module.exports = Out; /***/ }), -/* 672 */ +/* 668 */ /***/ (function(module, exports) { /** @@ -132960,7 +132818,7 @@ module.exports = InOut; /***/ }), -/* 673 */ +/* 669 */ /***/ (function(module, exports) { /** @@ -132988,7 +132846,7 @@ module.exports = In; /***/ }), -/* 674 */ +/* 670 */ /***/ (function(module, exports) { /** @@ -133016,7 +132874,7 @@ module.exports = Out; /***/ }), -/* 675 */ +/* 671 */ /***/ (function(module, exports) { /** @@ -133051,7 +132909,7 @@ module.exports = InOut; /***/ }), -/* 676 */ +/* 672 */ /***/ (function(module, exports) { /** @@ -133106,7 +132964,7 @@ module.exports = In; /***/ }), -/* 677 */ +/* 673 */ /***/ (function(module, exports) { /** @@ -133161,7 +133019,7 @@ module.exports = Out; /***/ }), -/* 678 */ +/* 674 */ /***/ (function(module, exports) { /** @@ -133223,7 +133081,7 @@ module.exports = InOut; /***/ }), -/* 679 */ +/* 675 */ /***/ (function(module, exports) { /** @@ -133251,7 +133109,7 @@ module.exports = In; /***/ }), -/* 680 */ +/* 676 */ /***/ (function(module, exports) { /** @@ -133279,7 +133137,7 @@ module.exports = Out; /***/ }), -/* 681 */ +/* 677 */ /***/ (function(module, exports) { /** @@ -133314,7 +133172,7 @@ module.exports = InOut; /***/ }), -/* 682 */ +/* 678 */ /***/ (function(module, exports) { /** @@ -133342,7 +133200,7 @@ module.exports = Linear; /***/ }), -/* 683 */ +/* 679 */ /***/ (function(module, exports) { /** @@ -133370,7 +133228,7 @@ module.exports = In; /***/ }), -/* 684 */ +/* 680 */ /***/ (function(module, exports) { /** @@ -133398,7 +133256,7 @@ module.exports = Out; /***/ }), -/* 685 */ +/* 681 */ /***/ (function(module, exports) { /** @@ -133433,7 +133291,7 @@ module.exports = InOut; /***/ }), -/* 686 */ +/* 682 */ /***/ (function(module, exports) { /** @@ -133461,7 +133319,7 @@ module.exports = In; /***/ }), -/* 687 */ +/* 683 */ /***/ (function(module, exports) { /** @@ -133489,7 +133347,7 @@ module.exports = Out; /***/ }), -/* 688 */ +/* 684 */ /***/ (function(module, exports) { /** @@ -133524,7 +133382,7 @@ module.exports = InOut; /***/ }), -/* 689 */ +/* 685 */ /***/ (function(module, exports) { /** @@ -133552,7 +133410,7 @@ module.exports = In; /***/ }), -/* 690 */ +/* 686 */ /***/ (function(module, exports) { /** @@ -133580,7 +133438,7 @@ module.exports = Out; /***/ }), -/* 691 */ +/* 687 */ /***/ (function(module, exports) { /** @@ -133615,7 +133473,7 @@ module.exports = InOut; /***/ }), -/* 692 */ +/* 688 */ /***/ (function(module, exports) { /** @@ -133654,7 +133512,7 @@ module.exports = In; /***/ }), -/* 693 */ +/* 689 */ /***/ (function(module, exports) { /** @@ -133693,7 +133551,7 @@ module.exports = Out; /***/ }), -/* 694 */ +/* 690 */ /***/ (function(module, exports) { /** @@ -133732,7 +133590,7 @@ module.exports = InOut; /***/ }), -/* 695 */ +/* 691 */ /***/ (function(module, exports) { /** @@ -133774,7 +133632,7 @@ module.exports = Stepped; /***/ }), -/* 696 */ +/* 692 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133783,7 +133641,7 @@ module.exports = Stepped; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -134093,7 +133951,7 @@ module.exports = Shake; /***/ }), -/* 697 */ +/* 693 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134102,9 +133960,9 @@ module.exports = Shake; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(164); +var EaseMap = __webpack_require__(163); var Events = __webpack_require__(48); /** @@ -134386,7 +134244,7 @@ module.exports = Zoom; /***/ }), -/* 698 */ +/* 694 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134395,13 +134253,13 @@ module.exports = Zoom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Camera = __webpack_require__(290); +var Camera = __webpack_require__(288); var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); +var PluginCache = __webpack_require__(24); var RectangleContains = __webpack_require__(47); -var ScaleEvents = __webpack_require__(91); -var SceneEvents = __webpack_require__(21); +var ScaleEvents = __webpack_require__(90); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -135134,7 +134992,7 @@ module.exports = CameraManager; /***/ }), -/* 699 */ +/* 695 */ /***/ (function(module, exports) { /** @@ -135153,7 +135011,7 @@ module.exports = 'enterfullscreen'; /***/ }), -/* 700 */ +/* 696 */ /***/ (function(module, exports) { /** @@ -135172,7 +135030,7 @@ module.exports = 'fullscreenfailed'; /***/ }), -/* 701 */ +/* 697 */ /***/ (function(module, exports) { /** @@ -135191,7 +135049,7 @@ module.exports = 'fullscreenunsupported'; /***/ }), -/* 702 */ +/* 698 */ /***/ (function(module, exports) { /** @@ -135211,7 +135069,7 @@ module.exports = 'leavefullscreen'; /***/ }), -/* 703 */ +/* 699 */ /***/ (function(module, exports) { /** @@ -135232,7 +135090,7 @@ module.exports = 'orientationchange'; /***/ }), -/* 704 */ +/* 700 */ /***/ (function(module, exports) { /** @@ -135263,7 +135121,7 @@ module.exports = 'resize'; /***/ }), -/* 705 */ +/* 701 */ /***/ (function(module, exports) { /** @@ -135288,7 +135146,7 @@ module.exports = 'boot'; /***/ }), -/* 706 */ +/* 702 */ /***/ (function(module, exports) { /** @@ -135317,7 +135175,7 @@ module.exports = 'create'; /***/ }), -/* 707 */ +/* 703 */ /***/ (function(module, exports) { /** @@ -135344,7 +135202,7 @@ module.exports = 'destroy'; /***/ }), -/* 708 */ +/* 704 */ /***/ (function(module, exports) { /** @@ -135371,7 +135229,7 @@ module.exports = 'pause'; /***/ }), -/* 709 */ +/* 705 */ /***/ (function(module, exports) { /** @@ -135408,7 +135266,7 @@ module.exports = 'postupdate'; /***/ }), -/* 710 */ +/* 706 */ /***/ (function(module, exports) { /** @@ -135445,7 +135303,7 @@ module.exports = 'preupdate'; /***/ }), -/* 711 */ +/* 707 */ /***/ (function(module, exports) { /** @@ -135473,7 +135331,7 @@ module.exports = 'ready'; /***/ }), -/* 712 */ +/* 708 */ /***/ (function(module, exports) { /** @@ -135509,7 +135367,7 @@ module.exports = 'render'; /***/ }), -/* 713 */ +/* 709 */ /***/ (function(module, exports) { /** @@ -135536,7 +135394,7 @@ module.exports = 'resume'; /***/ }), -/* 714 */ +/* 710 */ /***/ (function(module, exports) { /** @@ -135566,7 +135424,7 @@ module.exports = 'shutdown'; /***/ }), -/* 715 */ +/* 711 */ /***/ (function(module, exports) { /** @@ -135593,7 +135451,7 @@ module.exports = 'sleep'; /***/ }), -/* 716 */ +/* 712 */ /***/ (function(module, exports) { /** @@ -135618,7 +135476,7 @@ module.exports = 'start'; /***/ }), -/* 717 */ +/* 713 */ /***/ (function(module, exports) { /** @@ -135654,7 +135512,7 @@ module.exports = 'transitioncomplete'; /***/ }), -/* 718 */ +/* 714 */ /***/ (function(module, exports) { /** @@ -135691,7 +135549,7 @@ module.exports = 'transitioninit'; /***/ }), -/* 719 */ +/* 715 */ /***/ (function(module, exports) { /** @@ -135725,7 +135583,7 @@ module.exports = 'transitionout'; /***/ }), -/* 720 */ +/* 716 */ /***/ (function(module, exports) { /** @@ -135765,7 +135623,7 @@ module.exports = 'transitionstart'; /***/ }), -/* 721 */ +/* 717 */ /***/ (function(module, exports) { /** @@ -135800,7 +135658,7 @@ module.exports = 'transitionwake'; /***/ }), -/* 722 */ +/* 718 */ /***/ (function(module, exports) { /** @@ -135837,7 +135695,7 @@ module.exports = 'update'; /***/ }), -/* 723 */ +/* 719 */ /***/ (function(module, exports) { /** @@ -135864,7 +135722,7 @@ module.exports = 'wake'; /***/ }), -/* 724 */ +/* 720 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135879,18 +135737,18 @@ module.exports = 'wake'; module.exports = { - Config: __webpack_require__(311), - CreateRenderer: __webpack_require__(335), - DebugHeader: __webpack_require__(339), - Events: __webpack_require__(18), - TimeStep: __webpack_require__(340), - VisibilityHandler: __webpack_require__(342) + Config: __webpack_require__(309), + CreateRenderer: __webpack_require__(333), + DebugHeader: __webpack_require__(337), + Events: __webpack_require__(19), + TimeStep: __webpack_require__(338), + VisibilityHandler: __webpack_require__(340) }; /***/ }), -/* 725 */ +/* 721 */ /***/ (function(module, exports) { // shim for using process in browser @@ -136080,7 +135938,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 726 */ +/* 722 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136089,7 +135947,7 @@ process.umask = function() { return 0; }; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(114); +var Browser = __webpack_require__(113); /** * Determines the input support of the browser running this Phaser Game instance. @@ -136155,7 +136013,7 @@ module.exports = init(); /***/ }), -/* 727 */ +/* 723 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136164,7 +136022,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(114); +var Browser = __webpack_require__(113); /** * Determines the audio playback capabilities of the device running this Phaser Game instance. @@ -136280,7 +136138,7 @@ module.exports = init(); /***/ }), -/* 728 */ +/* 724 */ /***/ (function(module, exports) { /** @@ -136367,7 +136225,7 @@ module.exports = init(); /***/ }), -/* 729 */ +/* 725 */ /***/ (function(module, exports) { /** @@ -136471,7 +136329,7 @@ module.exports = init(); /***/ }), -/* 730 */ +/* 726 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136486,23 +136344,23 @@ module.exports = init(); module.exports = { - Between: __webpack_require__(314), - BetweenPoints: __webpack_require__(731), - BetweenPointsY: __webpack_require__(732), - BetweenY: __webpack_require__(733), - CounterClockwise: __webpack_require__(734), - Normalize: __webpack_require__(315), - Reverse: __webpack_require__(735), - RotateTo: __webpack_require__(736), - ShortestBetween: __webpack_require__(737), - Wrap: __webpack_require__(232), - WrapDegrees: __webpack_require__(233) + Between: __webpack_require__(312), + BetweenPoints: __webpack_require__(727), + BetweenPointsY: __webpack_require__(728), + BetweenY: __webpack_require__(729), + CounterClockwise: __webpack_require__(730), + Normalize: __webpack_require__(313), + Reverse: __webpack_require__(731), + RotateTo: __webpack_require__(732), + ShortestBetween: __webpack_require__(733), + Wrap: __webpack_require__(230), + WrapDegrees: __webpack_require__(231) }; /***/ }), -/* 731 */ +/* 727 */ /***/ (function(module, exports) { /** @@ -136533,7 +136391,7 @@ module.exports = BetweenPoints; /***/ }), -/* 732 */ +/* 728 */ /***/ (function(module, exports) { /** @@ -136565,7 +136423,7 @@ module.exports = BetweenPointsY; /***/ }), -/* 733 */ +/* 729 */ /***/ (function(module, exports) { /** @@ -136599,7 +136457,7 @@ module.exports = BetweenY; /***/ }), -/* 734 */ +/* 730 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136608,7 +136466,7 @@ module.exports = BetweenY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(15); +var CONST = __webpack_require__(16); /** * Takes an angle in Phasers default clockwise format and converts it so that @@ -136644,7 +136502,7 @@ module.exports = CounterClockwise; /***/ }), -/* 735 */ +/* 731 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136653,7 +136511,7 @@ module.exports = CounterClockwise; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Normalize = __webpack_require__(315); +var Normalize = __webpack_require__(313); /** * Reverse the given angle. @@ -136674,7 +136532,7 @@ module.exports = Reverse; /***/ }), -/* 736 */ +/* 732 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136683,7 +136541,7 @@ module.exports = Reverse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * Rotates `currentAngle` towards `targetAngle`, taking the shortest rotation distance. The `lerp` argument is the amount to rotate by in this call. @@ -136741,7 +136599,7 @@ module.exports = RotateTo; /***/ }), -/* 737 */ +/* 733 */ /***/ (function(module, exports) { /** @@ -136790,7 +136648,7 @@ module.exports = ShortestBetween; /***/ }), -/* 738 */ +/* 734 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136806,18 +136664,18 @@ module.exports = ShortestBetween; module.exports = { Between: __webpack_require__(53), - BetweenPoints: __webpack_require__(316), - BetweenPointsSquared: __webpack_require__(739), - Chebyshev: __webpack_require__(740), - Power: __webpack_require__(741), - Snake: __webpack_require__(742), - Squared: __webpack_require__(317) + BetweenPoints: __webpack_require__(314), + BetweenPointsSquared: __webpack_require__(735), + Chebyshev: __webpack_require__(736), + Power: __webpack_require__(737), + Snake: __webpack_require__(738), + Squared: __webpack_require__(315) }; /***/ }), -/* 739 */ +/* 735 */ /***/ (function(module, exports) { /** @@ -136849,7 +136707,7 @@ module.exports = DistanceBetweenPointsSquared; /***/ }), -/* 740 */ +/* 736 */ /***/ (function(module, exports) { /** @@ -136883,7 +136741,7 @@ module.exports = ChebyshevDistance; /***/ }), -/* 741 */ +/* 737 */ /***/ (function(module, exports) { /** @@ -136917,7 +136775,7 @@ module.exports = DistancePower; /***/ }), -/* 742 */ +/* 738 */ /***/ (function(module, exports) { /** @@ -136951,7 +136809,7 @@ module.exports = SnakeDistance; /***/ }), -/* 743 */ +/* 739 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136966,24 +136824,24 @@ module.exports = SnakeDistance; module.exports = { - Back: __webpack_require__(299), - Bounce: __webpack_require__(300), - Circular: __webpack_require__(301), - Cubic: __webpack_require__(302), - Elastic: __webpack_require__(303), - Expo: __webpack_require__(304), - Linear: __webpack_require__(305), - Quadratic: __webpack_require__(306), - Quartic: __webpack_require__(307), - Quintic: __webpack_require__(308), - Sine: __webpack_require__(309), - Stepped: __webpack_require__(310) + Back: __webpack_require__(297), + Bounce: __webpack_require__(298), + Circular: __webpack_require__(299), + Cubic: __webpack_require__(300), + Elastic: __webpack_require__(301), + Expo: __webpack_require__(302), + Linear: __webpack_require__(303), + Quadratic: __webpack_require__(304), + Quartic: __webpack_require__(305), + Quintic: __webpack_require__(306), + Sine: __webpack_require__(307), + Stepped: __webpack_require__(308) }; /***/ }), -/* 744 */ +/* 740 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136998,17 +136856,17 @@ module.exports = { module.exports = { - Ceil: __webpack_require__(745), - Equal: __webpack_require__(141), - Floor: __webpack_require__(746), - GreaterThan: __webpack_require__(318), - LessThan: __webpack_require__(319) + Ceil: __webpack_require__(741), + Equal: __webpack_require__(140), + Floor: __webpack_require__(742), + GreaterThan: __webpack_require__(316), + LessThan: __webpack_require__(317) }; /***/ }), -/* 745 */ +/* 741 */ /***/ (function(module, exports) { /** @@ -137039,7 +136897,7 @@ module.exports = Ceil; /***/ }), -/* 746 */ +/* 742 */ /***/ (function(module, exports) { /** @@ -137070,7 +136928,7 @@ module.exports = Floor; /***/ }), -/* 747 */ +/* 743 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137085,19 +136943,19 @@ module.exports = Floor; module.exports = { - Bezier: __webpack_require__(748), - CatmullRom: __webpack_require__(749), - CubicBezier: __webpack_require__(322), - Linear: __webpack_require__(750), - QuadraticBezier: __webpack_require__(323), - SmoothStep: __webpack_require__(324), - SmootherStep: __webpack_require__(751) + Bezier: __webpack_require__(744), + CatmullRom: __webpack_require__(745), + CubicBezier: __webpack_require__(320), + Linear: __webpack_require__(746), + QuadraticBezier: __webpack_require__(321), + SmoothStep: __webpack_require__(322), + SmootherStep: __webpack_require__(747) }; /***/ }), -/* 748 */ +/* 744 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137106,7 +136964,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bernstein = __webpack_require__(320); +var Bernstein = __webpack_require__(318); /** * A bezier interpolation method. @@ -137136,7 +136994,7 @@ module.exports = BezierInterpolation; /***/ }), -/* 749 */ +/* 745 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137145,7 +137003,7 @@ module.exports = BezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CatmullRom = __webpack_require__(167); +var CatmullRom = __webpack_require__(166); /** * A Catmull-Rom interpolation method. @@ -137193,7 +137051,7 @@ module.exports = CatmullRomInterpolation; /***/ }), -/* 750 */ +/* 746 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137202,7 +137060,7 @@ module.exports = CatmullRomInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(112); +var Linear = __webpack_require__(111); /** * A linear interpolation method. @@ -137240,7 +137098,7 @@ module.exports = LinearInterpolation; /***/ }), -/* 751 */ +/* 747 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137249,7 +137107,7 @@ module.exports = LinearInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmootherStep = __webpack_require__(155); +var SmootherStep = __webpack_require__(154); /** * A Smoother Step interpolation method. @@ -137273,7 +137131,7 @@ module.exports = SmootherStepInterpolation; /***/ }), -/* 752 */ +/* 748 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137288,15 +137146,15 @@ module.exports = SmootherStepInterpolation; module.exports = { - GetNext: __webpack_require__(325), - IsSize: __webpack_require__(115), - IsValue: __webpack_require__(753) + GetNext: __webpack_require__(323), + IsSize: __webpack_require__(114), + IsValue: __webpack_require__(749) }; /***/ }), -/* 753 */ +/* 749 */ /***/ (function(module, exports) { /** @@ -137324,7 +137182,7 @@ module.exports = IsValuePowerOfTwo; /***/ }), -/* 754 */ +/* 750 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137339,15 +137197,15 @@ module.exports = IsValuePowerOfTwo; module.exports = { - Ceil: __webpack_require__(326), - Floor: __webpack_require__(92), - To: __webpack_require__(755) + Ceil: __webpack_require__(324), + Floor: __webpack_require__(91), + To: __webpack_require__(751) }; /***/ }), -/* 755 */ +/* 751 */ /***/ (function(module, exports) { /** @@ -137390,7 +137248,7 @@ module.exports = SnapTo; /***/ }), -/* 756 */ +/* 752 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137900,7 +137758,7 @@ module.exports = RandomDataGenerator; /***/ }), -/* 757 */ +/* 753 */ /***/ (function(module, exports) { /** @@ -137935,7 +137793,7 @@ module.exports = Average; /***/ }), -/* 758 */ +/* 754 */ /***/ (function(module, exports) { /** @@ -137972,7 +137830,7 @@ module.exports = CeilTo; /***/ }), -/* 759 */ +/* 755 */ /***/ (function(module, exports) { /** @@ -138001,7 +137859,7 @@ module.exports = Difference; /***/ }), -/* 760 */ +/* 756 */ /***/ (function(module, exports) { /** @@ -138038,7 +137896,7 @@ module.exports = FloorTo; /***/ }), -/* 761 */ +/* 757 */ /***/ (function(module, exports) { /** @@ -138071,7 +137929,7 @@ module.exports = GetSpeed; /***/ }), -/* 762 */ +/* 758 */ /***/ (function(module, exports) { /** @@ -138102,7 +137960,7 @@ module.exports = IsEven; /***/ }), -/* 763 */ +/* 759 */ /***/ (function(module, exports) { /** @@ -138131,7 +137989,7 @@ module.exports = IsEvenStrict; /***/ }), -/* 764 */ +/* 760 */ /***/ (function(module, exports) { /** @@ -138161,7 +138019,7 @@ module.exports = MaxAdd; /***/ }), -/* 765 */ +/* 761 */ /***/ (function(module, exports) { /** @@ -138191,7 +138049,7 @@ module.exports = MinSub; /***/ }), -/* 766 */ +/* 762 */ /***/ (function(module, exports) { /** @@ -138250,7 +138108,7 @@ module.exports = Percent; /***/ }), -/* 767 */ +/* 763 */ /***/ (function(module, exports) { /** @@ -138290,7 +138148,7 @@ module.exports = RandomXY; /***/ }), -/* 768 */ +/* 764 */ /***/ (function(module, exports) { /** @@ -138329,7 +138187,7 @@ module.exports = RandomXYZ; /***/ }), -/* 769 */ +/* 765 */ /***/ (function(module, exports) { /** @@ -138366,7 +138224,7 @@ module.exports = RandomXYZW; /***/ }), -/* 770 */ +/* 766 */ /***/ (function(module, exports) { /** @@ -138418,7 +138276,7 @@ module.exports = RoundTo; /***/ }), -/* 771 */ +/* 767 */ /***/ (function(module, exports) { /** @@ -138471,7 +138329,7 @@ module.exports = SinCosTableGenerator; /***/ }), -/* 772 */ +/* 768 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138529,7 +138387,7 @@ module.exports = ToXY; /***/ }), -/* 773 */ +/* 769 */ /***/ (function(module, exports) { /** @@ -138559,7 +138417,7 @@ module.exports = Within; /***/ }), -/* 774 */ +/* 770 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138568,9 +138426,9 @@ module.exports = Within; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Vector3 = __webpack_require__(170); -var Matrix4 = __webpack_require__(333); -var Quaternion = __webpack_require__(334); +var Vector3 = __webpack_require__(169); +var Matrix4 = __webpack_require__(331); +var Quaternion = __webpack_require__(332); var tmpMat4 = new Matrix4(); var tmpQuat = new Quaternion(); @@ -138607,7 +138465,7 @@ module.exports = RotateVec3; /***/ }), -/* 775 */ +/* 771 */ /***/ (function(module, exports) { /** @@ -138633,7 +138491,7 @@ module.exports = 'addtexture'; /***/ }), -/* 776 */ +/* 772 */ /***/ (function(module, exports) { /** @@ -138659,7 +138517,7 @@ module.exports = 'onerror'; /***/ }), -/* 777 */ +/* 773 */ /***/ (function(module, exports) { /** @@ -138688,7 +138546,7 @@ module.exports = 'onload'; /***/ }), -/* 778 */ +/* 774 */ /***/ (function(module, exports) { /** @@ -138711,7 +138569,7 @@ module.exports = 'ready'; /***/ }), -/* 779 */ +/* 775 */ /***/ (function(module, exports) { /** @@ -138739,7 +138597,7 @@ module.exports = 'removetexture'; /***/ }), -/* 780 */ +/* 776 */ /***/ (function(module, exports) { module.exports = [ @@ -138775,7 +138633,7 @@ module.exports = [ /***/ }), -/* 781 */ +/* 777 */ /***/ (function(module, exports) { module.exports = [ @@ -138794,7 +138652,7 @@ module.exports = [ /***/ }), -/* 782 */ +/* 778 */ /***/ (function(module, exports) { module.exports = [ @@ -138853,7 +138711,7 @@ module.exports = [ /***/ }), -/* 783 */ +/* 779 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138868,14 +138726,14 @@ module.exports = [ module.exports = { - GenerateTexture: __webpack_require__(343), - Palettes: __webpack_require__(784) + GenerateTexture: __webpack_require__(341), + Palettes: __webpack_require__(780) }; /***/ }), -/* 784 */ +/* 780 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138890,17 +138748,17 @@ module.exports = { module.exports = { - ARNE16: __webpack_require__(344), - C64: __webpack_require__(785), - CGA: __webpack_require__(786), - JMP: __webpack_require__(787), - MSX: __webpack_require__(788) + ARNE16: __webpack_require__(342), + C64: __webpack_require__(781), + CGA: __webpack_require__(782), + JMP: __webpack_require__(783), + MSX: __webpack_require__(784) }; /***/ }), -/* 785 */ +/* 781 */ /***/ (function(module, exports) { /** @@ -138938,7 +138796,7 @@ module.exports = { /***/ }), -/* 786 */ +/* 782 */ /***/ (function(module, exports) { /** @@ -138976,7 +138834,7 @@ module.exports = { /***/ }), -/* 787 */ +/* 783 */ /***/ (function(module, exports) { /** @@ -139014,7 +138872,7 @@ module.exports = { /***/ }), -/* 788 */ +/* 784 */ /***/ (function(module, exports) { /** @@ -139052,7 +138910,7 @@ module.exports = { /***/ }), -/* 789 */ +/* 785 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139066,19 +138924,19 @@ module.exports = { */ module.exports = { - Path: __webpack_require__(790), + Path: __webpack_require__(786), - CubicBezier: __webpack_require__(345), - Curve: __webpack_require__(80), - Ellipse: __webpack_require__(346), - Line: __webpack_require__(347), - QuadraticBezier: __webpack_require__(348), - Spline: __webpack_require__(349) + CubicBezier: __webpack_require__(343), + Curve: __webpack_require__(79), + Ellipse: __webpack_require__(344), + Line: __webpack_require__(345), + QuadraticBezier: __webpack_require__(346), + Spline: __webpack_require__(347) }; /***/ }), -/* 790 */ +/* 786 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139090,16 +138948,16 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezierCurve = __webpack_require__(345); -var EllipseCurve = __webpack_require__(346); +var CubicBezierCurve = __webpack_require__(343); +var EllipseCurve = __webpack_require__(344); var GameObjectFactory = __webpack_require__(5); -var LineCurve = __webpack_require__(347); -var MovePathTo = __webpack_require__(791); -var QuadraticBezierCurve = __webpack_require__(348); -var Rectangle = __webpack_require__(12); -var SplineCurve = __webpack_require__(349); +var LineCurve = __webpack_require__(345); +var MovePathTo = __webpack_require__(787); +var QuadraticBezierCurve = __webpack_require__(346); +var Rectangle = __webpack_require__(13); +var SplineCurve = __webpack_require__(347); var Vector2 = __webpack_require__(3); -var MATH_CONST = __webpack_require__(15); +var MATH_CONST = __webpack_require__(16); /** * @classdesc @@ -139927,7 +139785,7 @@ module.exports = Path; /***/ }), -/* 791 */ +/* 787 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140067,7 +139925,7 @@ module.exports = MoveTo; /***/ }), -/* 792 */ +/* 788 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140082,15 +139940,15 @@ module.exports = MoveTo; module.exports = { - DataManager: __webpack_require__(110), - DataManagerPlugin: __webpack_require__(793), - Events: __webpack_require__(281) + DataManager: __webpack_require__(109), + DataManagerPlugin: __webpack_require__(789), + Events: __webpack_require__(279) }; /***/ }), -/* 793 */ +/* 789 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140100,9 +139958,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var DataManager = __webpack_require__(110); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var DataManager = __webpack_require__(109); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -140217,7 +140075,7 @@ module.exports = DataManagerPlugin; /***/ }), -/* 794 */ +/* 790 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140232,18 +140090,18 @@ module.exports = DataManagerPlugin; module.exports = { - Align: __webpack_require__(795), - BaseShader: __webpack_require__(350), - Bounds: __webpack_require__(798), - Canvas: __webpack_require__(801), - Color: __webpack_require__(351), - Masks: __webpack_require__(810) + Align: __webpack_require__(791), + BaseShader: __webpack_require__(348), + Bounds: __webpack_require__(794), + Canvas: __webpack_require__(797), + Color: __webpack_require__(349), + Masks: __webpack_require__(806) }; /***/ }), -/* 795 */ +/* 791 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140252,8 +140110,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(103); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(102); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Display.Align @@ -140261,8 +140119,8 @@ var Extend = __webpack_require__(17); var Align = { - In: __webpack_require__(796), - To: __webpack_require__(797) + In: __webpack_require__(792), + To: __webpack_require__(793) }; @@ -140273,7 +140131,7 @@ module.exports = Align; /***/ }), -/* 796 */ +/* 792 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140288,22 +140146,22 @@ module.exports = Align; module.exports = { - BottomCenter: __webpack_require__(253), - BottomLeft: __webpack_require__(254), - BottomRight: __webpack_require__(255), - Center: __webpack_require__(256), - LeftCenter: __webpack_require__(258), - QuickSet: __webpack_require__(252), - RightCenter: __webpack_require__(259), - TopCenter: __webpack_require__(260), - TopLeft: __webpack_require__(261), - TopRight: __webpack_require__(262) + BottomCenter: __webpack_require__(251), + BottomLeft: __webpack_require__(252), + BottomRight: __webpack_require__(253), + Center: __webpack_require__(254), + LeftCenter: __webpack_require__(256), + QuickSet: __webpack_require__(250), + RightCenter: __webpack_require__(257), + TopCenter: __webpack_require__(258), + TopLeft: __webpack_require__(259), + TopRight: __webpack_require__(260) }; /***/ }), -/* 797 */ +/* 793 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140318,25 +140176,25 @@ module.exports = { module.exports = { - BottomCenter: __webpack_require__(240), - BottomLeft: __webpack_require__(241), - BottomRight: __webpack_require__(242), - LeftBottom: __webpack_require__(243), - LeftCenter: __webpack_require__(244), - LeftTop: __webpack_require__(245), - QuickSet: __webpack_require__(239), - RightBottom: __webpack_require__(246), - RightCenter: __webpack_require__(247), - RightTop: __webpack_require__(248), - TopCenter: __webpack_require__(249), - TopLeft: __webpack_require__(250), - TopRight: __webpack_require__(251) + BottomCenter: __webpack_require__(238), + BottomLeft: __webpack_require__(239), + BottomRight: __webpack_require__(240), + LeftBottom: __webpack_require__(241), + LeftCenter: __webpack_require__(242), + LeftTop: __webpack_require__(243), + QuickSet: __webpack_require__(237), + RightBottom: __webpack_require__(244), + RightCenter: __webpack_require__(245), + RightTop: __webpack_require__(246), + TopCenter: __webpack_require__(247), + TopLeft: __webpack_require__(248), + TopRight: __webpack_require__(249) }; /***/ }), -/* 798 */ +/* 794 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140351,18 +140209,18 @@ module.exports = { module.exports = { - CenterOn: __webpack_require__(257), + CenterOn: __webpack_require__(255), GetBottom: __webpack_require__(38), - GetCenterX: __webpack_require__(75), - GetCenterY: __webpack_require__(77), + GetCenterX: __webpack_require__(74), + GetCenterY: __webpack_require__(76), GetLeft: __webpack_require__(40), - GetOffsetX: __webpack_require__(799), - GetOffsetY: __webpack_require__(800), + GetOffsetX: __webpack_require__(795), + GetOffsetY: __webpack_require__(796), GetRight: __webpack_require__(42), GetTop: __webpack_require__(45), SetBottom: __webpack_require__(44), - SetCenterX: __webpack_require__(76), - SetCenterY: __webpack_require__(78), + SetCenterX: __webpack_require__(75), + SetCenterY: __webpack_require__(77), SetLeft: __webpack_require__(41), SetRight: __webpack_require__(43), SetTop: __webpack_require__(39) @@ -140371,7 +140229,7 @@ module.exports = { /***/ }), -/* 799 */ +/* 795 */ /***/ (function(module, exports) { /** @@ -140401,7 +140259,7 @@ module.exports = GetOffsetX; /***/ }), -/* 800 */ +/* 796 */ /***/ (function(module, exports) { /** @@ -140431,7 +140289,7 @@ module.exports = GetOffsetY; /***/ }), -/* 801 */ +/* 797 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140446,17 +140304,17 @@ module.exports = GetOffsetY; module.exports = { - CanvasInterpolation: __webpack_require__(336), - CanvasPool: __webpack_require__(26), - Smoothing: __webpack_require__(162), - TouchAction: __webpack_require__(802), - UserSelect: __webpack_require__(803) + CanvasInterpolation: __webpack_require__(334), + CanvasPool: __webpack_require__(27), + Smoothing: __webpack_require__(161), + TouchAction: __webpack_require__(798), + UserSelect: __webpack_require__(799) }; /***/ }), -/* 802 */ +/* 798 */ /***/ (function(module, exports) { /** @@ -140491,7 +140349,7 @@ module.exports = TouchAction; /***/ }), -/* 803 */ +/* 799 */ /***/ (function(module, exports) { /** @@ -140538,7 +140396,7 @@ module.exports = UserSelect; /***/ }), -/* 804 */ +/* 800 */ /***/ (function(module, exports) { /** @@ -140578,7 +140436,7 @@ module.exports = ColorToRGBA; /***/ }), -/* 805 */ +/* 801 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140588,7 +140446,7 @@ module.exports = ColorToRGBA; */ var Color = __webpack_require__(32); -var HueToComponent = __webpack_require__(353); +var HueToComponent = __webpack_require__(351); /** * Converts HSL (hue, saturation and lightness) values to a Phaser Color object. @@ -140628,7 +140486,7 @@ module.exports = HSLToColor; /***/ }), -/* 806 */ +/* 802 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140637,7 +140495,7 @@ module.exports = HSLToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HSVToRGB = __webpack_require__(161); +var HSVToRGB = __webpack_require__(160); /** * Get HSV color wheel values in an array which will be 360 elements in size. @@ -140669,7 +140527,7 @@ module.exports = HSVColorWheel; /***/ }), -/* 807 */ +/* 803 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140678,7 +140536,7 @@ module.exports = HSVColorWheel; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(112); +var Linear = __webpack_require__(111); /** * @namespace Phaser.Display.Color.Interpolate @@ -140777,7 +140635,7 @@ module.exports = { /***/ }), -/* 808 */ +/* 804 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140786,7 +140644,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(168); +var Between = __webpack_require__(167); var Color = __webpack_require__(32); /** @@ -140813,7 +140671,7 @@ module.exports = RandomRGB; /***/ }), -/* 809 */ +/* 805 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140822,7 +140680,7 @@ module.exports = RandomRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ComponentToHex = __webpack_require__(352); +var ComponentToHex = __webpack_require__(350); /** * Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`. @@ -140857,7 +140715,7 @@ module.exports = RGBToString; /***/ }), -/* 810 */ +/* 806 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140872,14 +140730,14 @@ module.exports = RGBToString; module.exports = { - BitmapMask: __webpack_require__(275), - GeometryMask: __webpack_require__(276) + BitmapMask: __webpack_require__(273), + GeometryMask: __webpack_require__(274) }; /***/ }), -/* 811 */ +/* 807 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140894,13 +140752,13 @@ module.exports = { var Dom = { - AddToDOM: __webpack_require__(117), - DOMContentLoaded: __webpack_require__(354), - GetScreenOrientation: __webpack_require__(355), - GetTarget: __webpack_require__(360), - ParseXML: __webpack_require__(361), - RemoveFromDOM: __webpack_require__(174), - RequestAnimationFrame: __webpack_require__(341) + AddToDOM: __webpack_require__(116), + DOMContentLoaded: __webpack_require__(352), + GetScreenOrientation: __webpack_require__(353), + GetTarget: __webpack_require__(358), + ParseXML: __webpack_require__(359), + RemoveFromDOM: __webpack_require__(173), + RequestAnimationFrame: __webpack_require__(339) }; @@ -140908,7 +140766,7 @@ module.exports = Dom; /***/ }), -/* 812 */ +/* 808 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140921,11 +140779,11 @@ module.exports = Dom; * @namespace Phaser.Events */ -module.exports = { EventEmitter: __webpack_require__(813) }; +module.exports = { EventEmitter: __webpack_require__(809) }; /***/ }), -/* 813 */ +/* 809 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140935,8 +140793,8 @@ module.exports = { EventEmitter: __webpack_require__(813) }; */ var Class = __webpack_require__(0); -var EE = __webpack_require__(10); -var PluginCache = __webpack_require__(23); +var EE = __webpack_require__(11); +var PluginCache = __webpack_require__(24); /** * @classdesc @@ -141109,7 +140967,7 @@ module.exports = EventEmitter; /***/ }), -/* 814 */ +/* 810 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141118,33 +140976,33 @@ module.exports = EventEmitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); -var AnimationManager = __webpack_require__(286); -var CacheManager = __webpack_require__(289); -var CanvasPool = __webpack_require__(26); +var AddToDOM = __webpack_require__(116); +var AnimationManager = __webpack_require__(284); +var CacheManager = __webpack_require__(287); +var CanvasPool = __webpack_require__(27); var Class = __webpack_require__(0); -var Config = __webpack_require__(311); -var CreateDOMContainer = __webpack_require__(815); -var CreateRenderer = __webpack_require__(335); -var DataManager = __webpack_require__(110); -var DebugHeader = __webpack_require__(339); -var Device = __webpack_require__(312); -var DOMContentLoaded = __webpack_require__(354); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(18); -var InputManager = __webpack_require__(362); -var PluginCache = __webpack_require__(23); -var PluginManager = __webpack_require__(367); -var ScaleManager = __webpack_require__(368); -var SceneManager = __webpack_require__(370); -var TextureEvents = __webpack_require__(116); -var TextureManager = __webpack_require__(373); -var TimeStep = __webpack_require__(340); -var VisibilityHandler = __webpack_require__(342); +var Config = __webpack_require__(309); +var CreateDOMContainer = __webpack_require__(811); +var CreateRenderer = __webpack_require__(333); +var DataManager = __webpack_require__(109); +var DebugHeader = __webpack_require__(337); +var Device = __webpack_require__(310); +var DOMContentLoaded = __webpack_require__(352); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(19); +var InputManager = __webpack_require__(360); +var PluginCache = __webpack_require__(24); +var PluginManager = __webpack_require__(365); +var ScaleManager = __webpack_require__(366); +var SceneManager = __webpack_require__(368); +var TextureEvents = __webpack_require__(115); +var TextureManager = __webpack_require__(371); +var TimeStep = __webpack_require__(338); +var VisibilityHandler = __webpack_require__(340); if (true) { - var SoundManagerCreator = __webpack_require__(377); + var SoundManagerCreator = __webpack_require__(375); } if (false) @@ -141812,7 +141670,7 @@ module.exports = Game; /***/ }), -/* 815 */ +/* 811 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141821,7 +141679,7 @@ module.exports = Game; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(117); +var AddToDOM = __webpack_require__(116); var CreateDOMContainer = function (game) { @@ -141856,7 +141714,7 @@ module.exports = CreateDOMContainer; /***/ }), -/* 816 */ +/* 812 */ /***/ (function(module, exports) { /** @@ -141877,7 +141735,7 @@ module.exports = 'boot'; /***/ }), -/* 817 */ +/* 813 */ /***/ (function(module, exports) { /** @@ -141898,7 +141756,7 @@ module.exports = 'destroy'; /***/ }), -/* 818 */ +/* 814 */ /***/ (function(module, exports) { /** @@ -141926,7 +141784,7 @@ module.exports = 'dragend'; /***/ }), -/* 819 */ +/* 815 */ /***/ (function(module, exports) { /** @@ -141957,7 +141815,7 @@ module.exports = 'dragenter'; /***/ }), -/* 820 */ +/* 816 */ /***/ (function(module, exports) { /** @@ -141989,7 +141847,7 @@ module.exports = 'drag'; /***/ }), -/* 821 */ +/* 817 */ /***/ (function(module, exports) { /** @@ -142020,7 +141878,7 @@ module.exports = 'dragleave'; /***/ }), -/* 822 */ +/* 818 */ /***/ (function(module, exports) { /** @@ -142054,7 +141912,7 @@ module.exports = 'dragover'; /***/ }), -/* 823 */ +/* 819 */ /***/ (function(module, exports) { /** @@ -142084,7 +141942,7 @@ module.exports = 'dragstart'; /***/ }), -/* 824 */ +/* 820 */ /***/ (function(module, exports) { /** @@ -142113,7 +141971,7 @@ module.exports = 'drop'; /***/ }), -/* 825 */ +/* 821 */ /***/ (function(module, exports) { /** @@ -142140,7 +141998,7 @@ module.exports = 'gameout'; /***/ }), -/* 826 */ +/* 822 */ /***/ (function(module, exports) { /** @@ -142167,7 +142025,7 @@ module.exports = 'gameover'; /***/ }), -/* 827 */ +/* 823 */ /***/ (function(module, exports) { /** @@ -142208,7 +142066,7 @@ module.exports = 'gameobjectdown'; /***/ }), -/* 828 */ +/* 824 */ /***/ (function(module, exports) { /** @@ -142239,7 +142097,7 @@ module.exports = 'dragend'; /***/ }), -/* 829 */ +/* 825 */ /***/ (function(module, exports) { /** @@ -142269,7 +142127,7 @@ module.exports = 'dragenter'; /***/ }), -/* 830 */ +/* 826 */ /***/ (function(module, exports) { /** @@ -142300,7 +142158,7 @@ module.exports = 'drag'; /***/ }), -/* 831 */ +/* 827 */ /***/ (function(module, exports) { /** @@ -142330,7 +142188,7 @@ module.exports = 'dragleave'; /***/ }), -/* 832 */ +/* 828 */ /***/ (function(module, exports) { /** @@ -142363,7 +142221,7 @@ module.exports = 'dragover'; /***/ }), -/* 833 */ +/* 829 */ /***/ (function(module, exports) { /** @@ -142397,7 +142255,7 @@ module.exports = 'dragstart'; /***/ }), -/* 834 */ +/* 830 */ /***/ (function(module, exports) { /** @@ -142427,7 +142285,7 @@ module.exports = 'drop'; /***/ }), -/* 835 */ +/* 831 */ /***/ (function(module, exports) { /** @@ -142468,7 +142326,7 @@ module.exports = 'gameobjectmove'; /***/ }), -/* 836 */ +/* 832 */ /***/ (function(module, exports) { /** @@ -142509,7 +142367,7 @@ module.exports = 'gameobjectout'; /***/ }), -/* 837 */ +/* 833 */ /***/ (function(module, exports) { /** @@ -142550,7 +142408,7 @@ module.exports = 'gameobjectover'; /***/ }), -/* 838 */ +/* 834 */ /***/ (function(module, exports) { /** @@ -142591,7 +142449,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 839 */ +/* 835 */ /***/ (function(module, exports) { /** @@ -142632,7 +142490,7 @@ module.exports = 'pointermove'; /***/ }), -/* 840 */ +/* 836 */ /***/ (function(module, exports) { /** @@ -142671,7 +142529,7 @@ module.exports = 'pointerout'; /***/ }), -/* 841 */ +/* 837 */ /***/ (function(module, exports) { /** @@ -142712,7 +142570,7 @@ module.exports = 'pointerover'; /***/ }), -/* 842 */ +/* 838 */ /***/ (function(module, exports) { /** @@ -142753,7 +142611,7 @@ module.exports = 'pointerup'; /***/ }), -/* 843 */ +/* 839 */ /***/ (function(module, exports) { /** @@ -142795,7 +142653,7 @@ module.exports = 'wheel'; /***/ }), -/* 844 */ +/* 840 */ /***/ (function(module, exports) { /** @@ -142836,7 +142694,7 @@ module.exports = 'gameobjectup'; /***/ }), -/* 845 */ +/* 841 */ /***/ (function(module, exports) { /** @@ -142880,7 +142738,7 @@ module.exports = 'gameobjectwheel'; /***/ }), -/* 846 */ +/* 842 */ /***/ (function(module, exports) { /** @@ -142901,7 +142759,7 @@ module.exports = 'boot'; /***/ }), -/* 847 */ +/* 843 */ /***/ (function(module, exports) { /** @@ -142926,7 +142784,7 @@ module.exports = 'process'; /***/ }), -/* 848 */ +/* 844 */ /***/ (function(module, exports) { /** @@ -142947,7 +142805,7 @@ module.exports = 'update'; /***/ }), -/* 849 */ +/* 845 */ /***/ (function(module, exports) { /** @@ -142982,7 +142840,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 850 */ +/* 846 */ /***/ (function(module, exports) { /** @@ -143016,7 +142874,7 @@ module.exports = 'pointerdownoutside'; /***/ }), -/* 851 */ +/* 847 */ /***/ (function(module, exports) { /** @@ -143051,7 +142909,7 @@ module.exports = 'pointermove'; /***/ }), -/* 852 */ +/* 848 */ /***/ (function(module, exports) { /** @@ -143086,7 +142944,7 @@ module.exports = 'pointerout'; /***/ }), -/* 853 */ +/* 849 */ /***/ (function(module, exports) { /** @@ -143121,7 +142979,7 @@ module.exports = 'pointerover'; /***/ }), -/* 854 */ +/* 850 */ /***/ (function(module, exports) { /** @@ -143156,7 +143014,7 @@ module.exports = 'pointerup'; /***/ }), -/* 855 */ +/* 851 */ /***/ (function(module, exports) { /** @@ -143190,7 +143048,7 @@ module.exports = 'pointerupoutside'; /***/ }), -/* 856 */ +/* 852 */ /***/ (function(module, exports) { /** @@ -143228,7 +143086,7 @@ module.exports = 'wheel'; /***/ }), -/* 857 */ +/* 853 */ /***/ (function(module, exports) { /** @@ -143252,7 +143110,7 @@ module.exports = 'pointerlockchange'; /***/ }), -/* 858 */ +/* 854 */ /***/ (function(module, exports) { /** @@ -143274,7 +143132,7 @@ module.exports = 'preupdate'; /***/ }), -/* 859 */ +/* 855 */ /***/ (function(module, exports) { /** @@ -143295,7 +143153,7 @@ module.exports = 'shutdown'; /***/ }), -/* 860 */ +/* 856 */ /***/ (function(module, exports) { /** @@ -143317,7 +143175,7 @@ module.exports = 'start'; /***/ }), -/* 861 */ +/* 857 */ /***/ (function(module, exports) { /** @@ -143342,7 +143200,7 @@ module.exports = 'update'; /***/ }), -/* 862 */ +/* 858 */ /***/ (function(module, exports) { /** @@ -143401,7 +143259,7 @@ module.exports = GetInnerHeight; /***/ }), -/* 863 */ +/* 859 */ /***/ (function(module, exports) { /** @@ -143431,7 +143289,7 @@ module.exports = 'addfile'; /***/ }), -/* 864 */ +/* 860 */ /***/ (function(module, exports) { /** @@ -143459,7 +143317,7 @@ module.exports = 'complete'; /***/ }), -/* 865 */ +/* 861 */ /***/ (function(module, exports) { /** @@ -143488,7 +143346,7 @@ module.exports = 'filecomplete'; /***/ }), -/* 866 */ +/* 862 */ /***/ (function(module, exports) { /** @@ -143542,7 +143400,7 @@ module.exports = 'filecomplete-'; /***/ }), -/* 867 */ +/* 863 */ /***/ (function(module, exports) { /** @@ -143567,7 +143425,7 @@ module.exports = 'loaderror'; /***/ }), -/* 868 */ +/* 864 */ /***/ (function(module, exports) { /** @@ -143593,7 +143451,7 @@ module.exports = 'load'; /***/ }), -/* 869 */ +/* 865 */ /***/ (function(module, exports) { /** @@ -143620,7 +143478,7 @@ module.exports = 'fileprogress'; /***/ }), -/* 870 */ +/* 866 */ /***/ (function(module, exports) { /** @@ -143649,7 +143507,7 @@ module.exports = 'postprocess'; /***/ }), -/* 871 */ +/* 867 */ /***/ (function(module, exports) { /** @@ -143674,7 +143532,7 @@ module.exports = 'progress'; /***/ }), -/* 872 */ +/* 868 */ /***/ (function(module, exports) { /** @@ -143701,7 +143559,7 @@ module.exports = 'start'; /***/ }), -/* 873 */ +/* 869 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143711,7 +143569,7 @@ module.exports = 'start'; */ var GetFastValue = __webpack_require__(2); -var UppercaseFirst = __webpack_require__(177); +var UppercaseFirst = __webpack_require__(176); /** * Builds an array of which physics plugins should be activated for the given Scene. @@ -143763,7 +143621,7 @@ module.exports = GetPhysicsPlugins; /***/ }), -/* 874 */ +/* 870 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143810,7 +143668,7 @@ module.exports = GetScenePlugins; /***/ }), -/* 875 */ +/* 871 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143871,7 +143729,7 @@ module.exports = InjectionMap; /***/ }), -/* 876 */ +/* 872 */ /***/ (function(module, exports) { /** @@ -143952,7 +143810,7 @@ module.exports = AtlasXML; /***/ }), -/* 877 */ +/* 873 */ /***/ (function(module, exports) { /** @@ -143987,7 +143845,7 @@ module.exports = Canvas; /***/ }), -/* 878 */ +/* 874 */ /***/ (function(module, exports) { /** @@ -144022,7 +143880,7 @@ module.exports = Image; /***/ }), -/* 879 */ +/* 875 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144129,7 +143987,7 @@ module.exports = JSONArray; /***/ }), -/* 880 */ +/* 876 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144228,7 +144086,7 @@ module.exports = JSONHash; /***/ }), -/* 881 */ +/* 877 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144353,7 +144211,7 @@ module.exports = SpriteSheet; /***/ }), -/* 882 */ +/* 878 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144544,7 +144402,7 @@ module.exports = SpriteSheetFromAtlas; /***/ }), -/* 883 */ +/* 879 */ /***/ (function(module, exports) { /** @@ -144714,7 +144572,7 @@ TextureImporter: /***/ }), -/* 884 */ +/* 880 */ /***/ (function(module, exports) { /** @@ -144745,7 +144603,7 @@ module.exports = 'complete'; /***/ }), -/* 885 */ +/* 881 */ /***/ (function(module, exports) { /** @@ -144775,7 +144633,7 @@ module.exports = 'decoded'; /***/ }), -/* 886 */ +/* 882 */ /***/ (function(module, exports) { /** @@ -144807,7 +144665,7 @@ module.exports = 'decodedall'; /***/ }), -/* 887 */ +/* 883 */ /***/ (function(module, exports) { /** @@ -144839,7 +144697,7 @@ module.exports = 'destroy'; /***/ }), -/* 888 */ +/* 884 */ /***/ (function(module, exports) { /** @@ -144872,7 +144730,7 @@ module.exports = 'detune'; /***/ }), -/* 889 */ +/* 885 */ /***/ (function(module, exports) { /** @@ -144900,7 +144758,7 @@ module.exports = 'detune'; /***/ }), -/* 890 */ +/* 886 */ /***/ (function(module, exports) { /** @@ -144927,7 +144785,7 @@ module.exports = 'mute'; /***/ }), -/* 891 */ +/* 887 */ /***/ (function(module, exports) { /** @@ -144955,7 +144813,7 @@ module.exports = 'rate'; /***/ }), -/* 892 */ +/* 888 */ /***/ (function(module, exports) { /** @@ -144982,7 +144840,7 @@ module.exports = 'volume'; /***/ }), -/* 893 */ +/* 889 */ /***/ (function(module, exports) { /** @@ -145016,7 +144874,7 @@ module.exports = 'loop'; /***/ }), -/* 894 */ +/* 890 */ /***/ (function(module, exports) { /** @@ -145050,7 +144908,7 @@ module.exports = 'looped'; /***/ }), -/* 895 */ +/* 891 */ /***/ (function(module, exports) { /** @@ -145083,7 +144941,7 @@ module.exports = 'mute'; /***/ }), -/* 896 */ +/* 892 */ /***/ (function(module, exports) { /** @@ -145110,7 +144968,7 @@ module.exports = 'pauseall'; /***/ }), -/* 897 */ +/* 893 */ /***/ (function(module, exports) { /** @@ -145142,7 +145000,7 @@ module.exports = 'pause'; /***/ }), -/* 898 */ +/* 894 */ /***/ (function(module, exports) { /** @@ -145173,7 +145031,7 @@ module.exports = 'play'; /***/ }), -/* 899 */ +/* 895 */ /***/ (function(module, exports) { /** @@ -145206,7 +145064,7 @@ module.exports = 'rate'; /***/ }), -/* 900 */ +/* 896 */ /***/ (function(module, exports) { /** @@ -145233,7 +145091,7 @@ module.exports = 'resumeall'; /***/ }), -/* 901 */ +/* 897 */ /***/ (function(module, exports) { /** @@ -145266,7 +145124,7 @@ module.exports = 'resume'; /***/ }), -/* 902 */ +/* 898 */ /***/ (function(module, exports) { /** @@ -145299,7 +145157,7 @@ module.exports = 'seek'; /***/ }), -/* 903 */ +/* 899 */ /***/ (function(module, exports) { /** @@ -145326,7 +145184,7 @@ module.exports = 'stopall'; /***/ }), -/* 904 */ +/* 900 */ /***/ (function(module, exports) { /** @@ -145358,7 +145216,7 @@ module.exports = 'stop'; /***/ }), -/* 905 */ +/* 901 */ /***/ (function(module, exports) { /** @@ -145385,7 +145243,7 @@ module.exports = 'unlocked'; /***/ }), -/* 906 */ +/* 902 */ /***/ (function(module, exports) { /** @@ -145418,7 +145276,7 @@ module.exports = 'volume'; /***/ }), -/* 907 */ +/* 903 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145433,105 +145291,105 @@ module.exports = 'volume'; var GameObjects = { - Events: __webpack_require__(89), + Events: __webpack_require__(88), - DisplayList: __webpack_require__(908), - GameObjectCreator: __webpack_require__(16), + DisplayList: __webpack_require__(904), + GameObjectCreator: __webpack_require__(17), GameObjectFactory: __webpack_require__(5), - UpdateList: __webpack_require__(936), + UpdateList: __webpack_require__(932), - Components: __webpack_require__(11), + Components: __webpack_require__(12), - BuildGameObject: __webpack_require__(27), - BuildGameObjectAnimation: __webpack_require__(388), - GameObject: __webpack_require__(13), - BitmapText: __webpack_require__(127), - Blitter: __webpack_require__(184), - Container: __webpack_require__(185), - DOMElement: __webpack_require__(390), - DynamicBitmapText: __webpack_require__(186), - Extern: __webpack_require__(392), - Graphics: __webpack_require__(187), - Group: __webpack_require__(96), - Image: __webpack_require__(104), - Particles: __webpack_require__(968), - PathFollower: __webpack_require__(404), - RenderTexture: __webpack_require__(191), - RetroFont: __webpack_require__(977), - Rope: __webpack_require__(193), - Sprite: __webpack_require__(74), - Text: __webpack_require__(194), - TileSprite: __webpack_require__(195), - Zone: __webpack_require__(107), - Video: __webpack_require__(196), + BuildGameObject: __webpack_require__(28), + BuildGameObjectAnimation: __webpack_require__(386), + GameObject: __webpack_require__(14), + BitmapText: __webpack_require__(126), + Blitter: __webpack_require__(183), + Container: __webpack_require__(184), + DOMElement: __webpack_require__(388), + DynamicBitmapText: __webpack_require__(185), + Extern: __webpack_require__(390), + Graphics: __webpack_require__(186), + Group: __webpack_require__(95), + Image: __webpack_require__(103), + Particles: __webpack_require__(964), + PathFollower: __webpack_require__(402), + RenderTexture: __webpack_require__(190), + RetroFont: __webpack_require__(973), + Rope: __webpack_require__(192), + Sprite: __webpack_require__(73), + Text: __webpack_require__(193), + TileSprite: __webpack_require__(194), + Zone: __webpack_require__(106), + Video: __webpack_require__(195), // Shapes Shape: __webpack_require__(31), - Arc: __webpack_require__(405), - Curve: __webpack_require__(406), - Ellipse: __webpack_require__(407), - Grid: __webpack_require__(408), - IsoBox: __webpack_require__(409), - IsoTriangle: __webpack_require__(410), - Line: __webpack_require__(411), - Polygon: __webpack_require__(412), - Rectangle: __webpack_require__(417), - Star: __webpack_require__(418), - Triangle: __webpack_require__(419), + Arc: __webpack_require__(403), + Curve: __webpack_require__(404), + Ellipse: __webpack_require__(405), + Grid: __webpack_require__(406), + IsoBox: __webpack_require__(407), + IsoTriangle: __webpack_require__(408), + Line: __webpack_require__(409), + Polygon: __webpack_require__(410), + Rectangle: __webpack_require__(415), + Star: __webpack_require__(416), + Triangle: __webpack_require__(417), // Game Object Factories Factories: { - Blitter: __webpack_require__(1028), - Container: __webpack_require__(1029), - DOMElement: __webpack_require__(1030), - DynamicBitmapText: __webpack_require__(1031), - Extern: __webpack_require__(1032), - Graphics: __webpack_require__(1033), - Group: __webpack_require__(1034), - Image: __webpack_require__(1035), - Particles: __webpack_require__(1036), - PathFollower: __webpack_require__(1037), - RenderTexture: __webpack_require__(1038), - Rope: __webpack_require__(1039), - Sprite: __webpack_require__(1040), - StaticBitmapText: __webpack_require__(1041), - Text: __webpack_require__(1042), - TileSprite: __webpack_require__(1043), - Zone: __webpack_require__(1044), - Video: __webpack_require__(1045), + Blitter: __webpack_require__(1024), + Container: __webpack_require__(1025), + DOMElement: __webpack_require__(1026), + DynamicBitmapText: __webpack_require__(1027), + Extern: __webpack_require__(1028), + Graphics: __webpack_require__(1029), + Group: __webpack_require__(1030), + Image: __webpack_require__(1031), + Particles: __webpack_require__(1032), + PathFollower: __webpack_require__(1033), + RenderTexture: __webpack_require__(1034), + Rope: __webpack_require__(1035), + Sprite: __webpack_require__(1036), + StaticBitmapText: __webpack_require__(1037), + Text: __webpack_require__(1038), + TileSprite: __webpack_require__(1039), + Zone: __webpack_require__(1040), + Video: __webpack_require__(1041), // Shapes - Arc: __webpack_require__(1046), - Curve: __webpack_require__(1047), - Ellipse: __webpack_require__(1048), - Grid: __webpack_require__(1049), - IsoBox: __webpack_require__(1050), - IsoTriangle: __webpack_require__(1051), - Line: __webpack_require__(1052), - Polygon: __webpack_require__(1053), - Rectangle: __webpack_require__(1054), - Star: __webpack_require__(1055), - Triangle: __webpack_require__(1056) + Arc: __webpack_require__(1042), + Curve: __webpack_require__(1043), + Ellipse: __webpack_require__(1044), + Grid: __webpack_require__(1045), + IsoBox: __webpack_require__(1046), + IsoTriangle: __webpack_require__(1047), + Line: __webpack_require__(1048), + Polygon: __webpack_require__(1049), + Rectangle: __webpack_require__(1050), + Star: __webpack_require__(1051), + Triangle: __webpack_require__(1052) }, Creators: { - Blitter: __webpack_require__(1057), - Container: __webpack_require__(1058), - DynamicBitmapText: __webpack_require__(1059), - Graphics: __webpack_require__(1060), - Group: __webpack_require__(1061), - Image: __webpack_require__(1062), - Particles: __webpack_require__(1063), - RenderTexture: __webpack_require__(1064), - Rope: __webpack_require__(1065), - Sprite: __webpack_require__(1066), - StaticBitmapText: __webpack_require__(1067), - Text: __webpack_require__(1068), - TileSprite: __webpack_require__(1069), - Zone: __webpack_require__(1070), - Video: __webpack_require__(1071) + Blitter: __webpack_require__(1053), + Container: __webpack_require__(1054), + DynamicBitmapText: __webpack_require__(1055), + Graphics: __webpack_require__(1056), + Group: __webpack_require__(1057), + Image: __webpack_require__(1058), + Particles: __webpack_require__(1059), + RenderTexture: __webpack_require__(1060), + Rope: __webpack_require__(1061), + Sprite: __webpack_require__(1062), + StaticBitmapText: __webpack_require__(1063), + Text: __webpack_require__(1064), + TileSprite: __webpack_require__(1065), + Zone: __webpack_require__(1066), + Video: __webpack_require__(1067) } }; @@ -145539,29 +145397,29 @@ var GameObjects = { if (true) { // WebGL only Game Objects - GameObjects.Mesh = __webpack_require__(129); - GameObjects.Quad = __webpack_require__(199); - GameObjects.Shader = __webpack_require__(200); + GameObjects.Mesh = __webpack_require__(128); + GameObjects.Quad = __webpack_require__(198); + GameObjects.Shader = __webpack_require__(199); - GameObjects.Factories.Mesh = __webpack_require__(1078); - GameObjects.Factories.Quad = __webpack_require__(1079); - GameObjects.Factories.Shader = __webpack_require__(1080); + GameObjects.Factories.Mesh = __webpack_require__(1074); + GameObjects.Factories.Quad = __webpack_require__(1075); + GameObjects.Factories.Shader = __webpack_require__(1076); - GameObjects.Creators.Mesh = __webpack_require__(1081); - GameObjects.Creators.Quad = __webpack_require__(1082); - GameObjects.Creators.Shader = __webpack_require__(1083); + GameObjects.Creators.Mesh = __webpack_require__(1077); + GameObjects.Creators.Quad = __webpack_require__(1078); + GameObjects.Creators.Shader = __webpack_require__(1079); - GameObjects.Light = __webpack_require__(423); + GameObjects.Light = __webpack_require__(421); - __webpack_require__(424); - __webpack_require__(1084); + __webpack_require__(422); + __webpack_require__(1080); } module.exports = GameObjects; /***/ }), -/* 908 */ +/* 904 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145571,10 +145429,10 @@ module.exports = GameObjects; */ var Class = __webpack_require__(0); -var List = __webpack_require__(124); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var StableSort = __webpack_require__(126); +var List = __webpack_require__(123); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var StableSort = __webpack_require__(125); /** * @classdesc @@ -145766,7 +145624,7 @@ module.exports = DisplayList; /***/ }), -/* 909 */ +/* 905 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145781,21 +145639,21 @@ module.exports = DisplayList; module.exports = { - CheckMatrix: __webpack_require__(180), - MatrixToString: __webpack_require__(910), - ReverseColumns: __webpack_require__(911), - ReverseRows: __webpack_require__(912), - Rotate180: __webpack_require__(913), - RotateLeft: __webpack_require__(914), - RotateMatrix: __webpack_require__(125), - RotateRight: __webpack_require__(915), - TransposeMatrix: __webpack_require__(385) + CheckMatrix: __webpack_require__(179), + MatrixToString: __webpack_require__(906), + ReverseColumns: __webpack_require__(907), + ReverseRows: __webpack_require__(908), + Rotate180: __webpack_require__(909), + RotateLeft: __webpack_require__(910), + RotateMatrix: __webpack_require__(124), + RotateRight: __webpack_require__(911), + TransposeMatrix: __webpack_require__(383) }; /***/ }), -/* 910 */ +/* 906 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145804,8 +145662,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pad = __webpack_require__(158); -var CheckMatrix = __webpack_require__(180); +var Pad = __webpack_require__(157); +var CheckMatrix = __webpack_require__(179); /** * Generates a string (which you can pass to console.log) from the given Array Matrix. @@ -145876,7 +145734,7 @@ module.exports = MatrixToString; /***/ }), -/* 911 */ +/* 907 */ /***/ (function(module, exports) { /** @@ -145907,7 +145765,7 @@ module.exports = ReverseColumns; /***/ }), -/* 912 */ +/* 908 */ /***/ (function(module, exports) { /** @@ -145943,7 +145801,7 @@ module.exports = ReverseRows; /***/ }), -/* 913 */ +/* 909 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145952,7 +145810,7 @@ module.exports = ReverseRows; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix 180 degrees. @@ -145976,7 +145834,7 @@ module.exports = Rotate180; /***/ }), -/* 914 */ +/* 910 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145985,7 +145843,7 @@ module.exports = Rotate180; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix to the left (or 90 degrees) @@ -146009,7 +145867,7 @@ module.exports = RotateLeft; /***/ }), -/* 915 */ +/* 911 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146018,7 +145876,7 @@ module.exports = RotateLeft; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(125); +var RotateMatrix = __webpack_require__(124); /** * Rotates the array matrix to the left (or -90 degrees) @@ -146042,7 +145900,7 @@ module.exports = RotateRight; /***/ }), -/* 916 */ +/* 912 */ /***/ (function(module, exports) { /** @@ -146159,7 +146017,7 @@ module.exports = Add; /***/ }), -/* 917 */ +/* 913 */ /***/ (function(module, exports) { /** @@ -146281,7 +146139,7 @@ module.exports = AddAt; /***/ }), -/* 918 */ +/* 914 */ /***/ (function(module, exports) { /** @@ -146319,7 +146177,7 @@ module.exports = BringToTop; /***/ }), -/* 919 */ +/* 915 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146371,7 +146229,7 @@ module.exports = CountAllMatching; /***/ }), -/* 920 */ +/* 916 */ /***/ (function(module, exports) { /** @@ -146417,7 +146275,7 @@ module.exports = Each; /***/ }), -/* 921 */ +/* 917 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146473,7 +146331,7 @@ module.exports = EachInRange; /***/ }), -/* 922 */ +/* 918 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146535,7 +146393,7 @@ module.exports = GetAll; /***/ }), -/* 923 */ +/* 919 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146594,7 +146452,7 @@ module.exports = GetFirst; /***/ }), -/* 924 */ +/* 920 */ /***/ (function(module, exports) { /** @@ -146636,7 +146494,7 @@ module.exports = MoveDown; /***/ }), -/* 925 */ +/* 921 */ /***/ (function(module, exports) { /** @@ -146683,7 +146541,7 @@ module.exports = MoveTo; /***/ }), -/* 926 */ +/* 922 */ /***/ (function(module, exports) { /** @@ -146725,7 +146583,7 @@ module.exports = MoveUp; /***/ }), -/* 927 */ +/* 923 */ /***/ (function(module, exports) { /** @@ -146789,7 +146647,7 @@ module.exports = NumberArray; /***/ }), -/* 928 */ +/* 924 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146798,7 +146656,7 @@ module.exports = NumberArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RoundAwayFromZero = __webpack_require__(329); +var RoundAwayFromZero = __webpack_require__(327); /** * Create an array of numbers (positive and/or negative) progressing from `start` @@ -146866,7 +146724,7 @@ module.exports = NumberArrayStep; /***/ }), -/* 929 */ +/* 925 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146875,7 +146733,7 @@ module.exports = NumberArrayStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes the item from the given position in the array. @@ -146917,7 +146775,7 @@ module.exports = RemoveAt; /***/ }), -/* 930 */ +/* 926 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146980,7 +146838,7 @@ module.exports = RemoveBetween; /***/ }), -/* 931 */ +/* 927 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146989,7 +146847,7 @@ module.exports = RemoveBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(79); +var SpliceOne = __webpack_require__(78); /** * Removes a random object from the given array and returns it. @@ -147018,7 +146876,7 @@ module.exports = RemoveRandomElement; /***/ }), -/* 932 */ +/* 928 */ /***/ (function(module, exports) { /** @@ -147062,7 +146920,7 @@ module.exports = Replace; /***/ }), -/* 933 */ +/* 929 */ /***/ (function(module, exports) { /** @@ -147100,7 +146958,7 @@ module.exports = SendToBack; /***/ }), -/* 934 */ +/* 930 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147155,7 +147013,7 @@ module.exports = SetAll; /***/ }), -/* 935 */ +/* 931 */ /***/ (function(module, exports) { /** @@ -147203,7 +147061,7 @@ module.exports = Swap; /***/ }), -/* 936 */ +/* 932 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147213,9 +147071,9 @@ module.exports = Swap; */ var Class = __webpack_require__(0); -var ProcessQueue = __webpack_require__(182); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var ProcessQueue = __webpack_require__(181); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -147504,7 +147362,7 @@ module.exports = UpdateList; /***/ }), -/* 937 */ +/* 933 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147519,14 +147377,14 @@ module.exports = UpdateList; module.exports = { - PROCESS_QUEUE_ADD: __webpack_require__(938), - PROCESS_QUEUE_REMOVE: __webpack_require__(939) + PROCESS_QUEUE_ADD: __webpack_require__(934), + PROCESS_QUEUE_REMOVE: __webpack_require__(935) }; /***/ }), -/* 938 */ +/* 934 */ /***/ (function(module, exports) { /** @@ -147553,7 +147411,7 @@ module.exports = 'add'; /***/ }), -/* 939 */ +/* 935 */ /***/ (function(module, exports) { /** @@ -147580,7 +147438,7 @@ module.exports = 'remove'; /***/ }), -/* 940 */ +/* 936 */ /***/ (function(module, exports) { /** @@ -148033,7 +147891,7 @@ module.exports = GetBitmapTextSize; /***/ }), -/* 941 */ +/* 937 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148042,7 +147900,7 @@ module.exports = GetBitmapTextSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ParseXMLBitmapFont = __webpack_require__(183); +var ParseXMLBitmapFont = __webpack_require__(182); /** * Parse an XML Bitmap Font from an Atlas. @@ -148086,7 +147944,7 @@ module.exports = ParseFromAtlas; /***/ }), -/* 942 */ +/* 938 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148100,12 +147958,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(943); + renderWebGL = __webpack_require__(939); } if (true) { - renderCanvas = __webpack_require__(944); + renderCanvas = __webpack_require__(940); } module.exports = { @@ -148117,7 +147975,7 @@ module.exports = { /***/ }), -/* 943 */ +/* 939 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148353,7 +148211,7 @@ module.exports = BitmapTextWebGLRenderer; /***/ }), -/* 944 */ +/* 940 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148362,7 +148220,7 @@ module.exports = BitmapTextWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -148535,7 +148393,7 @@ module.exports = BitmapTextCanvasRenderer; /***/ }), -/* 945 */ +/* 941 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148549,12 +148407,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(946); + renderWebGL = __webpack_require__(942); } if (true) { - renderCanvas = __webpack_require__(947); + renderCanvas = __webpack_require__(943); } module.exports = { @@ -148566,7 +148424,7 @@ module.exports = { /***/ }), -/* 946 */ +/* 942 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148696,7 +148554,7 @@ module.exports = BlitterWebGLRenderer; /***/ }), -/* 947 */ +/* 943 */ /***/ (function(module, exports) { /** @@ -148826,7 +148684,7 @@ module.exports = BlitterCanvasRenderer; /***/ }), -/* 948 */ +/* 944 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148836,7 +148694,7 @@ module.exports = BlitterCanvasRenderer; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(93); +var Frame = __webpack_require__(92); /** * @classdesc @@ -149256,7 +149114,7 @@ module.exports = Bob; /***/ }), -/* 949 */ +/* 945 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149271,12 +149129,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(950); + renderWebGL = __webpack_require__(946); } if (true) { - renderCanvas = __webpack_require__(951); + renderCanvas = __webpack_require__(947); } module.exports = { @@ -149288,7 +149146,7 @@ module.exports = { /***/ }), -/* 950 */ +/* 946 */ /***/ (function(module, exports) { /** @@ -149437,7 +149295,7 @@ module.exports = ContainerWebGLRenderer; /***/ }), -/* 951 */ +/* 947 */ /***/ (function(module, exports) { /** @@ -149534,7 +149392,7 @@ module.exports = ContainerCanvasRenderer; /***/ }), -/* 952 */ +/* 948 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149548,12 +149406,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(391); + renderWebGL = __webpack_require__(389); } if (true) { - renderCanvas = __webpack_require__(391); + renderCanvas = __webpack_require__(389); } module.exports = { @@ -149565,7 +149423,7 @@ module.exports = { /***/ }), -/* 953 */ +/* 949 */ /***/ (function(module, exports) { /** @@ -149606,7 +149464,7 @@ module.exports = [ /***/ }), -/* 954 */ +/* 950 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149620,12 +149478,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(955); + renderWebGL = __webpack_require__(951); } if (true) { - renderCanvas = __webpack_require__(956); + renderCanvas = __webpack_require__(952); } module.exports = { @@ -149637,7 +149495,7 @@ module.exports = { /***/ }), -/* 955 */ +/* 951 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149943,7 +149801,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; /***/ }), -/* 956 */ +/* 952 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149952,7 +149810,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -150154,7 +150012,7 @@ module.exports = DynamicBitmapTextCanvasRenderer; /***/ }), -/* 957 */ +/* 953 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150168,12 +150026,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(958); + renderWebGL = __webpack_require__(954); } if (true) { - renderCanvas = __webpack_require__(959); + renderCanvas = __webpack_require__(955); } module.exports = { @@ -150185,7 +150043,7 @@ module.exports = { /***/ }), -/* 958 */ +/* 954 */ /***/ (function(module, exports) { /** @@ -150254,13 +150112,13 @@ module.exports = ExternWebGLRenderer; /***/ }), -/* 959 */ +/* 955 */ /***/ (function(module, exports) { /***/ }), -/* 960 */ +/* 956 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150274,15 +150132,15 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(961); + renderWebGL = __webpack_require__(957); // Needed for Graphics.generateTexture - renderCanvas = __webpack_require__(396); + renderCanvas = __webpack_require__(394); } if (true) { - renderCanvas = __webpack_require__(396); + renderCanvas = __webpack_require__(394); } module.exports = { @@ -150294,7 +150152,7 @@ module.exports = { /***/ }), -/* 961 */ +/* 957 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150303,7 +150161,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(188); +var Commands = __webpack_require__(187); var Utils = __webpack_require__(9); // TODO: Remove the use of this @@ -150659,7 +150517,7 @@ module.exports = GraphicsWebGLRenderer; /***/ }), -/* 962 */ +/* 958 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150673,12 +150531,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(963); + renderWebGL = __webpack_require__(959); } if (true) { - renderCanvas = __webpack_require__(964); + renderCanvas = __webpack_require__(960); } module.exports = { @@ -150690,7 +150548,7 @@ module.exports = { /***/ }), -/* 963 */ +/* 959 */ /***/ (function(module, exports) { /** @@ -150723,7 +150581,7 @@ module.exports = SpriteWebGLRenderer; /***/ }), -/* 964 */ +/* 960 */ /***/ (function(module, exports) { /** @@ -150756,7 +150614,7 @@ module.exports = SpriteCanvasRenderer; /***/ }), -/* 965 */ +/* 961 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150770,12 +150628,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(966); + renderWebGL = __webpack_require__(962); } if (true) { - renderCanvas = __webpack_require__(967); + renderCanvas = __webpack_require__(963); } module.exports = { @@ -150787,7 +150645,7 @@ module.exports = { /***/ }), -/* 966 */ +/* 962 */ /***/ (function(module, exports) { /** @@ -150820,7 +150678,7 @@ module.exports = ImageWebGLRenderer; /***/ }), -/* 967 */ +/* 963 */ /***/ (function(module, exports) { /** @@ -150853,7 +150711,7 @@ module.exports = ImageCanvasRenderer; /***/ }), -/* 968 */ +/* 964 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150868,17 +150726,17 @@ module.exports = ImageCanvasRenderer; module.exports = { - GravityWell: __webpack_require__(397), - Particle: __webpack_require__(398), - ParticleEmitter: __webpack_require__(399), - ParticleEmitterManager: __webpack_require__(190), - Zones: __webpack_require__(973) + GravityWell: __webpack_require__(395), + Particle: __webpack_require__(396), + ParticleEmitter: __webpack_require__(397), + ParticleEmitterManager: __webpack_require__(189), + Zones: __webpack_require__(969) }; /***/ }), -/* 969 */ +/* 965 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150888,7 +150746,7 @@ module.exports = { */ var Class = __webpack_require__(0); -var FloatBetween = __webpack_require__(327); +var FloatBetween = __webpack_require__(325); var GetEaseFunction = __webpack_require__(67); var GetFastValue = __webpack_require__(2); var Wrap = __webpack_require__(58); @@ -151469,7 +151327,7 @@ module.exports = EmitterOp; /***/ }), -/* 970 */ +/* 966 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151483,12 +151341,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(971); + renderWebGL = __webpack_require__(967); } if (true) { - renderCanvas = __webpack_require__(972); + renderCanvas = __webpack_require__(968); } module.exports = { @@ -151500,7 +151358,7 @@ module.exports = { /***/ }), -/* 971 */ +/* 967 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151659,7 +151517,7 @@ module.exports = ParticleManagerWebGLRenderer; /***/ }), -/* 972 */ +/* 968 */ /***/ (function(module, exports) { /** @@ -151782,7 +151640,7 @@ module.exports = ParticleManagerCanvasRenderer; /***/ }), -/* 973 */ +/* 969 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151797,15 +151655,15 @@ module.exports = ParticleManagerCanvasRenderer; module.exports = { - DeathZone: __webpack_require__(400), - EdgeZone: __webpack_require__(401), - RandomZone: __webpack_require__(403) + DeathZone: __webpack_require__(398), + EdgeZone: __webpack_require__(399), + RandomZone: __webpack_require__(401) }; /***/ }), -/* 974 */ +/* 970 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151819,12 +151677,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(975); + renderWebGL = __webpack_require__(971); } if (true) { - renderCanvas = __webpack_require__(976); + renderCanvas = __webpack_require__(972); } module.exports = { @@ -151836,7 +151694,7 @@ module.exports = { /***/ }), -/* 975 */ +/* 971 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151899,7 +151757,7 @@ module.exports = RenderTextureWebGLRenderer; /***/ }), -/* 976 */ +/* 972 */ /***/ (function(module, exports) { /** @@ -151932,7 +151790,7 @@ module.exports = RenderTextureCanvasRenderer; /***/ }), -/* 977 */ +/* 973 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151941,15 +151799,15 @@ module.exports = RenderTextureCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RETRO_FONT_CONST = __webpack_require__(978); -var Extend = __webpack_require__(17); +var RETRO_FONT_CONST = __webpack_require__(974); +var Extend = __webpack_require__(18); /** * @namespace Phaser.GameObjects.RetroFont * @since 3.6.0 */ -var RetroFont = { Parse: __webpack_require__(979) }; +var RetroFont = { Parse: __webpack_require__(975) }; // Merge in the consts RetroFont = Extend(false, RetroFont, RETRO_FONT_CONST); @@ -151958,7 +151816,7 @@ module.exports = RetroFont; /***/ }), -/* 978 */ +/* 974 */ /***/ (function(module, exports) { /** @@ -152074,7 +151932,7 @@ module.exports = RETRO_FONT_CONST; /***/ }), -/* 979 */ +/* 975 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152190,7 +152048,7 @@ module.exports = ParseRetroFont; /***/ }), -/* 980 */ +/* 976 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152204,12 +152062,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(981); + renderWebGL = __webpack_require__(977); } if (true) { - renderCanvas = __webpack_require__(982); + renderCanvas = __webpack_require__(978); } module.exports = { @@ -152221,7 +152079,7 @@ module.exports = { /***/ }), -/* 981 */ +/* 977 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152360,7 +152218,7 @@ module.exports = RopeWebGLRenderer; /***/ }), -/* 982 */ +/* 978 */ /***/ (function(module, exports) { /** @@ -152389,7 +152247,7 @@ module.exports = RopeCanvasRenderer; /***/ }), -/* 983 */ +/* 979 */ /***/ (function(module, exports) { /** @@ -152471,7 +152329,7 @@ module.exports = GetTextSize; /***/ }), -/* 984 */ +/* 980 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152485,12 +152343,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(985); + renderWebGL = __webpack_require__(981); } if (true) { - renderCanvas = __webpack_require__(986); + renderCanvas = __webpack_require__(982); } module.exports = { @@ -152502,7 +152360,7 @@ module.exports = { /***/ }), -/* 985 */ +/* 981 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152567,7 +152425,7 @@ module.exports = TextWebGLRenderer; /***/ }), -/* 986 */ +/* 982 */ /***/ (function(module, exports) { /** @@ -152605,7 +152463,7 @@ module.exports = TextCanvasRenderer; /***/ }), -/* 987 */ +/* 983 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152615,9 +152473,9 @@ module.exports = TextCanvasRenderer; */ var Class = __webpack_require__(0); -var GetAdvancedValue = __webpack_require__(14); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var MeasureText = __webpack_require__(988); +var MeasureText = __webpack_require__(984); // Key: [ Object Key, Default Value ] @@ -153658,7 +153516,7 @@ module.exports = TextStyle; /***/ }), -/* 988 */ +/* 984 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153667,7 +153525,7 @@ module.exports = TextStyle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasPool = __webpack_require__(26); +var CanvasPool = __webpack_require__(27); /** * Calculates the ascent, descent and fontSize of a given font style. @@ -153793,7 +153651,7 @@ module.exports = MeasureText; /***/ }), -/* 989 */ +/* 985 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153807,12 +153665,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(990); + renderWebGL = __webpack_require__(986); } if (true) { - renderCanvas = __webpack_require__(991); + renderCanvas = __webpack_require__(987); } module.exports = { @@ -153824,7 +153682,7 @@ module.exports = { /***/ }), -/* 990 */ +/* 986 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153884,7 +153742,7 @@ module.exports = TileSpriteWebGLRenderer; /***/ }), -/* 991 */ +/* 987 */ /***/ (function(module, exports) { /** @@ -153919,7 +153777,7 @@ module.exports = TileSpriteCanvasRenderer; /***/ }), -/* 992 */ +/* 988 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153933,12 +153791,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(993); + renderWebGL = __webpack_require__(989); } if (true) { - renderCanvas = __webpack_require__(994); + renderCanvas = __webpack_require__(990); } module.exports = { @@ -153950,7 +153808,7 @@ module.exports = { /***/ }), -/* 993 */ +/* 989 */ /***/ (function(module, exports) { /** @@ -153986,7 +153844,7 @@ module.exports = VideoWebGLRenderer; /***/ }), -/* 994 */ +/* 990 */ /***/ (function(module, exports) { /** @@ -154022,7 +153880,7 @@ module.exports = VideoCanvasRenderer; /***/ }), -/* 995 */ +/* 991 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154036,12 +153894,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(996); + renderWebGL = __webpack_require__(992); } if (true) { - renderCanvas = __webpack_require__(997); + renderCanvas = __webpack_require__(993); } module.exports = { @@ -154053,7 +153911,7 @@ module.exports = { /***/ }), -/* 996 */ +/* 992 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154062,7 +153920,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -154131,7 +153989,7 @@ module.exports = ArcWebGLRenderer; /***/ }), -/* 997 */ +/* 993 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154143,7 +154001,7 @@ module.exports = ArcWebGLRenderer; var DegToRad = __webpack_require__(35); var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -154207,7 +154065,7 @@ module.exports = ArcCanvasRenderer; /***/ }), -/* 998 */ +/* 994 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154221,12 +154079,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(999); + renderWebGL = __webpack_require__(995); } if (true) { - renderCanvas = __webpack_require__(1000); + renderCanvas = __webpack_require__(996); } module.exports = { @@ -154238,7 +154096,7 @@ module.exports = { /***/ }), -/* 999 */ +/* 995 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154247,7 +154105,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -154316,7 +154174,7 @@ module.exports = CurveWebGLRenderer; /***/ }), -/* 1000 */ +/* 996 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154327,7 +154185,7 @@ module.exports = CurveWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -154404,7 +154262,7 @@ module.exports = CurveCanvasRenderer; /***/ }), -/* 1001 */ +/* 997 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154418,12 +154276,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1002); + renderWebGL = __webpack_require__(998); } if (true) { - renderCanvas = __webpack_require__(1003); + renderCanvas = __webpack_require__(999); } module.exports = { @@ -154435,7 +154293,7 @@ module.exports = { /***/ }), -/* 1002 */ +/* 998 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154444,7 +154302,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -154513,7 +154371,7 @@ module.exports = EllipseWebGLRenderer; /***/ }), -/* 1003 */ +/* 999 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154524,7 +154382,7 @@ module.exports = EllipseWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -154598,7 +154456,7 @@ module.exports = EllipseCanvasRenderer; /***/ }), -/* 1004 */ +/* 1000 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154612,12 +154470,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1005); + renderWebGL = __webpack_require__(1001); } if (true) { - renderCanvas = __webpack_require__(1006); + renderCanvas = __webpack_require__(1002); } module.exports = { @@ -154629,7 +154487,7 @@ module.exports = { /***/ }), -/* 1005 */ +/* 1001 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154855,7 +154713,7 @@ module.exports = GridWebGLRenderer; /***/ }), -/* 1006 */ +/* 1002 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154866,7 +154724,7 @@ module.exports = GridWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -155044,7 +154902,7 @@ module.exports = GridCanvasRenderer; /***/ }), -/* 1007 */ +/* 1003 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155058,12 +154916,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1008); + renderWebGL = __webpack_require__(1004); } if (true) { - renderCanvas = __webpack_require__(1009); + renderCanvas = __webpack_require__(1005); } module.exports = { @@ -155075,7 +154933,7 @@ module.exports = { /***/ }), -/* 1008 */ +/* 1004 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155233,7 +155091,7 @@ module.exports = IsoBoxWebGLRenderer; /***/ }), -/* 1009 */ +/* 1005 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155243,7 +155101,7 @@ module.exports = IsoBoxWebGLRenderer; */ var FillStyleCanvas = __webpack_require__(36); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -155334,7 +155192,7 @@ module.exports = IsoBoxCanvasRenderer; /***/ }), -/* 1010 */ +/* 1006 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155348,12 +155206,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1011); + renderWebGL = __webpack_require__(1007); } if (true) { - renderCanvas = __webpack_require__(1012); + renderCanvas = __webpack_require__(1008); } module.exports = { @@ -155365,7 +155223,7 @@ module.exports = { /***/ }), -/* 1011 */ +/* 1007 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155542,7 +155400,7 @@ module.exports = IsoTriangleWebGLRenderer; /***/ }), -/* 1012 */ +/* 1008 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155552,7 +155410,7 @@ module.exports = IsoTriangleWebGLRenderer; */ var FillStyleCanvas = __webpack_require__(36); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -155656,7 +155514,7 @@ module.exports = IsoTriangleCanvasRenderer; /***/ }), -/* 1013 */ +/* 1009 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155670,12 +155528,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1014); + renderWebGL = __webpack_require__(1010); } if (true) { - renderCanvas = __webpack_require__(1015); + renderCanvas = __webpack_require__(1011); } module.exports = { @@ -155687,7 +155545,7 @@ module.exports = { /***/ }), -/* 1014 */ +/* 1010 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155780,7 +155638,7 @@ module.exports = LineWebGLRenderer; /***/ }), -/* 1015 */ +/* 1011 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155790,7 +155648,7 @@ module.exports = LineWebGLRenderer; */ var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -155837,7 +155695,7 @@ module.exports = LineCanvasRenderer; /***/ }), -/* 1016 */ +/* 1012 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155851,12 +155709,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1017); + renderWebGL = __webpack_require__(1013); } if (true) { - renderCanvas = __webpack_require__(1018); + renderCanvas = __webpack_require__(1014); } module.exports = { @@ -155868,7 +155726,7 @@ module.exports = { /***/ }), -/* 1017 */ +/* 1013 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155877,7 +155735,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -155946,7 +155804,7 @@ module.exports = PolygonWebGLRenderer; /***/ }), -/* 1018 */ +/* 1014 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155957,7 +155815,7 @@ module.exports = PolygonWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -156031,7 +155889,7 @@ module.exports = PolygonCanvasRenderer; /***/ }), -/* 1019 */ +/* 1015 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156045,12 +155903,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1020); + renderWebGL = __webpack_require__(1016); } if (true) { - renderCanvas = __webpack_require__(1021); + renderCanvas = __webpack_require__(1017); } module.exports = { @@ -156062,7 +155920,7 @@ module.exports = { /***/ }), -/* 1020 */ +/* 1016 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156154,7 +156012,7 @@ module.exports = RectangleWebGLRenderer; /***/ }), -/* 1021 */ +/* 1017 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156165,7 +156023,7 @@ module.exports = RectangleWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -156228,7 +156086,7 @@ module.exports = RectangleCanvasRenderer; /***/ }), -/* 1022 */ +/* 1018 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156242,12 +156100,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1023); + renderWebGL = __webpack_require__(1019); } if (true) { - renderCanvas = __webpack_require__(1024); + renderCanvas = __webpack_require__(1020); } module.exports = { @@ -156259,7 +156117,7 @@ module.exports = { /***/ }), -/* 1023 */ +/* 1019 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156268,7 +156126,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(97); +var FillPathWebGL = __webpack_require__(96); var StrokePathWebGL = __webpack_require__(68); /** @@ -156337,7 +156195,7 @@ module.exports = StarWebGLRenderer; /***/ }), -/* 1024 */ +/* 1020 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156348,7 +156206,7 @@ module.exports = StarWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -156422,7 +156280,7 @@ module.exports = StarCanvasRenderer; /***/ }), -/* 1025 */ +/* 1021 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156436,12 +156294,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1026); + renderWebGL = __webpack_require__(1022); } if (true) { - renderCanvas = __webpack_require__(1027); + renderCanvas = __webpack_require__(1023); } module.exports = { @@ -156453,7 +156311,7 @@ module.exports = { /***/ }), -/* 1026 */ +/* 1022 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156556,7 +156414,7 @@ module.exports = TriangleWebGLRenderer; /***/ }), -/* 1027 */ +/* 1023 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156567,7 +156425,7 @@ module.exports = TriangleWebGLRenderer; var FillStyleCanvas = __webpack_require__(36); var LineStyleCanvas = __webpack_require__(49); -var SetTransform = __webpack_require__(28); +var SetTransform = __webpack_require__(29); /** * Renders this Game Object with the Canvas Renderer to the given Camera. @@ -156631,7 +156489,7 @@ module.exports = TriangleCanvasRenderer; /***/ }), -/* 1028 */ +/* 1024 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156640,7 +156498,7 @@ module.exports = TriangleCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(184); +var Blitter = __webpack_require__(183); var GameObjectFactory = __webpack_require__(5); /** @@ -156673,7 +156531,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) /***/ }), -/* 1029 */ +/* 1025 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156683,7 +156541,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Container = __webpack_require__(185); +var Container = __webpack_require__(184); var GameObjectFactory = __webpack_require__(5); /** @@ -156707,7 +156565,7 @@ GameObjectFactory.register('container', function (x, y, children) /***/ }), -/* 1030 */ +/* 1026 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156716,7 +156574,7 @@ GameObjectFactory.register('container', function (x, y, children) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DOMElement = __webpack_require__(390); +var DOMElement = __webpack_require__(388); var GameObjectFactory = __webpack_require__(5); /** @@ -156797,7 +156655,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) /***/ }), -/* 1031 */ +/* 1027 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156806,7 +156664,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DynamicBitmapText = __webpack_require__(186); +var DynamicBitmapText = __webpack_require__(185); var GameObjectFactory = __webpack_require__(5); /** @@ -156866,7 +156724,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size /***/ }), -/* 1032 */ +/* 1028 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156875,7 +156733,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extern = __webpack_require__(392); +var Extern = __webpack_require__(390); var GameObjectFactory = __webpack_require__(5); /** @@ -156908,7 +156766,7 @@ GameObjectFactory.register('extern', function () /***/ }), -/* 1033 */ +/* 1029 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156917,7 +156775,7 @@ GameObjectFactory.register('extern', function () * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Graphics = __webpack_require__(187); +var Graphics = __webpack_require__(186); var GameObjectFactory = __webpack_require__(5); /** @@ -156947,7 +156805,7 @@ GameObjectFactory.register('graphics', function (config) /***/ }), -/* 1034 */ +/* 1030 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156956,7 +156814,7 @@ GameObjectFactory.register('graphics', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Group = __webpack_require__(96); +var Group = __webpack_require__(95); var GameObjectFactory = __webpack_require__(5); /** @@ -156979,7 +156837,7 @@ GameObjectFactory.register('group', function (children, config) /***/ }), -/* 1035 */ +/* 1031 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156988,7 +156846,7 @@ GameObjectFactory.register('group', function (children, config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Image = __webpack_require__(104); +var Image = __webpack_require__(103); var GameObjectFactory = __webpack_require__(5); /** @@ -157021,7 +156879,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) /***/ }), -/* 1036 */ +/* 1032 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157031,7 +156889,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var ParticleEmitterManager = __webpack_require__(190); +var ParticleEmitterManager = __webpack_require__(189); /** * Creates a new Particle Emitter Manager Game Object and adds it to the Scene. @@ -157067,7 +156925,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) /***/ }), -/* 1037 */ +/* 1033 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157077,7 +156935,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) */ var GameObjectFactory = __webpack_require__(5); -var PathFollower = __webpack_require__(404); +var PathFollower = __webpack_require__(402); /** * Creates a new PathFollower Game Object and adds it to the Scene. @@ -157115,7 +156973,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) /***/ }), -/* 1038 */ +/* 1034 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157125,7 +156983,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var RenderTexture = __webpack_require__(191); +var RenderTexture = __webpack_require__(190); /** * Creates a new Render Texture Game Object and adds it to the Scene. @@ -157155,7 +157013,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, /***/ }), -/* 1039 */ +/* 1035 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157164,7 +157022,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rope = __webpack_require__(193); +var Rope = __webpack_require__(192); var GameObjectFactory = __webpack_require__(5); /** @@ -157209,7 +157067,7 @@ if (true) /***/ }), -/* 1040 */ +/* 1036 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157219,7 +157077,7 @@ if (true) */ var GameObjectFactory = __webpack_require__(5); -var Sprite = __webpack_require__(74); +var Sprite = __webpack_require__(73); /** * Creates a new Sprite Game Object and adds it to the Scene. @@ -157256,7 +157114,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) /***/ }), -/* 1041 */ +/* 1037 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157265,7 +157123,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); +var BitmapText = __webpack_require__(126); var GameObjectFactory = __webpack_require__(5); /** @@ -157320,7 +157178,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align /***/ }), -/* 1042 */ +/* 1038 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157329,7 +157187,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Text = __webpack_require__(194); +var Text = __webpack_require__(193); var GameObjectFactory = __webpack_require__(5); /** @@ -157385,7 +157243,7 @@ GameObjectFactory.register('text', function (x, y, text, style) /***/ }), -/* 1043 */ +/* 1039 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157394,7 +157252,7 @@ GameObjectFactory.register('text', function (x, y, text, style) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileSprite = __webpack_require__(195); +var TileSprite = __webpack_require__(194); var GameObjectFactory = __webpack_require__(5); /** @@ -157429,7 +157287,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra /***/ }), -/* 1044 */ +/* 1040 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157438,7 +157296,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Zone = __webpack_require__(107); +var Zone = __webpack_require__(106); var GameObjectFactory = __webpack_require__(5); /** @@ -157471,7 +157329,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) /***/ }), -/* 1045 */ +/* 1041 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157480,7 +157338,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Video = __webpack_require__(196); +var Video = __webpack_require__(195); var GameObjectFactory = __webpack_require__(5); /** @@ -157518,7 +157376,7 @@ GameObjectFactory.register('video', function (x, y, key) /***/ }), -/* 1046 */ +/* 1042 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157527,7 +157385,7 @@ GameObjectFactory.register('video', function (x, y, key) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arc = __webpack_require__(405); +var Arc = __webpack_require__(403); var GameObjectFactory = __webpack_require__(5); /** @@ -157591,7 +157449,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph /***/ }), -/* 1047 */ +/* 1043 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157601,7 +157459,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph */ var GameObjectFactory = __webpack_require__(5); -var Curve = __webpack_require__(406); +var Curve = __webpack_require__(404); /** * Creates a new Curve Shape Game Object and adds it to the Scene. @@ -157641,7 +157499,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) /***/ }), -/* 1048 */ +/* 1044 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157650,7 +157508,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(407); +var Ellipse = __webpack_require__(405); var GameObjectFactory = __webpack_require__(5); /** @@ -157693,7 +157551,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, /***/ }), -/* 1049 */ +/* 1045 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157703,7 +157561,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, */ var GameObjectFactory = __webpack_require__(5); -var Grid = __webpack_require__(408); +var Grid = __webpack_require__(406); /** * Creates a new Grid Shape Game Object and adds it to the Scene. @@ -157748,7 +157606,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel /***/ }), -/* 1050 */ +/* 1046 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157758,7 +157616,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel */ var GameObjectFactory = __webpack_require__(5); -var IsoBox = __webpack_require__(409); +var IsoBox = __webpack_require__(407); /** * Creates a new IsoBox Shape Game Object and adds it to the Scene. @@ -157799,7 +157657,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill /***/ }), -/* 1051 */ +/* 1047 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157809,7 +157667,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill */ var GameObjectFactory = __webpack_require__(5); -var IsoTriangle = __webpack_require__(410); +var IsoTriangle = __webpack_require__(408); /** * Creates a new IsoTriangle Shape Game Object and adds it to the Scene. @@ -157852,7 +157710,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed /***/ }), -/* 1052 */ +/* 1048 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157862,7 +157720,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed */ var GameObjectFactory = __webpack_require__(5); -var Line = __webpack_require__(411); +var Line = __webpack_require__(409); /** * Creates a new Line Shape Game Object and adds it to the Scene. @@ -157903,7 +157761,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, /***/ }), -/* 1053 */ +/* 1049 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157913,7 +157771,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, */ var GameObjectFactory = __webpack_require__(5); -var Polygon = __webpack_require__(412); +var Polygon = __webpack_require__(410); /** * Creates a new Polygon Shape Game Object and adds it to the Scene. @@ -157956,7 +157814,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp /***/ }), -/* 1054 */ +/* 1050 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157966,7 +157824,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp */ var GameObjectFactory = __webpack_require__(5); -var Rectangle = __webpack_require__(417); +var Rectangle = __webpack_require__(415); /** * Creates a new Rectangle Shape Game Object and adds it to the Scene. @@ -158001,7 +157859,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor /***/ }), -/* 1055 */ +/* 1051 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158010,7 +157868,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Star = __webpack_require__(418); +var Star = __webpack_require__(416); var GameObjectFactory = __webpack_require__(5); /** @@ -158053,7 +157911,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad /***/ }), -/* 1056 */ +/* 1052 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158063,7 +157921,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad */ var GameObjectFactory = __webpack_require__(5); -var Triangle = __webpack_require__(419); +var Triangle = __webpack_require__(417); /** * Creates a new Triangle Shape Game Object and adds it to the Scene. @@ -158104,7 +157962,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f /***/ }), -/* 1057 */ +/* 1053 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158113,10 +157971,10 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(184); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var Blitter = __webpack_require__(183); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Blitter Game Object and returns it. @@ -158154,7 +158012,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) /***/ }), -/* 1058 */ +/* 1054 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158164,10 +158022,10 @@ GameObjectCreator.register('blitter', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var Container = __webpack_require__(185); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var Container = __webpack_require__(184); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Container Game Object and returns it. @@ -158203,7 +158061,7 @@ GameObjectCreator.register('container', function (config, addToScene) /***/ }), -/* 1059 */ +/* 1055 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158212,10 +158070,10 @@ GameObjectCreator.register('container', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(186); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BitmapText = __webpack_require__(185); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); /** * Creates a new Dynamic Bitmap Text Game Object and returns it. @@ -158254,7 +158112,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) /***/ }), -/* 1060 */ +/* 1056 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158263,8 +158121,8 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var Graphics = __webpack_require__(187); +var GameObjectCreator = __webpack_require__(17); +var Graphics = __webpack_require__(186); /** * Creates a new Graphics Game Object and returns it. @@ -158302,7 +158160,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) /***/ }), -/* 1061 */ +/* 1057 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158311,8 +158169,8 @@ GameObjectCreator.register('graphics', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var Group = __webpack_require__(96); +var GameObjectCreator = __webpack_require__(17); +var Group = __webpack_require__(95); /** * Creates a new Group Game Object and returns it. @@ -158335,7 +158193,7 @@ GameObjectCreator.register('group', function (config) /***/ }), -/* 1062 */ +/* 1058 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158344,10 +158202,10 @@ GameObjectCreator.register('group', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Image = __webpack_require__(104); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Image = __webpack_require__(103); /** * Creates a new Image Game Object and returns it. @@ -158385,7 +158243,7 @@ GameObjectCreator.register('image', function (config, addToScene) /***/ }), -/* 1063 */ +/* 1059 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158394,10 +158252,10 @@ GameObjectCreator.register('image', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetFastValue = __webpack_require__(2); -var ParticleEmitterManager = __webpack_require__(190); +var ParticleEmitterManager = __webpack_require__(189); /** * Creates a new Particle Emitter Manager Game Object and returns it. @@ -158442,7 +158300,7 @@ GameObjectCreator.register('particles', function (config, addToScene) /***/ }), -/* 1064 */ +/* 1060 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158451,10 +158309,10 @@ GameObjectCreator.register('particles', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var RenderTexture = __webpack_require__(191); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var RenderTexture = __webpack_require__(190); /** * Creates a new Render Texture Game Object and returns it. @@ -158494,7 +158352,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) /***/ }), -/* 1065 */ +/* 1061 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158503,11 +158361,11 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var Rope = __webpack_require__(193); +var Rope = __webpack_require__(192); /** * Creates a new Rope Game Object and returns it. @@ -158549,7 +158407,7 @@ GameObjectCreator.register('rope', function (config, addToScene) /***/ }), -/* 1066 */ +/* 1062 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158558,11 +158416,11 @@ GameObjectCreator.register('rope', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var BuildGameObjectAnimation = __webpack_require__(388); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Sprite = __webpack_require__(74); +var BuildGameObject = __webpack_require__(28); +var BuildGameObjectAnimation = __webpack_require__(386); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Sprite = __webpack_require__(73); /** * Creates a new Sprite Game Object and returns it. @@ -158602,7 +158460,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) /***/ }), -/* 1067 */ +/* 1063 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158611,10 +158469,10 @@ GameObjectCreator.register('sprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(127); -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BitmapText = __webpack_require__(126); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); /** @@ -158655,7 +158513,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) /***/ }), -/* 1068 */ +/* 1064 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158664,10 +158522,10 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Text = __webpack_require__(194); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Text = __webpack_require__(193); /** * Creates a new Text Game Object and returns it. @@ -158742,7 +158600,7 @@ GameObjectCreator.register('text', function (config, addToScene) /***/ }), -/* 1069 */ +/* 1065 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158751,10 +158609,10 @@ GameObjectCreator.register('text', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var TileSprite = __webpack_require__(195); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var TileSprite = __webpack_require__(194); /** * Creates a new TileSprite Game Object and returns it. @@ -158794,7 +158652,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) /***/ }), -/* 1070 */ +/* 1066 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158803,9 +158661,9 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Zone = __webpack_require__(107); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Zone = __webpack_require__(106); /** * Creates a new Zone Game Object and returns it. @@ -158833,7 +158691,7 @@ GameObjectCreator.register('zone', function (config) /***/ }), -/* 1071 */ +/* 1067 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158842,10 +158700,10 @@ GameObjectCreator.register('zone', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Video = __webpack_require__(196); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Video = __webpack_require__(195); /** * Creates a new Video Game Object and returns it. @@ -158882,7 +158740,7 @@ GameObjectCreator.register('video', function (config, addToScene) /***/ }), -/* 1072 */ +/* 1068 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158896,12 +158754,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1073); + renderWebGL = __webpack_require__(1069); } if (true) { - renderCanvas = __webpack_require__(1074); + renderCanvas = __webpack_require__(1070); } module.exports = { @@ -158913,7 +158771,7 @@ module.exports = { /***/ }), -/* 1073 */ +/* 1069 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159031,7 +158889,7 @@ module.exports = MeshWebGLRenderer; /***/ }), -/* 1074 */ +/* 1070 */ /***/ (function(module, exports) { /** @@ -159060,7 +158918,7 @@ module.exports = MeshCanvasRenderer; /***/ }), -/* 1075 */ +/* 1071 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159074,12 +158932,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1076); + renderWebGL = __webpack_require__(1072); } if (true) { - renderCanvas = __webpack_require__(1077); + renderCanvas = __webpack_require__(1073); } module.exports = { @@ -159091,7 +158949,7 @@ module.exports = { /***/ }), -/* 1076 */ +/* 1072 */ /***/ (function(module, exports) { /** @@ -159175,7 +159033,7 @@ module.exports = ShaderWebGLRenderer; /***/ }), -/* 1077 */ +/* 1073 */ /***/ (function(module, exports) { /** @@ -159204,7 +159062,7 @@ module.exports = ShaderCanvasRenderer; /***/ }), -/* 1078 */ +/* 1074 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159213,7 +159071,7 @@ module.exports = ShaderCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); var GameObjectFactory = __webpack_require__(5); /** @@ -159254,7 +159112,7 @@ if (true) /***/ }), -/* 1079 */ +/* 1075 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159263,7 +159121,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Quad = __webpack_require__(199); +var Quad = __webpack_require__(198); var GameObjectFactory = __webpack_require__(5); /** @@ -159300,7 +159158,7 @@ if (true) /***/ }), -/* 1080 */ +/* 1076 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159309,7 +159167,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Shader = __webpack_require__(200); +var Shader = __webpack_require__(199); var GameObjectFactory = __webpack_require__(5); /** @@ -159341,7 +159199,7 @@ if (true) /***/ }), -/* 1081 */ +/* 1077 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159350,11 +159208,11 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); var GetValue = __webpack_require__(6); -var Mesh = __webpack_require__(129); +var Mesh = __webpack_require__(128); /** * Creates a new Mesh Game Object and returns it. @@ -159396,7 +159254,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) /***/ }), -/* 1082 */ +/* 1078 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159405,10 +159263,10 @@ GameObjectCreator.register('mesh', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Quad = __webpack_require__(199); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Quad = __webpack_require__(198); /** * Creates a new Quad Game Object and returns it. @@ -159446,7 +159304,7 @@ GameObjectCreator.register('quad', function (config, addToScene) /***/ }), -/* 1083 */ +/* 1079 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159455,10 +159313,10 @@ GameObjectCreator.register('quad', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BuildGameObject = __webpack_require__(27); -var GameObjectCreator = __webpack_require__(16); -var GetAdvancedValue = __webpack_require__(14); -var Shader = __webpack_require__(200); +var BuildGameObject = __webpack_require__(28); +var GameObjectCreator = __webpack_require__(17); +var GetAdvancedValue = __webpack_require__(15); +var Shader = __webpack_require__(199); /** * Creates a new Shader Game Object and returns it. @@ -159499,7 +159357,7 @@ GameObjectCreator.register('shader', function (config, addToScene) /***/ }), -/* 1084 */ +/* 1080 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159509,9 +159367,9 @@ GameObjectCreator.register('shader', function (config, addToScene) */ var Class = __webpack_require__(0); -var LightsManager = __webpack_require__(424); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var LightsManager = __webpack_require__(422); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -159615,7 +159473,7 @@ module.exports = LightsPlugin; /***/ }), -/* 1085 */ +/* 1081 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159626,27 +159484,27 @@ module.exports = LightsPlugin; var Circle = __webpack_require__(63); -Circle.Area = __webpack_require__(1086); -Circle.Circumference = __webpack_require__(265); -Circle.CircumferencePoint = __webpack_require__(144); -Circle.Clone = __webpack_require__(1087); +Circle.Area = __webpack_require__(1082); +Circle.Circumference = __webpack_require__(263); +Circle.CircumferencePoint = __webpack_require__(143); +Circle.Clone = __webpack_require__(1083); Circle.Contains = __webpack_require__(55); -Circle.ContainsPoint = __webpack_require__(1088); -Circle.ContainsRect = __webpack_require__(1089); -Circle.CopyFrom = __webpack_require__(1090); -Circle.Equals = __webpack_require__(1091); -Circle.GetBounds = __webpack_require__(1092); -Circle.GetPoint = __webpack_require__(263); -Circle.GetPoints = __webpack_require__(264); -Circle.Offset = __webpack_require__(1093); -Circle.OffsetPoint = __webpack_require__(1094); -Circle.Random = __webpack_require__(145); +Circle.ContainsPoint = __webpack_require__(1084); +Circle.ContainsRect = __webpack_require__(1085); +Circle.CopyFrom = __webpack_require__(1086); +Circle.Equals = __webpack_require__(1087); +Circle.GetBounds = __webpack_require__(1088); +Circle.GetPoint = __webpack_require__(261); +Circle.GetPoints = __webpack_require__(262); +Circle.Offset = __webpack_require__(1089); +Circle.OffsetPoint = __webpack_require__(1090); +Circle.Random = __webpack_require__(144); module.exports = Circle; /***/ }), -/* 1086 */ +/* 1082 */ /***/ (function(module, exports) { /** @@ -159674,7 +159532,7 @@ module.exports = Area; /***/ }), -/* 1087 */ +/* 1083 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159704,7 +159562,7 @@ module.exports = Clone; /***/ }), -/* 1088 */ +/* 1084 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159735,7 +159593,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1089 */ +/* 1085 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159771,7 +159629,7 @@ module.exports = ContainsRect; /***/ }), -/* 1090 */ +/* 1086 */ /***/ (function(module, exports) { /** @@ -159803,7 +159661,7 @@ module.exports = CopyFrom; /***/ }), -/* 1091 */ +/* 1087 */ /***/ (function(module, exports) { /** @@ -159837,7 +159695,7 @@ module.exports = Equals; /***/ }), -/* 1092 */ +/* 1088 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159846,7 +159704,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Returns the bounds of the Circle object. @@ -159877,7 +159735,7 @@ module.exports = GetBounds; /***/ }), -/* 1093 */ +/* 1089 */ /***/ (function(module, exports) { /** @@ -159912,7 +159770,7 @@ module.exports = Offset; /***/ }), -/* 1094 */ +/* 1090 */ /***/ (function(module, exports) { /** @@ -159946,7 +159804,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1095 */ +/* 1091 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159955,29 +159813,29 @@ module.exports = OffsetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(94); +var Ellipse = __webpack_require__(93); -Ellipse.Area = __webpack_require__(1096); -Ellipse.Circumference = __webpack_require__(395); -Ellipse.CircumferencePoint = __webpack_require__(189); -Ellipse.Clone = __webpack_require__(1097); -Ellipse.Contains = __webpack_require__(95); -Ellipse.ContainsPoint = __webpack_require__(1098); -Ellipse.ContainsRect = __webpack_require__(1099); -Ellipse.CopyFrom = __webpack_require__(1100); -Ellipse.Equals = __webpack_require__(1101); -Ellipse.GetBounds = __webpack_require__(1102); -Ellipse.GetPoint = __webpack_require__(393); -Ellipse.GetPoints = __webpack_require__(394); -Ellipse.Offset = __webpack_require__(1103); -Ellipse.OffsetPoint = __webpack_require__(1104); -Ellipse.Random = __webpack_require__(152); +Ellipse.Area = __webpack_require__(1092); +Ellipse.Circumference = __webpack_require__(393); +Ellipse.CircumferencePoint = __webpack_require__(188); +Ellipse.Clone = __webpack_require__(1093); +Ellipse.Contains = __webpack_require__(94); +Ellipse.ContainsPoint = __webpack_require__(1094); +Ellipse.ContainsRect = __webpack_require__(1095); +Ellipse.CopyFrom = __webpack_require__(1096); +Ellipse.Equals = __webpack_require__(1097); +Ellipse.GetBounds = __webpack_require__(1098); +Ellipse.GetPoint = __webpack_require__(391); +Ellipse.GetPoints = __webpack_require__(392); +Ellipse.Offset = __webpack_require__(1099); +Ellipse.OffsetPoint = __webpack_require__(1100); +Ellipse.Random = __webpack_require__(151); module.exports = Ellipse; /***/ }), -/* 1096 */ +/* 1092 */ /***/ (function(module, exports) { /** @@ -160011,7 +159869,7 @@ module.exports = Area; /***/ }), -/* 1097 */ +/* 1093 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160020,7 +159878,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(94); +var Ellipse = __webpack_require__(93); /** * Creates a new Ellipse instance based on the values contained in the given source. @@ -160041,7 +159899,7 @@ module.exports = Clone; /***/ }), -/* 1098 */ +/* 1094 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160050,7 +159908,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(95); +var Contains = __webpack_require__(94); /** * Check to see if the Ellipse contains the given Point object. @@ -160072,7 +159930,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1099 */ +/* 1095 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160081,7 +159939,7 @@ module.exports = ContainsPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(95); +var Contains = __webpack_require__(94); /** * Check to see if the Ellipse contains all four points of the given Rectangle object. @@ -160108,7 +159966,7 @@ module.exports = ContainsRect; /***/ }), -/* 1100 */ +/* 1096 */ /***/ (function(module, exports) { /** @@ -160140,7 +159998,7 @@ module.exports = CopyFrom; /***/ }), -/* 1101 */ +/* 1097 */ /***/ (function(module, exports) { /** @@ -160175,7 +160033,7 @@ module.exports = Equals; /***/ }), -/* 1102 */ +/* 1098 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160184,7 +160042,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Returns the bounds of the Ellipse object. @@ -160215,7 +160073,7 @@ module.exports = GetBounds; /***/ }), -/* 1103 */ +/* 1099 */ /***/ (function(module, exports) { /** @@ -160250,7 +160108,7 @@ module.exports = Offset; /***/ }), -/* 1104 */ +/* 1100 */ /***/ (function(module, exports) { /** @@ -160284,7 +160142,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1105 */ +/* 1101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160295,7 +160153,7 @@ module.exports = OffsetPoint; */ var Point = __webpack_require__(4); -var CircleToCircle = __webpack_require__(201); +var CircleToCircle = __webpack_require__(200); /** * Checks if two Circles intersect and returns the intersection points as a Point object array. @@ -160378,7 +160236,7 @@ module.exports = GetCircleToCircle; /***/ }), -/* 1106 */ +/* 1102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160388,8 +160246,8 @@ module.exports = GetCircleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(203); -var CircleToRectangle = __webpack_require__(202); +var GetLineToCircle = __webpack_require__(202); +var CircleToRectangle = __webpack_require__(201); /** * Checks for intersection between a circle and a rectangle, @@ -160428,7 +160286,7 @@ module.exports = GetCircleToRectangle; /***/ }), -/* 1107 */ +/* 1103 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160437,8 +160295,8 @@ module.exports = GetCircleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var RectangleToRectangle = __webpack_require__(130); +var Rectangle = __webpack_require__(13); +var RectangleToRectangle = __webpack_require__(129); /** * Checks if two Rectangle shapes intersect and returns the area of this intersection as Rectangle object. @@ -160477,7 +160335,7 @@ module.exports = GetRectangleIntersection; /***/ }), -/* 1108 */ +/* 1104 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160487,8 +160345,8 @@ module.exports = GetRectangleIntersection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToRectangle = __webpack_require__(205); -var RectangleToRectangle = __webpack_require__(130); +var GetLineToRectangle = __webpack_require__(204); +var RectangleToRectangle = __webpack_require__(129); /** * Checks if two Rectangles intersect and returns the intersection points as a Point object array. @@ -160528,7 +160386,7 @@ module.exports = GetRectangleToRectangle; /***/ }), -/* 1109 */ +/* 1105 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160538,8 +160396,8 @@ module.exports = GetRectangleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RectangleToTriangle = __webpack_require__(428); -var GetLineToRectangle = __webpack_require__(205); +var RectangleToTriangle = __webpack_require__(426); +var GetLineToRectangle = __webpack_require__(204); /** * Checks for intersection between Rectangle shape and Triangle shape, @@ -160576,7 +160434,7 @@ module.exports = GetRectangleToTriangle; /***/ }), -/* 1110 */ +/* 1106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160586,8 +160444,8 @@ module.exports = GetRectangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(203); -var TriangleToCircle = __webpack_require__(430); +var GetLineToCircle = __webpack_require__(202); +var TriangleToCircle = __webpack_require__(428); /** * Checks if a Triangle and a Circle intersect, and returns the intersection points as a Point object array. @@ -160625,7 +160483,7 @@ module.exports = GetTriangleToCircle; /***/ }), -/* 1111 */ +/* 1107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160635,8 +160493,8 @@ module.exports = GetTriangleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TriangleToTriangle = __webpack_require__(433); -var GetTriangleToLine = __webpack_require__(431); +var TriangleToTriangle = __webpack_require__(431); +var GetTriangleToLine = __webpack_require__(429); /** * Checks if two Triangles intersect, and returns the intersection points as a Point object array. @@ -160674,7 +160532,7 @@ module.exports = GetTriangleToTriangle; /***/ }), -/* 1112 */ +/* 1108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160683,7 +160541,7 @@ module.exports = GetTriangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PointToLine = __webpack_require__(435); +var PointToLine = __webpack_require__(433); /** * Checks if a Point is located on the given line segment. @@ -160715,7 +160573,7 @@ module.exports = PointToLineSegment; /***/ }), -/* 1113 */ +/* 1109 */ /***/ (function(module, exports) { /** @@ -160755,7 +160613,7 @@ module.exports = RectangleToValues; /***/ }), -/* 1114 */ +/* 1110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160766,41 +160624,41 @@ module.exports = RectangleToValues; var Line = __webpack_require__(56); -Line.Angle = __webpack_require__(84); -Line.BresenhamPoints = __webpack_require__(285); -Line.CenterOn = __webpack_require__(1115); -Line.Clone = __webpack_require__(1116); -Line.CopyFrom = __webpack_require__(1117); -Line.Equals = __webpack_require__(1118); -Line.Extend = __webpack_require__(1119); -Line.GetEasedPoints = __webpack_require__(1120); -Line.GetMidPoint = __webpack_require__(1121); -Line.GetNearestPoint = __webpack_require__(1122); -Line.GetNormal = __webpack_require__(1123); -Line.GetPoint = __webpack_require__(272); -Line.GetPoints = __webpack_require__(148); -Line.GetShortestDistance = __webpack_require__(1124); -Line.Height = __webpack_require__(1125); +Line.Angle = __webpack_require__(83); +Line.BresenhamPoints = __webpack_require__(283); +Line.CenterOn = __webpack_require__(1111); +Line.Clone = __webpack_require__(1112); +Line.CopyFrom = __webpack_require__(1113); +Line.Equals = __webpack_require__(1114); +Line.Extend = __webpack_require__(1115); +Line.GetEasedPoints = __webpack_require__(1116); +Line.GetMidPoint = __webpack_require__(1117); +Line.GetNearestPoint = __webpack_require__(1118); +Line.GetNormal = __webpack_require__(1119); +Line.GetPoint = __webpack_require__(270); +Line.GetPoints = __webpack_require__(147); +Line.GetShortestDistance = __webpack_require__(1120); +Line.Height = __webpack_require__(1121); Line.Length = __webpack_require__(57); -Line.NormalAngle = __webpack_require__(436); -Line.NormalX = __webpack_require__(1126); -Line.NormalY = __webpack_require__(1127); -Line.Offset = __webpack_require__(1128); -Line.PerpSlope = __webpack_require__(1129); -Line.Random = __webpack_require__(149); -Line.ReflectAngle = __webpack_require__(1130); -Line.Rotate = __webpack_require__(1131); -Line.RotateAroundPoint = __webpack_require__(1132); -Line.RotateAroundXY = __webpack_require__(207); -Line.SetToAngle = __webpack_require__(1133); -Line.Slope = __webpack_require__(1134); -Line.Width = __webpack_require__(1135); +Line.NormalAngle = __webpack_require__(434); +Line.NormalX = __webpack_require__(1122); +Line.NormalY = __webpack_require__(1123); +Line.Offset = __webpack_require__(1124); +Line.PerpSlope = __webpack_require__(1125); +Line.Random = __webpack_require__(148); +Line.ReflectAngle = __webpack_require__(1126); +Line.Rotate = __webpack_require__(1127); +Line.RotateAroundPoint = __webpack_require__(1128); +Line.RotateAroundXY = __webpack_require__(206); +Line.SetToAngle = __webpack_require__(1129); +Line.Slope = __webpack_require__(1130); +Line.Width = __webpack_require__(1131); module.exports = Line; /***/ }), -/* 1115 */ +/* 1111 */ /***/ (function(module, exports) { /** @@ -160840,7 +160698,7 @@ module.exports = CenterOn; /***/ }), -/* 1116 */ +/* 1112 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160870,7 +160728,7 @@ module.exports = Clone; /***/ }), -/* 1117 */ +/* 1113 */ /***/ (function(module, exports) { /** @@ -160901,7 +160759,7 @@ module.exports = CopyFrom; /***/ }), -/* 1118 */ +/* 1114 */ /***/ (function(module, exports) { /** @@ -160935,7 +160793,7 @@ module.exports = Equals; /***/ }), -/* 1119 */ +/* 1115 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160993,7 +160851,7 @@ module.exports = Extend; /***/ }), -/* 1120 */ +/* 1116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161002,7 +160860,7 @@ module.exports = Extend; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DistanceBetweenPoints = __webpack_require__(316); +var DistanceBetweenPoints = __webpack_require__(314); var GetEaseFunction = __webpack_require__(67); var Point = __webpack_require__(4); @@ -161113,7 +160971,7 @@ module.exports = GetEasedPoints; /***/ }), -/* 1121 */ +/* 1117 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161151,7 +161009,7 @@ module.exports = GetMidPoint; /***/ }), -/* 1122 */ +/* 1118 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161206,7 +161064,7 @@ module.exports = GetNearestPoint; /***/ }), -/* 1123 */ +/* 1119 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161215,8 +161073,8 @@ module.exports = GetNearestPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); var Point = __webpack_require__(4); /** @@ -161250,7 +161108,7 @@ module.exports = GetNormal; /***/ }), -/* 1124 */ +/* 1120 */ /***/ (function(module, exports) { /** @@ -161297,7 +161155,7 @@ module.exports = GetShortestDistance; /***/ }), -/* 1125 */ +/* 1121 */ /***/ (function(module, exports) { /** @@ -161325,7 +161183,7 @@ module.exports = Height; /***/ }), -/* 1126 */ +/* 1122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161334,8 +161192,8 @@ module.exports = Height; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); /** * Returns the x component of the normal vector of the given line. @@ -161356,7 +161214,7 @@ module.exports = NormalX; /***/ }), -/* 1127 */ +/* 1123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161365,8 +161223,8 @@ module.exports = NormalX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(84); +var MATH_CONST = __webpack_require__(16); +var Angle = __webpack_require__(83); /** * The Y value of the normal of the given line. @@ -161388,7 +161246,7 @@ module.exports = NormalY; /***/ }), -/* 1128 */ +/* 1124 */ /***/ (function(module, exports) { /** @@ -161426,7 +161284,7 @@ module.exports = Offset; /***/ }), -/* 1129 */ +/* 1125 */ /***/ (function(module, exports) { /** @@ -161454,7 +161312,7 @@ module.exports = PerpSlope; /***/ }), -/* 1130 */ +/* 1126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161463,8 +161321,8 @@ module.exports = PerpSlope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(84); -var NormalAngle = __webpack_require__(436); +var Angle = __webpack_require__(83); +var NormalAngle = __webpack_require__(434); /** * Calculate the reflected angle between two lines. @@ -161488,7 +161346,7 @@ module.exports = ReflectAngle; /***/ }), -/* 1131 */ +/* 1127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161497,7 +161355,7 @@ module.exports = ReflectAngle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(207); +var RotateAroundXY = __webpack_require__(206); /** * Rotate a line around its midpoint by the given angle in radians. @@ -161524,7 +161382,7 @@ module.exports = Rotate; /***/ }), -/* 1132 */ +/* 1128 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161533,7 +161391,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(207); +var RotateAroundXY = __webpack_require__(206); /** * Rotate a line around a point by the given angle in radians. @@ -161558,7 +161416,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1133 */ +/* 1129 */ /***/ (function(module, exports) { /** @@ -161598,7 +161456,7 @@ module.exports = SetToAngle; /***/ }), -/* 1134 */ +/* 1130 */ /***/ (function(module, exports) { /** @@ -161626,7 +161484,7 @@ module.exports = Slope; /***/ }), -/* 1135 */ +/* 1131 */ /***/ (function(module, exports) { /** @@ -161654,7 +161512,7 @@ module.exports = Width; /***/ }), -/* 1136 */ +/* 1132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161665,27 +161523,27 @@ module.exports = Width; var Point = __webpack_require__(4); -Point.Ceil = __webpack_require__(1137); -Point.Clone = __webpack_require__(1138); -Point.CopyFrom = __webpack_require__(1139); -Point.Equals = __webpack_require__(1140); -Point.Floor = __webpack_require__(1141); -Point.GetCentroid = __webpack_require__(1142); -Point.GetMagnitude = __webpack_require__(437); -Point.GetMagnitudeSq = __webpack_require__(438); -Point.GetRectangleFromPoints = __webpack_require__(1143); -Point.Interpolate = __webpack_require__(1144); -Point.Invert = __webpack_require__(1145); -Point.Negative = __webpack_require__(1146); -Point.Project = __webpack_require__(1147); -Point.ProjectUnit = __webpack_require__(1148); -Point.SetMagnitude = __webpack_require__(1149); +Point.Ceil = __webpack_require__(1133); +Point.Clone = __webpack_require__(1134); +Point.CopyFrom = __webpack_require__(1135); +Point.Equals = __webpack_require__(1136); +Point.Floor = __webpack_require__(1137); +Point.GetCentroid = __webpack_require__(1138); +Point.GetMagnitude = __webpack_require__(435); +Point.GetMagnitudeSq = __webpack_require__(436); +Point.GetRectangleFromPoints = __webpack_require__(1139); +Point.Interpolate = __webpack_require__(1140); +Point.Invert = __webpack_require__(1141); +Point.Negative = __webpack_require__(1142); +Point.Project = __webpack_require__(1143); +Point.ProjectUnit = __webpack_require__(1144); +Point.SetMagnitude = __webpack_require__(1145); module.exports = Point; /***/ }), -/* 1137 */ +/* 1133 */ /***/ (function(module, exports) { /** @@ -161715,7 +161573,7 @@ module.exports = Ceil; /***/ }), -/* 1138 */ +/* 1134 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161745,7 +161603,7 @@ module.exports = Clone; /***/ }), -/* 1139 */ +/* 1135 */ /***/ (function(module, exports) { /** @@ -161776,7 +161634,7 @@ module.exports = CopyFrom; /***/ }), -/* 1140 */ +/* 1136 */ /***/ (function(module, exports) { /** @@ -161805,7 +161663,7 @@ module.exports = Equals; /***/ }), -/* 1141 */ +/* 1137 */ /***/ (function(module, exports) { /** @@ -161835,7 +161693,7 @@ module.exports = Floor; /***/ }), -/* 1142 */ +/* 1138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161899,7 +161757,7 @@ module.exports = GetCentroid; /***/ }), -/* 1143 */ +/* 1139 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161908,7 +161766,7 @@ module.exports = GetCentroid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Calculates the Axis Aligned Bounding Box (or aabb) from an array of points. @@ -161969,7 +161827,7 @@ module.exports = GetRectangleFromPoints; /***/ }), -/* 1144 */ +/* 1140 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162010,7 +161868,7 @@ module.exports = Interpolate; /***/ }), -/* 1145 */ +/* 1141 */ /***/ (function(module, exports) { /** @@ -162040,7 +161898,7 @@ module.exports = Invert; /***/ }), -/* 1146 */ +/* 1142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162075,7 +161933,7 @@ module.exports = Negative; /***/ }), -/* 1147 */ +/* 1143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162085,7 +161943,7 @@ module.exports = Negative; */ var Point = __webpack_require__(4); -var GetMagnitudeSq = __webpack_require__(438); +var GetMagnitudeSq = __webpack_require__(436); /** * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the @@ -162122,7 +161980,7 @@ module.exports = Project; /***/ }), -/* 1148 */ +/* 1144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162167,7 +162025,7 @@ module.exports = ProjectUnit; /***/ }), -/* 1149 */ +/* 1145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162176,7 +162034,7 @@ module.exports = ProjectUnit; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetMagnitude = __webpack_require__(437); +var GetMagnitude = __webpack_require__(435); /** * Changes the magnitude (length) of a two-dimensional vector without changing its direction. @@ -162211,7 +162069,7 @@ module.exports = SetMagnitude; /***/ }), -/* 1150 */ +/* 1146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162220,23 +162078,23 @@ module.exports = SetMagnitude; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(197); +var Polygon = __webpack_require__(196); -Polygon.Clone = __webpack_require__(1151); -Polygon.Contains = __webpack_require__(198); -Polygon.ContainsPoint = __webpack_require__(1152); -Polygon.GetAABB = __webpack_require__(413); -Polygon.GetNumberArray = __webpack_require__(1153); -Polygon.GetPoints = __webpack_require__(414); -Polygon.Perimeter = __webpack_require__(415); -Polygon.Reverse = __webpack_require__(1154); -Polygon.Smooth = __webpack_require__(416); +Polygon.Clone = __webpack_require__(1147); +Polygon.Contains = __webpack_require__(197); +Polygon.ContainsPoint = __webpack_require__(1148); +Polygon.GetAABB = __webpack_require__(411); +Polygon.GetNumberArray = __webpack_require__(1149); +Polygon.GetPoints = __webpack_require__(412); +Polygon.Perimeter = __webpack_require__(413); +Polygon.Reverse = __webpack_require__(1150); +Polygon.Smooth = __webpack_require__(414); module.exports = Polygon; /***/ }), -/* 1151 */ +/* 1147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162245,7 +162103,7 @@ module.exports = Polygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(197); +var Polygon = __webpack_require__(196); /** * Create a new polygon which is a copy of the specified polygon @@ -162266,7 +162124,7 @@ module.exports = Clone; /***/ }), -/* 1152 */ +/* 1148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162275,7 +162133,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(198); +var Contains = __webpack_require__(197); /** * Checks the given Point again the Polygon to see if the Point lays within its vertices. @@ -162297,7 +162155,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1153 */ +/* 1149 */ /***/ (function(module, exports) { /** @@ -162340,7 +162198,7 @@ module.exports = GetNumberArray; /***/ }), -/* 1154 */ +/* 1150 */ /***/ (function(module, exports) { /** @@ -162372,7 +162230,7 @@ module.exports = Reverse; /***/ }), -/* 1155 */ +/* 1151 */ /***/ (function(module, exports) { /** @@ -162400,7 +162258,7 @@ module.exports = Area; /***/ }), -/* 1156 */ +/* 1152 */ /***/ (function(module, exports) { /** @@ -162433,7 +162291,7 @@ module.exports = Ceil; /***/ }), -/* 1157 */ +/* 1153 */ /***/ (function(module, exports) { /** @@ -162468,7 +162326,7 @@ module.exports = CeilAll; /***/ }), -/* 1158 */ +/* 1154 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162477,7 +162335,7 @@ module.exports = CeilAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); +var Rectangle = __webpack_require__(13); /** * Creates a new Rectangle which is identical to the given one. @@ -162498,7 +162356,7 @@ module.exports = Clone; /***/ }), -/* 1159 */ +/* 1155 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162529,7 +162387,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1160 */ +/* 1156 */ /***/ (function(module, exports) { /** @@ -162560,7 +162418,7 @@ module.exports = CopyFrom; /***/ }), -/* 1161 */ +/* 1157 */ /***/ (function(module, exports) { /** @@ -162594,7 +162452,7 @@ module.exports = Equals; /***/ }), -/* 1162 */ +/* 1158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162603,7 +162461,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(208); +var GetAspectRatio = __webpack_require__(207); /** * Adjusts the target rectangle, changing its width, height and position, @@ -162647,7 +162505,7 @@ module.exports = FitInside; /***/ }), -/* 1163 */ +/* 1159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162656,7 +162514,7 @@ module.exports = FitInside; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(208); +var GetAspectRatio = __webpack_require__(207); /** * Adjusts the target rectangle, changing its width, height and position, @@ -162700,7 +162558,7 @@ module.exports = FitOutside; /***/ }), -/* 1164 */ +/* 1160 */ /***/ (function(module, exports) { /** @@ -162733,7 +162591,7 @@ module.exports = Floor; /***/ }), -/* 1165 */ +/* 1161 */ /***/ (function(module, exports) { /** @@ -162768,7 +162626,7 @@ module.exports = FloorAll; /***/ }), -/* 1166 */ +/* 1162 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162806,7 +162664,7 @@ module.exports = GetCenter; /***/ }), -/* 1167 */ +/* 1163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162846,7 +162704,7 @@ module.exports = GetSize; /***/ }), -/* 1168 */ +/* 1164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162855,7 +162713,7 @@ module.exports = GetSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(163); +var CenterOn = __webpack_require__(162); /** @@ -162888,7 +162746,7 @@ module.exports = Inflate; /***/ }), -/* 1169 */ +/* 1165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162897,8 +162755,8 @@ module.exports = Inflate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rectangle = __webpack_require__(12); -var Intersects = __webpack_require__(130); +var Rectangle = __webpack_require__(13); +var Intersects = __webpack_require__(129); /** * Takes two Rectangles and first checks to see if they intersect. @@ -162939,7 +162797,7 @@ module.exports = Intersection; /***/ }), -/* 1170 */ +/* 1166 */ /***/ (function(module, exports) { /** @@ -162988,7 +162846,7 @@ module.exports = MergePoints; /***/ }), -/* 1171 */ +/* 1167 */ /***/ (function(module, exports) { /** @@ -163035,7 +162893,7 @@ module.exports = MergeRect; /***/ }), -/* 1172 */ +/* 1168 */ /***/ (function(module, exports) { /** @@ -163079,7 +162937,7 @@ module.exports = MergeXY; /***/ }), -/* 1173 */ +/* 1169 */ /***/ (function(module, exports) { /** @@ -163114,7 +162972,7 @@ module.exports = Offset; /***/ }), -/* 1174 */ +/* 1170 */ /***/ (function(module, exports) { /** @@ -163148,7 +163006,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1175 */ +/* 1171 */ /***/ (function(module, exports) { /** @@ -163182,7 +163040,7 @@ module.exports = Overlaps; /***/ }), -/* 1176 */ +/* 1172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163239,7 +163097,7 @@ module.exports = PerimeterPoint; /***/ }), -/* 1177 */ +/* 1173 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163248,8 +163106,8 @@ module.exports = PerimeterPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(168); -var ContainsRect = __webpack_require__(440); +var Between = __webpack_require__(167); +var ContainsRect = __webpack_require__(438); var Point = __webpack_require__(4); /** @@ -163310,7 +163168,7 @@ module.exports = RandomOutside; /***/ }), -/* 1178 */ +/* 1174 */ /***/ (function(module, exports) { /** @@ -163339,7 +163197,7 @@ module.exports = SameDimensions; /***/ }), -/* 1179 */ +/* 1175 */ /***/ (function(module, exports) { /** @@ -163378,7 +163236,7 @@ module.exports = Scale; /***/ }), -/* 1180 */ +/* 1176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163389,36 +163247,36 @@ module.exports = Scale; var Triangle = __webpack_require__(69); -Triangle.Area = __webpack_require__(1181); -Triangle.BuildEquilateral = __webpack_require__(1182); -Triangle.BuildFromPolygon = __webpack_require__(1183); -Triangle.BuildRight = __webpack_require__(1184); -Triangle.CenterOn = __webpack_require__(1185); -Triangle.Centroid = __webpack_require__(441); -Triangle.CircumCenter = __webpack_require__(1186); -Triangle.CircumCircle = __webpack_require__(1187); -Triangle.Clone = __webpack_require__(1188); -Triangle.Contains = __webpack_require__(82); -Triangle.ContainsArray = __webpack_require__(206); -Triangle.ContainsPoint = __webpack_require__(1189); -Triangle.CopyFrom = __webpack_require__(1190); -Triangle.Decompose = __webpack_require__(434); -Triangle.Equals = __webpack_require__(1191); -Triangle.GetPoint = __webpack_require__(420); -Triangle.GetPoints = __webpack_require__(421); -Triangle.InCenter = __webpack_require__(443); -Triangle.Perimeter = __webpack_require__(1192); -Triangle.Offset = __webpack_require__(442); -Triangle.Random = __webpack_require__(153); -Triangle.Rotate = __webpack_require__(1193); -Triangle.RotateAroundPoint = __webpack_require__(1194); -Triangle.RotateAroundXY = __webpack_require__(209); +Triangle.Area = __webpack_require__(1177); +Triangle.BuildEquilateral = __webpack_require__(1178); +Triangle.BuildFromPolygon = __webpack_require__(1179); +Triangle.BuildRight = __webpack_require__(1180); +Triangle.CenterOn = __webpack_require__(1181); +Triangle.Centroid = __webpack_require__(439); +Triangle.CircumCenter = __webpack_require__(1182); +Triangle.CircumCircle = __webpack_require__(1183); +Triangle.Clone = __webpack_require__(1184); +Triangle.Contains = __webpack_require__(81); +Triangle.ContainsArray = __webpack_require__(205); +Triangle.ContainsPoint = __webpack_require__(1185); +Triangle.CopyFrom = __webpack_require__(1186); +Triangle.Decompose = __webpack_require__(432); +Triangle.Equals = __webpack_require__(1187); +Triangle.GetPoint = __webpack_require__(418); +Triangle.GetPoints = __webpack_require__(419); +Triangle.InCenter = __webpack_require__(441); +Triangle.Perimeter = __webpack_require__(1188); +Triangle.Offset = __webpack_require__(440); +Triangle.Random = __webpack_require__(152); +Triangle.Rotate = __webpack_require__(1189); +Triangle.RotateAroundPoint = __webpack_require__(1190); +Triangle.RotateAroundXY = __webpack_require__(208); module.exports = Triangle; /***/ }), -/* 1181 */ +/* 1177 */ /***/ (function(module, exports) { /** @@ -163457,7 +163315,7 @@ module.exports = Area; /***/ }), -/* 1182 */ +/* 1178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163501,7 +163359,7 @@ module.exports = BuildEquilateral; /***/ }), -/* 1183 */ +/* 1179 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163577,7 +163435,7 @@ module.exports = BuildFromPolygon; /***/ }), -/* 1184 */ +/* 1180 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163626,7 +163484,7 @@ module.exports = BuildRight; /***/ }), -/* 1185 */ +/* 1181 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163635,8 +163493,8 @@ module.exports = BuildRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Centroid = __webpack_require__(441); -var Offset = __webpack_require__(442); +var Centroid = __webpack_require__(439); +var Offset = __webpack_require__(440); /** * @callback CenterFunction @@ -163679,7 +163537,7 @@ module.exports = CenterOn; /***/ }), -/* 1186 */ +/* 1182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163755,7 +163613,7 @@ module.exports = CircumCenter; /***/ }), -/* 1187 */ +/* 1183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163838,7 +163696,7 @@ module.exports = CircumCircle; /***/ }), -/* 1188 */ +/* 1184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163868,7 +163726,7 @@ module.exports = Clone; /***/ }), -/* 1189 */ +/* 1185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163877,7 +163735,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(82); +var Contains = __webpack_require__(81); /** * Tests if a triangle contains a point. @@ -163899,7 +163757,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1190 */ +/* 1186 */ /***/ (function(module, exports) { /** @@ -163930,7 +163788,7 @@ module.exports = CopyFrom; /***/ }), -/* 1191 */ +/* 1187 */ /***/ (function(module, exports) { /** @@ -163966,7 +163824,7 @@ module.exports = Equals; /***/ }), -/* 1192 */ +/* 1188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164001,7 +163859,7 @@ module.exports = Perimeter; /***/ }), -/* 1193 */ +/* 1189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164010,8 +163868,8 @@ module.exports = Perimeter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(209); -var InCenter = __webpack_require__(443); +var RotateAroundXY = __webpack_require__(208); +var InCenter = __webpack_require__(441); /** * Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet. @@ -164037,7 +163895,7 @@ module.exports = Rotate; /***/ }), -/* 1194 */ +/* 1190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164046,7 +163904,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(209); +var RotateAroundXY = __webpack_require__(208); /** * Rotates a Triangle at a certain angle about a given Point or object with public `x` and `y` properties. @@ -164071,7 +163929,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1195 */ +/* 1191 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164080,8 +163938,8 @@ module.exports = RotateAroundPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(175); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(174); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Input @@ -164089,16 +163947,16 @@ var Extend = __webpack_require__(17); var Input = { - CreateInteractiveObject: __webpack_require__(444), + CreateInteractiveObject: __webpack_require__(442), Events: __webpack_require__(54), - Gamepad: __webpack_require__(1196), - InputManager: __webpack_require__(362), - InputPlugin: __webpack_require__(1208), - InputPluginCache: __webpack_require__(131), - Keyboard: __webpack_require__(1210), - Mouse: __webpack_require__(1227), - Pointer: __webpack_require__(365), - Touch: __webpack_require__(1228) + Gamepad: __webpack_require__(1192), + InputManager: __webpack_require__(360), + InputPlugin: __webpack_require__(1204), + InputPluginCache: __webpack_require__(130), + Keyboard: __webpack_require__(1206), + Mouse: __webpack_require__(1223), + Pointer: __webpack_require__(363), + Touch: __webpack_require__(1224) }; @@ -164109,7 +163967,7 @@ module.exports = Input; /***/ }), -/* 1196 */ +/* 1192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164124,18 +163982,18 @@ module.exports = Input; module.exports = { - Axis: __webpack_require__(445), - Button: __webpack_require__(446), - Events: __webpack_require__(210), - Gamepad: __webpack_require__(447), - GamepadPlugin: __webpack_require__(1203), + Axis: __webpack_require__(443), + Button: __webpack_require__(444), + Events: __webpack_require__(209), + Gamepad: __webpack_require__(445), + GamepadPlugin: __webpack_require__(1199), - Configs: __webpack_require__(1204) + Configs: __webpack_require__(1200) }; /***/ }), -/* 1197 */ +/* 1193 */ /***/ (function(module, exports) { /** @@ -164164,7 +164022,7 @@ module.exports = 'down'; /***/ }), -/* 1198 */ +/* 1194 */ /***/ (function(module, exports) { /** @@ -164193,7 +164051,7 @@ module.exports = 'up'; /***/ }), -/* 1199 */ +/* 1195 */ /***/ (function(module, exports) { /** @@ -164224,7 +164082,7 @@ module.exports = 'connected'; /***/ }), -/* 1200 */ +/* 1196 */ /***/ (function(module, exports) { /** @@ -164250,7 +164108,7 @@ module.exports = 'disconnected'; /***/ }), -/* 1201 */ +/* 1197 */ /***/ (function(module, exports) { /** @@ -164282,7 +164140,7 @@ module.exports = 'down'; /***/ }), -/* 1202 */ +/* 1198 */ /***/ (function(module, exports) { /** @@ -164314,7 +164172,7 @@ module.exports = 'up'; /***/ }), -/* 1203 */ +/* 1199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164324,11 +164182,11 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(210); -var Gamepad = __webpack_require__(447); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(209); +var Gamepad = __webpack_require__(445); var GetValue = __webpack_require__(6); -var InputPluginCache = __webpack_require__(131); +var InputPluginCache = __webpack_require__(130); var InputEvents = __webpack_require__(54); /** @@ -164952,7 +164810,7 @@ module.exports = GamepadPlugin; /***/ }), -/* 1204 */ +/* 1200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164967,15 +164825,15 @@ module.exports = GamepadPlugin; module.exports = { - DUALSHOCK_4: __webpack_require__(1205), - SNES_USB: __webpack_require__(1206), - XBOX_360: __webpack_require__(1207) + DUALSHOCK_4: __webpack_require__(1201), + SNES_USB: __webpack_require__(1202), + XBOX_360: __webpack_require__(1203) }; /***/ }), -/* 1205 */ +/* 1201 */ /***/ (function(module, exports) { /** @@ -165025,7 +164883,7 @@ module.exports = { /***/ }), -/* 1206 */ +/* 1202 */ /***/ (function(module, exports) { /** @@ -165064,7 +164922,7 @@ module.exports = { /***/ }), -/* 1207 */ +/* 1203 */ /***/ (function(module, exports) { /** @@ -165115,7 +164973,7 @@ module.exports = { /***/ }), -/* 1208 */ +/* 1204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165127,24 +164985,24 @@ module.exports = { var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var CONST = __webpack_require__(175); -var CreateInteractiveObject = __webpack_require__(444); -var CreatePixelPerfectHandler = __webpack_require__(1209); +var CONST = __webpack_require__(174); +var CreateInteractiveObject = __webpack_require__(442); +var CreatePixelPerfectHandler = __webpack_require__(1205); var DistanceBetween = __webpack_require__(53); -var Ellipse = __webpack_require__(94); -var EllipseContains = __webpack_require__(95); +var Ellipse = __webpack_require__(93); +var EllipseContains = __webpack_require__(94); var Events = __webpack_require__(54); -var EventEmitter = __webpack_require__(10); +var EventEmitter = __webpack_require__(11); var GetFastValue = __webpack_require__(2); var GEOM_CONST = __webpack_require__(46); -var InputPluginCache = __webpack_require__(131); +var InputPluginCache = __webpack_require__(130); var IsPlainObject = __webpack_require__(7); -var PluginCache = __webpack_require__(23); -var Rectangle = __webpack_require__(12); +var PluginCache = __webpack_require__(24); +var Rectangle = __webpack_require__(13); var RectangleContains = __webpack_require__(47); -var SceneEvents = __webpack_require__(21); +var SceneEvents = __webpack_require__(22); var Triangle = __webpack_require__(69); -var TriangleContains = __webpack_require__(82); +var TriangleContains = __webpack_require__(81); /** * @classdesc @@ -168267,7 +168125,7 @@ module.exports = InputPlugin; /***/ }), -/* 1209 */ +/* 1205 */ /***/ (function(module, exports) { /** @@ -168303,7 +168161,7 @@ module.exports = CreatePixelPerfectHandler; /***/ }), -/* 1210 */ +/* 1206 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168318,26 +168176,26 @@ module.exports = CreatePixelPerfectHandler; module.exports = { - Events: __webpack_require__(132), + Events: __webpack_require__(131), - KeyboardManager: __webpack_require__(363), - KeyboardPlugin: __webpack_require__(1218), + KeyboardManager: __webpack_require__(361), + KeyboardPlugin: __webpack_require__(1214), - Key: __webpack_require__(448), - KeyCodes: __webpack_require__(119), + Key: __webpack_require__(446), + KeyCodes: __webpack_require__(118), - KeyCombo: __webpack_require__(449), + KeyCombo: __webpack_require__(447), - JustDown: __webpack_require__(1223), - JustUp: __webpack_require__(1224), - DownDuration: __webpack_require__(1225), - UpDuration: __webpack_require__(1226) + JustDown: __webpack_require__(1219), + JustUp: __webpack_require__(1220), + DownDuration: __webpack_require__(1221), + UpDuration: __webpack_require__(1222) }; /***/ }), -/* 1211 */ +/* 1207 */ /***/ (function(module, exports) { /** @@ -168373,7 +168231,7 @@ module.exports = 'keydown'; /***/ }), -/* 1212 */ +/* 1208 */ /***/ (function(module, exports) { /** @@ -168402,7 +168260,7 @@ module.exports = 'keyup'; /***/ }), -/* 1213 */ +/* 1209 */ /***/ (function(module, exports) { /** @@ -168436,7 +168294,7 @@ module.exports = 'keycombomatch'; /***/ }), -/* 1214 */ +/* 1210 */ /***/ (function(module, exports) { /** @@ -168470,7 +168328,7 @@ module.exports = 'down'; /***/ }), -/* 1215 */ +/* 1211 */ /***/ (function(module, exports) { /** @@ -168509,7 +168367,7 @@ module.exports = 'keydown-'; /***/ }), -/* 1216 */ +/* 1212 */ /***/ (function(module, exports) { /** @@ -168541,7 +168399,7 @@ module.exports = 'keyup-'; /***/ }), -/* 1217 */ +/* 1213 */ /***/ (function(module, exports) { /** @@ -168575,7 +168433,7 @@ module.exports = 'up'; /***/ }), -/* 1218 */ +/* 1214 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168585,17 +168443,17 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(132); -var GameEvents = __webpack_require__(18); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(131); +var GameEvents = __webpack_require__(19); var GetValue = __webpack_require__(6); var InputEvents = __webpack_require__(54); -var InputPluginCache = __webpack_require__(131); -var Key = __webpack_require__(448); -var KeyCodes = __webpack_require__(119); -var KeyCombo = __webpack_require__(449); -var KeyMap = __webpack_require__(1222); -var SnapFloor = __webpack_require__(92); +var InputPluginCache = __webpack_require__(130); +var Key = __webpack_require__(446); +var KeyCodes = __webpack_require__(118); +var KeyCombo = __webpack_require__(447); +var KeyMap = __webpack_require__(1218); +var SnapFloor = __webpack_require__(91); /** * @classdesc @@ -169461,7 +169319,7 @@ module.exports = KeyboardPlugin; /***/ }), -/* 1219 */ +/* 1215 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169470,7 +169328,7 @@ module.exports = KeyboardPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AdvanceKeyCombo = __webpack_require__(1220); +var AdvanceKeyCombo = __webpack_require__(1216); /** * Used internally by the KeyCombo class. @@ -169542,7 +169400,7 @@ module.exports = ProcessKeyCombo; /***/ }), -/* 1220 */ +/* 1216 */ /***/ (function(module, exports) { /** @@ -169584,7 +169442,7 @@ module.exports = AdvanceKeyCombo; /***/ }), -/* 1221 */ +/* 1217 */ /***/ (function(module, exports) { /** @@ -169619,7 +169477,7 @@ module.exports = ResetKeyCombo; /***/ }), -/* 1222 */ +/* 1218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169628,7 +169486,7 @@ module.exports = ResetKeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var KeyCodes = __webpack_require__(119); +var KeyCodes = __webpack_require__(118); var KeyMap = {}; @@ -169641,7 +169499,7 @@ module.exports = KeyMap; /***/ }), -/* 1223 */ +/* 1219 */ /***/ (function(module, exports) { /** @@ -169683,7 +169541,7 @@ module.exports = JustDown; /***/ }), -/* 1224 */ +/* 1220 */ /***/ (function(module, exports) { /** @@ -169725,7 +169583,7 @@ module.exports = JustUp; /***/ }), -/* 1225 */ +/* 1221 */ /***/ (function(module, exports) { /** @@ -169759,7 +169617,7 @@ module.exports = DownDuration; /***/ }), -/* 1226 */ +/* 1222 */ /***/ (function(module, exports) { /** @@ -169793,7 +169651,7 @@ module.exports = UpDuration; /***/ }), -/* 1227 */ +/* 1223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169809,14 +169667,14 @@ module.exports = UpDuration; /* eslint-disable */ module.exports = { - MouseManager: __webpack_require__(364) + MouseManager: __webpack_require__(362) }; /* eslint-enable */ /***/ }), -/* 1228 */ +/* 1224 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169832,14 +169690,14 @@ module.exports = { /* eslint-disable */ module.exports = { - TouchManager: __webpack_require__(366) + TouchManager: __webpack_require__(364) }; /* eslint-enable */ /***/ }), -/* 1229 */ +/* 1225 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169848,8 +169706,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(19); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(20); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Loader @@ -169857,18 +169715,18 @@ var Extend = __webpack_require__(17); var Loader = { - Events: __webpack_require__(81), + Events: __webpack_require__(80), - FileTypes: __webpack_require__(1230), + FileTypes: __webpack_require__(1226), - File: __webpack_require__(20), + File: __webpack_require__(21), FileTypesManager: __webpack_require__(8), - GetURL: __webpack_require__(133), - LoaderPlugin: __webpack_require__(1254), - MergeXHRSettings: __webpack_require__(211), + GetURL: __webpack_require__(132), + LoaderPlugin: __webpack_require__(1250), + MergeXHRSettings: __webpack_require__(210), MultiFile: __webpack_require__(61), - XHRLoader: __webpack_require__(450), - XHRSettings: __webpack_require__(134) + XHRLoader: __webpack_require__(448), + XHRSettings: __webpack_require__(133) }; @@ -169879,7 +169737,7 @@ module.exports = Loader; /***/ }), -/* 1230 */ +/* 1226 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169894,42 +169752,42 @@ module.exports = Loader; module.exports = { - AnimationJSONFile: __webpack_require__(1231), - AtlasJSONFile: __webpack_require__(1232), - AtlasXMLFile: __webpack_require__(1233), - AudioFile: __webpack_require__(451), - AudioSpriteFile: __webpack_require__(1234), - BinaryFile: __webpack_require__(1235), - BitmapFontFile: __webpack_require__(1236), - CSSFile: __webpack_require__(1237), - GLSLFile: __webpack_require__(1238), - HTML5AudioFile: __webpack_require__(452), - HTMLFile: __webpack_require__(1239), - HTMLTextureFile: __webpack_require__(1240), + AnimationJSONFile: __webpack_require__(1227), + AtlasJSONFile: __webpack_require__(1228), + AtlasXMLFile: __webpack_require__(1229), + AudioFile: __webpack_require__(449), + AudioSpriteFile: __webpack_require__(1230), + BinaryFile: __webpack_require__(1231), + BitmapFontFile: __webpack_require__(1232), + CSSFile: __webpack_require__(1233), + GLSLFile: __webpack_require__(1234), + HTML5AudioFile: __webpack_require__(450), + HTMLFile: __webpack_require__(1235), + HTMLTextureFile: __webpack_require__(1236), ImageFile: __webpack_require__(70), JSONFile: __webpack_require__(60), - MultiAtlasFile: __webpack_require__(1241), - MultiScriptFile: __webpack_require__(1242), - PackFile: __webpack_require__(1243), - PluginFile: __webpack_require__(1244), - SceneFile: __webpack_require__(1245), - ScenePluginFile: __webpack_require__(1246), - ScriptFile: __webpack_require__(453), - SpriteSheetFile: __webpack_require__(1247), - SVGFile: __webpack_require__(1248), - TextFile: __webpack_require__(454), - TilemapCSVFile: __webpack_require__(1249), - TilemapImpactFile: __webpack_require__(1250), - TilemapJSONFile: __webpack_require__(1251), - UnityAtlasFile: __webpack_require__(1252), - VideoFile: __webpack_require__(1253), - XMLFile: __webpack_require__(212) + MultiAtlasFile: __webpack_require__(1237), + MultiScriptFile: __webpack_require__(1238), + PackFile: __webpack_require__(1239), + PluginFile: __webpack_require__(1240), + SceneFile: __webpack_require__(1241), + ScenePluginFile: __webpack_require__(1242), + ScriptFile: __webpack_require__(451), + SpriteSheetFile: __webpack_require__(1243), + SVGFile: __webpack_require__(1244), + TextFile: __webpack_require__(452), + TilemapCSVFile: __webpack_require__(1245), + TilemapImpactFile: __webpack_require__(1246), + TilemapJSONFile: __webpack_require__(1247), + UnityAtlasFile: __webpack_require__(1248), + VideoFile: __webpack_require__(1249), + XMLFile: __webpack_require__(211) }; /***/ }), -/* 1231 */ +/* 1227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169941,7 +169799,7 @@ module.exports = { var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var LoaderEvents = __webpack_require__(81); +var LoaderEvents = __webpack_require__(80); /** * @classdesc @@ -170132,7 +169990,7 @@ module.exports = AnimationJSONFile; /***/ }), -/* 1232 */ +/* 1228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170381,7 +170239,7 @@ module.exports = AtlasJSONFile; /***/ }), -/* 1233 */ +/* 1229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170396,7 +170254,7 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var XMLFile = __webpack_require__(212); +var XMLFile = __webpack_require__(211); /** * @classdesc @@ -170624,7 +170482,7 @@ module.exports = AtlasXMLFile; /***/ }), -/* 1234 */ +/* 1230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170633,7 +170491,7 @@ module.exports = AtlasXMLFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AudioFile = __webpack_require__(451); +var AudioFile = __webpack_require__(449); var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); @@ -170914,7 +170772,7 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio /***/ }), -/* 1235 */ +/* 1231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170924,8 +170782,8 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -171096,7 +170954,7 @@ module.exports = BinaryFile; /***/ }), -/* 1236 */ +/* 1232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171111,8 +170969,8 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ParseXMLBitmapFont = __webpack_require__(183); -var XMLFile = __webpack_require__(212); +var ParseXMLBitmapFont = __webpack_require__(182); +var XMLFile = __webpack_require__(211); /** * @classdesc @@ -171339,7 +171197,7 @@ module.exports = BitmapFontFile; /***/ }), -/* 1237 */ +/* 1233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171349,8 +171207,8 @@ module.exports = BitmapFontFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -171507,7 +171365,7 @@ module.exports = CSSFile; /***/ }), -/* 1238 */ +/* 1234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171517,12 +171375,12 @@ module.exports = CSSFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var Shader = __webpack_require__(350); +var Shader = __webpack_require__(348); /** * @classdesc @@ -171918,7 +171776,7 @@ module.exports = GLSLFile; /***/ }), -/* 1239 */ +/* 1235 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171928,8 +171786,8 @@ module.exports = GLSLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -172093,7 +171951,7 @@ module.exports = HTMLFile; /***/ }), -/* 1240 */ +/* 1236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172103,8 +171961,8 @@ module.exports = HTMLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -172351,7 +172209,7 @@ module.exports = HTMLTextureFile; /***/ }), -/* 1241 */ +/* 1237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172684,7 +172542,7 @@ module.exports = MultiAtlasFile; /***/ }), -/* 1242 */ +/* 1238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172698,7 +172556,7 @@ var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ScriptFile = __webpack_require__(453); +var ScriptFile = __webpack_require__(451); /** * @classdesc @@ -172901,7 +172759,7 @@ module.exports = MultiScriptFile; /***/ }), -/* 1243 */ +/* 1239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172911,7 +172769,7 @@ module.exports = MultiScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); +var CONST = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); @@ -173119,7 +172977,7 @@ module.exports = PackFile; /***/ }), -/* 1244 */ +/* 1240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173129,8 +172987,8 @@ module.exports = PackFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173331,7 +173189,7 @@ module.exports = PluginFile; /***/ }), -/* 1245 */ +/* 1241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173341,8 +173199,8 @@ module.exports = PluginFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173552,7 +173410,7 @@ module.exports = SceneFile; /***/ }), -/* 1246 */ +/* 1242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173562,8 +173420,8 @@ module.exports = SceneFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173758,7 +173616,7 @@ module.exports = ScenePluginFile; /***/ }), -/* 1247 */ +/* 1243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173949,7 +173807,7 @@ module.exports = SpriteSheetFile; /***/ }), -/* 1248 */ +/* 1244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173959,8 +173817,8 @@ module.exports = SpriteSheetFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -174288,7 +174146,7 @@ module.exports = SVGFile; /***/ }), -/* 1249 */ +/* 1245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174298,8 +174156,8 @@ module.exports = SVGFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var File = __webpack_require__(20); +var CONST = __webpack_require__(20); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -174483,7 +174341,7 @@ module.exports = TilemapCSVFile; /***/ }), -/* 1250 */ +/* 1246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174639,7 +174497,7 @@ module.exports = TilemapImpactFile; /***/ }), -/* 1251 */ +/* 1247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174795,7 +174653,7 @@ module.exports = TilemapJSONFile; /***/ }), -/* 1252 */ +/* 1248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174810,7 +174668,7 @@ var GetFastValue = __webpack_require__(2); var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var TextFile = __webpack_require__(454); +var TextFile = __webpack_require__(452); /** * @classdesc @@ -175037,7 +174895,7 @@ module.exports = UnityAtlasFile; /***/ }), -/* 1253 */ +/* 1249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175047,10 +174905,10 @@ module.exports = UnityAtlasFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(29); -var File = __webpack_require__(20); +var CONST = __webpack_require__(10); +var File = __webpack_require__(21); var FileTypesManager = __webpack_require__(8); -var GetURL = __webpack_require__(133); +var GetURL = __webpack_require__(132); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -175428,7 +175286,7 @@ module.exports = VideoFile; /***/ }), -/* 1254 */ +/* 1250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175438,15 +175296,15 @@ module.exports = VideoFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(19); -var CustomSet = __webpack_require__(128); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(81); +var CONST = __webpack_require__(20); +var CustomSet = __webpack_require__(127); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(80); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var XHRSettings = __webpack_require__(134); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var XHRSettings = __webpack_require__(133); /** * @classdesc @@ -176506,7 +176364,7 @@ module.exports = LoaderPlugin; /***/ }), -/* 1255 */ +/* 1251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176516,7 +176374,7 @@ module.exports = LoaderPlugin; */ var CONST = __webpack_require__(50); -var Extend = __webpack_require__(17); +var Extend = __webpack_require__(18); /** * @callback ArcadePhysicsCallback @@ -176531,18 +176389,18 @@ var Extend = __webpack_require__(17); var Arcade = { - ArcadePhysics: __webpack_require__(1256), - Body: __webpack_require__(461), - Collider: __webpack_require__(462), - Components: __webpack_require__(213), - Events: __webpack_require__(214), - Factory: __webpack_require__(455), - Group: __webpack_require__(457), - Image: __webpack_require__(456), - Sprite: __webpack_require__(135), - StaticBody: __webpack_require__(467), - StaticGroup: __webpack_require__(458), - World: __webpack_require__(460) + ArcadePhysics: __webpack_require__(1252), + Body: __webpack_require__(459), + Collider: __webpack_require__(460), + Components: __webpack_require__(212), + Events: __webpack_require__(213), + Factory: __webpack_require__(453), + Group: __webpack_require__(455), + Image: __webpack_require__(454), + Sprite: __webpack_require__(134), + StaticBody: __webpack_require__(465), + StaticGroup: __webpack_require__(456), + World: __webpack_require__(458) }; @@ -176553,7 +176411,7 @@ module.exports = Arcade; /***/ }), -/* 1256 */ +/* 1252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176565,16 +176423,16 @@ module.exports = Arcade; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var DistanceBetween = __webpack_require__(53); -var DistanceSquared = __webpack_require__(317); -var Factory = __webpack_require__(455); +var DistanceSquared = __webpack_require__(315); +var Factory = __webpack_require__(453); var GetFastValue = __webpack_require__(2); -var Merge = __webpack_require__(121); -var OverlapCirc = __webpack_require__(1269); -var OverlapRect = __webpack_require__(459); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); +var Merge = __webpack_require__(120); +var OverlapCirc = __webpack_require__(1265); +var OverlapRect = __webpack_require__(457); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); var Vector2 = __webpack_require__(3); -var World = __webpack_require__(460); +var World = __webpack_require__(458); /** * @classdesc @@ -177242,7 +177100,7 @@ module.exports = ArcadePhysics; /***/ }), -/* 1257 */ +/* 1253 */ /***/ (function(module, exports) { /** @@ -177317,7 +177175,7 @@ module.exports = Acceleration; /***/ }), -/* 1258 */ +/* 1254 */ /***/ (function(module, exports) { /** @@ -177399,7 +177257,7 @@ module.exports = Angular; /***/ }), -/* 1259 */ +/* 1255 */ /***/ (function(module, exports) { /** @@ -177498,7 +177356,7 @@ module.exports = Bounce; /***/ }), -/* 1260 */ +/* 1256 */ /***/ (function(module, exports) { /** @@ -177625,7 +177483,7 @@ module.exports = Debug; /***/ }), -/* 1261 */ +/* 1257 */ /***/ (function(module, exports) { /** @@ -177758,7 +177616,7 @@ module.exports = Drag; /***/ }), -/* 1262 */ +/* 1258 */ /***/ (function(module, exports) { /** @@ -177882,7 +177740,7 @@ module.exports = Enable; /***/ }), -/* 1263 */ +/* 1259 */ /***/ (function(module, exports) { /** @@ -177960,7 +177818,7 @@ module.exports = Friction; /***/ }), -/* 1264 */ +/* 1260 */ /***/ (function(module, exports) { /** @@ -178038,7 +177896,7 @@ module.exports = Gravity; /***/ }), -/* 1265 */ +/* 1261 */ /***/ (function(module, exports) { /** @@ -178080,7 +177938,7 @@ module.exports = Immovable; /***/ }), -/* 1266 */ +/* 1262 */ /***/ (function(module, exports) { /** @@ -178120,7 +177978,7 @@ module.exports = Mass; /***/ }), -/* 1267 */ +/* 1263 */ /***/ (function(module, exports) { /** @@ -178202,7 +178060,7 @@ module.exports = Size; /***/ }), -/* 1268 */ +/* 1264 */ /***/ (function(module, exports) { /** @@ -178301,13 +178159,13 @@ module.exports = Velocity; /***/ }), -/* 1269 */ +/* 1265 */ /***/ (function(module, exports, __webpack_require__) { -var OverlapRect = __webpack_require__(459); +var OverlapRect = __webpack_require__(457); var Circle = __webpack_require__(63); -var CircleToCircle = __webpack_require__(201); -var CircleToRectangle = __webpack_require__(202); +var CircleToCircle = __webpack_require__(200); +var CircleToRectangle = __webpack_require__(201); /** * This method will search the given circular area and return an array of all physics bodies that @@ -178369,7 +178227,7 @@ module.exports = OverlapCirc; /***/ }), -/* 1270 */ +/* 1266 */ /***/ (function(module, exports) { /** @@ -178402,7 +178260,7 @@ module.exports = 'collide'; /***/ }), -/* 1271 */ +/* 1267 */ /***/ (function(module, exports) { /** @@ -178435,7 +178293,7 @@ module.exports = 'overlap'; /***/ }), -/* 1272 */ +/* 1268 */ /***/ (function(module, exports) { /** @@ -178458,7 +178316,7 @@ module.exports = 'pause'; /***/ }), -/* 1273 */ +/* 1269 */ /***/ (function(module, exports) { /** @@ -178481,7 +178339,7 @@ module.exports = 'resume'; /***/ }), -/* 1274 */ +/* 1270 */ /***/ (function(module, exports) { /** @@ -178513,7 +178371,7 @@ module.exports = 'tilecollide'; /***/ }), -/* 1275 */ +/* 1271 */ /***/ (function(module, exports) { /** @@ -178545,7 +178403,7 @@ module.exports = 'tileoverlap'; /***/ }), -/* 1276 */ +/* 1272 */ /***/ (function(module, exports) { /** @@ -178577,7 +178435,7 @@ module.exports = 'worldbounds'; /***/ }), -/* 1277 */ +/* 1273 */ /***/ (function(module, exports) { /** @@ -178603,7 +178461,7 @@ module.exports = 'worldstep'; /***/ }), -/* 1278 */ +/* 1274 */ /***/ (function(module, exports) { /** @@ -178644,7 +178502,7 @@ module.exports = ProcessTileCallbacks; /***/ }), -/* 1279 */ +/* 1275 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178653,9 +178511,9 @@ module.exports = ProcessTileCallbacks; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileCheckX = __webpack_require__(1280); -var TileCheckY = __webpack_require__(1282); -var TileIntersectsBody = __webpack_require__(466); +var TileCheckX = __webpack_require__(1276); +var TileCheckY = __webpack_require__(1278); +var TileIntersectsBody = __webpack_require__(464); /** * The core separation function to separate a physics body and a tile. @@ -178764,7 +178622,7 @@ module.exports = SeparateTile; /***/ }), -/* 1280 */ +/* 1276 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178773,7 +178631,7 @@ module.exports = SeparateTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationX = __webpack_require__(1281); +var ProcessTileSeparationX = __webpack_require__(1277); /** * Check the body against the given tile on the X axis. @@ -178854,7 +178712,7 @@ module.exports = TileCheckX; /***/ }), -/* 1281 */ +/* 1277 */ /***/ (function(module, exports) { /** @@ -178901,7 +178759,7 @@ module.exports = ProcessTileSeparationX; /***/ }), -/* 1282 */ +/* 1278 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178910,7 +178768,7 @@ module.exports = ProcessTileSeparationX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationY = __webpack_require__(1283); +var ProcessTileSeparationY = __webpack_require__(1279); /** * Check the body against the given tile on the Y axis. @@ -178991,7 +178849,7 @@ module.exports = TileCheckY; /***/ }), -/* 1283 */ +/* 1279 */ /***/ (function(module, exports) { /** @@ -179038,7 +178896,7 @@ module.exports = ProcessTileSeparationY; /***/ }), -/* 1284 */ +/* 1280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179047,7 +178905,7 @@ module.exports = ProcessTileSeparationY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapX = __webpack_require__(463); +var GetOverlapX = __webpack_require__(461); /** * Separates two overlapping bodies on the X-axis (horizontally). @@ -179129,7 +178987,7 @@ module.exports = SeparateX; /***/ }), -/* 1285 */ +/* 1281 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179138,7 +178996,7 @@ module.exports = SeparateX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapY = __webpack_require__(464); +var GetOverlapY = __webpack_require__(462); /** * Separates two overlapping bodies on the Y-axis (vertically). @@ -179220,7 +179078,7 @@ module.exports = SeparateY; /***/ }), -/* 1286 */ +/* 1282 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179236,11 +179094,11 @@ var Composites = {}; module.exports = Composites; -var Composite = __webpack_require__(143); -var Constraint = __webpack_require__(215); +var Composite = __webpack_require__(142); +var Constraint = __webpack_require__(214); var Common = __webpack_require__(37); var Body = __webpack_require__(62); -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); (function() { @@ -179553,7 +179411,7 @@ var Bodies = __webpack_require__(106); /***/ }), -/* 1287 */ +/* 1283 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179570,7 +179428,7 @@ var Svg = {}; module.exports = Svg; -var Bounds = __webpack_require__(99); +var Bounds = __webpack_require__(98); var Common = __webpack_require__(37); (function() { @@ -179784,7 +179642,7 @@ var Common = __webpack_require__(37); })(); /***/ }), -/* 1288 */ +/* 1284 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179795,11 +179653,11 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); var Common = __webpack_require__(37); var GetFastValue = __webpack_require__(2); -var Vertices = __webpack_require__(85); +var Vertices = __webpack_require__(84); /** * Use PhysicsEditorParser.parseBody() to build a Matter body object, based on a physics data file @@ -179926,7 +179784,7 @@ module.exports = PhysicsEditorParser; /***/ }), -/* 1289 */ +/* 1285 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179935,7 +179793,7 @@ module.exports = PhysicsEditorParser; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); /** @@ -180043,7 +179901,7 @@ module.exports = PhysicsJSONParser; /***/ }), -/* 1290 */ +/* 1286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180079,7 +179937,7 @@ module.exports = { /***/ }), -/* 1291 */ +/* 1287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180088,14 +179946,14 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); var Class = __webpack_require__(0); -var Components = __webpack_require__(513); -var EventEmitter = __webpack_require__(10); +var Components = __webpack_require__(509); +var EventEmitter = __webpack_require__(11); var GetFastValue = __webpack_require__(2); -var HasValue = __webpack_require__(105); -var Vertices = __webpack_require__(85); +var HasValue = __webpack_require__(104); +var Vertices = __webpack_require__(84); /** * @classdesc @@ -180399,7 +180257,7 @@ module.exports = MatterTileBody; /***/ }), -/* 1292 */ +/* 1288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180415,33 +180273,33 @@ module.exports = MatterTileBody; var Matter = __webpack_require__(1381); Matter.Body = __webpack_require__(62); -Matter.Composite = __webpack_require__(143); -Matter.World = __webpack_require__(1294); +Matter.Composite = __webpack_require__(142); +Matter.World = __webpack_require__(1290); -Matter.Detector = __webpack_require__(514); -Matter.Grid = __webpack_require__(1295); -Matter.Pairs = __webpack_require__(1296); -Matter.Pair = __webpack_require__(468); +Matter.Detector = __webpack_require__(510); +Matter.Grid = __webpack_require__(1291); +Matter.Pairs = __webpack_require__(1292); +Matter.Pair = __webpack_require__(466); Matter.Query = __webpack_require__(1382); -Matter.Resolver = __webpack_require__(1297); -Matter.SAT = __webpack_require__(515); +Matter.Resolver = __webpack_require__(1293); +Matter.SAT = __webpack_require__(511); -Matter.Constraint = __webpack_require__(215); +Matter.Constraint = __webpack_require__(214); Matter.Common = __webpack_require__(37); Matter.Engine = __webpack_require__(1383); -Matter.Events = __webpack_require__(237); -Matter.Sleeping = __webpack_require__(236); -Matter.Plugin = __webpack_require__(1293); +Matter.Events = __webpack_require__(235); +Matter.Sleeping = __webpack_require__(234); +Matter.Plugin = __webpack_require__(1289); -Matter.Bodies = __webpack_require__(106); -Matter.Composites = __webpack_require__(1286); +Matter.Bodies = __webpack_require__(105); +Matter.Composites = __webpack_require__(1282); -Matter.Axes = __webpack_require__(512); -Matter.Bounds = __webpack_require__(99); -Matter.Svg = __webpack_require__(1287); -Matter.Vector = __webpack_require__(98); -Matter.Vertices = __webpack_require__(85); +Matter.Axes = __webpack_require__(508); +Matter.Bounds = __webpack_require__(98); +Matter.Svg = __webpack_require__(1283); +Matter.Vector = __webpack_require__(97); +Matter.Vertices = __webpack_require__(84); // aliases @@ -180456,7 +180314,7 @@ module.exports = Matter; /***/ }), -/* 1293 */ +/* 1289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180806,7 +180664,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1294 */ +/* 1290 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180826,8 +180684,8 @@ var World = {}; module.exports = World; -var Composite = __webpack_require__(143); -var Constraint = __webpack_require__(215); +var Composite = __webpack_require__(142); +var Constraint = __webpack_require__(214); var Common = __webpack_require__(37); (function() { @@ -180959,7 +180817,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1295 */ +/* 1291 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180972,8 +180830,8 @@ var Grid = {}; module.exports = Grid; -var Pair = __webpack_require__(468); -var Detector = __webpack_require__(514); +var Pair = __webpack_require__(466); +var Detector = __webpack_require__(510); var Common = __webpack_require__(37); (function() { @@ -181286,7 +181144,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1296 */ +/* 1292 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181299,7 +181157,7 @@ var Pairs = {}; module.exports = Pairs; -var Pair = __webpack_require__(468); +var Pair = __webpack_require__(466); var Common = __webpack_require__(37); (function() { @@ -181451,7 +181309,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1297 */ +/* 1293 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181464,10 +181322,10 @@ var Resolver = {}; module.exports = Resolver; -var Vertices = __webpack_require__(85); -var Vector = __webpack_require__(98); +var Vertices = __webpack_require__(84); +var Vector = __webpack_require__(97); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(99); +var Bounds = __webpack_require__(98); (function() { @@ -181807,7 +181665,7 @@ var Bounds = __webpack_require__(99); /***/ }), -/* 1298 */ +/* 1294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181822,17 +181680,17 @@ var Bounds = __webpack_require__(99); module.exports = { - BasePlugin: __webpack_require__(469), - DefaultPlugins: __webpack_require__(171), - PluginCache: __webpack_require__(23), - PluginManager: __webpack_require__(367), - ScenePlugin: __webpack_require__(1299) + BasePlugin: __webpack_require__(467), + DefaultPlugins: __webpack_require__(170), + PluginCache: __webpack_require__(24), + PluginManager: __webpack_require__(365), + ScenePlugin: __webpack_require__(1295) }; /***/ }), -/* 1299 */ +/* 1295 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181841,9 +181699,9 @@ module.exports = { * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} */ -var BasePlugin = __webpack_require__(469); +var BasePlugin = __webpack_require__(467); var Class = __webpack_require__(0); -var SceneEvents = __webpack_require__(21); +var SceneEvents = __webpack_require__(22); /** * @classdesc @@ -181960,7 +181818,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1300 */ +/* 1296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181969,8 +181827,8 @@ module.exports = ScenePlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var CONST = __webpack_require__(173); +var Extend = __webpack_require__(18); +var CONST = __webpack_require__(172); /** * @namespace Phaser.Scale @@ -181998,12 +181856,12 @@ var CONST = __webpack_require__(173); var Scale = { - Center: __webpack_require__(356), - Events: __webpack_require__(91), - Orientation: __webpack_require__(357), - ScaleManager: __webpack_require__(368), - ScaleModes: __webpack_require__(358), - Zoom: __webpack_require__(359) + Center: __webpack_require__(354), + Events: __webpack_require__(90), + Orientation: __webpack_require__(355), + ScaleManager: __webpack_require__(366), + ScaleModes: __webpack_require__(356), + Zoom: __webpack_require__(357) }; @@ -182016,7 +181874,7 @@ module.exports = Scale; /***/ }), -/* 1301 */ +/* 1297 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -182025,8 +181883,8 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(120); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(119); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Scenes @@ -182034,11 +181892,11 @@ var Extend = __webpack_require__(17); var Scene = { - Events: __webpack_require__(21), - SceneManager: __webpack_require__(370), - ScenePlugin: __webpack_require__(1302), - Settings: __webpack_require__(372), - Systems: __webpack_require__(176) + Events: __webpack_require__(22), + SceneManager: __webpack_require__(368), + ScenePlugin: __webpack_require__(1298), + Settings: __webpack_require__(370), + Systems: __webpack_require__(175) }; @@ -182049,7 +181907,7 @@ module.exports = Scene; /***/ }), -/* 1302 */ +/* 1298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -182058,11 +181916,11 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); var Class = __webpack_require__(0); -var Events = __webpack_require__(21); +var Events = __webpack_require__(22); var GetFastValue = __webpack_require__(2); -var PluginCache = __webpack_require__(23); +var PluginCache = __webpack_require__(24); /** * @classdesc @@ -183059,7 +182917,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1303 */ +/* 1299 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183074,18 +182932,18 @@ module.exports = ScenePlugin; module.exports = { - List: __webpack_require__(124), - Map: __webpack_require__(157), - ProcessQueue: __webpack_require__(182), - RTree: __webpack_require__(465), - Set: __webpack_require__(128), - Size: __webpack_require__(369) + List: __webpack_require__(123), + Map: __webpack_require__(156), + ProcessQueue: __webpack_require__(181), + RTree: __webpack_require__(463), + Set: __webpack_require__(127), + Size: __webpack_require__(367) }; /***/ }), -/* 1304 */ +/* 1300 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183094,8 +182952,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extend = __webpack_require__(17); -var FilterMode = __webpack_require__(1305); +var Extend = __webpack_require__(18); +var FilterMode = __webpack_require__(1301); /** * @namespace Phaser.Textures @@ -183121,14 +182979,14 @@ var FilterMode = __webpack_require__(1305); var Textures = { - CanvasTexture: __webpack_require__(374), - Events: __webpack_require__(116), + CanvasTexture: __webpack_require__(372), + Events: __webpack_require__(115), FilterMode: FilterMode, - Frame: __webpack_require__(93), - Parsers: __webpack_require__(376), - Texture: __webpack_require__(178), - TextureManager: __webpack_require__(373), - TextureSource: __webpack_require__(375) + Frame: __webpack_require__(92), + Parsers: __webpack_require__(374), + Texture: __webpack_require__(177), + TextureManager: __webpack_require__(371), + TextureSource: __webpack_require__(373) }; @@ -183138,7 +182996,7 @@ module.exports = Textures; /***/ }), -/* 1305 */ +/* 1301 */ /***/ (function(module, exports) { /** @@ -183182,7 +183040,7 @@ module.exports = CONST; /***/ }), -/* 1306 */ +/* 1302 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183197,30 +183055,30 @@ module.exports = CONST; module.exports = { - Components: __webpack_require__(136), + Components: __webpack_require__(135), Parsers: __webpack_require__(1335), Formats: __webpack_require__(33), - ImageCollection: __webpack_require__(484), - ParseToTilemap: __webpack_require__(224), - Tile: __webpack_require__(73), - Tilemap: __webpack_require__(493), + ImageCollection: __webpack_require__(480), + ParseToTilemap: __webpack_require__(222), + Tile: __webpack_require__(72), + Tilemap: __webpack_require__(489), TilemapCreator: __webpack_require__(1344), TilemapFactory: __webpack_require__(1345), - Tileset: __webpack_require__(138), + Tileset: __webpack_require__(137), - LayerData: __webpack_require__(101), - MapData: __webpack_require__(102), - ObjectLayer: __webpack_require__(487), + LayerData: __webpack_require__(100), + MapData: __webpack_require__(101), + ObjectLayer: __webpack_require__(483), - DynamicTilemapLayer: __webpack_require__(494), - StaticTilemapLayer: __webpack_require__(495) + DynamicTilemapLayer: __webpack_require__(490), + StaticTilemapLayer: __webpack_require__(491) }; /***/ }), -/* 1307 */ +/* 1303 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183229,7 +183087,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); var CalculateFacesWithin = __webpack_require__(51); /** @@ -183285,7 +183143,7 @@ module.exports = Copy; /***/ }), -/* 1308 */ +/* 1304 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183294,9 +183152,9 @@ module.exports = Copy; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldXY = __webpack_require__(217); -var GetTilesWithin = __webpack_require__(24); -var ReplaceByIndex = __webpack_require__(472); + +var GetTilesWithin = __webpack_require__(25); +var ReplaceByIndex = __webpack_require__(468); /** * Creates a Sprite for every object matching the given tile indexes in the layer. You can @@ -183337,7 +183195,7 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came if (indexes.indexOf(tile.index) !== -1) { - var point = TileToWorldXY(tile.x,tile.y, undefined, camera, layer); + var point = tilemapLayer.tileToWorldXY(tile.x,tile.y, undefined, camera); spriteConfig.x = point.x; spriteConfig.y = point.y; var sprite = scene.make.sprite(spriteConfig); @@ -183369,7 +183227,7 @@ module.exports = CreateFromTiles; /***/ }), -/* 1309 */ +/* 1305 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183378,9 +183236,10 @@ module.exports = CreateFromTiles; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SnapFloor = __webpack_require__(92); -var SnapCeil = __webpack_require__(326); -var CheckIsoBounds = __webpack_require__(1310); +var CONST = __webpack_require__(10); +var SnapFloor = __webpack_require__(91); +var SnapCeil = __webpack_require__(324); +var CheckIsoBounds = __webpack_require__(1306); /** * Returns the tiles in the given layer that are within the camera's viewport. This is used internally. @@ -183422,7 +183281,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) { - if (layer.orientation === 'orthogonal' || layer.orientation === 'staggered' || layer.orientation === 'hexagonal') + if (layer.orientation === CONST.ORTHOGONAL || layer.orientation === CONST.STAGGERED || layer.orientation === CONST.HEXAGONAL) { // Camera world view bounds, snapped for scaled tile size // Cull Padding values are given in tiles, not pixels @@ -183432,17 +183291,17 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var boundsTop; var boundsBottom; - if (layer.orientation === 'orthogonal') + if (layer.orientation === CONST.ORTHOGONAL) { boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY; } - else if (layer.orientation === 'staggered') + else if (layer.orientation === CONST.STAGGERED) { boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH / 2, 0, true) - tilemapLayer.cullPaddingY; boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH / 2, 0, true) + tilemapLayer.cullPaddingY; } - else if (layer.orientation === 'hexagonal') + else if (layer.orientation === CONST.HEXAGONAL) { var sidel = layer.hexSideLength; var rowH = ((tileH - sidel) / 2 + sidel); @@ -183466,7 +183325,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var tile; - if (layer.orientation === 'orthogonal' || layer.orientation === 'staggered' || layer.orientation === 'hexagonal') + if (layer.orientation === CONST.ORTHOGONAL || layer.orientation === CONST.STAGGERED || layer.orientation === CONST.HEXAGONAL) { if (renderOrder === 0) @@ -183546,7 +183405,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) } } } - else if (layer.orientation === 'isometric') + else if (layer.orientation === CONST.ISOMETRIC) { if (renderOrder === 0) { @@ -183651,7 +183510,7 @@ module.exports = CullTiles; /***/ }), -/* 1310 */ +/* 1306 */ /***/ (function(module, exports) { /** @@ -183691,7 +183550,7 @@ module.exports = CheckIsoBounds; /***/ }), -/* 1311 */ +/* 1307 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183700,7 +183559,7 @@ module.exports = CheckIsoBounds; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); var CalculateFacesWithin = __webpack_require__(51); var SetTileCollision = __webpack_require__(71); @@ -183745,7 +183604,7 @@ module.exports = Fill; /***/ }), -/* 1312 */ +/* 1308 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183754,7 +183613,7 @@ module.exports = Fill; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given @@ -183793,7 +183652,7 @@ module.exports = FilterTiles; /***/ }), -/* 1313 */ +/* 1309 */ /***/ (function(module, exports) { /** @@ -183881,7 +183740,7 @@ module.exports = FindByIndex; /***/ }), -/* 1314 */ +/* 1310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183890,7 +183749,7 @@ module.exports = FindByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * @callback FindTileCallback @@ -183935,7 +183794,7 @@ module.exports = FindTile; /***/ }), -/* 1315 */ +/* 1311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183944,7 +183803,7 @@ module.exports = FindTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * @callback EachTileCallback @@ -183985,7 +183844,7 @@ module.exports = ForEachTile; /***/ }), -/* 1316 */ +/* 1312 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183994,8 +183853,7 @@ module.exports = ForEachTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(137); -var WorldToTileXY = __webpack_require__(72); +var GetTileAt = __webpack_require__(136); /** * Gets a tile at the given world coordinates from the given layer. @@ -184015,7 +183873,7 @@ var WorldToTileXY = __webpack_require__(72); */ var GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return GetTileAt(tileX, tileY, nonNull, layer); @@ -184025,7 +183883,7 @@ module.exports = GetTileAtWorldXY; /***/ }), -/* 1317 */ +/* 1313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184034,12 +183892,11 @@ module.exports = GetTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Geom = __webpack_require__(425); -var GetTilesWithin = __webpack_require__(24); -var Intersects = __webpack_require__(426); +var Geom = __webpack_require__(423); +var GetTilesWithin = __webpack_require__(25); +var Intersects = __webpack_require__(424); var NOOP = __webpack_require__(1); -var TileToWorldXY = __webpack_require__(217); -var WorldToTileXY = __webpack_require__(72); + var TriangleToRectangle = function (triangle, rect) { @@ -184079,12 +183936,12 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) else if (shape instanceof Geom.Line) { intersectTest = Intersects.LineToRectangle; } // Top left corner of the shapes's bounding box, rounded down to include partial tiles - var pointStart = WorldToTileXY(shape.left, shape.top, true, undefined, camera, layer); + var pointStart = layer.tilemapLayer.worldToTileXY(shape.left, shape.top, true, undefined, camera); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles - var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, undefined, camera, layer); + var pointEnd = layer.tilemapLayer.worldToTileXY(shape.right, shape.bottom, true, undefined, camera); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -184107,7 +183964,7 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) for (var i = 0; i < tiles.length; i++) { var tile = tiles[i]; - var point = TileToWorldXY(tile.x, tile.y, undefined, camera, layer); + var point = layer.tilemapLayer.tileToWorldXY(tile.x, tile.y, undefined, camera); tileRect.x = point.x; tileRect.y = point.y; if (intersectTest(shape, tileRect)) @@ -184123,7 +183980,7 @@ module.exports = GetTilesWithinShape; /***/ }), -/* 1318 */ +/* 1314 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184132,8 +183989,7 @@ module.exports = GetTilesWithinShape; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var WorldToTileXY = __webpack_require__(72); +var GetTilesWithin = __webpack_require__(25); /** * Gets the tiles in the given rectangular area (in world coordinates) of the layer. @@ -184159,12 +184015,12 @@ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOp { // Top left corner of the rect, rounded down to include partial tiles - var pointStart = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var pointStart = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the rect, rounded up to include partial tiles - var pointEnd = WorldToTileXY(worldX + width, worldY + height, false, undefined, camera, layer); + var pointEnd = layer.tilemapLayer.worldToTileXY(worldX + width, worldY + height, false, undefined, camera); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -184175,7 +184031,7 @@ module.exports = GetTilesWithinWorldXY; /***/ }), -/* 1319 */ +/* 1315 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184184,8 +184040,7 @@ module.exports = GetTilesWithinWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasTileAt = __webpack_require__(475); -var WorldToTileXY = __webpack_require__(72); +var HasTileAt = __webpack_require__(469); /** * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns @@ -184204,7 +184059,7 @@ var WorldToTileXY = __webpack_require__(72); */ var HasTileAtWorldXY = function (worldX, worldY, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return HasTileAt(tileX, tileY, layer); @@ -184214,7 +184069,7 @@ module.exports = HasTileAtWorldXY; /***/ }), -/* 1320 */ +/* 1316 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184223,8 +184078,7 @@ module.exports = HasTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PutTileAt = __webpack_require__(218); -var WorldToTileXY = __webpack_require__(72); +var PutTileAt = __webpack_require__(216); /** * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either @@ -184247,7 +184101,7 @@ var WorldToTileXY = __webpack_require__(72); */ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return PutTileAt(tile, tileX, tileY, recalculateFaces, layer); @@ -184257,7 +184111,7 @@ module.exports = PutTileAtWorldXY; /***/ }), -/* 1321 */ +/* 1317 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184267,7 +184121,7 @@ module.exports = PutTileAtWorldXY; */ var CalculateFacesWithin = __webpack_require__(51); -var PutTileAt = __webpack_require__(218); +var PutTileAt = __webpack_require__(216); /** * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified @@ -184322,7 +184176,7 @@ module.exports = PutTilesAt; /***/ }), -/* 1322 */ +/* 1318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184331,8 +184185,8 @@ module.exports = PutTilesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var GetRandom = __webpack_require__(181); +var GetTilesWithin = __webpack_require__(25); +var GetRandom = __webpack_require__(180); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -184380,7 +184234,7 @@ module.exports = Randomize; /***/ }), -/* 1323 */ +/* 1319 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184389,8 +184243,8 @@ module.exports = Randomize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RemoveTileAt = __webpack_require__(476); -var WorldToTileXY = __webpack_require__(72); +var RemoveTileAt = __webpack_require__(470); + /** * Removes the tile at the given world coordinates in the specified layer and updates the layer's @@ -184411,7 +184265,7 @@ var WorldToTileXY = __webpack_require__(72); */ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var point = layer.tilemapLayer.worldToTileXY(worldX, worldY, true, undefined, camera); var tileX = point.x; var tileY = point.y; return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer); @@ -184421,7 +184275,7 @@ module.exports = RemoveTileAtWorldXY; /***/ }), -/* 1324 */ +/* 1320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184430,8 +184284,8 @@ module.exports = RemoveTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var Color = __webpack_require__(351); +var GetTilesWithin = __webpack_require__(25); +var Color = __webpack_require__(349); var defaultTileColor = new Color(105, 210, 231, 150); var defaultCollidingTileColor = new Color(243, 134, 48, 200); @@ -184510,7 +184364,7 @@ module.exports = RenderDebug; /***/ }), -/* 1325 */ +/* 1321 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184521,7 +184375,7 @@ module.exports = RenderDebug; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on the given tile or tiles within a layer by index. You can pass in either a @@ -184579,7 +184433,7 @@ module.exports = SetCollision; /***/ }), -/* 1326 */ +/* 1322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184590,7 +184444,7 @@ module.exports = SetCollision; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on a range of tiles in a layer whose index is between the specified `start` and @@ -184654,7 +184508,7 @@ module.exports = SetCollisionBetween; /***/ }), -/* 1327 */ +/* 1323 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184665,7 +184519,7 @@ module.exports = SetCollisionBetween; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(219); +var SetLayerCollisionIndex = __webpack_require__(217); /** * Sets collision on all tiles in the given layer, except for tiles that have an index specified in @@ -184711,7 +184565,7 @@ module.exports = SetCollisionByExclusion; /***/ }), -/* 1328 */ +/* 1324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184722,7 +184576,7 @@ module.exports = SetCollisionByExclusion; var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var HasValue = __webpack_require__(105); +var HasValue = __webpack_require__(104); /** * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property @@ -184786,7 +184640,7 @@ module.exports = SetCollisionByProperty; /***/ }), -/* 1329 */ +/* 1325 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184846,7 +184700,7 @@ module.exports = SetCollisionFromCollisionGroup; /***/ }), -/* 1330 */ +/* 1326 */ /***/ (function(module, exports) { /** @@ -184893,7 +184747,7 @@ module.exports = SetTileIndexCallback; /***/ }), -/* 1331 */ +/* 1327 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184902,7 +184756,7 @@ module.exports = SetTileIndexCallback; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer. @@ -184936,7 +184790,7 @@ module.exports = SetTileLocationCallback; /***/ }), -/* 1332 */ +/* 1328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184945,8 +184799,8 @@ module.exports = SetTileLocationCallback; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); -var ShuffleArray = __webpack_require__(111); +var GetTilesWithin = __webpack_require__(25); +var ShuffleArray = __webpack_require__(110); /** * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given @@ -184981,7 +184835,7 @@ module.exports = Shuffle; /***/ }), -/* 1333 */ +/* 1329 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184990,7 +184844,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var GetTilesWithin = __webpack_require__(25); /** * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching @@ -185032,7 +184886,7 @@ module.exports = SwapByIndex; /***/ }), -/* 1334 */ +/* 1330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185041,7 +184895,428 @@ module.exports = SwapByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTilesWithin = __webpack_require__(24); +var CONST = __webpack_require__(10); + +/** + * Converts from orthogonal tile X coordinates (tile units) to world X coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldX + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var OrthoTileToWorldX = function (tileX, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + } + + return layerWorldX + tileX * tileWidth; + + +}; + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the TileToWorldXY function.'); + return null; +}; + +var TileToWorldX = function (orientation) +{ + switch (orientation) + { + case CONST.ORTHOGONAL: + return OrthoTileToWorldX; + default: + return nullFunc; + } + +}; + +module.exports = TileToWorldX; + + +/***/ }), +/* 1331 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); +var Vector2 = __webpack_require__(3); + +/** + * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.OrthoTileToWorldXY + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var OrthoTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileHeight = layer.baseTileHeight; + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + } + + point.x = layerWorldX + tileX * tileWidth; + point.y = layerWorldY + tileY * tileHeight; + + + + return point; +}; + +/** + * Converts from isometric tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.IsoTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var IsoTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); + point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); + + + return point; +}; + +/** + * Converts from staggered tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.StagTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var StagTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); + point.y = layerWorldY + tileY * (tileHeight / 2); + + return point; +}; + +/** + * Converts from hexagonal tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.HexTileToWorldXY + * @private + * @since 3.2.2 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var HexTileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // similar to staggered, because Tiled uses the oddr representation. + point.x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2); + point.y = layerWorldY + tileY * rowHeight; + + return point; +}; + +var TileToWorldXY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagTileToWorldXY; + case CONST.ISOMETRIC: + return IsoTileToWorldXY; + case CONST.HEXAGONAL: + return HexTileToWorldXY; + default: + return OrthoTileToWorldXY; + } + +}; + +module.exports = TileToWorldXY; + + +/***/ }), +/* 1332 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + + +var CONST = __webpack_require__(10); + +/** + * Converts from orthogonal tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var OrthoTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + return layerWorldY + tileY * tileHeight; + +}; + + + +/** + * Converts from staggered tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.StagTileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var StagTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + return layerWorldY + tileY * (tileHeight / 2); + +}; + + +/** + * Converts from hexagonal tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.HexTileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var HexTileToWorldY = function (tileY, camera, layer) +{ + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + var sidel = layer.tilemapLayer.tilemap.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // same as staggered + return layerWorldY + tileY * rowHeight; +}; + + +var nullFunc = function () +{ + console.warn('With the current map type you have to use the TileToWorldXY function.'); + return null; +}; + +var TileToWorldY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagTileToWorldY; + case CONST.ISOMETRIC: + return nullFunc; + case CONST.HEXAGONAL: + return HexTileToWorldY; + default: + return OrthoTileToWorldY; + + } + +}; + +module.exports = TileToWorldY; + + +/***/ }), +/* 1333 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var GetTilesWithin = __webpack_require__(25); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -185111,6 +185386,243 @@ var WeightedRandomize = function (tileX, tileY, width, height, weightedIndexes, module.exports = WeightedRandomize; +/***/ }), +/* 1334 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var CONST = __webpack_require__(10); +var WorldToTileX = __webpack_require__(471).func; +var WorldToTileY = __webpack_require__(472).func; +var Vector2 = __webpack_require__(3); + +/** + * Converts from world XY coordinates (pixels) to orthogonal tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.OrthoWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var OrthoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + point.x = WorldToTileX(worldX, snapToFloor, camera, layer); + point.y = WorldToTileY(worldY, snapToFloor, camera, layer); + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to isometric tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.IsoWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var IsoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + point.x = snapToFloor + ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) + : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) + : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); + + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to hexagonal tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.HexWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var HexWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + var sidel = layer.hexSideLength; + var rowHeight = ((tileHeight - sidel) / 2 + sidel); + + // similar to staggered, because Tiled uses the oddr representation. + point.y = snapToFloor + ? Math.floor((worldY / rowHeight)) + : (worldY / rowHeight); + point.x = snapToFloor + ? Math.floor((worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth) + : (worldX - (point.y % 2) * 0.5 * tileWidth) / tileWidth; + + return point; +}; + +/** + * Converts from world XY coordinates (pixels) to staggered tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.StagWorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var StagWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + if (point === undefined) { point = new Vector2(0, 0); } + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2))) + : (worldY / (tileHeight / 2)); + point.x = snapToFloor + ? Math.floor((worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth) + : (worldX + (point.y % 2) * 0.5 * tileWidth) / tileWidth; + + + } + + return point; +}; + +var WorldToTileXY = function (orientation) +{ + switch (orientation) + { + case CONST.STAGGERED: + return StagWorldToTileXY; + + case CONST.ISOMETRIC: + return IsoWorldToTileXY; + + case CONST.HEXAGONAL: + return HexWorldToTileXY; + + default: + return OrthoWorldToTileXY; + + } + +}; + +module.exports = WorldToTileXY; + + /***/ }), /* 1335 */ /***/ (function(module, exports, __webpack_require__) { @@ -185127,9 +185639,9 @@ module.exports = WeightedRandomize; module.exports = { - Parse: __webpack_require__(477), - Parse2DArray: __webpack_require__(220), - ParseCSV: __webpack_require__(478), + Parse: __webpack_require__(473), + Parse2DArray: __webpack_require__(218), + ParseCSV: __webpack_require__(474), Impact: __webpack_require__(1336), Tiled: __webpack_require__(1337) @@ -185153,9 +185665,9 @@ module.exports = { module.exports = { - ParseTileLayers: __webpack_require__(491), - ParseTilesets: __webpack_require__(492), - ParseWeltmeister: __webpack_require__(490) + ParseTileLayers: __webpack_require__(487), + ParseTilesets: __webpack_require__(488), + ParseWeltmeister: __webpack_require__(486) }; @@ -185176,16 +185688,16 @@ module.exports = { module.exports = { - AssignTileProperties: __webpack_require__(489), - Base64Decode: __webpack_require__(481), - BuildTilesetIndex: __webpack_require__(488), - ParseGID: __webpack_require__(221), - ParseImageLayers: __webpack_require__(482), - ParseJSONTiled: __webpack_require__(479), - ParseObject: __webpack_require__(223), - ParseObjectLayers: __webpack_require__(486), - ParseTileLayers: __webpack_require__(480), - ParseTilesets: __webpack_require__(483) + AssignTileProperties: __webpack_require__(485), + Base64Decode: __webpack_require__(477), + BuildTilesetIndex: __webpack_require__(484), + ParseGID: __webpack_require__(219), + ParseImageLayers: __webpack_require__(478), + ParseJSONTiled: __webpack_require__(475), + ParseObject: __webpack_require__(221), + ParseObjectLayers: __webpack_require__(482), + ParseTileLayers: __webpack_require__(476), + ParseTilesets: __webpack_require__(479) }; @@ -185231,7 +185743,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ + var Utils = __webpack_require__(9); +var CONST = __webpack_require__(10); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -185305,7 +185819,7 @@ var DynamicTilemapLayerWebGLRenderer = function (renderer, src, interpolationPer var frameWidth = 0; var frameHeight = 0; - if (src.layer.orientation === 'isometric' || src.layer.orientation === 'staggered' || src.layer.orientation === 'hexagonal') + if (src.layer.orientation === CONST.ISOMETRIC || src.layer.orientation === CONST.STAGGERED || src.layer.orientation === CONST.HEXAGONAL) { // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. frameWidth = tileset.tileWidth; @@ -185352,7 +185866,7 @@ module.exports = DynamicTilemapLayerWebGLRenderer; /***/ }), /* 1340 */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { /** * @author Richard Davey @@ -185360,6 +185874,8 @@ module.exports = DynamicTilemapLayerWebGLRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ +var CONST = __webpack_require__(10); + /** * Renders this Game Object with the Canvas Renderer to the given Camera. * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera. @@ -185448,7 +185964,7 @@ var DynamicTilemapLayerCanvasRenderer = function (renderer, src, interpolationPe var width = tile.width; var height = tile.width; - if (src.layer.orientation === 'isometric' || src.layer.orientation === 'staggered' || src.layer.orientation === 'hexagonal') + if (src.layer.orientation === CONST.ISOMETRIC || src.layer.orientation === CONST.STAGGERED || src.layer.orientation === CONST.HEXAGONAL) { // we use the tileset width and height because in isometric and hexagonal maps the tileset's height is often different from the tilemap's. width = tileset.tileWidth; @@ -185740,8 +186256,8 @@ module.exports = StaticTilemapLayerCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GameObjectCreator = __webpack_require__(16); -var ParseToTilemap = __webpack_require__(224); +var GameObjectCreator = __webpack_require__(17); +var ParseToTilemap = __webpack_require__(222); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -185785,7 +186301,7 @@ GameObjectCreator.register('tilemap', function (config) */ var GameObjectFactory = __webpack_require__(5); -var ParseToTilemap = __webpack_require__(224); +var ParseToTilemap = __webpack_require__(222); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -185857,7 +186373,7 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt module.exports = { Clock: __webpack_require__(1347), - TimerEvent: __webpack_require__(496) + TimerEvent: __webpack_require__(492) }; @@ -185873,9 +186389,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var TimerEvent = __webpack_require__(496); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var TimerEvent = __webpack_require__(492); /** * @classdesc @@ -186278,8 +186794,8 @@ module.exports = Clock; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(88); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(87); +var Extend = __webpack_require__(18); /** * @namespace Phaser.Tweens @@ -186288,12 +186804,12 @@ var Extend = __webpack_require__(17); var Tweens = { Builders: __webpack_require__(1349), - Events: __webpack_require__(229), + Events: __webpack_require__(227), TweenManager: __webpack_require__(1364), - Tween: __webpack_require__(228), - TweenData: __webpack_require__(230), - Timeline: __webpack_require__(502) + Tween: __webpack_require__(226), + TweenData: __webpack_require__(228), + Timeline: __webpack_require__(498) }; @@ -186319,17 +186835,17 @@ module.exports = Tweens; module.exports = { - GetBoolean: __webpack_require__(87), + GetBoolean: __webpack_require__(86), GetEaseFunction: __webpack_require__(67), - GetNewValue: __webpack_require__(139), - GetProps: __webpack_require__(497), - GetTargets: __webpack_require__(225), - GetTweens: __webpack_require__(498), - GetValueOp: __webpack_require__(226), - NumberTweenBuilder: __webpack_require__(499), - StaggerBuilder: __webpack_require__(500), - TimelineBuilder: __webpack_require__(501), - TweenBuilder: __webpack_require__(140) + GetNewValue: __webpack_require__(138), + GetProps: __webpack_require__(493), + GetTargets: __webpack_require__(223), + GetTweens: __webpack_require__(494), + GetValueOp: __webpack_require__(224), + NumberTweenBuilder: __webpack_require__(495), + StaggerBuilder: __webpack_require__(496), + TimelineBuilder: __webpack_require__(497), + TweenBuilder: __webpack_require__(139) }; @@ -186938,15 +187454,15 @@ module.exports = 'yoyo'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(118); +var ArrayRemove = __webpack_require__(117); var Class = __webpack_require__(0); -var NumberTweenBuilder = __webpack_require__(499); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(21); -var StaggerBuilder = __webpack_require__(500); -var TimelineBuilder = __webpack_require__(501); -var TWEEN_CONST = __webpack_require__(88); -var TweenBuilder = __webpack_require__(140); +var NumberTweenBuilder = __webpack_require__(495); +var PluginCache = __webpack_require__(24); +var SceneEvents = __webpack_require__(22); +var StaggerBuilder = __webpack_require__(496); +var TimelineBuilder = __webpack_require__(497); +var TWEEN_CONST = __webpack_require__(87); +var TweenBuilder = __webpack_require__(139); /** * @classdesc @@ -187716,7 +188232,7 @@ module.exports = TweenManager; module.exports = { - Array: __webpack_require__(179), + Array: __webpack_require__(178), Base64: __webpack_require__(1366), Objects: __webpack_require__(1368), String: __webpack_require__(1372) @@ -187741,7 +188257,7 @@ module.exports = { module.exports = { ArrayBufferToBase64: __webpack_require__(1367), - Base64ToArrayBuffer: __webpack_require__(383) + Base64ToArrayBuffer: __webpack_require__(381) }; @@ -187821,19 +188337,19 @@ module.exports = ArrayBufferToBase64; module.exports = { Clone: __webpack_require__(65), - Extend: __webpack_require__(17), - GetAdvancedValue: __webpack_require__(14), + Extend: __webpack_require__(18), + GetAdvancedValue: __webpack_require__(15), GetFastValue: __webpack_require__(2), GetMinMaxValue: __webpack_require__(1369), GetValue: __webpack_require__(6), HasAll: __webpack_require__(1370), - HasAny: __webpack_require__(402), - HasValue: __webpack_require__(105), + HasAny: __webpack_require__(400), + HasValue: __webpack_require__(104), IsPlainObject: __webpack_require__(7), - Merge: __webpack_require__(121), + Merge: __webpack_require__(120), MergeRight: __webpack_require__(1371), - Pick: __webpack_require__(485), - SetValue: __webpack_require__(422) + Pick: __webpack_require__(481), + SetValue: __webpack_require__(420) }; @@ -187849,7 +188365,7 @@ module.exports = { */ var GetValue = __webpack_require__(6); -var Clamp = __webpack_require__(22); +var Clamp = __webpack_require__(23); /** * Retrieves and clamps a numerical value from an object. @@ -187974,10 +188490,10 @@ module.exports = MergeRight; module.exports = { Format: __webpack_require__(1373), - Pad: __webpack_require__(158), + Pad: __webpack_require__(157), Reverse: __webpack_require__(1374), - UppercaseFirst: __webpack_require__(177), - UUID: __webpack_require__(192) + UppercaseFirst: __webpack_require__(176), + UUID: __webpack_require__(191) }; @@ -188063,21 +188579,21 @@ module.exports = Reverse; module.exports = { - SoundManagerCreator: __webpack_require__(377), + SoundManagerCreator: __webpack_require__(375), Events: __webpack_require__(59), - BaseSound: __webpack_require__(123), - BaseSoundManager: __webpack_require__(122), + BaseSound: __webpack_require__(122), + BaseSoundManager: __webpack_require__(121), - WebAudioSound: __webpack_require__(384), - WebAudioSoundManager: __webpack_require__(382), + WebAudioSound: __webpack_require__(382), + WebAudioSoundManager: __webpack_require__(380), - HTML5AudioSound: __webpack_require__(379), - HTML5AudioSoundManager: __webpack_require__(378), + HTML5AudioSound: __webpack_require__(377), + HTML5AudioSoundManager: __webpack_require__(376), - NoAudioSound: __webpack_require__(381), - NoAudioSoundManager: __webpack_require__(380) + NoAudioSound: __webpack_require__(379), + NoAudioSoundManager: __webpack_require__(378) }; @@ -188498,19 +189014,19 @@ module.exports = BodyBounds; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Class = __webpack_require__(0); -var Composites = __webpack_require__(1286); -var Constraint = __webpack_require__(215); -var Svg = __webpack_require__(1287); +var Composites = __webpack_require__(1282); +var Constraint = __webpack_require__(214); +var Svg = __webpack_require__(1283); var MatterGameObject = __webpack_require__(1388); var MatterImage = __webpack_require__(1379); var MatterSprite = __webpack_require__(1380); -var MatterTileBody = __webpack_require__(1291); -var PhysicsEditorParser = __webpack_require__(1288); -var PhysicsJSONParser = __webpack_require__(1289); +var MatterTileBody = __webpack_require__(1287); +var PhysicsEditorParser = __webpack_require__(1284); +var PhysicsJSONParser = __webpack_require__(1285); var PointerConstraint = __webpack_require__(1417); -var Vertices = __webpack_require__(85); +var Vertices = __webpack_require__(84); /** * @classdesc @@ -190099,11 +190615,11 @@ function points_eq(a,b,precision){ */ var Class = __webpack_require__(0); -var Components = __webpack_require__(513); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(509); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var Image = __webpack_require__(104); -var Pipeline = __webpack_require__(151); +var Image = __webpack_require__(103); +var Pipeline = __webpack_require__(150); var Vector2 = __webpack_require__(3); /** @@ -190234,13 +190750,13 @@ module.exports = MatterImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AnimationComponent = __webpack_require__(503); +var AnimationComponent = __webpack_require__(499); var Class = __webpack_require__(0); -var Components = __webpack_require__(513); -var GameObject = __webpack_require__(13); +var Components = __webpack_require__(509); +var GameObject = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var Pipeline = __webpack_require__(151); -var Sprite = __webpack_require__(74); +var Pipeline = __webpack_require__(150); +var Sprite = __webpack_require__(73); var Vector2 = __webpack_require__(3); /** @@ -190380,7 +190896,7 @@ var Matter = {}; module.exports = Matter; -var Plugin = __webpack_require__(1293); +var Plugin = __webpack_require__(1289); var Common = __webpack_require__(37); (function() { @@ -190474,11 +190990,11 @@ var Query = {}; module.exports = Query; -var Vector = __webpack_require__(98); -var SAT = __webpack_require__(515); -var Bounds = __webpack_require__(99); -var Bodies = __webpack_require__(106); -var Vertices = __webpack_require__(85); +var Vector = __webpack_require__(97); +var SAT = __webpack_require__(511); +var Bounds = __webpack_require__(98); +var Bodies = __webpack_require__(105); +var Vertices = __webpack_require__(84); (function() { @@ -190618,15 +191134,15 @@ var Engine = {}; module.exports = Engine; -var World = __webpack_require__(1294); -var Sleeping = __webpack_require__(236); -var Resolver = __webpack_require__(1297); -var Pairs = __webpack_require__(1296); +var World = __webpack_require__(1290); +var Sleeping = __webpack_require__(234); +var Resolver = __webpack_require__(1293); +var Pairs = __webpack_require__(1292); var Metrics = __webpack_require__(1418); -var Grid = __webpack_require__(1295); -var Events = __webpack_require__(237); -var Composite = __webpack_require__(143); -var Constraint = __webpack_require__(215); +var Grid = __webpack_require__(1291); +var Events = __webpack_require__(235); +var Composite = __webpack_require__(142); +var Constraint = __webpack_require__(214); var Common = __webpack_require__(37); var Body = __webpack_require__(62); @@ -191103,21 +191619,21 @@ var Body = __webpack_require__(62); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); var Class = __webpack_require__(0); var Common = __webpack_require__(37); -var Composite = __webpack_require__(143); +var Composite = __webpack_require__(142); var Engine = __webpack_require__(1383); -var EventEmitter = __webpack_require__(10); -var Events = __webpack_require__(1290); +var EventEmitter = __webpack_require__(11); +var Events = __webpack_require__(1286); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var MatterBody = __webpack_require__(62); -var MatterEvents = __webpack_require__(237); -var MatterTileBody = __webpack_require__(1291); -var MatterWorld = __webpack_require__(1294); -var Vector = __webpack_require__(98); +var MatterEvents = __webpack_require__(235); +var MatterTileBody = __webpack_require__(1287); +var MatterWorld = __webpack_require__(1290); +var Vector = __webpack_require__(97); /** * @classdesc @@ -193324,10 +193840,10 @@ module.exports = World; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -__webpack_require__(517); +__webpack_require__(513); -var CONST = __webpack_require__(29); -var Extend = __webpack_require__(17); +var CONST = __webpack_require__(10); +var Extend = __webpack_require__(18); /** * @namespace Phaser @@ -193335,35 +193851,35 @@ var Extend = __webpack_require__(17); var Phaser = { - Actions: __webpack_require__(238), - Animations: __webpack_require__(637), + Actions: __webpack_require__(236), + Animations: __webpack_require__(633), BlendModes: __webpack_require__(52), - Cache: __webpack_require__(638), - Cameras: __webpack_require__(641), - Core: __webpack_require__(724), + Cache: __webpack_require__(634), + Cameras: __webpack_require__(637), + Core: __webpack_require__(720), Class: __webpack_require__(0), - Create: __webpack_require__(783), - Curves: __webpack_require__(789), - Data: __webpack_require__(792), - Display: __webpack_require__(794), - DOM: __webpack_require__(811), - Events: __webpack_require__(812), - Game: __webpack_require__(814), - GameObjects: __webpack_require__(907), - Geom: __webpack_require__(425), - Input: __webpack_require__(1195), - Loader: __webpack_require__(1229), - Math: __webpack_require__(166), + Create: __webpack_require__(779), + Curves: __webpack_require__(785), + Data: __webpack_require__(788), + Display: __webpack_require__(790), + DOM: __webpack_require__(807), + Events: __webpack_require__(808), + Game: __webpack_require__(810), + GameObjects: __webpack_require__(903), + Geom: __webpack_require__(423), + Input: __webpack_require__(1191), + Loader: __webpack_require__(1225), + Math: __webpack_require__(165), Physics: __webpack_require__(1386), - Plugins: __webpack_require__(1298), + Plugins: __webpack_require__(1294), Renderer: __webpack_require__(1423), - Scale: __webpack_require__(1300), - ScaleModes: __webpack_require__(231), - Scene: __webpack_require__(371), - Scenes: __webpack_require__(1301), - Structs: __webpack_require__(1303), - Textures: __webpack_require__(1304), - Tilemaps: __webpack_require__(1306), + Scale: __webpack_require__(1296), + ScaleModes: __webpack_require__(229), + Scene: __webpack_require__(369), + Scenes: __webpack_require__(1297), + Structs: __webpack_require__(1299), + Textures: __webpack_require__(1300), + Tilemaps: __webpack_require__(1302), Time: __webpack_require__(1346), Tweens: __webpack_require__(1348), Utils: __webpack_require__(1365) @@ -193406,7 +193922,7 @@ global.Phaser = Phaser; * -- Dick Brandon */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(516))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(512))) /***/ }), /* 1386 */ @@ -193428,7 +193944,7 @@ global.Phaser = Phaser; module.exports = { - Arcade: __webpack_require__(1255), + Arcade: __webpack_require__(1251), Matter: __webpack_require__(1387) }; @@ -193453,13 +193969,13 @@ module.exports = { BodyBounds: __webpack_require__(1376), Factory: __webpack_require__(1377), Image: __webpack_require__(1379), - Matter: __webpack_require__(1292), + Matter: __webpack_require__(1288), MatterPhysics: __webpack_require__(1419), PolyDecomp: __webpack_require__(1378), Sprite: __webpack_require__(1380), - TileBody: __webpack_require__(1291), - PhysicsEditorParser: __webpack_require__(1288), - PhysicsJSONParser: __webpack_require__(1289), + TileBody: __webpack_require__(1287), + PhysicsEditorParser: __webpack_require__(1284), + PhysicsJSONParser: __webpack_require__(1285), World: __webpack_require__(1384) }; @@ -193475,7 +193991,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Components = __webpack_require__(513); +var Components = __webpack_require__(509); var GetFastValue = __webpack_require__(2); var Vector2 = __webpack_require__(3); @@ -194304,13 +194820,13 @@ module.exports = Sensor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(106); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); -var FuzzyEquals = __webpack_require__(141); +var FuzzyEquals = __webpack_require__(140); var GetFastValue = __webpack_require__(2); -var PhysicsEditorParser = __webpack_require__(1288); -var PhysicsJSONParser = __webpack_require__(1289); -var Vertices = __webpack_require__(85); +var PhysicsEditorParser = __webpack_require__(1284); +var PhysicsJSONParser = __webpack_require__(1285); +var Vertices = __webpack_require__(84); /** * Enables a Matter-enabled Game Object to set its Body. Should be used as a mixin and not directly. @@ -194594,9 +195110,9 @@ module.exports = SetBody; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Events = __webpack_require__(1290); -var Sleeping = __webpack_require__(236); -var MatterEvents = __webpack_require__(237); +var Events = __webpack_require__(1286); +var Sleeping = __webpack_require__(234); +var MatterEvents = __webpack_require__(235); /** * Enables a Matter-enabled Game Object to be able to go to sleep. Should be used as a mixin and not directly. @@ -195256,9 +195772,9 @@ module.exports = 'sleepstart'; */ var Body = __webpack_require__(62); -var MATH_CONST = __webpack_require__(15); -var WrapAngle = __webpack_require__(232); -var WrapAngleDegrees = __webpack_require__(233); +var MATH_CONST = __webpack_require__(16); +var WrapAngle = __webpack_require__(230); +var WrapAngleDegrees = __webpack_require__(231); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -195671,17 +196187,17 @@ module.exports = Velocity; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bounds = __webpack_require__(99); +var Bounds = __webpack_require__(98); var Class = __webpack_require__(0); -var Composite = __webpack_require__(143); -var Constraint = __webpack_require__(215); -var Detector = __webpack_require__(514); -var Events = __webpack_require__(1290); +var Composite = __webpack_require__(142); +var Constraint = __webpack_require__(214); +var Detector = __webpack_require__(510); +var Events = __webpack_require__(1286); var InputEvents = __webpack_require__(54); -var Merge = __webpack_require__(121); -var Sleeping = __webpack_require__(236); +var Merge = __webpack_require__(120); +var Sleeping = __webpack_require__(234); var Vector2 = __webpack_require__(3); -var Vertices = __webpack_require__(85); +var Vertices = __webpack_require__(84); /** * @classdesc @@ -196063,7 +196579,7 @@ var Metrics = {}; module.exports = Metrics; -var Composite = __webpack_require__(143); +var Composite = __webpack_require__(142); var Common = __webpack_require__(37); (function() { @@ -196158,38 +196674,38 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(103); -var Axes = __webpack_require__(512); -var Bodies = __webpack_require__(106); +var ALIGN_CONST = __webpack_require__(102); +var Axes = __webpack_require__(508); +var Bodies = __webpack_require__(105); var Body = __webpack_require__(62); var BodyBounds = __webpack_require__(1376); -var Bounds = __webpack_require__(99); +var Bounds = __webpack_require__(98); var Class = __webpack_require__(0); -var Composite = __webpack_require__(143); -var Composites = __webpack_require__(1286); -var Constraint = __webpack_require__(215); -var Detector = __webpack_require__(514); +var Composite = __webpack_require__(142); +var Composites = __webpack_require__(1282); +var Constraint = __webpack_require__(214); +var Detector = __webpack_require__(510); var DistanceBetween = __webpack_require__(53); var Factory = __webpack_require__(1377); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); -var Grid = __webpack_require__(1295); +var Grid = __webpack_require__(1291); var MatterAttractors = __webpack_require__(1420); var MatterCollisionEvents = __webpack_require__(1421); var MatterLib = __webpack_require__(1381); var MatterWrap = __webpack_require__(1422); -var Merge = __webpack_require__(121); -var Pair = __webpack_require__(468); -var Pairs = __webpack_require__(1296); -var Plugin = __webpack_require__(1293); -var PluginCache = __webpack_require__(23); +var Merge = __webpack_require__(120); +var Pair = __webpack_require__(466); +var Pairs = __webpack_require__(1292); +var Plugin = __webpack_require__(1289); +var PluginCache = __webpack_require__(24); var Query = __webpack_require__(1382); -var Resolver = __webpack_require__(1297); -var SAT = __webpack_require__(515); -var SceneEvents = __webpack_require__(21); -var Svg = __webpack_require__(1287); -var Vector = __webpack_require__(98); -var Vertices = __webpack_require__(85); +var Resolver = __webpack_require__(1293); +var SAT = __webpack_require__(511); +var SceneEvents = __webpack_require__(22); +var Svg = __webpack_require__(1283); +var Vector = __webpack_require__(97); +var Vertices = __webpack_require__(84); var World = __webpack_require__(1384); /** @@ -197621,7 +198137,7 @@ module.exports = MatterPhysics; /* 1420 */ /***/ (function(module, exports, __webpack_require__) { -var Matter = __webpack_require__(1292); +var Matter = __webpack_require__(1288); /** * An attractors plugin for matter.js. @@ -197896,7 +198412,7 @@ module.exports = MatterCollisionEvents; /* 1422 */ /***/ (function(module, exports, __webpack_require__) { -var Matter = __webpack_require__(1292); +var Matter = __webpack_require__(1288); /** * A coordinate wrapping plugin for matter.js. @@ -198117,9 +198633,9 @@ module.exports = { module.exports = { - CanvasRenderer: __webpack_require__(504), - GetBlendModes: __webpack_require__(506), - SetTransform: __webpack_require__(28) + CanvasRenderer: __webpack_require__(500), + GetBlendModes: __webpack_require__(502), + SetTransform: __webpack_require__(29) }; @@ -198140,8 +198656,8 @@ module.exports = { module.exports = { - Canvas: __webpack_require__(505), - WebGL: __webpack_require__(508) + Canvas: __webpack_require__(501), + WebGL: __webpack_require__(504) }; @@ -198163,8 +198679,8 @@ module.exports = { module.exports = { Utils: __webpack_require__(9), - WebGLPipeline: __webpack_require__(142), - WebGLRenderer: __webpack_require__(507), + WebGLPipeline: __webpack_require__(141), + WebGLRenderer: __webpack_require__(503), Pipelines: __webpack_require__(1427), // Constants @@ -198193,11 +198709,11 @@ module.exports = { module.exports = { - BitmapMaskPipeline: __webpack_require__(509), - ForwardDiffuseLightPipeline: __webpack_require__(510), - TextureTintPipeline: __webpack_require__(234), - TextureTintStripPipeline: __webpack_require__(511), - ModelViewProjection: __webpack_require__(235) + BitmapMaskPipeline: __webpack_require__(505), + ForwardDiffuseLightPipeline: __webpack_require__(506), + TextureTintPipeline: __webpack_require__(232), + TextureTintStripPipeline: __webpack_require__(507), + ModelViewProjection: __webpack_require__(233) }; diff --git a/dist/phaser.min.js b/dist/phaser.min.js index bdd412190..f6fdb9f5d 100644 --- a/dist/phaser.min.js +++ b/dist/phaser.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Phaser",[],e):"object"==typeof exports?exports.Phaser=e():t.Phaser=e()}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1385)}([function(t,e){function i(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,e,s,r){for(var a in e)if(e.hasOwnProperty(a)){var h=i(e,a,s);if(!1!==h){if(n((r||t).prototype,a)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=e[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(278),r=i(110),o=i(10),a=i(89),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(166),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(705),CREATE:i(706),DESTROY:i(707),PAUSE:i(708),POST_UPDATE:i(709),PRE_UPDATE:i(710),READY:i(711),RENDER:i(712),RESUME:i(713),SHUTDOWN:i(714),SLEEP:i(715),START:i(716),TRANSITION_COMPLETE:i(717),TRANSITION_INIT:i(718),TRANSITION_OUT:i(719),TRANSITION_START:i(720),TRANSITION_WAKE:i(721),UPDATE:i(722),WAKE:i(723)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(162),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(160),r=i(292),o=i(161),a=i(293),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},function(t,e){var i={};t.exports=i,function(){i._nextId=0,i._seed=0,i._nowStartTime=+new Date,i.extend=function(t,e){var n,s;"boolean"==typeof e?(n=2,s=e):(n=1,s=!0);for(var r=n;r0;e--){var n=Math.floor(i.random()*(e+1)),s=t[e];t[e]=t[n],t[n]=s}return t},i.choose=function(t){return t[Math.floor(i.random()*t.length)]},i.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},i.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.isFunction=function(t){return"function"==typeof t},i.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},i.isString=function(t){return"[object String]"===toString.call(t)},i.clamp=function(t,e,i){return ti?i:t},i.sign=function(t){return t<0?-1:1},i.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return new Date-i._nowStartTime},i.random=function(e,i){return e=void 0!==e?e:0,i=void 0!==i?i:1,e+t()*(i-e)};var t=function(){return i._seed=(9301*i._seed+49297)%233280,i._seed/233280};i.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},i.logLevel=1,i.log=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.info=function(){console&&i.logLevel>0&&i.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warn=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.nextId=function(){return i._nextId++},i.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(646),FADE_IN_COMPLETE:i(647),FADE_IN_START:i(648),FADE_OUT_COMPLETE:i(649),FADE_OUT_START:i(650),FLASH_COMPLETE:i(651),FLASH_START:i(652),PAN_COMPLETE:i(653),PAN_START:i(654),POST_RENDER:i(655),PRE_RENDER:i(656),SHAKE_COMPLETE:i(657),SHAKE_START:i(658),ZOOM_COMPLETE:i(659),ZOOM_START:i(660)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(137),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(272),r=i(148),o=i(46),a=i(149),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(884),DECODED:i(885),DECODED_ALL:i(886),DESTROY:i(887),DETUNE:i(888),GLOBAL_DETUNE:i(889),GLOBAL_MUTE:i(890),GLOBAL_RATE:i(891),GLOBAL_VOLUME:i(892),LOOP:i(893),LOOPED:i(894),MUTE:i(895),PAUSE_ALL:i(896),PAUSE:i(897),PLAY:i(898),RATE:i(899),RESUME_ALL:i(900),RESUME:i(901),SEEK:i(902),STOP_ALL:i(903),STOP:i(904),UNLOCKED:i(905),VOLUME:i(906)}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s0&&r.rotateAbout(o.position,i,t.position,o.position)}},n.setVelocity=function(t,e){t.positionPrev.x=t.position.x-e.x,t.positionPrev.y=t.position.y-e.y,t.velocity.x=e.x,t.velocity.y=e.y,t.speed=r.magnitude(t.velocity)},n.setAngularVelocity=function(t,e){t.anglePrev=t.angle-e,t.angularVelocity=e,t.angularSpeed=Math.abs(t.angularVelocity)},n.translate=function(t,e){n.setPosition(t,r.add(t.position,e))},n.rotate=function(t,e,i){if(i){var s=Math.cos(e),r=Math.sin(e),o=t.position.x-i.x,a=t.position.y-i.y;n.setPosition(t,{x:i.x+(o*s-a*r),y:i.y+(o*r+a*s)}),n.setAngle(t,t.angle+e)}else n.setAngle(t,t.angle+e)},n.scale=function(t,e,i,r){var o=0,a=0;r=r||t.position;for(var u=0;u0&&(o+=c.area,a+=c.inertia),c.position.x=r.x+(c.position.x-r.x)*e,c.position.y=r.y+(c.position.y-r.y)*i,h.update(c.bounds,c.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(n.setMass(t,t.density*o),n.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null)},n.update=function(t,e,i,n){var o=Math.pow(e*i*t.timeScale,2),a=1-t.frictionAir*i*t.timeScale,u=t.position.x-t.positionPrev.x,c=t.position.y-t.positionPrev.y;t.velocity.x=u*a*n+t.force.x/t.mass*o,t.velocity.y=c*a*n+t.force.y/t.mass*o,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.angularVelocity=(t.angle-t.anglePrev)*a*n+t.torque/t.inertia*o,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=r.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var d=0;d0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(s.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),d>0&&r.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},n.applyForce=function(t,e,i){t.force.x+=i.x,t.force.y+=i.y;var n=e.x-t.position.x,s=e.y-t.position.y;t.torque+=n*i.y-s*i.x},n._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===_(t,e,i,n)>0)for(r=e;r=e;r-=n)o=b(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(E(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(E(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),E(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),E(n),E(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function b(t,e,i,n){var s=new S(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(164),s=i(177);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){if("orthogonal"===this.layer.orientation)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if("isometric"===this.layer.orientation)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if("staggered"===this.layer.orientation)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if("hexagonal"===this.layer.orientation){var t=this.layer.hexSideLength,e=(this.baseHeight-t)/2+t;this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*e}return this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(962),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(863),COMPLETE:i(864),FILE_COMPLETE:i(865),FILE_KEY_COMPLETE:i(866),FILE_LOAD_ERROR:i(867),FILE_LOAD:i(868),FILE_PROGRESS:i(869),POST_PROCESS:i(870),PROGRESS:i(871),START:i(872)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},function(t,e,i){var n={};t.exports=n;var s=i(98),r=i(37);n.create=function(t,e){for(var i=[],n=0;n0)return!1}return!0},n.scale=function(t,e,i,r){if(1===e&&1===i)return t;var o,a;r=r||n.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(r|=2),3===r)return!1;return 0!==r||null},n.hull=function(t){var e,i,n=[],r=[];for((t=t.slice(0)).sort(function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y}),i=0;i=2&&s.cross3(r[r.length-2],r[r.length-1],e)<=0;)r.pop();r.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];n.length>=2&&s.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}return n.pop(),r.pop(),n.concat(r)}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(581),VIDEO_COMPLETE:i(582),VIDEO_CREATED:i(583),VIDEO_ERROR:i(584),VIDEO_LOOP:i(585),VIDEO_PLAY:i(586),VIDEO_SEEKED:i(587),VIDEO_SEEKING:i(588),VIDEO_STOP:i(589),VIDEO_TIMEOUT:i(590),VIDEO_UNLOCKED:i(591)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(10),a=i(48),h=i(12),l=i(30),u=i(159),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&w_&&bs&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(699),FULLSCREEN_FAILED:i(700),FULLSCREEN_UNSUPPORTED:i(701),LEAVE_FULLSCREEN:i(702),ORIENTATION_CHANGE:i(703),RESIZE:i(704)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var b=Math.max(x.x,e),E=Math.max(x.y,i),S=Math.min(x.r,T)-b,_=Math.min(x.b,w)-E;v=S,m=_,p=o?h+(u-(b-x.x)-S):h+(b-x.x),g=a?l+(c-(E-x.y)-_):l+(E-x.y),e=b,i=E,n=S,r=_}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var A=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/A),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/A),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(95),r=i(393),o=i(394),a=i(46),h=i(152),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(238),s=i(0),r=i(89),o=i(2),a=i(6),h=i(7),l=i(387),u=i(128),c=i(74),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;it.max.x&&(t.max.x=s.x),s.xt.max.y&&(t.max.y=s.y),s.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},i.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,n=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+n}},function(t,e){t.exports=function(t,e,i){return t>=0&&t=0&&e0&&s.area(T)1?(d=o.create(r.extend({parts:f.slice(0)},a)),o.setPosition(d,{x:t,y:e}),d):f[0]},n.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(725))},function(t,e,i){var n,s=i(113),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(775),ERROR:i(776),LOAD:i(777),READY:i(778),REMOVE:i(779)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(79);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(10),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(10),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(179),s=i(0),r=i(1),o=i(126),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(180),s=i(385);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1211),ANY_KEY_UP:i(1212),COMBO_MATCH:i(1213),DOWN:i(1214),KEY_DOWN:i(1215),KEY_UP:i(1216),UP:i(1217)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(213),r=i(74),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(216),CalculateFacesWithin:i(51),Copy:i(1307),CreateFromTiles:i(1308),CullTiles:i(1309),Fill:i(1311),FilterTiles:i(1312),FindByIndex:i(1313),FindTile:i(1314),ForEachTile:i(1315),GetTileAt:i(137),GetTileAtWorldXY:i(1316),GetTilesWithin:i(24),GetTilesWithinShape:i(1317),GetTilesWithinWorldXY:i(1318),HasTileAt:i(475),HasTileAtWorldXY:i(1319),IsInLayerBounds:i(100),PutTileAt:i(218),PutTileAtWorldXY:i(1320),PutTilesAt:i(1321),Randomize:i(1322),RemoveTileAt:i(476),RemoveTileAtWorldXY:i(1323),RenderDebug:i(1324),ReplaceByIndex:i(472),SetCollision:i(1325),SetCollisionBetween:i(1326),SetCollisionByExclusion:i(1327),SetCollisionByProperty:i(1328),SetCollisionFromCollisionGroup:i(1329),SetTileIndexCallback:i(1330),SetTileLocationCallback:i(1331),Shuffle:i(1332),SwapByIndex:i(1333),TileToWorldX:i(470),TileToWorldXY:i(217),TileToWorldY:i(471),WeightedRandomize:i(1334),WorldToTileX:i(473),WorldToTileXY:i(72),WorldToTileY:i(474)}},function(t,e,i){var n=i(100);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},function(t,e,i){var n={};t.exports=n;var s=i(237),r=i(37),o=i(99),a=i(62);n.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{}},t)},n.setModified=function(t,e,i,r){if(s.trigger(t,"compositeModified",t),t.isModified=e,i&&t.parent&&n.setModified(t.parent,e,i,r),r)for(var o=0;o1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(10),o=i(108),a=i(267),h=i(268),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(291),s=i(294),r=i(296),o=i(297);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(160);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(179),s=i(52),r=i(0),o=i(11),a=i(89),h=i(13),l=i(12),u=i(949),c=i(389),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(127),s=i(0),r=i(954),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(90),s=i(0),r=i(188),o=i(266),a=i(269),h=i(270),l=i(274),u=i(151),c=i(279),d=i(280),f=i(277),p=i(30),g=i(94),v=i(13),m=i(2),y=i(6),x=i(15),T=i(960),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(397),a=i(124),h=i(399),l=i(970),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var b=this.input;return b&&!b.customHitArea&&(b.hitArea.width=this.width,b.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(325),l=i(162),u=i(989),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(89),a=i(18),h=i(13),l=i(59),u=i(192),c=i(992),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(198),r=i(414),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var b=(-x-Math.sqrt(T))/(2*y);r=a+b*p,o=h+b*g,b>=0&&b<=1&&i.push(new n(r,o));var E=(-x+Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(83),r=i(427);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1197),BUTTON_UP:i(1198),CONNECTED:i(1199),DISCONNECTED:i(1200),GAMEPAD_BUTTON_DOWN:i(1201),GAMEPAD_BUTTON_UP:i(1202)}},function(t,e,i){var n=i(17),s=i(134);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=i(361),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},n.preSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(s.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&r.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=n._warming,l.x*=n._warming,l.y*=n._warming}}},n.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+t.pointA.x,y:(t.bodyA?t.bodyA.position.y:0)+t.pointA.y}},n.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+t.pointB.x,y:(t.bodyB?t.bodyB.position.y:0)+t.pointB.y}}},function(t,e,i){var n=i(137);t.exports=function(t,e,i){var s=n(t,e,!0,i),r=n(t,e-1,!0,i),o=n(t,e+1,!0,i),a=n(t-1,e,!0,i),h=n(t+1,e,!0,i),l=s&&s.collides;return l&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),r&&r.collides&&(l&&(s.faceTop=!1),r.faceBottom=!l),o&&o.collides&&(l&&(s.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(s.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(s.faceRight=!1),h.faceLeft=!l),s&&!s.collides&&s.resetFaces(),s}},function(t,e,i){var n=i(470),s=i(471),r=i(3);t.exports=function(t,e,i,o,a){var h=a.orientation,l=a.baseTileWidth,u=a.baseTileHeight,c=a.tilemapLayer;if(void 0===i&&(i=new r(0,0)),"orthogonal"===h)i.x=n(t,o,a,h),i.y=s(e,o,a,h);else if("isometric"===h||"staggered"===h||"hexagonal"===h){var d=0,f=0;if(c&&(void 0===o&&(o=c.scene.cameras.main),d=c.x+o.scrollX*(1-c.scrollFactorX),l*=c.scaleX,f=c.y+o.scrollY*(1-c.scrollFactorY),u*=c.scaleY),"isometric"===h)i.x=d+l/2*(t-e),i.y=f+(t+e)*(u/2);else if("staggered"===h)i.x=d+t*l+e%2*(l/2),i.y=f+e*(u/2);else if("hexagonal"===h){var p=a.hexSideLength,g=(u-p)/2+p;i.x=d+t*l+e%2*(l/2),i.y=f+e*g}}return i}},function(t,e,i){var n=i(73),s=i(100),r=i(216),o=i(71);t.exports=function(t,e,i,a,h){if(!s(e,i,h))return null;void 0===a&&(a=!0);var l=h.data[i][e],u=l&&l.collides;if(t instanceof n)null===h.data[i][e]&&(h.data[i][e]=new n(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t);else{var c=t;null===h.data[i][e]?h.data[i][e]=new n(h,c,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=c}var d=h.data[i][e],f=-1!==h.collideIndexes.indexOf(d.index);return o(d,f),a&&u!==d.collides&&r(e,i,h),d}},function(t,e){t.exports=function(t,e,i){var n=i.collideIndexes.indexOf(t);e&&-1===n?i.collideIndexes.push(t):e||-1===n||i.collideIndexes.splice(n,1)}},function(t,e,i){var n=i(33),s=i(101),r=i(102),o=i(73);t.exports=function(t,e,i,a,h){for(var l=new s({tileWidth:i,tileHeight:a}),u=new r({name:t,tileWidth:i,tileHeight:a,format:n.ARRAY_2D,layers:[l]}),c=[],d=e.length,f=0,p=0;p0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1351),TIMELINE_LOOP:i(1352),TIMELINE_PAUSE:i(1353),TIMELINE_RESUME:i(1354),TIMELINE_START:i(1355),TIMELINE_UPDATE:i(1356),TWEEN_ACTIVE:i(1357),TWEEN_COMPLETE:i(1358),TWEEN_LOOP:i(1359),TWEEN_REPEAT:i(1360),TWEEN_START:i(1361),TWEEN_UPDATE:i(1362),TWEEN_YOYO:i(1363)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(235),a=i(337),h=i(338),l=i(30),u=i(9),c=i(142),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,l=b.v0,c=b.u1,d=b.v1,g=b.width,v=b.height,T=-y+(f=b.x),w=-x+(p=b.y)}var E=1,S=1;t.flipX&&(m||(T+=-o.realWidth+2*y),E=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),S=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*E,t.scaleY*S),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var _=T+g,A=w+v,C=r.getX(T,w),M=r.getY(T,w),P=r.getX(T,A),O=r.getY(T,A),R=r.getX(_,A),L=r.getY(_,A),D=r.getX(_,w),F=r.getY(_,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),Y=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,P,O,R,L,D,F,h,l,c,d,k,I,B,Y,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,b=this.vertexCount*this.vertexComponentCount-1;return T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=i,T[++b]=n,T[++b]=h,T[++b]=c,T[++b]=v,w[++b]=p,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=o,T[++b]=a,T[++b]=u,T[++b]=l,T[++b]=v,w[++b]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,b,E,S,_,A,C,M,P,O){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+A,k=y/n+C,I=(m+x)/i+A,B=(y+T)/n+C,Y=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;Y=U.width,N=U.height,o=U.width,a=U.height;var W=m=U.x,G=y=U.y;c&&(W=x-U.x-U.width),d&&!e.isRenderTexture&&(G=T-U.y-U.height),F=W/i+A,k=G/n+C,I=(W+U.width)/i+A,B=(G+U.height)/n+C,X=-g+m,z=-v+y}d^=!O&&e.isRenderTexture?1:0,c&&(Y*=-1,X+=o),d&&(N*=-1,z+=a);var V=X+Y,H=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),P?(R.multiplyWithOffset(P,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),q=D.getY(X,z),K=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),q=Math.round(q),K=Math.round(K),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,q,K,J,Z,Q,$,tt,F,k,I,B,w,b,E,S,_,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,P,O,H[0],H[1],H[2],H[3],U,W,G,V,B,Y,N,X,I):(j[0]=D,j[1]=F,j[2]=P,j[3]=O,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,W,G,V,B,Y,N,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},function(t,e,i){var n={};t.exports=n;var s=i(237);n._motionWakeThreshold=.18,n._motionSleepThreshold=.08,n._minBias=.9,n.update=function(t,e){for(var i=e*e*e,s=0;s0&&r.motion=r.sleepThreshold&&n.set(r,!0)):r.sleepCounter>0&&(r.sleepCounter-=1)}else n.set(r,!1)}},n.afterCollisions=function(t,e){for(var i=e*e*e,s=0;sn._motionWakeThreshold*i&&n.set(l,!1)}}}},n.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},function(t,e,i){var n={};t.exports=n;var s=i(37);n.on=function(t,e,i){for(var n,s=e.split(" "),r=0;r0){i||(i={}),n=e.split(" ");for(var l=0;le.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(147),s=i(109);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(661),Flash:i(662),Pan:i(663),Shake:i(696),Zoom:i(697)}},function(t,e,i){t.exports={In:i(664),Out:i(665),InOut:i(666)}},function(t,e,i){t.exports={In:i(667),Out:i(668),InOut:i(669)}},function(t,e,i){t.exports={In:i(670),Out:i(671),InOut:i(672)}},function(t,e,i){t.exports={In:i(673),Out:i(674),InOut:i(675)}},function(t,e,i){t.exports={In:i(676),Out:i(677),InOut:i(678)}},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports=i(682)},function(t,e,i){t.exports={In:i(683),Out:i(684),InOut:i(685)}},function(t,e,i){t.exports={In:i(686),Out:i(687),InOut:i(688)}},function(t,e,i){t.exports={In:i(689),Out:i(690),InOut:i(691)}},function(t,e,i){t.exports={In:i(692),Out:i(693),InOut:i(694)}},function(t,e,i){t.exports=i(695)},function(t,e,i){var n=i(0),s=i(29),r=i(312),o=i(2),a=i(6),h=i(7),l=i(166),u=i(1),c=i(171),d=i(159),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(113),browser:i(114),features:i(165),input:i(726),audio:i(727),video:i(728),fullscreen:i(729),canvasFeatures:i(313)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,b=s*l-r*h,E=s*u-o*h,S=r*u-o*l,_=c*v-d*g,A=c*m-f*g,C=c*y-p*g,M=d*m-f*v,P=d*y-p*v,O=f*y-p*m,R=x*O-T*P+w*M+b*C-E*A+S*_;return R?(R=1/R,i[0]=(h*O-l*P+u*M)*R,i[1]=(l*C-a*O-u*A)*R,i[2]=(a*P-h*C+u*_)*R,i[3]=(r*P-s*O-o*M)*R,i[4]=(n*O-r*C+o*A)*R,i[5]=(s*C-n*P-o*_)*R,i[6]=(v*S-m*E+y*b)*R,i[7]=(m*w-g*S-y*T)*R,i[8]=(g*E-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,b=n*h-s*a,E=l*p-u*f,S=l*g-c*f,_=l*v-d*f,A=u*g-c*p,C=u*v-d*p,M=c*v-d*g,P=m*M-y*C+x*A+T*_-w*S+b*E;return P?(P=1/P,t[0]=(o*M-a*C+h*A)*P,t[1]=(n*C-i*M-s*A)*P,t[2]=(p*b-g*w+v*T)*P,t[3]=(c*w-u*b-d*T)*P,t[4]=(a*_-r*M-h*S)*P,t[5]=(e*M-n*_+s*S)*P,t[6]=(g*x-f*b-v*y)*P,t[7]=(l*b-c*x+d*y)*P,t[8]=(r*C-o*_+h*E)*P,t[9]=(i*_-e*C-s*E)*P,t[10]=(f*w-p*x+v*m)*P,t[11]=(u*x-l*w-d*m)*P,t[12]=(o*S-r*A-a*E)*P,t[13]=(e*A-i*S+n*E)*P,t[14]=(p*y-f*T-g*m)*P,t[15]=(l*T-u*y+c*m)*P,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],b=y[3];return e[0]=x*i+T*o+w*u+b*p,e[1]=x*n+T*a+w*c+b*g,e[2]=x*s+T*h+w*d+b*v,e[3]=x*r+T*l+w*f+b*m,x=y[4],T=y[5],w=y[6],b=y[7],e[4]=x*i+T*o+w*u+b*p,e[5]=x*n+T*a+w*c+b*g,e[6]=x*s+T*h+w*d+b*v,e[7]=x*r+T*l+w*f+b*m,x=y[8],T=y[9],w=y[10],b=y[11],e[8]=x*i+T*o+w*u+b*p,e[9]=x*n+T*a+w*c+b*g,e[10]=x*s+T*h+w*d+b*v,e[11]=x*r+T*l+w*f+b*m,x=y[12],T=y[13],w=y[14],b=y[15],e[12]=x*i+T*o+w*u+b*p,e[13]=x*n+T*a+w*c+b*g,e[14]=x*s+T*h+w*d+b*v,e[15]=x*r+T*l+w*f+b*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],b=n*n*l+h,E=s*n*l+r*a,S=r*n*l-s*a,_=n*s*l-r*a,A=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,P=s*r*l-n*a,O=r*r*l+h;return i[0]=u*b+p*E+y*S,i[1]=c*b+g*E+x*S,i[2]=d*b+v*E+T*S,i[3]=f*b+m*E+w*S,i[4]=u*_+p*A+y*C,i[5]=c*_+g*A+x*C,i[6]=d*_+v*A+T*C,i[7]=f*_+m*A+w*C,i[8]=u*M+p*P+y*O,i[9]=c*M+g*P+x*O,i[10]=d*M+v*P+T*O,i[11]=f*M+m*P+w*O,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,b=f*y-p*m;return(v=Math.sqrt(T*T+w*w+b*b))?(T*=v=1/v,w*=v,b*=v):(T=0,w=0,b=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=b,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+b*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(170),r=i(332),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(336),s=i(26),r=i(29),o=i(165);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(504),h=i(507),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(341),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(344),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(113);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(173);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(175),r=i(10),o=i(54),a=i(18),h=i(363),l=i(364),u=i(365),c=i(366),d=i(30),f=i(330),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(165),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(314),s=i(0),r=i(53),o=i(141),a=i(324),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(92),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(120),r=i(21),o=i(18),a=i(6),h=i(81),l=i(1),u=i(371),c=i(176),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(122),s=i(0),r=i(10),o=i(381),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(123),s=i(0),r=i(10),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(383),s=i(122),r=i(0),o=i(59),a=i(384),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(123),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(111),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(952),o=i(13),a=i(7),h=i(174),l=i(21),u=i(331),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(400),a=i(401),h=i(969),l=i(2),u=i(181),c=i(402),d=i(105),f=i(398),p=i(403),g=i(12),v=i(126),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(998),r=i(64),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1019),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1022),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1085),Ellipse:i(1095),Intersects:i(426),Line:i(1114),Point:i(1136),Polygon:i(1150),Rectangle:i(439),Triangle:i(1180)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(201),CircleToRectangle:i(202),GetCircleToCircle:i(1105),GetCircleToRectangle:i(1106),GetLineToCircle:i(203),GetLineToRectangle:i(205),GetRectangleIntersection:i(1107),GetRectangleToRectangle:i(1108),GetRectangleToTriangle:i(1109),GetTriangleToCircle:i(1110),GetTriangleToLine:i(431),GetTriangleToTriangle:i(1111),LineToCircle:i(204),LineToLine:i(83),LineToRectangle:i(427),PointToLine:i(435),PointToLineSegment:i(1112),RectangleToRectangle:i(130),RectangleToTriangle:i(428),RectangleToValues:i(1113),TriangleToCircle:i(430),TriangleToLine:i(432),TriangleToTriangle:i(433)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(83),s=i(47),r=i(206),o=i(429);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(204),s=i(82);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(84);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1155),n.Ceil=i(1156),n.CeilAll=i(1157),n.CenterOn=i(163),n.Clone=i(1158),n.Contains=i(47),n.ContainsPoint=i(1159),n.ContainsRect=i(440),n.CopyFrom=i(1160),n.Decompose=i(429),n.Equals=i(1161),n.FitInside=i(1162),n.FitOutside=i(1163),n.Floor=i(1164),n.FloorAll=i(1165),n.FromPoints=i(172),n.GetAspectRatio=i(208),n.GetCenter=i(1166),n.GetPoint=i(147),n.GetPoints=i(271),n.GetSize=i(1167),n.Inflate=i(1168),n.Intersection=i(1169),n.MarchingAnts=i(282),n.MergePoints=i(1170),n.MergeRect=i(1171),n.MergeXY=i(1172),n.Offset=i(1173),n.OffsetPoint=i(1174),n.Overlaps=i(1175),n.Perimeter=i(109),n.PerimeterPoint=i(1176),n.Random=i(150),n.RandomOutside=i(1177),n.SameDimensions=i(1178),n.Scale=i(1179),n.Union=i(389),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(445),s=i(446),r=i(0),o=i(10),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(386);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},function(t,e){var i={};t.exports=i,i.create=function(t,e){var n=t.bodyA,s=t.bodyB,r={id:i.id(n,s),bodyA:n,bodyB:s,activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:n.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,collision:null,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return i.update(r,t,e),r},i.update=function(t,e,n){if(t.collision=e,e.collided){var s=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB;t.inverseMass=o.inverseMass+a.inverseMass,t.friction=Math.min(o.friction,a.friction),t.frictionStatic=Math.max(o.frictionStatic,a.frictionStatic),t.restitution=Math.max(o.restitution,a.restitution),t.slop=Math.max(o.slop,a.slop);for(var h=0;h-1}return!1}},function(t,e,i){var n=i(73),s=i(100),r=i(216);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(33),s=i(220),r=i(478),o=i(479),a=i(490);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(220);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(33),s=i(102),r=i(480),o=i(482),a=i(483),h=i(486),l=i(488),u=i(489);t.exports=function(t,e,i){if("isometric"===e.orientation||"staggered"===e.orientation)console.warn("Isometric map types are WIP in this version of Phaser");else if("hexagonal"===e.orientation)console.warn("Hexagonal map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal, hexagonal and isometric map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});"hexagonal"===c.orientation&&(c.hexSideLength=e.hexsidelength),c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(481),s=i(2),r=i(101),o=i(221),a=i(73),h=i(222);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,O,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,y[R][O]=v):(m=e?null:new a(p,-1,O,R,t.tilewidth,t.tileheight),y[R][O]=m),++x===S.width&&(C++,x=0)}}else{"hexagonal"===(p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation})).orientation&&(p.hexSideLength=t.hexsidelength);for(var L=[],D=0,F=d.data.length;D0?((v=new a(p,g.gid,x,y.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(m=e?null:new a(p,-1,x,y.length,t.tilewidth,t.tileheight),L.push(m)),++x===d.width&&(y.push(L),x=0,L=[])}p.data=y,l.push(p)}else if("group"===d.type){var k=h(t,d,c);u.push(c),c=k}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(222);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(138),s=i(484),r=i(223);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(101),s=i(73);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(138);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=l},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1341),h=i(136),l=i(30),u=i(9),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var b=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),E=m.getX(y,x),S=m.getY(y,x),_=m.getX(y,w),A=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),P=m.getX(T,x),O=m.getY(T,x);r.roundPixels&&(E=Math.round(E),S=Math.round(S),_=Math.round(_),A=Math.round(A),C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=_,R[++t]=A,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=P,R[++t]=O,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=b,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1350);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(227),s=i(14),r=i(87),o=i(67),a=i(139),h=i(6),l=i(226),u=i(228),c=i(230);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),b=r(e,"yoyo",i.yoyo),E=[],S=l("value",f),_=c(p[0],0,"value",S.getEnd,S.getStart,S.getActive,y,g,v,b,x,T,w,!1,!1);_.start=d,_.current=d,_.to=f,E.push(_);var A=new u(t,E,p);A.offset=s(e,"offset",null),A.completeDelay=s(e,"completeDelay",0),A.loop=Math.round(s(e,"loop",0)),A.loopDelay=Math.round(s(e,"loopDelay",0)),A.paused=r(e,"paused",!1),A.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",A),M=[A,null],P=u.TYPES,O=0;OS&&(S=C),E[_][A]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(505),s=i(48),r=i(0),o=i(29),a=i(506),h=i(91),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,b=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),b=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*b),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(313);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(90),s=i(48),r=i(0),o=i(29),a=i(18),h=i(115),l=i(1),u=i(91),c=i(79),d=i(116),f=i(30),p=i(9),g=i(508),v=i(509),m=i(510),y=i(234),x=i(511),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(235),o=i(337),a=i(338),h=i(30),l=i(142),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},function(t,e,i){var n={};t.exports=n;var s=i(98),r=i(37);n.fromVertices=function(t){for(var e={},i=0;i1?1:0;d1?1:0;p0:0!=(t.mask&e.category)&&0!=(e.mask&t.category)}},function(t,e,i){var n={};t.exports=n;var s=i(85),r=i(98);n.collides=function(t,e,i){var o,a,h,l,u=!1;if(i){var c=t.parent,d=e.parent,f=c.speed*c.speed+c.angularSpeed*c.angularSpeed+d.speed*d.speed+d.angularSpeed*d.angularSpeed;u=i&&i.collided&&f<.2,l=i}else l={collided:!1,bodyA:t,bodyB:e};if(i&&u){var p=l.axisBody,g=p===t?e:t,v=[p.axes[i.axisNumber]];if(h=n._overlapAxes(p.vertices,g.vertices,v),l.reused=!0,h.overlap<=0)return l.collided=!1,l}else{if((o=n._overlapAxes(t.vertices,e.vertices,t.axes)).overlap<=0)return l.collided=!1,l;if((a=n._overlapAxes(e.vertices,t.vertices,e.axes)).overlap<=0)return l.collided=!1,l;o.overlaps?s=a:a=0?o.index-1:u.length-1],l.x=s.x-c.x,l.y=s.y-c.y,h=-r.dot(i,l),a=s,s=u[(o.index+1)%u.length],l.x=s.x-c.x,l.y=s.y-c.y,(n=-r.dot(i,l))>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(290),BaseCamera:i(90),CameraManager:i(698),Effects:i(298),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(114),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(315);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(155);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(325),IsSize:i(115),IsValue:i(753)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(326),Floor:i(92),To:i(755)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(170),s=i(333),r=i(334),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(343),Palettes:i(784)}},function(t,e,i){t.exports={ARNE16:i(344),C64:i(785),CGA:i(786),JMP:i(787),MSX:i(788)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(790),CubicBezier:i(345),Curve:i(80),Ellipse:i(346),Line:i(347),QuadraticBezier:i(348),Spline:i(349)}},function(t,e,i){var n=i(0),s=i(345),r=i(346),o=i(5),a=i(347),h=i(791),l=i(348),u=i(12),c=i(349),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(353);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(161);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(112),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(168),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(352);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(275),GeometryMask:i(276)}},function(t,e,i){var n={AddToDOM:i(117),DOMContentLoaded:i(354),GetScreenOrientation:i(355),GetTarget:i(360),ParseXML:i(361),RemoveFromDOM:i(174),RequestAnimationFrame:i(341)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(813)}},function(t,e,i){var n=i(0),s=i(10),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(117),s=i(286),r=i(289),o=i(26),a=i(0),h=i(311),l=i(815),u=i(335),c=i(110),d=i(339),f=i(312),p=i(354),g=i(10),v=i(18),m=i(362),y=i(23),x=i(367),T=i(368),w=i(370),b=i(116),E=i(373),S=i(340),_=i(342),A=i(377),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new E(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new S(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),_(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(117);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(177);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),b>o&&(x=b-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,b=s-w,E=s-(v-p-w),S=e.y,_=r-S,A=r-(m-g-S);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,P=0,O=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-Y>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),Y=0,B=null):B=X):X.cr&&(N.push(X.i+X.word.length),Y=0,B=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nb&&(c=b),d>E&&(d=E);var G=b+w.xAdvance,V=E+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===Y?X=(U.longest-U.lengths[0])/2:2===Y&&(X=U.longest-U.lengths[0]);for(var W=s.roundPixels,G=0;G0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===P?R=(D.longest-D.lengths[0])/2:2===P&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(950),s=i(951),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),b=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),E=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),S=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var _,A,C=0,M=0,P=0,O=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,Y=e.fontData,N=Y.chars,X=Y.lineHeight,z=e.fontSize/Y.size,U=0,W=e._align,G=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===W?V=(H.longest-H.lengths[0])/2:2===W&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,q=e.displayCallback,K=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var Y=0;Y0&&(N=N%b-b):N>b?N=b:N<0&&(N=b+N%b),null===A&&(A=new o(k+Math.cos(Y)*B,I+Math.sin(Y)*B,v),E.push(A),F+=.01);F<1+z;)w=N*F+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v)),F+=.01;w=N+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++P],p[++P],p[++P],p[++P],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],v,f,c);break;case n.LINE_TO:null!==A?A.points.push(new r(p[++P],p[++P],v)):(A=new o(p[++P],p[++P],v),E.push(A));break;case n.MOVE_TO:A=new o(p[++P],p[++P],v),E.push(A);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++P],I=p[++P],f.translate(k,I);break;case n.SCALE:k=p[++P],I=p[++P],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++P]);break;case n.SET_TEXTURE:var U=p[++P],W=p[++P];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=W,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(963),s=i(964),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(966),s=i(967),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(397),Particle:i(398),ParticleEmitter:i(399),ParticleEmitterManager:i(190),Zones:i(973)}},function(t,e,i){var n=i(0),s=i(327),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(971),s=i(972),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(985),s=i(986),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(988),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,A=1;A0)for(n(h,e),A=0;A0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),A=0;A0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),_=1;_o.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,b=0;b0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(94);n.Area=i(1096),n.Circumference=i(395),n.CircumferencePoint=i(189),n.Clone=i(1097),n.Contains=i(95),n.ContainsPoint=i(1098),n.ContainsRect=i(1099),n.CopyFrom=i(1100),n.Equals=i(1101),n.GetBounds=i(1102),n.GetPoint=i(393),n.GetPoints=i(394),n.Offset=i(1103),n.OffsetPoint=i(1104),n.Random=i(152),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(94);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(203),s=i(202);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(205),s=i(130);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(428),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(203),s=i(430);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(433),s=i(431);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(435);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(163);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(132),KeyboardManager:i(363),KeyboardPlugin:i(1218),Key:i(448),KeyCodes:i(119),KeyCombo:i(449),JustDown:i(1223),JustUp:i(1224),DownDuration:i(1225),UpDuration:i(1226)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(10),r=i(132),o=i(18),a=i(6),h=i(54),l=i(131),u=i(448),c=i(119),d=i(449),f=i(1222),p=i(92),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(119),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(459),s=i(63),r=i(201),o=i(202);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1283);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(463);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(464);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},function(t,e,i){var n={};t.exports=n;var s=i(143),r=i(215),o=i(37),a=i(62),h=i(106);n.stack=function(t,e,i,n,r,o,h){for(var l,u=s.create({label:"Stack"}),c=t,d=e,f=0,p=0;pg&&(g=y),a.translate(m,{x:.5*x,y:.5*y}),c=m.bounds.max.x+r,s.addBody(u,m),l=m,f+=1}else c+=r}d+=g+o,c=t}return u},n.chain=function(t,e,i,n,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=f[l-1+(h-1)*e],s.addConstraint(t,r.create(o.extend({bodyA:d,bodyB:c},a)))),n&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*f,y:0}),h(t+(u?o*f:0)+o*r,n,o,l,u,c)})},n.newtonsCradle=function(t,e,i,n,o){for(var a=s.create({label:"Newtons Cradle"}),l=0;l1;if(!d||t!=d.x||e!=d.y){d&&n?(f=d.x,p=d.y):(f=0,p=0);var s={x:f+t,y:p+e};!n&&d||(d=s),g.push(s),m=f+t,y=p+e}},T=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":m=t.x,y=t.y;break;case"H":m=t.x;break;case"V":y=t.y}x(m,y,t.pathSegType)}};for(n._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}},setFromTileRectangle:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,s=e.y+e.height/2,r=n.rectangle(i,s,e.width,e.height,t);return this.setBody(r,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,r=this.tile.getLeft(),o=this.tile.getTop(),a=this.tile.getCollisionGroup(),c=h(a,"objects",[]),d=[],f=0;f1&&(t.parts=d,this.setBody(s.create(t),t.addToWorld)),this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=c},function(t,e,i){var n=i(1381);n.Body=i(62),n.Composite=i(143),n.World=i(1294),n.Detector=i(514),n.Grid=i(1295),n.Pairs=i(1296),n.Pair=i(468),n.Query=i(1382),n.Resolver=i(1297),n.SAT=i(515),n.Constraint=i(215),n.Common=i(37),n.Engine=i(1383),n.Events=i(237),n.Sleeping=i(236),n.Plugin=i(1293),n.Bodies=i(106),n.Composites=i(1286),n.Axes=i(512),n.Bounds=i(99),n.Svg=i(1287),n.Vector=i(98),n.Vertices=i(85),n.World.add=n.Composite.add,n.World.remove=n.Composite.remove,n.World.addComposite=n.Composite.addComposite,n.World.addBody=n.Composite.addBody,n.World.addConstraint=n.Composite.addConstraint,n.World.clear=n.Composite.clear,t.exports=n},function(t,e,i){var n={};t.exports=n;var s=i(37);n._registry={},n.register=function(t){if(n.isPlugin(t)||s.warn("Plugin.register:",n.toString(t),"does not implement all required fields."),t.name in n._registry){var e=n._registry[t.name],i=n.versionParse(t.version).number,r=n.versionParse(e.version).number;i>r?(s.warn("Plugin.register:",n.toString(e),"was upgraded to",n.toString(t)),n._registry[t.name]=t):i-1},n.isFor=function(t,e){var i=t.for&&n.dependencyParse(t.for);return!t.for||e.name===i.name&&n.versionSatisfies(e.version,i.range)},n.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=n.dependencies(t),r=s.topologicalSort(i),o=[],a=0;a0&&!h.silent&&s.info(o.join(" "))}else s.warn("Plugin.use:",n.toString(t),"does not specify any dependencies to install.")},n.dependencies=function(t,e){var i=n.dependencyParse(t),r=i.name;if(!(r in(e=e||{}))){t=n.resolve(t)||t,e[r]=s.map(t.uses||[],function(e){n.isPlugin(e)&&n.register(e);var r=n.dependencyParse(e),o=n.resolve(e);return o&&!n.versionSatisfies(o.version,r.range)?(s.warn("Plugin.dependencies:",n.toString(o),"does not satisfy",n.toString(r),"used by",n.toString(i)+"."),o._warned=!0,t._warned=!0):o||(s.warn("Plugin.dependencies:",n.toString(e),"used by",n.toString(i),"could not be resolved."),t._warned=!0),r.name});for(var o=0;o=s[2];if("^"===i.operator)return s[0]>0?o[0]===s[0]&&r.number>=i.number:s[1]>0?o[1]===s[1]&&o[2]>=s[2]:o[2]===s[2]}return t===e||"*"===t}},function(t,e,i){var n={};t.exports=n;var s=i(143),r=(i(215),i(37));n.create=function(t){var e=s.create(),i={label:"World",gravity:{x:0,y:1,scale:.001},bounds:{min:{x:-1/0,y:-1/0},max:{x:1/0,y:1/0}}};return r.extend(e,i,t)}},function(t,e,i){var n={};t.exports=n;var s=i(468),r=i(514),o=i(37);n.create=function(t){var e={controller:n,detector:r.collisions,buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(e,t)},n.update=function(t,e,i,s){var r,o,a,h,l,u=i.world,c=t.buckets,d=!1,f=i.metrics;for(f.broadphaseTests=0,r=0;ru.bounds.max.x||p.bounds.max.yu.bounds.max.y)){var g=n._getRegion(t,p);if(!p.region||g.id!==p.region.id||s){f.broadphaseTests+=1,p.region&&!s||(p.region=g);var v=n._regionUnion(g,p.region);for(o=v.startCol;o<=v.endCol;o++)for(a=v.startRow;a<=v.endRow;a++){h=c[l=n._getBucketId(o,a)];var m=o>=g.startCol&&o<=g.endCol&&a>=g.startRow&&a<=g.endRow,y=o>=p.region.startCol&&o<=p.region.endCol&&a>=p.region.startRow&&a<=p.region.endRow;!m&&y&&y&&h&&n._bucketRemoveBody(t,h,p),(p.region===g||m&&!y||s)&&(h||(h=n._createBucket(c,l)),n._bucketAddBody(t,h,p))}p.region=g,d=!0}}}d&&(t.pairsList=n._createActivePairsList(t))},n.clear=function(t){t.buckets={},t.pairs={},t.pairsList=[]},n._regionUnion=function(t,e){var i=Math.min(t.startCol,e.startCol),s=Math.max(t.endCol,e.endCol),r=Math.min(t.startRow,e.startRow),o=Math.max(t.endRow,e.endRow);return n._createRegion(i,s,r,o)},n._getRegion=function(t,e){var i=e.bounds,s=Math.floor(i.min.x/t.bucketWidth),r=Math.floor(i.max.x/t.bucketWidth),o=Math.floor(i.min.y/t.bucketHeight),a=Math.floor(i.max.y/t.bucketHeight);return n._createRegion(s,r,o,a)},n._createRegion=function(t,e,i,n){return{id:t+","+e+","+i+","+n,startCol:t,endCol:e,startRow:i,endRow:n}},n._getBucketId=function(t,e){return"C"+t+"R"+e},n._createBucket=function(t,e){return t[e]=[]},n._bucketAddBody=function(t,e,i){for(var n=0;n0?n.push(i):delete t.pairs[e[s]];return n}},function(t,e,i){var n={};t.exports=n;var s=i(468),r=i(37);n._pairMaxIdleLife=1e3,n.create=function(t){return r.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},n.update=function(t,e,i){var n,r,o,a,h=t.list,l=t.table,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,d.length=0,a=0;an._pairMaxIdleLife&&l.push(o);for(o=0;of.friction*f.frictionStatic*F*i&&(I=R,k=o.clamp(f.friction*L*i,-I,I));var B=r.cross(S,m),Y=r.cross(_,m),N=T/(g.inverseMass+v.inverseMass+g.inverseInertia*B*B+v.inverseInertia*Y*Y);if(D*=N,k*=N,P<0&&P*P>n._restingThresh*i)b.normalImpulse=0;else{var X=b.normalImpulse;b.normalImpulse=Math.min(b.normalImpulse+D,0),D=b.normalImpulse-X}if(O*O>n._restingThreshTangent*i)b.tangentImpulse=0;else{var z=b.tangentImpulse;b.tangentImpulse=o.clamp(b.tangentImpulse+k,-I,I),k=b.tangentImpulse-z}s.x=m.x*D+y.x*k,s.y=m.y*D+y.y*k,g.isStatic||g.isSleeping||(g.positionPrev.x+=s.x*g.inverseMass,g.positionPrev.y+=s.y*g.inverseMass,g.anglePrev+=r.cross(S,s)*g.inverseInertia),v.isStatic||v.isSleeping||(v.positionPrev.x-=s.x*v.inverseMass,v.positionPrev.y-=s.y*v.inverseMass,v.anglePrev-=r.cross(_,s)*v.inverseInertia)}}}}},function(t,e,i){t.exports={BasePlugin:i(469),DefaultPlugins:i(171),PluginCache:i(23),PluginManager:i(367),ScenePlugin:i(1299)}},function(t,e,i){var n=i(469),s=i(0),r=i(21),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(173),r={Center:i(356),Events:i(91),Orientation:i(357),ScaleManager:i(368),ScaleModes:i(358),Zoom:i(359)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(120),s=i(17),r={Events:i(21),SceneManager:i(370),ScenePlugin:i(1302),Settings:i(372),Systems:i(176)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(21),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(124),Map:i(157),ProcessQueue:i(182),RTree:i(465),Set:i(128),Size:i(369)}},function(t,e,i){var n=i(17),s=i(1305),r={CanvasTexture:i(374),Events:i(116),FilterMode:s,Frame:i(93),Parsers:i(376),Texture:i(178),TextureManager:i(373),TextureSource:i(375)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(136),Parsers:i(1335),Formats:i(33),ImageCollection:i(484),ParseToTilemap:i(224),Tile:i(73),Tilemap:i(493),TilemapCreator:i(1344),TilemapFactory:i(1345),Tileset:i(138),LayerData:i(101),MapData:i(102),ObjectLayer:i(487),DynamicTilemapLayer:i(494),StaticTilemapLayer:i(495)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&g=m;a--)(l=d[h][a])&&-1!==l.index&&l.visible&&0!==l.alpha&&i.push(l);else if(2===o)for(h=T;h>=x;h--)for(a=m;d[h]&&a=x;h--)for(a=y;d[h]&&a>=m;a--)(l=d[h][a])&&-1!==l.index&&l.visible&&0!==l.alpha&&i.push(l)}else if("isometric"===t.orientation)if(0===o){for(h=x;h=m;a--)if(r(a,h,t,e)){if(!(l=d[h][a])||-1===l.index||!l.visible||0===l.alpha)continue;i.push(l)}}else if(2===o){for(h=T;h>=x;h--)for(a=m;d[h]&&a=x;h--)for(a=y;d[h]&&a>=m;a--)if(r(a,h,t,e)){if(!(l=d[h][a])||-1===l.index||!l.visible||0===l.alpha)continue;i.push(l)}return c.tilesDrawn=i.length,c.tilesTotal=f*p,i}},function(t,e){t.exports=function(t,e,i,n){var s=i.tilemapLayer,r=s.isoCullDistances,o=s.tileToWorldXY(t,e,void 0,n);return o.x>n.worldView.x+s.scaleX*i.tileWidth*(-r.x-.5)&&o.xn.worldView.y+s.scaleY*i.tileHeight*(-r.y-.5)&&o.y=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(219);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1369),GetValue:i(6),HasAll:i(1370),HasAny:i(402),HasValue:i(105),IsPlainObject:i(7),Merge:i(121),MergeRight:i(1371),Pick:i(485),SetValue:i(422)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function o(t,e,i){return s(t,e,i)>=0}function a(t,e,i){return s(t,e,i)<0}function h(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=function t(e){var i=[],n=[],s=[],r=[];var o=Number.MAX_VALUE;for(var a=0;a0?function t(e,i){if(0===i.length)return[e];if(i instanceof Array&&i.length&&i[0]instanceof Array&&2===i[0].length&&i[0][0]instanceof Array){for(var n=[e],s=0;su)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;L_&&(_+=e.length),S=Number.MAX_VALUE,_3&&n>=0;--n)c(f(t,n-1),f(t,n),f(t,n+1),e)&&(t.splice(n%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var n=t[i],s=i-1;s>=0;--s)E(n,t[s],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,n=1;ni[e][0])&&(e=n);return!r(f(t,e-1),f(t,e),f(t,e+1))&&(function(t){for(var e=[],i=t.length,n=0;n!==i;n++)e.push(t.pop());for(var n=0;n!==i;n++)t[n]=e[n]}(t),!0)}};var l=[],u=[];function c(t,e,i,n){if(n){var r=l,o=u;r[0]=e[0]-t[0],r[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=r[0]*o[0]+r[1]*o[1],h=Math.sqrt(r[0]*r[0]+r[1]*r[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(h*c))0&&u.trigger(t,"collisionStart",{pairs:T.collisionStart}),o.preSolvePosition(T.list),s=0;s0&&u.trigger(t,"collisionActive",{pairs:T.collisionActive}),T.collisionEnd.length>0&&u.trigger(t,"collisionEnd",{pairs:T.collisionEnd}),h.update(t.metrics,t),n._bodiesClearForces(m),u.trigger(t,"afterUpdate",v),t},n.merge=function(t,e){if(f.extend(t,e),e.world){t.world=e.world,n.clear(t);for(var i=c.allBodies(t.world),s=0;s0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_START,e,i,n)}),p.on(e,"collisionActive",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,n)}),p.on(e,"collisionEnd",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_END,e,i,n)})},setBounds:function(t,e,i,n,s,r,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),void 0===s&&(s=64),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(r,"left",t-s,e-s,s,n+2*s),this.updateWall(o,"right",t+i,e-s,s,n+2*s),this.updateWall(a,"top",t,e-s,i,s),this.updateWall(h,"bottom",t,e+n,i,s),this},updateWall:function(t,e,i,n,s,r){var o=this.walls[e];t?(o&&v.remove(this.localWorld,o),i+=s/2,n+=r/2,this.walls[e]=this.create(i,n,s,r,{isStatic:!0,friction:0,frictionStatic:0})):(o&&v.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,void 0!==i&&(this.localWorld.gravity.scale=i),this},create:function(t,e,i,s,r){var o=n.rectangle(t,e,i,s,r);return v.add(this.localWorld,o),o},add:function(t){return v.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;in.deltaMax?n.deltaMax:e)/n.delta,n.delta=e),0!==n.timeScalePrev&&(r*=s.timeScale/n.timeScalePrev),0===s.timeScale&&(r=0),n.timeScalePrev=s.timeScale,n.correction=r,n.frameCounter+=1,t-n.counterTimestamp>=1e3&&(n.fps=n.frameCounter*((t-n.counterTimestamp)/1e3),n.counterTimestamp=t,n.frameCounter=0),h.update(i,e,r)}},step:function(t,e){h.update(this.engine,t,e)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,n=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(n,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(n),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(n,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(n,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=o.keys(t.buckets),r=0;r0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=0;s1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,f,y)}}},renderBody:function(t,e,i,n,s,r,o,a){void 0===n&&(n=null),void 0===s&&(s=null),void 0===r&&(r=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,f=d>1?1:0;f1){var s=t.vertices;e.lineStyle(n,i),e.beginPath(),e.moveTo(s[0].x,s[0].y);for(var r=1;r0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=y},function(t,e,i){(function(e){i(517);var n=i(29),s=i(17),r={Actions:i(238),Animations:i(637),BlendModes:i(52),Cache:i(638),Cameras:i(641),Core:i(724),Class:i(0),Create:i(783),Curves:i(789),Data:i(792),Display:i(794),DOM:i(811),Events:i(812),Game:i(814),GameObjects:i(907),Geom:i(425),Input:i(1195),Loader:i(1229),Math:i(166),Physics:i(1386),Plugins:i(1298),Renderer:i(1423),Scale:i(1300),ScaleModes:i(231),Scene:i(371),Scenes:i(1301),Structs:i(1303),Textures:i(1304),Tilemaps:i(1306),Time:i(1346),Tweens:i(1348),Utils:i(1365)};r.Sound=i(1375),r=s(!1,r,n),t.exports=r,e.Phaser=r}).call(this,i(516))},function(t,e,i){t.exports={Arcade:i(1255),Matter:i(1387)}},function(t,e,i){t.exports={BodyBounds:i(1376),Factory:i(1377),Image:i(1379),Matter:i(1292),MatterPhysics:i(1419),PolyDecomp:i(1378),Sprite:i(1380),TileBody:i(1291),PhysicsEditorParser:i(1288),PhysicsJSONParser:i(1289),World:i(1384)}},function(t,e,i){var n=i(513),s=i(2),r=i(3);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity].forEach(function(t){for(var i in t)(n=t[i]).get&&"function"==typeof n.get||n.set&&"function"==typeof n.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var n}),e.world=t,e._tempVec2=new r(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=s(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},function(t,e){t.exports={setBounce:function(t){return this.body.restitution=t,this}}},function(t,e){var i={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i1?1:0;s0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var n=D.create(t,e),s=[];return M.point(i,n).forEach(function(t){-1===s.indexOf(t)&&s.push(t)}),s},intersectRect:function(t,e,i,n,s,r){void 0===s&&(s=!1),r=this.getMatterBodies(r);var o={min:{x:t,y:e},max:{x:t+i,y:e+n}},a=[];return M.region(r,o,s).forEach(function(t){-1===a.indexOf(t)&&a.push(t)}),a},intersectRay:function(t,e,i,n,s,r){void 0===s&&(s=1),r=this.getMatterBodies(r);for(var o=[],a=M.ray(r,D.create(t,e),D.create(i,n),s),h=0;h0)for(var a=s+1;ae.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?n=e.min.y-t.max.y:t.max.y0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(24),r=i(22),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(276),r=i(109),o=i(11),a=i(88),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(165),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(24),r=i(22),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(701),CREATE:i(702),DESTROY:i(703),PAUSE:i(704),POST_UPDATE:i(705),PRE_UPDATE:i(706),READY:i(707),RENDER:i(708),RESUME:i(709),SHUTDOWN:i(710),SLEEP:i(711),START:i(712),TRANSITION_COMPLETE:i(713),TRANSITION_INIT:i(714),TRANSITION_OUT:i(715),TRANSITION_START:i(716),TRANSITION_WAKE:i(717),UPDATE:i(718),WAKE:i(719)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(10),a=i(161),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(159),r=i(290),o=i(160),a=i(291),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(16);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},function(t,e){var i={};t.exports=i,function(){i._nextId=0,i._seed=0,i._nowStartTime=+new Date,i.extend=function(t,e){var n,s;"boolean"==typeof e?(n=2,s=e):(n=1,s=!0);for(var r=n;r0;e--){var n=Math.floor(i.random()*(e+1)),s=t[e];t[e]=t[n],t[n]=s}return t},i.choose=function(t){return t[Math.floor(i.random()*t.length)]},i.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},i.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.isFunction=function(t){return"function"==typeof t},i.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},i.isString=function(t){return"[object String]"===toString.call(t)},i.clamp=function(t,e,i){return ti?i:t},i.sign=function(t){return t<0?-1:1},i.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return new Date-i._nowStartTime},i.random=function(e,i){return e=void 0!==e?e:0,i=void 0!==i?i:1,e+t()*(i-e)};var t=function(){return i._seed=(9301*i._seed+49297)%233280,i._seed/233280};i.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},i.logLevel=1,i.log=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.info=function(){console&&i.logLevel>0&&i.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warn=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.nextId=function(){return i._nextId++},i.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(642),FADE_IN_COMPLETE:i(643),FADE_IN_START:i(644),FADE_OUT_COMPLETE:i(645),FADE_OUT_START:i(646),FLASH_COMPLETE:i(647),FLASH_START:i(648),PAN_COMPLETE:i(649),PAN_START:i(650),POST_RENDER:i(651),PRE_RENDER:i(652),SHAKE_COMPLETE:i(653),SHAKE_START:i(654),ZOOM_COMPLETE:i(655),ZOOM_START:i(656)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(136),s=i(25);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(270),r=i(147),o=i(46),a=i(148),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(880),DECODED:i(881),DECODED_ALL:i(882),DESTROY:i(883),DETUNE:i(884),GLOBAL_DETUNE:i(885),GLOBAL_MUTE:i(886),GLOBAL_RATE:i(887),GLOBAL_VOLUME:i(888),LOOP:i(889),LOOPED:i(890),MUTE:i(891),PAUSE_ALL:i(892),PAUSE:i(893),PLAY:i(894),RATE:i(895),RESUME_ALL:i(896),RESUME:i(897),SEEK:i(898),STOP_ALL:i(899),STOP:i(900),UNLOCKED:i(901),VOLUME:i(902)}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s0&&r.rotateAbout(o.position,i,t.position,o.position)}},n.setVelocity=function(t,e){t.positionPrev.x=t.position.x-e.x,t.positionPrev.y=t.position.y-e.y,t.velocity.x=e.x,t.velocity.y=e.y,t.speed=r.magnitude(t.velocity)},n.setAngularVelocity=function(t,e){t.anglePrev=t.angle-e,t.angularVelocity=e,t.angularSpeed=Math.abs(t.angularVelocity)},n.translate=function(t,e){n.setPosition(t,r.add(t.position,e))},n.rotate=function(t,e,i){if(i){var s=Math.cos(e),r=Math.sin(e),o=t.position.x-i.x,a=t.position.y-i.y;n.setPosition(t,{x:i.x+(o*s-a*r),y:i.y+(o*r+a*s)}),n.setAngle(t,t.angle+e)}else n.setAngle(t,t.angle+e)},n.scale=function(t,e,i,r){var o=0,a=0;r=r||t.position;for(var u=0;u0&&(o+=c.area,a+=c.inertia),c.position.x=r.x+(c.position.x-r.x)*e,c.position.y=r.y+(c.position.y-r.y)*i,h.update(c.bounds,c.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(n.setMass(t,t.density*o),n.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null)},n.update=function(t,e,i,n){var o=Math.pow(e*i*t.timeScale,2),a=1-t.frictionAir*i*t.timeScale,u=t.position.x-t.positionPrev.x,c=t.position.y-t.positionPrev.y;t.velocity.x=u*a*n+t.force.x/t.mass*o,t.velocity.y=c*a*n+t.force.y/t.mass*o,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.angularVelocity=(t.angle-t.anglePrev)*a*n+t.torque/t.inertia*o,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=r.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var d=0;d0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(s.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),d>0&&r.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},n.applyForce=function(t,e,i){t.force.x+=i.x,t.force.y+=i.y;var n=e.x-t.position.x,s=e.y-t.position.y;t.torque+=n*i.y-s*i.x},n._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===A(t,e,i,n)>0)for(r=e;r=e;r-=n)o=b(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(E(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(E(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),E(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),E(n),E(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function b(t,e,i,n){var s=new S(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(163),s=i(176);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new o),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){if(this.layer.orientation===n.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(this.layer.orientation===n.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(this.layer.orientation===n.HEXAGONAL){var t=this.layer.hexSideLength,e=(this.baseHeight-t)/2+t;this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*e}else this.layer.orientation===n.ORTHOGONAL&&(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight);return this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=a},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(958),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(859),COMPLETE:i(860),FILE_COMPLETE:i(861),FILE_KEY_COMPLETE:i(862),FILE_LOAD_ERROR:i(863),FILE_LOAD:i(864),FILE_PROGRESS:i(865),POST_PROCESS:i(866),PROGRESS:i(867),START:i(868)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},function(t,e,i){var n={};t.exports=n;var s=i(97),r=i(37);n.create=function(t,e){for(var i=[],n=0;n0)return!1}return!0},n.scale=function(t,e,i,r){if(1===e&&1===i)return t;var o,a;r=r||n.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(r|=2),3===r)return!1;return 0!==r||null},n.hull=function(t){var e,i,n=[],r=[];for((t=t.slice(0)).sort(function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y}),i=0;i=2&&s.cross3(r[r.length-2],r[r.length-1],e)<=0;)r.pop();r.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];n.length>=2&&s.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}return n.pop(),r.pop(),n.concat(r)}},function(t,e,i){var n=i(23);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(577),VIDEO_COMPLETE:i(578),VIDEO_CREATED:i(579),VIDEO_ERROR:i(580),VIDEO_LOOP:i(581),VIDEO_PLAY:i(582),VIDEO_SEEKED:i(583),VIDEO_SEEKING:i(584),VIDEO_STOP:i(585),VIDEO_TIMEOUT:i(586),VIDEO_UNLOCKED:i(587)}},function(t,e,i){var n=i(0),s=i(12),r=i(35),o=i(11),a=i(48),h=i(13),l=i(30),u=i(158),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wA&&b<_&&f.push(v)}else f.push(v)}return f},getWorldPoint:function(t,e,i){void 0===i&&(i=new c);var n=this.matrix.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5],u=s*a-r*o;if(!u)return i.x=t,i.y=e,i;var d=a*(u=1/u),f=-r*u,p=-o*u,g=s*u,v=(o*l-a*h)*u,m=(r*h-s*l)*u,y=Math.cos(this.rotation),x=Math.sin(this.rotation),T=this.zoom,w=this.resolution,b=this.scrollX,E=this.scrollY,S=t+(b*y-E*x)*T,A=e+(b*x+E*y)*T;return i.x=(S*d+A*p)*w+v,i.y=(S*f+A*g)*w+m,i},ignore:function(t){var e=this.id;Array.isArray(t)||(t=[t]);for(var i=0;is&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(695),FULLSCREEN_FAILED:i(696),FULLSCREEN_UNSUPPORTED:i(697),LEAVE_FULLSCREEN:i(698),ORIENTATION_CHANGE:i(699),RESIZE:i(700)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(23),r=i(18),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var b=Math.max(x.x,e),E=Math.max(x.y,i),S=Math.min(x.r,T)-b,A=Math.min(x.b,w)-E;v=S,m=A,p=o?h+(u-(b-x.x)-S):h+(b-x.x),g=a?l+(c-(E-x.y)-A):l+(E-x.y),e=b,i=E,n=S,r=A}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var _=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/_),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/_),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(94),r=i(391),o=i(392),a=i(46),h=i(151),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(236),s=i(0),r=i(88),o=i(2),a=i(6),h=i(7),l=i(385),u=i(127),c=i(73),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;it.max.x&&(t.max.x=s.x),s.xt.max.y&&(t.max.y=s.y),s.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},i.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,n=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+n}},function(t,e){t.exports=function(t,e,i){return t>=0&&t=0&&e0&&s.area(T)1?(d=o.create(r.extend({parts:f.slice(0)},a)),o.setPosition(d,{x:t,y:e}),d):f[0]},n.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(721))},function(t,e,i){var n,s=i(112),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(771),ERROR:i(772),LOAD:i(773),READY:i(774),REMOVE:i(775)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(78);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(11),o=i(59),a=i(19),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(11),r=i(59),o=i(18),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(178),s=i(0),r=i(1),o=i(125),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(179),s=i(383);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1207),ANY_KEY_UP:i(1208),COMBO_MATCH:i(1209),DOWN:i(1210),KEY_DOWN:i(1211),KEY_UP:i(1212),UP:i(1213)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(212),r=i(73),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(215),CalculateFacesWithin:i(51),Copy:i(1303),CreateFromTiles:i(1304),CullTiles:i(1305),Fill:i(1307),FilterTiles:i(1308),FindByIndex:i(1309),FindTile:i(1310),ForEachTile:i(1311),GetTileAt:i(136),GetTileAtWorldXY:i(1312),GetTilesWithin:i(25),GetTilesWithinShape:i(1313),GetTilesWithinWorldXY:i(1314),HasTileAt:i(469),HasTileAtWorldXY:i(1315),IsInLayerBounds:i(99),PutTileAt:i(216),PutTileAtWorldXY:i(1316),PutTilesAt:i(1317),Randomize:i(1318),RemoveTileAt:i(470),RemoveTileAtWorldXY:i(1319),RenderDebug:i(1320),ReplaceByIndex:i(468),SetCollision:i(1321),SetCollisionBetween:i(1322),SetCollisionByExclusion:i(1323),SetCollisionByProperty:i(1324),SetCollisionFromCollisionGroup:i(1325),SetTileIndexCallback:i(1326),SetTileLocationCallback:i(1327),Shuffle:i(1328),SwapByIndex:i(1329),TileToWorldX:i(1330),TileToWorldXY:i(1331),TileToWorldY:i(1332),WeightedRandomize:i(1333),WorldToTileX:i(471),WorldToTileXY:i(1334),WorldToTileY:i(472)}},function(t,e,i){var n=i(99);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},function(t,e,i){var n={};t.exports=n;var s=i(235),r=i(37),o=i(98),a=i(62);n.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{}},t)},n.setModified=function(t,e,i,r){if(s.trigger(t,"compositeModified",t),t.isModified=e,i&&t.parent&&n.setModified(t.parent,e,i,r),r)for(var o=0;o1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(23),s=i(0),r=i(11),o=i(107),a=i(265),h=i(266),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(289),s=i(292),r=i(294),o=i(295);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(159);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(13),s=i(16);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(178),s=i(52),r=i(0),o=i(12),a=i(88),h=i(14),l=i(13),u=i(945),c=i(387),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(126),s=i(0),r=i(950),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(89),s=i(0),r=i(187),o=i(264),a=i(267),h=i(268),l=i(272),u=i(150),c=i(277),d=i(278),f=i(275),p=i(30),g=i(93),v=i(14),m=i(2),y=i(6),x=i(16),T=i(956),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(12),r=i(14),o=i(395),a=i(123),h=i(397),l=i(966),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var b=this.input;return b&&!b.customHitArea&&(b.hitArea.width=this.width,b.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(27),s=i(0),r=i(12),o=i(19),a=i(14),h=i(323),l=i(161),u=i(985),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(23),r=i(12),o=i(88),a=i(19),h=i(14),l=i(59),u=i(191),c=i(988),d=i(16),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(197),r=i(412),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(203);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var b=(-x-Math.sqrt(T))/(2*y);r=a+b*p,o=h+b*g,b>=0&&b<=1&&i.push(new n(r,o));var E=(-x+Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(82),r=i(425);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1193),BUTTON_UP:i(1194),CONNECTED:i(1195),DISCONNECTED:i(1196),GAMEPAD_BUTTON_DOWN:i(1197),GAMEPAD_BUTTON_UP:i(1198)}},function(t,e,i){var n=i(18),s=i(133);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=i(359),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},n.preSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(s.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&r.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=n._warming,l.x*=n._warming,l.y*=n._warming}}},n.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+t.pointA.x,y:(t.bodyA?t.bodyA.position.y:0)+t.pointA.y}},n.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+t.pointB.x,y:(t.bodyB?t.bodyB.position.y:0)+t.pointB.y}}},function(t,e,i){var n=i(136);t.exports=function(t,e,i){var s=n(t,e,!0,i),r=n(t,e-1,!0,i),o=n(t,e+1,!0,i),a=n(t-1,e,!0,i),h=n(t+1,e,!0,i),l=s&&s.collides;return l&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),r&&r.collides&&(l&&(s.faceTop=!1),r.faceBottom=!l),o&&o.collides&&(l&&(s.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(s.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(s.faceRight=!1),h.faceLeft=!l),s&&!s.collides&&s.resetFaces(),s}},function(t,e,i){var n=i(72),s=i(99),r=i(215),o=i(71);t.exports=function(t,e,i,a,h){if(!s(e,i,h))return null;void 0===a&&(a=!0);var l=h.data[i][e],u=l&&l.collides;if(t instanceof n)null===h.data[i][e]&&(h.data[i][e]=new n(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t);else{var c=t;null===h.data[i][e]?h.data[i][e]=new n(h,c,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=c}var d=h.data[i][e],f=-1!==h.collideIndexes.indexOf(d.index);return o(d,f),a&&u!==d.collides&&r(e,i,h),d}},function(t,e){t.exports=function(t,e,i){var n=i.collideIndexes.indexOf(t);e&&-1===n?i.collideIndexes.push(t):e||-1===n||i.collideIndexes.splice(n,1)}},function(t,e,i){var n=i(33),s=i(100),r=i(101),o=i(72);t.exports=function(t,e,i,a,h){for(var l=new s({tileWidth:i,tileHeight:a}),u=new r({name:t,tileWidth:i,tileHeight:a,format:n.ARRAY_2D,layers:[l]}),c=[],d=e.length,f=0,p=0;p0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1351),TIMELINE_LOOP:i(1352),TIMELINE_PAUSE:i(1353),TIMELINE_RESUME:i(1354),TIMELINE_START:i(1355),TIMELINE_UPDATE:i(1356),TWEEN_ACTIVE:i(1357),TWEEN_COMPLETE:i(1358),TWEEN_LOOP:i(1359),TWEEN_REPEAT:i(1360),TWEEN_START:i(1361),TWEEN_UPDATE:i(1362),TWEEN_YOYO:i(1363)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(233),a=i(335),h=i(336),l=i(30),u=i(9),c=i(141),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,l=b.v0,c=b.u1,d=b.v1,g=b.width,v=b.height,T=-y+(f=b.x),w=-x+(p=b.y)}var E=1,S=1;t.flipX&&(m||(T+=-o.realWidth+2*y),E=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),S=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*E,t.scaleY*S),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var A=T+g,_=w+v,C=r.getX(T,w),M=r.getY(T,w),O=r.getX(T,_),P=r.getY(T,_),R=r.getX(A,_),L=r.getY(A,_),D=r.getX(A,w),F=r.getY(A,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),Y=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,O,P,R,L,D,F,h,l,c,d,k,I,B,Y,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,b=this.vertexCount*this.vertexComponentCount-1;return T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=i,T[++b]=n,T[++b]=h,T[++b]=c,T[++b]=v,w[++b]=p,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=o,T[++b]=a,T[++b]=u,T[++b]=l,T[++b]=v,w[++b]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,b,E,S,A,_,C,M,O,P){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+_,k=y/n+C,I=(m+x)/i+_,B=(y+T)/n+C,Y=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;Y=U.width,N=U.height,o=U.width,a=U.height;var G=m=U.x,W=y=U.y;c&&(G=x-U.x-U.width),d&&!e.isRenderTexture&&(W=T-U.y-U.height),F=G/i+_,k=W/n+C,I=(G+U.width)/i+_,B=(W+U.height)/n+C,X=-g+m,z=-v+y}d^=!P&&e.isRenderTexture?1:0,c&&(Y*=-1,X+=o),d&&(N*=-1,z+=a);var V=X+Y,H=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),O?(R.multiplyWithOffset(O,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),q=D.getY(X,z),K=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),q=Math.round(q),K=Math.round(K),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,q,K,J,Z,Q,$,tt,F,k,I,B,w,b,E,S,A,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,O,P,H[0],H[1],H[2],H[3],U,G,W,V,B,Y,N,X,I):(j[0]=D,j[1]=F,j[2]=O,j[3]=P,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,G,W,V,B,Y,N,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},function(t,e,i){var n={};t.exports=n;var s=i(235);n._motionWakeThreshold=.18,n._motionSleepThreshold=.08,n._minBias=.9,n.update=function(t,e){for(var i=e*e*e,s=0;s0&&r.motion=r.sleepThreshold&&n.set(r,!0)):r.sleepCounter>0&&(r.sleepCounter-=1)}else n.set(r,!1)}},n.afterCollisions=function(t,e){for(var i=e*e*e,s=0;sn._motionWakeThreshold*i&&n.set(l,!1)}}}},n.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},function(t,e,i){var n={};t.exports=n;var s=i(37);n.on=function(t,e,i){for(var n,s=e.split(" "),r=0;r0){i||(i={}),n=e.split(" ");for(var l=0;le.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(146),s=i(108);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(657),Flash:i(658),Pan:i(659),Shake:i(692),Zoom:i(693)}},function(t,e,i){t.exports={In:i(660),Out:i(661),InOut:i(662)}},function(t,e,i){t.exports={In:i(663),Out:i(664),InOut:i(665)}},function(t,e,i){t.exports={In:i(666),Out:i(667),InOut:i(668)}},function(t,e,i){t.exports={In:i(669),Out:i(670),InOut:i(671)}},function(t,e,i){t.exports={In:i(672),Out:i(673),InOut:i(674)}},function(t,e,i){t.exports={In:i(675),Out:i(676),InOut:i(677)}},function(t,e,i){t.exports=i(678)},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports={In:i(682),Out:i(683),InOut:i(684)}},function(t,e,i){t.exports={In:i(685),Out:i(686),InOut:i(687)}},function(t,e,i){t.exports={In:i(688),Out:i(689),InOut:i(690)}},function(t,e,i){t.exports=i(691)},function(t,e,i){var n=i(0),s=i(10),r=i(310),o=i(2),a=i(6),h=i(7),l=i(165),u=i(1),c=i(170),d=i(158),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(112),browser:i(113),features:i(164),input:i(722),audio:i(723),video:i(724),fullscreen:i(725),canvasFeatures:i(311)}},function(t,e,i){var n,s,r,o=i(27),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,b=s*l-r*h,E=s*u-o*h,S=r*u-o*l,A=c*v-d*g,_=c*m-f*g,C=c*y-p*g,M=d*m-f*v,O=d*y-p*v,P=f*y-p*m,R=x*P-T*O+w*M+b*C-E*_+S*A;return R?(R=1/R,i[0]=(h*P-l*O+u*M)*R,i[1]=(l*C-a*P-u*_)*R,i[2]=(a*O-h*C+u*A)*R,i[3]=(r*O-s*P-o*M)*R,i[4]=(n*P-r*C+o*_)*R,i[5]=(s*C-n*O-o*A)*R,i[6]=(v*S-m*E+y*b)*R,i[7]=(m*w-g*S-y*T)*R,i[8]=(g*E-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,b=n*h-s*a,E=l*p-u*f,S=l*g-c*f,A=l*v-d*f,_=u*g-c*p,C=u*v-d*p,M=c*v-d*g,O=m*M-y*C+x*_+T*A-w*S+b*E;return O?(O=1/O,t[0]=(o*M-a*C+h*_)*O,t[1]=(n*C-i*M-s*_)*O,t[2]=(p*b-g*w+v*T)*O,t[3]=(c*w-u*b-d*T)*O,t[4]=(a*A-r*M-h*S)*O,t[5]=(e*M-n*A+s*S)*O,t[6]=(g*x-f*b-v*y)*O,t[7]=(l*b-c*x+d*y)*O,t[8]=(r*C-o*A+h*E)*O,t[9]=(i*A-e*C-s*E)*O,t[10]=(f*w-p*x+v*m)*O,t[11]=(u*x-l*w-d*m)*O,t[12]=(o*S-r*_-a*E)*O,t[13]=(e*_-i*S+n*E)*O,t[14]=(p*y-f*T-g*m)*O,t[15]=(l*T-u*y+c*m)*O,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],b=y[3];return e[0]=x*i+T*o+w*u+b*p,e[1]=x*n+T*a+w*c+b*g,e[2]=x*s+T*h+w*d+b*v,e[3]=x*r+T*l+w*f+b*m,x=y[4],T=y[5],w=y[6],b=y[7],e[4]=x*i+T*o+w*u+b*p,e[5]=x*n+T*a+w*c+b*g,e[6]=x*s+T*h+w*d+b*v,e[7]=x*r+T*l+w*f+b*m,x=y[8],T=y[9],w=y[10],b=y[11],e[8]=x*i+T*o+w*u+b*p,e[9]=x*n+T*a+w*c+b*g,e[10]=x*s+T*h+w*d+b*v,e[11]=x*r+T*l+w*f+b*m,x=y[12],T=y[13],w=y[14],b=y[15],e[12]=x*i+T*o+w*u+b*p,e[13]=x*n+T*a+w*c+b*g,e[14]=x*s+T*h+w*d+b*v,e[15]=x*r+T*l+w*f+b*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],b=n*n*l+h,E=s*n*l+r*a,S=r*n*l-s*a,A=n*s*l-r*a,_=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,O=s*r*l-n*a,P=r*r*l+h;return i[0]=u*b+p*E+y*S,i[1]=c*b+g*E+x*S,i[2]=d*b+v*E+T*S,i[3]=f*b+m*E+w*S,i[4]=u*A+p*_+y*C,i[5]=c*A+g*_+x*C,i[6]=d*A+v*_+T*C,i[7]=f*A+m*_+w*C,i[8]=u*M+p*O+y*P,i[9]=c*M+g*O+x*P,i[10]=d*M+v*O+T*P,i[11]=f*M+m*O+w*P,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,b=f*y-p*m;return(v=Math.sqrt(T*T+w*w+b*b))?(T*=v=1/v,w*=v,b*=v):(T=0,w=0,b=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=b,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+b*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(169),r=i(330),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(334),s=i(27),r=i(10),o=i(164);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(500),h=i(503),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(10);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(339),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(19);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(342),s=i(27),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(112);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(172);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(174),r=i(11),o=i(54),a=i(19),h=i(361),l=i(362),u=i(363),c=i(364),d=i(30),f=i(328),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(164),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(312),s=i(0),r=i(53),o=i(140),a=i(322),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(23),s=i(0),r=i(91),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(119),r=i(22),o=i(19),a=i(6),h=i(80),l=i(1),u=i(369),c=i(175),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(121),s=i(0),r=i(11),o=i(379),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(122),s=i(0),r=i(11),o=i(18),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(381),s=i(121),r=i(0),o=i(59),a=i(382),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(122),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(110),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(13);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(12),r=i(948),o=i(14),a=i(7),h=i(173),l=i(22),u=i(329),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(12),o=i(398),a=i(399),h=i(965),l=i(2),u=i(180),c=i(400),d=i(104),f=i(396),p=i(401),g=i(13),v=i(125),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(994),r=i(64),o=i(13),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(13),r=i(31),o=i(1015),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1018),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(18),r={Circle:i(1081),Ellipse:i(1091),Intersects:i(424),Line:i(1110),Point:i(1132),Polygon:i(1146),Rectangle:i(437),Triangle:i(1176)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(200),CircleToRectangle:i(201),GetCircleToCircle:i(1101),GetCircleToRectangle:i(1102),GetLineToCircle:i(202),GetLineToRectangle:i(204),GetRectangleIntersection:i(1103),GetRectangleToRectangle:i(1104),GetRectangleToTriangle:i(1105),GetTriangleToCircle:i(1106),GetTriangleToLine:i(429),GetTriangleToTriangle:i(1107),LineToCircle:i(203),LineToLine:i(82),LineToRectangle:i(425),PointToLine:i(433),PointToLineSegment:i(1108),RectangleToRectangle:i(129),RectangleToTriangle:i(426),RectangleToValues:i(1109),TriangleToCircle:i(428),TriangleToLine:i(430),TriangleToTriangle:i(431)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(82),s=i(47),r=i(205),o=i(427);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(203),s=i(81);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(16),s=i(58),r=i(83);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(13);n.Area=i(1151),n.Ceil=i(1152),n.CeilAll=i(1153),n.CenterOn=i(162),n.Clone=i(1154),n.Contains=i(47),n.ContainsPoint=i(1155),n.ContainsRect=i(438),n.CopyFrom=i(1156),n.Decompose=i(427),n.Equals=i(1157),n.FitInside=i(1158),n.FitOutside=i(1159),n.Floor=i(1160),n.FloorAll=i(1161),n.FromPoints=i(171),n.GetAspectRatio=i(207),n.GetCenter=i(1162),n.GetPoint=i(146),n.GetPoints=i(269),n.GetSize=i(1163),n.Inflate=i(1164),n.Intersection=i(1165),n.MarchingAnts=i(280),n.MergePoints=i(1166),n.MergeRect=i(1167),n.MergeXY=i(1168),n.Offset=i(1169),n.OffsetPoint=i(1170),n.Overlaps=i(1171),n.Perimeter=i(108),n.PerimeterPoint=i(1172),n.Random=i(149),n.RandomOutside=i(1173),n.SameDimensions=i(1174),n.Scale=i(1175),n.Union=i(387),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(443),s=i(444),r=i(0),o=i(11),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(384);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},function(t,e){var i={};t.exports=i,i.create=function(t,e){var n=t.bodyA,s=t.bodyB,r={id:i.id(n,s),bodyA:n,bodyB:s,activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:n.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,collision:null,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return i.update(r,t,e),r},i.update=function(t,e,n){if(t.collision=e,e.collided){var s=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB;t.inverseMass=o.inverseMass+a.inverseMass,t.friction=Math.min(o.friction,a.friction),t.frictionStatic=Math.max(o.frictionStatic,a.frictionStatic),t.restitution=Math.max(o.restitution,a.restitution),t.slop=Math.max(o.slop,a.slop);for(var h=0;h-1}return!1}},function(t,e,i){var n=i(72),s=i(99),r=i(215);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(10),s=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileWidth,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.x+i.scrollX*(1-r.scrollFactorX),s*=r.scaleX),e?Math.floor(t/s):t/s},r=function(){return console.warn("With the current map type you have to use the WorldToTileXY function."),null};t.exports=function(t){switch(t){case n.ORTHOGONAL:return s;default:return r}}},function(t,e,i){var n=i(10),s=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY),e?Math.floor(t/s):t/s},r=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;return r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY),e?Math.floor(t/(s/2)):t/(s/2)},o=function(t,e,i,n){void 0===e&&(e=!0);var s=n.baseTileHeight,r=n.tilemapLayer;r&&(void 0===i&&(i=r.scene.cameras.main),t-=r.y+i.scrollY*(1-r.scrollFactorY),s*=r.scaleY);var o=n.hexSideLength,a=(s-o)/2+o;return e?Math.floor(t/a):t/a},a=function(){return console.warn("With the current map type you have to use the WorldToTileXY function."),null};t.exports=function(t){switch(t){case n.ORTHOGONAL:return s;case n.HEXAGONAL:return o;case n.STAGGERED:return r;default:return a}}},function(t,e,i){var n=i(33),s=i(218),r=i(474),o=i(475),a=i(486);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(218);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(10),s=i(33),r=i(101),o=i(476),a=i(478),h=i(479),l=i(482),u=i(484),c=i(485);t.exports=function(t,e,i){if("isometric"===e.orientation||"staggered"===e.orientation)console.warn("Isometric map types are WIP in this version of Phaser");else if("hexagonal"===e.orientation)console.warn("Hexagonal map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal, hexagonal and isometric map types are supported in this version of Phaser"),null;var d=new r({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:n.fromOrientationString(e.orientation),format:s.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});d.orientation===n.HEXAGONAL&&(d.hexSideLength=e.hexsidelength),d.layers=o(e,i),d.images=a(e);var f=h(e);return d.tilesets=f.tilesets,d.imageCollections=f.imageCollections,d.objects=l(e),d.tiles=u(d),c(d),d}},function(t,e,i){var n=i(10),s=i(477),r=i(2),o=i(100),a=i(219),h=i(72),l=i(220);t.exports=function(t,e){for(var i=r(t,"infinite",!1),u=[],c=[],d=l(t);d.i0;)if(d.i>=d.layers.length){if(c.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}d=c.pop()}else{var f=d.layers[d.i];if(d.i++,"tilelayer"===f.type)if(f.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+f.name+"'");else{if(f.encoding&&"base64"===f.encoding){if(f.chunks)for(var p=0;p0?((m=new h(g,v.gid,R,L,t.tilewidth,t.tileheight)).rotation=v.rotation,m.flipX=v.flipped,x[L][R]=m):(y=e?null:new h(g,-1,R,L,t.tilewidth,t.tileheight),x[L][R]=y),++T===A.width&&(M++,T=0)}}else{(g=new o({name:d.name+f.name,x:d.x+r(f,"offsetx",0)+f.x,y:d.y+r(f,"offsety",0)+f.y,width:f.width,height:f.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:d.opacity*f.opacity,visible:d.visible&&f.visible,properties:r(f,"properties",{}),orientation:n.fromOrientationString(t.orientation)})).orientation===n.HEXAGONAL&&(g.hexSideLength=t.hexsidelength);for(var D=[],F=0,k=f.data.length;F0?((m=new h(g,v.gid,T,x.length,t.tilewidth,t.tileheight)).rotation=v.rotation,m.flipX=v.flipped,D.push(m)):(y=e?null:new h(g,-1,T,x.length,t.tilewidth,t.tileheight),D.push(y)),++T===f.width&&(x.push(D),T=0,D=[])}g.data=x,u.push(g)}else if("group"===f.type){var I=l(t,f,d);c.push(d),d=I}}return u}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(220);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(137),s=i(480),r=i(221);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(100),s=i(72);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(137);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return this.tilemap.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return this.tilemap.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return this.tilemap.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return this.tilemap.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return this.tilemap.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return this.tilemap.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=l},function(t,e,i){var n=i(0),s=i(12),r=i(19),o=i(14),a=i(1341),h=i(135),l=i(30),u=i(9),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.isoCullDistances=new c(1,1),this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var b=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),E=m.getX(y,x),S=m.getY(y,x),A=m.getX(y,w),_=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),O=m.getX(T,x),P=m.getY(T,x);r.roundPixels&&(E=Math.round(E),S=Math.round(S),A=Math.round(A),_=Math.round(_),C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=A,R[++t]=_,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=O,R[++t]=P,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=b,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1350);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(225),s=i(15),r=i(86),o=i(67),a=i(138),h=i(6),l=i(224),u=i(226),c=i(228);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),b=r(e,"yoyo",i.yoyo),E=[],S=l("value",f),A=c(p[0],0,"value",S.getEnd,S.getStart,S.getActive,y,g,v,b,x,T,w,!1,!1);A.start=d,A.current=d,A.to=f,E.push(A);var _=new u(t,E,p);_.offset=s(e,"offset",null),_.completeDelay=s(e,"completeDelay",0),_.loop=Math.round(s(e,"loop",0)),_.loopDelay=Math.round(s(e,"loopDelay",0)),_.paused=r(e,"paused",!1),_.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",_),M=[_,null],O=u.TYPES,P=0;PS&&(S=C),E[A][_]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(501),s=i(48),r=i(0),o=i(10),a=i(502),h=i(90),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,b=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),b=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*b),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(27),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(311);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(89),s=i(48),r=i(0),o=i(10),a=i(19),h=i(114),l=i(1),u=i(90),c=i(78),d=i(115),f=i(30),p=i(9),g=i(504),v=i(505),m=i(506),y=i(232),x=i(507),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(233),o=i(335),a=i(336),h=i(30),l=i(141),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},function(t,e,i){var n={};t.exports=n;var s=i(97),r=i(37);n.fromVertices=function(t){for(var e={},i=0;i1?1:0;d1?1:0;p0:0!=(t.mask&e.category)&&0!=(e.mask&t.category)}},function(t,e,i){var n={};t.exports=n;var s=i(84),r=i(97);n.collides=function(t,e,i){var o,a,h,l,u=!1;if(i){var c=t.parent,d=e.parent,f=c.speed*c.speed+c.angularSpeed*c.angularSpeed+d.speed*d.speed+d.angularSpeed*d.angularSpeed;u=i&&i.collided&&f<.2,l=i}else l={collided:!1,bodyA:t,bodyB:e};if(i&&u){var p=l.axisBody,g=p===t?e:t,v=[p.axes[i.axisNumber]];if(h=n._overlapAxes(p.vertices,g.vertices,v),l.reused=!0,h.overlap<=0)return l.collided=!1,l}else{if((o=n._overlapAxes(t.vertices,e.vertices,t.axes)).overlap<=0)return l.collided=!1,l;if((a=n._overlapAxes(e.vertices,t.vertices,e.axes)).overlap<=0)return l.collided=!1,l;o.overlaps?s=a:a=0?o.index-1:u.length-1],l.x=s.x-c.x,l.y=s.y-c.y,h=-r.dot(i,l),a=s,s=u[(o.index+1)%u.length],l.x=s.x-c.x,l.y=s.y-c.y,(n=-r.dot(i,l))>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(288),BaseCamera:i(89),CameraManager:i(694),Effects:i(296),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(23),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(23),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(113),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(313);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(16);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(154);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(323),IsSize:i(114),IsValue:i(749)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(324),Floor:i(91),To:i(751)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(169),s=i(331),r=i(332),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(341),Palettes:i(780)}},function(t,e,i){t.exports={ARNE16:i(342),C64:i(781),CGA:i(782),JMP:i(783),MSX:i(784)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(786),CubicBezier:i(343),Curve:i(79),Ellipse:i(344),Line:i(345),QuadraticBezier:i(346),Spline:i(347)}},function(t,e,i){var n=i(0),s=i(343),r=i(344),o=i(5),a=i(345),h=i(787),l=i(346),u=i(13),c=i(347),d=i(3),f=i(16),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(351);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(160);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(111),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(167),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(350);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(273),GeometryMask:i(274)}},function(t,e,i){var n={AddToDOM:i(116),DOMContentLoaded:i(352),GetScreenOrientation:i(353),GetTarget:i(358),ParseXML:i(359),RemoveFromDOM:i(173),RequestAnimationFrame:i(339)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(809)}},function(t,e,i){var n=i(0),s=i(11),r=i(24),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(116),s=i(284),r=i(287),o=i(27),a=i(0),h=i(309),l=i(811),u=i(333),c=i(109),d=i(337),f=i(310),p=i(352),g=i(11),v=i(19),m=i(360),y=i(24),x=i(365),T=i(366),w=i(368),b=i(115),E=i(371),S=i(338),A=i(340),_=i(375),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new E(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=_.create(this),this.loop=new S(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),A(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(116);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(176);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),b>o&&(x=b-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,b=s-w,E=s-(v-p-w),S=e.y,A=r-S,_=r-(m-g-S);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,O=0,P=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-Y>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),Y=0,B=null):B=X):X.cr&&(N.push(X.i+X.word.length),Y=0,B=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nb&&(c=b),d>E&&(d=E);var W=b+w.xAdvance,V=E+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===Y?X=(U.longest-U.lengths[0])/2:2===Y&&(X=U.longest-U.lengths[0]);for(var G=s.roundPixels,W=0;W0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===O?R=(D.longest-D.lengths[0])/2:2===O&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(946),s=i(947),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),b=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),E=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),S=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var A,_,C=0,M=0,O=0,P=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,Y=e.fontData,N=Y.chars,X=Y.lineHeight,z=e.fontSize/Y.size,U=0,G=e._align,W=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===G?V=(H.longest-H.lengths[0])/2:2===G&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,q=e.displayCallback,K=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var Y=0;Y0&&(N=N%b-b):N>b?N=b:N<0&&(N=b+N%b),null===_&&(_=new o(k+Math.cos(Y)*B,I+Math.sin(Y)*B,v),E.push(_),F+=.01);F<1+z;)w=N*F+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,_.points.push(new r(x,T,v)),F+=.01;w=N+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,_.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++O],p[++O],p[++O],p[++O],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],v,f,c);break;case n.LINE_TO:null!==_?_.points.push(new r(p[++O],p[++O],v)):(_=new o(p[++O],p[++O],v),E.push(_));break;case n.MOVE_TO:_=new o(p[++O],p[++O],v),E.push(_);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++O],I=p[++O],f.translate(k,I);break;case n.SCALE:k=p[++O],I=p[++O],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++O]);break;case n.SET_TEXTURE:var U=p[++O],G=p[++O];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=G,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(959),s=i(960),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(962),s=i(963),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(395),Particle:i(396),ParticleEmitter:i(397),ParticleEmitterManager:i(189),Zones:i(969)}},function(t,e,i){var n=i(0),s=i(325),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(967),s=i(968),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(981),s=i(982),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(15),r=i(6),o=i(984),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(27);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,_=1;_0)for(n(h,e),_=0;_0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),_=0;_0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),A=1;Ao.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,b=0;b0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(13);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(93);n.Area=i(1092),n.Circumference=i(393),n.CircumferencePoint=i(188),n.Clone=i(1093),n.Contains=i(94),n.ContainsPoint=i(1094),n.ContainsRect=i(1095),n.CopyFrom=i(1096),n.Equals=i(1097),n.GetBounds=i(1098),n.GetPoint=i(391),n.GetPoints=i(392),n.Offset=i(1099),n.OffsetPoint=i(1100),n.Random=i(151),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(93);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(94);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(94);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(13);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(200);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(202),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(13),s=i(129);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(204),s=i(129);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(426),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(202),s=i(428);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(431),s=i(429);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(433);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(162);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(13),s=i(129);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(131),KeyboardManager:i(361),KeyboardPlugin:i(1214),Key:i(446),KeyCodes:i(118),KeyCombo:i(447),JustDown:i(1219),JustUp:i(1220),DownDuration:i(1221),UpDuration:i(1222)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(11),r=i(131),o=i(19),a=i(6),h=i(54),l=i(130),u=i(446),c=i(118),d=i(447),f=i(1218),p=i(91),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(118),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(457),s=i(63),r=i(200),o=i(201);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1279);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(461);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(462);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},function(t,e,i){var n={};t.exports=n;var s=i(142),r=i(214),o=i(37),a=i(62),h=i(105);n.stack=function(t,e,i,n,r,o,h){for(var l,u=s.create({label:"Stack"}),c=t,d=e,f=0,p=0;pg&&(g=y),a.translate(m,{x:.5*x,y:.5*y}),c=m.bounds.max.x+r,s.addBody(u,m),l=m,f+=1}else c+=r}d+=g+o,c=t}return u},n.chain=function(t,e,i,n,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=f[l-1+(h-1)*e],s.addConstraint(t,r.create(o.extend({bodyA:d,bodyB:c},a)))),n&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*f,y:0}),h(t+(u?o*f:0)+o*r,n,o,l,u,c)})},n.newtonsCradle=function(t,e,i,n,o){for(var a=s.create({label:"Newtons Cradle"}),l=0;l1;if(!d||t!=d.x||e!=d.y){d&&n?(f=d.x,p=d.y):(f=0,p=0);var s={x:f+t,y:p+e};!n&&d||(d=s),g.push(s),m=f+t,y=p+e}},T=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":m=t.x,y=t.y;break;case"H":m=t.x;break;case"V":y=t.y}x(m,y,t.pathSegType)}};for(n._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}},setFromTileRectangle:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,s=e.y+e.height/2,r=n.rectangle(i,s,e.width,e.height,t);return this.setBody(r,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,r=this.tile.getLeft(),o=this.tile.getTop(),a=this.tile.getCollisionGroup(),c=h(a,"objects",[]),d=[],f=0;f1&&(t.parts=d,this.setBody(s.create(t),t.addToWorld)),this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=c},function(t,e,i){var n=i(1381);n.Body=i(62),n.Composite=i(142),n.World=i(1290),n.Detector=i(510),n.Grid=i(1291),n.Pairs=i(1292),n.Pair=i(466),n.Query=i(1382),n.Resolver=i(1293),n.SAT=i(511),n.Constraint=i(214),n.Common=i(37),n.Engine=i(1383),n.Events=i(235),n.Sleeping=i(234),n.Plugin=i(1289),n.Bodies=i(105),n.Composites=i(1282),n.Axes=i(508),n.Bounds=i(98),n.Svg=i(1283),n.Vector=i(97),n.Vertices=i(84),n.World.add=n.Composite.add,n.World.remove=n.Composite.remove,n.World.addComposite=n.Composite.addComposite,n.World.addBody=n.Composite.addBody,n.World.addConstraint=n.Composite.addConstraint,n.World.clear=n.Composite.clear,t.exports=n},function(t,e,i){var n={};t.exports=n;var s=i(37);n._registry={},n.register=function(t){if(n.isPlugin(t)||s.warn("Plugin.register:",n.toString(t),"does not implement all required fields."),t.name in n._registry){var e=n._registry[t.name],i=n.versionParse(t.version).number,r=n.versionParse(e.version).number;i>r?(s.warn("Plugin.register:",n.toString(e),"was upgraded to",n.toString(t)),n._registry[t.name]=t):i-1},n.isFor=function(t,e){var i=t.for&&n.dependencyParse(t.for);return!t.for||e.name===i.name&&n.versionSatisfies(e.version,i.range)},n.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=n.dependencies(t),r=s.topologicalSort(i),o=[],a=0;a0&&!h.silent&&s.info(o.join(" "))}else s.warn("Plugin.use:",n.toString(t),"does not specify any dependencies to install.")},n.dependencies=function(t,e){var i=n.dependencyParse(t),r=i.name;if(!(r in(e=e||{}))){t=n.resolve(t)||t,e[r]=s.map(t.uses||[],function(e){n.isPlugin(e)&&n.register(e);var r=n.dependencyParse(e),o=n.resolve(e);return o&&!n.versionSatisfies(o.version,r.range)?(s.warn("Plugin.dependencies:",n.toString(o),"does not satisfy",n.toString(r),"used by",n.toString(i)+"."),o._warned=!0,t._warned=!0):o||(s.warn("Plugin.dependencies:",n.toString(e),"used by",n.toString(i),"could not be resolved."),t._warned=!0),r.name});for(var o=0;o=s[2];if("^"===i.operator)return s[0]>0?o[0]===s[0]&&r.number>=i.number:s[1]>0?o[1]===s[1]&&o[2]>=s[2]:o[2]===s[2]}return t===e||"*"===t}},function(t,e,i){var n={};t.exports=n;var s=i(142),r=(i(214),i(37));n.create=function(t){var e=s.create(),i={label:"World",gravity:{x:0,y:1,scale:.001},bounds:{min:{x:-1/0,y:-1/0},max:{x:1/0,y:1/0}}};return r.extend(e,i,t)}},function(t,e,i){var n={};t.exports=n;var s=i(466),r=i(510),o=i(37);n.create=function(t){var e={controller:n,detector:r.collisions,buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(e,t)},n.update=function(t,e,i,s){var r,o,a,h,l,u=i.world,c=t.buckets,d=!1,f=i.metrics;for(f.broadphaseTests=0,r=0;ru.bounds.max.x||p.bounds.max.yu.bounds.max.y)){var g=n._getRegion(t,p);if(!p.region||g.id!==p.region.id||s){f.broadphaseTests+=1,p.region&&!s||(p.region=g);var v=n._regionUnion(g,p.region);for(o=v.startCol;o<=v.endCol;o++)for(a=v.startRow;a<=v.endRow;a++){h=c[l=n._getBucketId(o,a)];var m=o>=g.startCol&&o<=g.endCol&&a>=g.startRow&&a<=g.endRow,y=o>=p.region.startCol&&o<=p.region.endCol&&a>=p.region.startRow&&a<=p.region.endRow;!m&&y&&y&&h&&n._bucketRemoveBody(t,h,p),(p.region===g||m&&!y||s)&&(h||(h=n._createBucket(c,l)),n._bucketAddBody(t,h,p))}p.region=g,d=!0}}}d&&(t.pairsList=n._createActivePairsList(t))},n.clear=function(t){t.buckets={},t.pairs={},t.pairsList=[]},n._regionUnion=function(t,e){var i=Math.min(t.startCol,e.startCol),s=Math.max(t.endCol,e.endCol),r=Math.min(t.startRow,e.startRow),o=Math.max(t.endRow,e.endRow);return n._createRegion(i,s,r,o)},n._getRegion=function(t,e){var i=e.bounds,s=Math.floor(i.min.x/t.bucketWidth),r=Math.floor(i.max.x/t.bucketWidth),o=Math.floor(i.min.y/t.bucketHeight),a=Math.floor(i.max.y/t.bucketHeight);return n._createRegion(s,r,o,a)},n._createRegion=function(t,e,i,n){return{id:t+","+e+","+i+","+n,startCol:t,endCol:e,startRow:i,endRow:n}},n._getBucketId=function(t,e){return"C"+t+"R"+e},n._createBucket=function(t,e){return t[e]=[]},n._bucketAddBody=function(t,e,i){for(var n=0;n0?n.push(i):delete t.pairs[e[s]];return n}},function(t,e,i){var n={};t.exports=n;var s=i(466),r=i(37);n._pairMaxIdleLife=1e3,n.create=function(t){return r.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},n.update=function(t,e,i){var n,r,o,a,h=t.list,l=t.table,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,d.length=0,a=0;an._pairMaxIdleLife&&l.push(o);for(o=0;of.friction*f.frictionStatic*F*i&&(I=R,k=o.clamp(f.friction*L*i,-I,I));var B=r.cross(S,m),Y=r.cross(A,m),N=T/(g.inverseMass+v.inverseMass+g.inverseInertia*B*B+v.inverseInertia*Y*Y);if(D*=N,k*=N,O<0&&O*O>n._restingThresh*i)b.normalImpulse=0;else{var X=b.normalImpulse;b.normalImpulse=Math.min(b.normalImpulse+D,0),D=b.normalImpulse-X}if(P*P>n._restingThreshTangent*i)b.tangentImpulse=0;else{var z=b.tangentImpulse;b.tangentImpulse=o.clamp(b.tangentImpulse+k,-I,I),k=b.tangentImpulse-z}s.x=m.x*D+y.x*k,s.y=m.y*D+y.y*k,g.isStatic||g.isSleeping||(g.positionPrev.x+=s.x*g.inverseMass,g.positionPrev.y+=s.y*g.inverseMass,g.anglePrev+=r.cross(S,s)*g.inverseInertia),v.isStatic||v.isSleeping||(v.positionPrev.x-=s.x*v.inverseMass,v.positionPrev.y-=s.y*v.inverseMass,v.anglePrev-=r.cross(A,s)*v.inverseInertia)}}}}},function(t,e,i){t.exports={BasePlugin:i(467),DefaultPlugins:i(170),PluginCache:i(24),PluginManager:i(365),ScenePlugin:i(1295)}},function(t,e,i){var n=i(467),s=i(0),r=i(22),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(18),s=i(172),r={Center:i(354),Events:i(90),Orientation:i(355),ScaleManager:i(366),ScaleModes:i(356),Zoom:i(357)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(119),s=i(18),r={Events:i(22),SceneManager:i(368),ScenePlugin:i(1298),Settings:i(370),Systems:i(175)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(23),s=i(0),r=i(22),o=i(2),a=i(24),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(123),Map:i(156),ProcessQueue:i(181),RTree:i(463),Set:i(127),Size:i(367)}},function(t,e,i){var n=i(18),s=i(1301),r={CanvasTexture:i(372),Events:i(115),FilterMode:s,Frame:i(92),Parsers:i(374),Texture:i(177),TextureManager:i(371),TextureSource:i(373)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(135),Parsers:i(1335),Formats:i(33),ImageCollection:i(480),ParseToTilemap:i(222),Tile:i(72),Tilemap:i(489),TilemapCreator:i(1344),TilemapFactory:i(1345),Tileset:i(137),LayerData:i(100),MapData:i(101),ObjectLayer:i(483),DynamicTilemapLayer:i(490),StaticTilemapLayer:i(491)}},function(t,e,i){var n=i(25),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&g=y;h--)(u=f[l][h])&&-1!==u.index&&u.visible&&0!==u.alpha&&i.push(u);else if(2===a)for(l=w;l>=T;l--)for(h=y;f[l]&&h=T;l--)for(h=x;f[l]&&h>=y;h--)(u=f[l][h])&&-1!==u.index&&u.visible&&0!==u.alpha&&i.push(u)}else if(t.orientation===n.ISOMETRIC)if(0===a){for(l=T;l=y;h--)if(o(h,l,t,e)){if(!(u=f[l][h])||-1===u.index||!u.visible||0===u.alpha)continue;i.push(u)}}else if(2===a){for(l=w;l>=T;l--)for(h=y;f[l]&&h=T;l--)for(h=x;f[l]&&h>=y;h--)if(o(h,l,t,e)){if(!(u=f[l][h])||-1===u.index||!u.visible||0===u.alpha)continue;i.push(u)}return d.tilesDrawn=i.length,d.tilesTotal=p*g,i}},function(t,e){t.exports=function(t,e,i,n){var s=i.tilemapLayer,r=s.isoCullDistances,o=s.tileToWorldXY(t,e,void 0,n);return o.x>n.worldView.x+s.scaleX*i.tileWidth*(-r.x-.5)&&o.xn.worldView.y+s.scaleY*i.tileHeight*(-r.y-.5)&&o.y=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(217);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(c.imageSmoothingEnabled=!1);for(var p=0;p0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(18),GetAdvancedValue:i(15),GetFastValue:i(2),GetMinMaxValue:i(1369),GetValue:i(6),HasAll:i(1370),HasAny:i(400),HasValue:i(104),IsPlainObject:i(7),Merge:i(120),MergeRight:i(1371),Pick:i(481),SetValue:i(420)}},function(t,e,i){var n=i(6),s=i(23);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function o(t,e,i){return s(t,e,i)>=0}function a(t,e,i){return s(t,e,i)<0}function h(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=function t(e){var i=[],n=[],s=[],r=[];var o=Number.MAX_VALUE;for(var a=0;a0?function t(e,i){if(0===i.length)return[e];if(i instanceof Array&&i.length&&i[0]instanceof Array&&2===i[0].length&&i[0][0]instanceof Array){for(var n=[e],s=0;su)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;LA&&(A+=e.length),S=Number.MAX_VALUE,A<_)return i;for(var D=_;D<=A;++D)o(f(P,L-1),f(P,L),f(P,D))&&h(f(P,L+1),f(P,L),f(P,D))&&(E=d(f(P,L),f(P,D)))3&&n>=0;--n)c(f(t,n-1),f(t,n),f(t,n+1),e)&&(t.splice(n%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var n=t[i],s=i-1;s>=0;--s)E(n,t[s],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,n=1;ni[e][0])&&(e=n);return!r(f(t,e-1),f(t,e),f(t,e+1))&&(function(t){for(var e=[],i=t.length,n=0;n!==i;n++)e.push(t.pop());for(var n=0;n!==i;n++)t[n]=e[n]}(t),!0)}};var l=[],u=[];function c(t,e,i,n){if(n){var r=l,o=u;r[0]=e[0]-t[0],r[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=r[0]*o[0]+r[1]*o[1],h=Math.sqrt(r[0]*r[0]+r[1]*r[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(h*c))0&&u.trigger(t,"collisionStart",{pairs:T.collisionStart}),o.preSolvePosition(T.list),s=0;s0&&u.trigger(t,"collisionActive",{pairs:T.collisionActive}),T.collisionEnd.length>0&&u.trigger(t,"collisionEnd",{pairs:T.collisionEnd}),h.update(t.metrics,t),n._bodiesClearForces(m),u.trigger(t,"afterUpdate",v),t},n.merge=function(t,e){if(f.extend(t,e),e.world){t.world=e.world,n.clear(t);for(var i=c.allBodies(t.world),s=0;s0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_START,e,i,n)}),p.on(e,"collisionActive",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,n)}),p.on(e,"collisionEnd",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_END,e,i,n)})},setBounds:function(t,e,i,n,s,r,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),void 0===s&&(s=64),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(r,"left",t-s,e-s,s,n+2*s),this.updateWall(o,"right",t+i,e-s,s,n+2*s),this.updateWall(a,"top",t,e-s,i,s),this.updateWall(h,"bottom",t,e+n,i,s),this},updateWall:function(t,e,i,n,s,r){var o=this.walls[e];t?(o&&v.remove(this.localWorld,o),i+=s/2,n+=r/2,this.walls[e]=this.create(i,n,s,r,{isStatic:!0,friction:0,frictionStatic:0})):(o&&v.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,void 0!==i&&(this.localWorld.gravity.scale=i),this},create:function(t,e,i,s,r){var o=n.rectangle(t,e,i,s,r);return v.add(this.localWorld,o),o},add:function(t){return v.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;in.deltaMax?n.deltaMax:e)/n.delta,n.delta=e),0!==n.timeScalePrev&&(r*=s.timeScale/n.timeScalePrev),0===s.timeScale&&(r=0),n.timeScalePrev=s.timeScale,n.correction=r,n.frameCounter+=1,t-n.counterTimestamp>=1e3&&(n.fps=n.frameCounter*((t-n.counterTimestamp)/1e3),n.counterTimestamp=t,n.frameCounter=0),h.update(i,e,r)}},step:function(t,e){h.update(this.engine,t,e)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,n=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(n,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(n),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(n,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(n,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=o.keys(t.buckets),r=0;r0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=0;s1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,f,y)}}},renderBody:function(t,e,i,n,s,r,o,a){void 0===n&&(n=null),void 0===s&&(s=null),void 0===r&&(r=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,f=d>1?1:0;f1){var s=t.vertices;e.lineStyle(n,i),e.beginPath(),e.moveTo(s[0].x,s[0].y);for(var r=1;r0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=y},function(t,e,i){(function(e){i(513);var n=i(10),s=i(18),r={Actions:i(236),Animations:i(633),BlendModes:i(52),Cache:i(634),Cameras:i(637),Core:i(720),Class:i(0),Create:i(779),Curves:i(785),Data:i(788),Display:i(790),DOM:i(807),Events:i(808),Game:i(810),GameObjects:i(903),Geom:i(423),Input:i(1191),Loader:i(1225),Math:i(165),Physics:i(1386),Plugins:i(1294),Renderer:i(1423),Scale:i(1296),ScaleModes:i(229),Scene:i(369),Scenes:i(1297),Structs:i(1299),Textures:i(1300),Tilemaps:i(1302),Time:i(1346),Tweens:i(1348),Utils:i(1365)};r.Sound=i(1375),r=s(!1,r,n),t.exports=r,e.Phaser=r}).call(this,i(512))},function(t,e,i){t.exports={Arcade:i(1251),Matter:i(1387)}},function(t,e,i){t.exports={BodyBounds:i(1376),Factory:i(1377),Image:i(1379),Matter:i(1288),MatterPhysics:i(1419),PolyDecomp:i(1378),Sprite:i(1380),TileBody:i(1287),PhysicsEditorParser:i(1284),PhysicsJSONParser:i(1285),World:i(1384)}},function(t,e,i){var n=i(509),s=i(2),r=i(3);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity].forEach(function(t){for(var i in t)(n=t[i]).get&&"function"==typeof n.get||n.set&&"function"==typeof n.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var n}),e.world=t,e._tempVec2=new r(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=s(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},function(t,e){t.exports={setBounce:function(t){return this.body.restitution=t,this}}},function(t,e){var i={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i1?1:0;s0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var n=D.create(t,e),s=[];return M.point(i,n).forEach(function(t){-1===s.indexOf(t)&&s.push(t)}),s},intersectRect:function(t,e,i,n,s,r){void 0===s&&(s=!1),r=this.getMatterBodies(r);var o={min:{x:t,y:e},max:{x:t+i,y:e+n}},a=[];return M.region(r,o,s).forEach(function(t){-1===a.indexOf(t)&&a.push(t)}),a},intersectRay:function(t,e,i,n,s,r){void 0===s&&(s=1),r=this.getMatterBodies(r);for(var o=[],a=M.ray(r,D.create(t,e),D.create(i,n),s),h=0;h0)for(var a=s+1;ae.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?n=e.min.y-t.max.y:t.max.y